drm/msm/dp: do not notify audio subsystem if sink doesn't support audio
authorAbhinav Kumar <abhinavk@codeaurora.org>
Tue, 3 Nov 2020 01:10:23 +0000 (17:10 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:53:07 +0000 (11:53 +0100)
commit56b491d7de00c7c5e87edf58482a12eb2749aa1c
tree6e964f5d07ac4bc279cb2a35b29e883b1a1088dd
parentbe5795e2098fc4ccc6655bbb3588cef6d81499c5
drm/msm/dp: do not notify audio subsystem if sink doesn't support audio

[ Upstream commit e8c765811b1064c200829eacf237ac8c25e79cd0 ]

For sinks that do not support audio, there is no need to notify
audio subsystem of the connection event.

This will make sure that audio routes only to the primary display
when connected to such sinks.

changes in v2:
  - Added fixes tag
  - Removed nested if condition and removed usage of global pointer

Fixes: d13e36d7d222 ("drm/msm/dp: add audio support for Display Port on MSM")
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/msm/dp/dp_display.c