From e0d96a36e9f147a521ee23bbfe36a214ab91e0ff Mon Sep 17 00:00:00 2001 From: Rahul Mittal Date: Thu, 18 Sep 2014 21:46:50 +0530 Subject: [PATCH] ASoC: tegra-alt: Allow mono in dai params Allow mono config in dai params where missing. Required for BT SCO where user space needs to open alsa device with mono config Bug 200032907 Change-Id: I2456700ea618dbf84ecece1cf45e67a6a9b14616 Signed-off-by: Rahul Mittal Reviewed-on: http://git-master/r/499374 Reviewed-by: Arun Shamanna Lakshmi Tested-by: Arun Shamanna Lakshmi --- sound/soc/tegra-alt/tegra210_admaif_alt.c | 4 ++-- sound/soc/tegra-alt/tegra210_xbar_alt.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/tegra-alt/tegra210_admaif_alt.c b/sound/soc/tegra-alt/tegra210_admaif_alt.c index b04487a9..06a166a7 100644 --- a/sound/soc/tegra-alt/tegra210_admaif_alt.c +++ b/sound/soc/tegra-alt/tegra210_admaif_alt.c @@ -402,14 +402,14 @@ static int tegra210_admaif_dai_probe(struct snd_soc_dai *dai) .probe = tegra210_admaif_dai_probe, \ .playback = { \ .stream_name = "Playback " #id, \ - .channels_min = 2, \ + .channels_min = 1, \ .channels_max = 2, \ .rates = SNDRV_PCM_RATE_8000_96000, \ .formats = SNDRV_PCM_FMTBIT_S16_LE, \ }, \ .capture = { \ .stream_name = "Capture " #id, \ - .channels_min = 2, \ + .channels_min = 1, \ .channels_max = 2, \ .rates = SNDRV_PCM_RATE_8000_96000, \ .formats = SNDRV_PCM_FMTBIT_S16_LE, \ diff --git a/sound/soc/tegra-alt/tegra210_xbar_alt.c b/sound/soc/tegra-alt/tegra210_xbar_alt.c index 47c0b217..b68ee02a 100644 --- a/sound/soc/tegra-alt/tegra210_xbar_alt.c +++ b/sound/soc/tegra-alt/tegra210_xbar_alt.c @@ -94,14 +94,14 @@ static int tegra210_xbar_codec_probe(struct snd_soc_codec *codec) .name = #sname, \ .playback = { \ .stream_name = #sname " Receive", \ - .channels_min = 2, \ + .channels_min = 1, \ .channels_max = 2, \ .rates = SNDRV_PCM_RATE_8000_96000, \ .formats = SNDRV_PCM_FMTBIT_S16_LE, \ }, \ .capture = { \ .stream_name = #sname " Transmit", \ - .channels_min = 2, \ + .channels_min = 1, \ .channels_max = 2, \ .rates = SNDRV_PCM_RATE_8000_96000, \ .formats = SNDRV_PCM_FMTBIT_S16_LE, \