ASoC: msm: Add 24KHz sample rate for EC Reference

Support 24KHz sample rate setting from kcontrol

Change-Id: Iba0b8f4f6b2732be68c609032a0225ffe194c3e4
Signed-off-by: Hongtao Peng <hongtaop@codeaurora.org>
This commit is contained in:
Hongtao Peng 2021-02-23 15:47:55 +08:00 • committed by Gerrit - the friendly Code Review server
commit fa487b7506

15
asoc/msm-pcm-routing-v2.c Normal file → Executable file
View file

@ -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),