]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/msm/dp: unregister audio driver during unbind
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fri, 21 Apr 2023 14:56:57 +0000 (15:56 +0100)
committerAbhinav Kumar <quic_abhinavk@quicinc.com>
Wed, 26 Apr 2023 23:45:35 +0000 (16:45 -0700)
commit85c636284cb63b7740b4ae98881ace92158068d3
tree95b7f12eacf80ba7213380ca1ae9981c9bbff81c
parent16eb51aba0a72b8f60c6b98d1493844230293450
drm/msm/dp: unregister audio driver during unbind

while binding the code always registers a audio driver, however there
is no corresponding unregistration done in unbind. This leads to multiple
redundant audio platform devices if dp_display_bind and dp_display_unbind
happens multiple times during startup. On X13s platform this resulted in
6 to 9 audio codec device instead of just 3 codec devices for 3 dp ports.

Fix this by unregistering codecs on unbind.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fixes: d13e36d7d222 ("drm/msm/dp: add audio support for Display Port on MSM")
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/533324/
Link: https://lore.kernel.org/r/20230421145657.12186-1-srinivas.kandagatla@linaro.org
Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
drivers/gpu/drm/msm/dp/dp_audio.c
drivers/gpu/drm/msm/dp/dp_audio.h
drivers/gpu/drm/msm/dp/dp_display.c