diff options
author | Vishal Thanki <vishalthanki@gmail.com> | 2016-09-26 09:34:19 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-09-26 12:35:10 -0400 |
commit | c14c59f2e9ca2dc3ddb3af67b71a11feaaacbbce (patch) | |
tree | 5ed3662fc2b6fb36a2630daf75055119567e3a1f | |
parent | 29b4817d4018df78086157ea3a55c1d9424a7cfc (diff) |
ASoC: ak4104: Limit the supported sample rates
Currently the driver exposes range of sample rates between 8KHz to
192KHz as a part of dai_driver. This does not hold true as the limited
number sample rates are allowed in hw_params DAI callback. This patch
limits the sample rates exposed via dai_driver.
Signed-off-by: Vishal Thanki <vishalthanki@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/codecs/ak4104.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/soc/codecs/ak4104.c b/sound/soc/codecs/ak4104.c index 595d02d7602c..bc5c8705bd8f 100644 --- a/sound/soc/codecs/ak4104.c +++ b/sound/soc/codecs/ak4104.c | |||
@@ -163,7 +163,10 @@ static struct snd_soc_dai_driver ak4104_dai = { | |||
163 | .stream_name = "Playback", | 163 | .stream_name = "Playback", |
164 | .channels_min = 2, | 164 | .channels_min = 2, |
165 | .channels_max = 2, | 165 | .channels_max = 2, |
166 | .rates = SNDRV_PCM_RATE_8000_192000, | 166 | .rates = SNDRV_PCM_RATE_22050 | SNDRV_PCM_RATE_32000 | |
167 | SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000 | | ||
168 | SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000 | | ||
169 | SNDRV_PCM_RATE_176400 | SNDRV_PCM_RATE_192000, | ||
167 | .formats = SNDRV_PCM_FMTBIT_S16_LE | | 170 | .formats = SNDRV_PCM_FMTBIT_S16_LE | |
168 | SNDRV_PCM_FMTBIT_S24_3LE | | 171 | SNDRV_PCM_FMTBIT_S24_3LE | |
169 | SNDRV_PCM_FMTBIT_S24_LE | 172 | SNDRV_PCM_FMTBIT_S24_LE |