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 <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/499374
Reviewed-by: Arun Shamanna Lakshmi <aruns@nvidia.com>
Tested-by: Arun Shamanna Lakshmi <aruns@nvidia.com>
This commit is contained in:
Rahul Mittal
2014-09-18 21:46:50 +05:30
committed by Sameer Pujar
parent 0b660ae855
commit e0d96a36e9
2 changed files with 4 additions and 4 deletions

View File

@@ -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, \

View File

@@ -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, \