]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerRob Clark <robdclark@chromium.org>
Tue, 10 Nov 2020 20:41:19 +0000 (12:41 -0800)
commit36737f76fb065d6690ca58e2b70aff9f34674b2e
tree8d40598e19d01b10ce684957046d6b5e0e88c384
parentb9c2004ea729a18db36af70b82a098d6a058506e
drm/msm/dp: do not notify audio subsystem if sink doesn't support audio

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: 3dab6fdb0ded ("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>
drivers/gpu/drm/msm/dp/dp_display.c