ASoC: msm: Fix config control indices for TX DAIs
Correct the config control indices for TX DAIs of MI2S interface. Change-Id: Ie8bf646a0c1fbd30abdb34703ae1f90ed9b484e8 Signed-off-by: Satish Babu Patakokila <sbpata@codeaurora.org>
This commit is contained in:
parent
093e11e9d2
commit
595690c416
1 changed files with 16 additions and 19 deletions
|
@ -3493,13 +3493,13 @@ static int msm_dai_q6_dai_mi2s_probe(struct snd_soc_dai *dai)
|
||||||
ctrl = NULL;
|
ctrl = NULL;
|
||||||
if (mi2s_dai_data->tx_dai.mi2s_dai_data.port_config.i2s.channel_mode) {
|
if (mi2s_dai_data->tx_dai.mi2s_dai_data.port_config.i2s.channel_mode) {
|
||||||
if (dai->id == MSM_PRIM_MI2S)
|
if (dai->id == MSM_PRIM_MI2S)
|
||||||
ctrl = &mi2s_config_controls[4];
|
|
||||||
if (dai->id == MSM_SEC_MI2S)
|
|
||||||
ctrl = &mi2s_config_controls[5];
|
ctrl = &mi2s_config_controls[5];
|
||||||
if (dai->id == MSM_TERT_MI2S)
|
if (dai->id == MSM_SEC_MI2S)
|
||||||
ctrl = &mi2s_config_controls[6];
|
ctrl = &mi2s_config_controls[6];
|
||||||
if (dai->id == MSM_QUAT_MI2S)
|
if (dai->id == MSM_TERT_MI2S)
|
||||||
ctrl = &mi2s_config_controls[7];
|
ctrl = &mi2s_config_controls[7];
|
||||||
|
if (dai->id == MSM_QUAT_MI2S)
|
||||||
|
ctrl = &mi2s_config_controls[8];
|
||||||
if (dai->id == MSM_QUIN_MI2S)
|
if (dai->id == MSM_QUIN_MI2S)
|
||||||
ctrl = &mi2s_config_controls[9];
|
ctrl = &mi2s_config_controls[9];
|
||||||
if (dai->id == MSM_SENARY_MI2S)
|
if (dai->id == MSM_SENARY_MI2S)
|
||||||
|
@ -3508,9 +3508,6 @@ static int msm_dai_q6_dai_mi2s_probe(struct snd_soc_dai *dai)
|
||||||
ctrl = &mi2s_config_controls[11];
|
ctrl = &mi2s_config_controls[11];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dai->id == MSM_QUAT_MI2S)
|
|
||||||
ctrl = &mi2s_config_controls[8];
|
|
||||||
|
|
||||||
if (ctrl) {
|
if (ctrl) {
|
||||||
rc = snd_ctl_add(dai->component->card->snd_card,
|
rc = snd_ctl_add(dai->component->card->snd_card,
|
||||||
snd_ctl_new1(ctrl,
|
snd_ctl_new1(ctrl,
|
||||||
|
@ -4087,18 +4084,6 @@ static struct snd_soc_dai_driver msm_dai_q6_mi2s_dai[] = {
|
||||||
.probe = msm_dai_q6_dai_mi2s_probe,
|
.probe = msm_dai_q6_dai_mi2s_probe,
|
||||||
.remove = msm_dai_q6_dai_mi2s_remove,
|
.remove = msm_dai_q6_dai_mi2s_remove,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
.playback = {
|
|
||||||
.stream_name = "Secondary MI2S Playback SD1",
|
|
||||||
.aif_name = "SEC_MI2S_RX_SD1",
|
|
||||||
.rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 |
|
|
||||||
SNDRV_PCM_RATE_16000,
|
|
||||||
.formats = SNDRV_PCM_FMTBIT_S16_LE,
|
|
||||||
.rate_min = 8000,
|
|
||||||
.rate_max = 48000,
|
|
||||||
},
|
|
||||||
.id = MSM_SEC_MI2S_SD1,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
.playback = {
|
.playback = {
|
||||||
.stream_name = "Quinary MI2S Playback",
|
.stream_name = "Quinary MI2S Playback",
|
||||||
|
@ -4124,6 +4109,18 @@ static struct snd_soc_dai_driver msm_dai_q6_mi2s_dai[] = {
|
||||||
.probe = msm_dai_q6_dai_mi2s_probe,
|
.probe = msm_dai_q6_dai_mi2s_probe,
|
||||||
.remove = msm_dai_q6_dai_mi2s_remove,
|
.remove = msm_dai_q6_dai_mi2s_remove,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
.playback = {
|
||||||
|
.stream_name = "Secondary MI2S Playback SD1",
|
||||||
|
.aif_name = "SEC_MI2S_RX_SD1",
|
||||||
|
.rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 |
|
||||||
|
SNDRV_PCM_RATE_16000,
|
||||||
|
.formats = SNDRV_PCM_FMTBIT_S16_LE,
|
||||||
|
.rate_min = 8000,
|
||||||
|
.rate_max = 48000,
|
||||||
|
},
|
||||||
|
.id = MSM_SEC_MI2S_SD1,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
.capture = {
|
.capture = {
|
||||||
.stream_name = "Senary_mi2s Capture",
|
.stream_name = "Senary_mi2s Capture",
|
||||||
|
|
Loading…
Add table
Reference in a new issue