mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
asoc: msm-dai: Add senary mi2s format control
Add control for configuring senary mi2s format. Change-Id: Id885ca991b6752cc6568f156add9107f7c894dda Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
This commit is contained in:
parent
731807e0a2
commit
f3437da295
1 changed files with 12 additions and 7 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue