]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/msm/hdmi: use new helper for ACR tables
authorDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Tue, 8 Apr 2025 13:54:27 +0000 (16:54 +0300)
committerDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Fri, 2 May 2025 00:54:03 +0000 (03:54 +0300)
commit88321e3529f1e4541fef25a5625b18ce234765de
tree59dbb48f9a5195075faa7e278fbebaa491d87623
parent1735917ac44a0e28d7f247936736a2292c50bba3
drm/msm/hdmi: use new helper for ACR tables

Use new drm_hdmi_acr_get_n_cts() helper instead of hand-coding the
tables. Instead of storing the rate 'index', store the audio sample rate
in hdmi->audio.rate, removing the need for even more defines.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/647507/
Link: https://lore.kernel.org/r/20250408-drm-hdmi-acr-v2-3-dee7298ab1af@oss.qualcomm.com
drivers/gpu/drm/msm/hdmi/hdmi_audio.c