From fa487b75065b42f7874a71308ecc5dabdcdee150 Mon Sep 17 00:00:00 2001 From: Hongtao Peng Date: Tue, 23 Feb 2021 15:47:55 +0800 Subject: [PATCH] ASoC: msm: Add 24KHz sample rate for EC Reference Support 24KHz sample rate setting from kcontrol Change-Id: Iba0b8f4f6b2732be68c609032a0225ffe194c3e4 Signed-off-by: Hongtao Peng --- asoc/msm-pcm-routing-v2.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) mode change 100644 => 100755 asoc/msm-pcm-routing-v2.c diff --git a/asoc/msm-pcm-routing-v2.c b/asoc/msm-pcm-routing-v2.c old mode 100644 new mode 100755 index beea152292da..6e7e300831bd --- a/asoc/msm-pcm-routing-v2.c +++ b/asoc/msm-pcm-routing-v2.c @@ -5554,21 +5554,24 @@ static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol, msm_ec_ref_sampling_rate = 16000; break; case 3: - msm_ec_ref_sampling_rate = 32000; + msm_ec_ref_sampling_rate = 24000; break; case 4: - msm_ec_ref_sampling_rate = 44100; + msm_ec_ref_sampling_rate = 32000; break; case 5: - msm_ec_ref_sampling_rate = 48000; + msm_ec_ref_sampling_rate = 44100; break; case 6: - msm_ec_ref_sampling_rate = 96000; + msm_ec_ref_sampling_rate = 48000; break; case 7: - msm_ec_ref_sampling_rate = 192000; + msm_ec_ref_sampling_rate = 96000; break; case 8: + msm_ec_ref_sampling_rate = 192000; + break; + case 9: msm_ec_ref_sampling_rate = 384000; break; default: @@ -5791,7 +5794,7 @@ static int msm_routing_afe_lb_tx_port_put(struct snd_kcontrol *kcontrol, } static const char *const ec_ref_rate_text[] = {"0", "8000", "16000", - "32000", "44100", "48000", "96000", "192000", "384000"}; + "24000", "32000", "44100", "48000", "96000", "192000", "384000"}; static const struct soc_enum msm_route_ec_ref_params_enum[] = { SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_ch_text), ec_ref_ch_text),