mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
ASoC: msm: Set the minimum channels to 2 for HDMI.
The minimum channel number supported by HDMI is 2. Set the channel to STEREO if the channel is MONO in fixup function. CRs-fixed: 384324 Signed-off-by: Helen Zeng <xiaoyunz@codeaurora.org> (cherry picked from commit 12123a1c21b2e9beb469e66cc66d7b5cdd13eb2a) (cherry picked from commit cc72e236484f1fee01ecd9a6bdf06d7bc690dc9b) Change-Id: I153e1e0fc73523b3a1e229bd6c8eff2b8ac6e8c1 Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
This commit is contained in:
parent
2642d88534
commit
390fd7224b
2 changed files with 4 additions and 0 deletions
|
@ -1408,6 +1408,8 @@ static int msm_hdmi_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
|
|||
pr_debug("%s channels->min %u channels->max %u ()\n", __func__,
|
||||
channels->min, channels->max);
|
||||
|
||||
if (channels->max < 2)
|
||||
channels->min = channels->max = 2;
|
||||
rate->min = rate->max = 48000;
|
||||
channels->min = channels->max = msm_hdmi_rx_ch;
|
||||
|
||||
|
|
|
@ -1017,6 +1017,8 @@ static int msm8960_hdmi_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
|
|||
pr_debug("%s channels->min %u channels->max %u ()\n", __func__,
|
||||
channels->min, channels->max);
|
||||
|
||||
if (channels->max < 2)
|
||||
channels->min = channels->max = 2;
|
||||
rate->min = rate->max = 48000;
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue