msm: audio: qdsp6v2: Change AUDIO_SET_CONFIG ioctl implementation
-Problem: 32Khz AC3 clips are playing faster
-Cause: In hdmi_msm driver sample rate is set to 48Khz and this being
called during msm turn on. Sample rate cannot be set dynamically.
This resulting in fast playback when we are trying to play 32Khz clips.
-Fix: API is exposed in hdmi_msm driver to set the sample rate
dynamically.
1> Initially AUDIO_SET_CONFIG ioctl accepting only buffer size,
but now user space sends sample rate based on input clip.
AUDIO_SET_CONFIG ioctl in lpa_if_hdmi driver is changed to accept
msm_audio_config where both sample rate and buffer size are
accepted as part of configuration.
2> AUDIO_SET_CONFIG ioctl calls the API exposed in hdmi driver,
based on sample rate that is being sent from user space.
Change-Id: Ia11a8f61a53e7f3830d834ac1bc7bd26f5672575
CRs-Fixed: 317250, 317978
Signed-off-by: Deepa Madiregama <dmadireg@codeaurora.org>
2 files changed