From f3437da295347c4e2c8f1b3fd7373889ee798c94 Mon Sep 17 00:00:00 2001 From: Karthikeyan Mani Date: Tue, 15 Oct 2019 11:28:42 -0700 Subject: [PATCH] asoc: msm-dai: Add senary mi2s format control Add control for configuring senary mi2s format. Change-Id: Id885ca991b6752cc6568f156add9107f7c894dda Signed-off-by: Karthikeyan Mani --- asoc/msm-dai-q6-v2.c | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/asoc/msm-dai-q6-v2.c b/asoc/msm-dai-q6-v2.c index 1b15444b2e7f..61e01e2001a9 100644 --- a/asoc/msm-dai-q6-v2.c +++ b/asoc/msm-dai-q6-v2.c @@ -5014,6 +5014,9 @@ static const struct snd_kcontrol_new mi2s_config_controls[] = { SOC_ENUM_EXT("QUIN MI2S RX Format", mi2s_config_enum[0], msm_dai_q6_mi2s_format_get, msm_dai_q6_mi2s_format_put), + SOC_ENUM_EXT("SENARY MI2S RX Format", mi2s_config_enum[0], + msm_dai_q6_mi2s_format_get, + msm_dai_q6_mi2s_format_put), SOC_ENUM_EXT("PRI MI2S TX Format", mi2s_config_enum[0], msm_dai_q6_mi2s_format_get, msm_dai_q6_mi2s_format_put), @@ -5068,6 +5071,8 @@ static int msm_dai_q6_dai_mi2s_probe(struct snd_soc_dai *dai) ctrl = &mi2s_config_controls[3]; if (dai->id == MSM_QUIN_MI2S) ctrl = &mi2s_config_controls[4]; + if (dai->id == MSM_SENARY_MI2S) + ctrl = &mi2s_config_controls[5]; } if (ctrl) { @@ -5084,19 +5089,19 @@ static int msm_dai_q6_dai_mi2s_probe(struct snd_soc_dai *dai) ctrl = NULL; if (mi2s_dai_data->tx_dai.mi2s_dai_data.port_config.i2s.channel_mode) { if (dai->id == MSM_PRIM_MI2S) - ctrl = &mi2s_config_controls[5]; - if (dai->id == MSM_SEC_MI2S) ctrl = &mi2s_config_controls[6]; - if (dai->id == MSM_TERT_MI2S) + if (dai->id == MSM_SEC_MI2S) ctrl = &mi2s_config_controls[7]; - if (dai->id == MSM_QUAT_MI2S) + if (dai->id == MSM_TERT_MI2S) ctrl = &mi2s_config_controls[8]; - if (dai->id == MSM_QUIN_MI2S) + if (dai->id == MSM_QUAT_MI2S) ctrl = &mi2s_config_controls[9]; - if (dai->id == MSM_SENARY_MI2S) + if (dai->id == MSM_QUIN_MI2S) ctrl = &mi2s_config_controls[10]; - if (dai->id == MSM_INT5_MI2S) + if (dai->id == MSM_SENARY_MI2S) ctrl = &mi2s_config_controls[11]; + if (dai->id == MSM_INT5_MI2S) + ctrl = &mi2s_config_controls[12]; } if (ctrl) {