Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa487b75 authored by Hongtao Peng's avatar Hongtao Peng Committed by Gerrit - the friendly Code Review server
Browse files

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



Support 24KHz sample rate setting from kcontrol

Change-Id: Iba0b8f4f6b2732be68c609032a0225ffe194c3e4
Signed-off-by: default avatarHongtao Peng <hongtaop@codeaurora.org>
parent f8b4b87d
Loading
Loading
Loading
Loading

asoc/msm-pcm-routing-v2.c

100644 → 100755
+9 −6
Original line number Diff line number Diff line
@@ -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),