diff options
author | Yu-Hsuan Hsu <yuhsuan@chromium.org> | 2019-05-02 00:07:43 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-05-03 01:50:23 -0400 |
commit | cd8926e38e8cc53413a2a4ed2f705db7437a55fb (patch) | |
tree | 0c5e7a50f90b7aaeaf500e52d6633318f8a46b2a | |
parent | 414a7321d60bc0abced4a760e22b8187e2b4aecf (diff) |
ASoC: da7219: Update the support rate list
If we want to set rate to 64000 on da7219, it fails and returns
"snd_pcm_hw_params: Invalid argument".
We should remove 64000 from support rate list because it is not
available.
Signed-off-by: Yu-Hsuan Hsu <yuhsuan@chromium.org>
Reviewed-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/codecs/da7219.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sound/soc/codecs/da7219.c b/sound/soc/codecs/da7219.c index 121a8190f93e..9f6970eed6f6 100644 --- a/sound/soc/codecs/da7219.c +++ b/sound/soc/codecs/da7219.c | |||
@@ -1583,20 +1583,26 @@ static const struct snd_soc_dai_ops da7219_dai_ops = { | |||
1583 | #define DA7219_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\ | 1583 | #define DA7219_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\ |
1584 | SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE) | 1584 | SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE) |
1585 | 1585 | ||
1586 | #define DA7219_RATES (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_11025 |\ | ||
1587 | SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 |\ | ||
1588 | SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 |\ | ||
1589 | SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_88200 |\ | ||
1590 | SNDRV_PCM_RATE_96000) | ||
1591 | |||
1586 | static struct snd_soc_dai_driver da7219_dai = { | 1592 | static struct snd_soc_dai_driver da7219_dai = { |
1587 | .name = "da7219-hifi", | 1593 | .name = "da7219-hifi", |
1588 | .playback = { | 1594 | .playback = { |
1589 | .stream_name = "Playback", | 1595 | .stream_name = "Playback", |
1590 | .channels_min = 1, | 1596 | .channels_min = 1, |
1591 | .channels_max = DA7219_DAI_CH_NUM_MAX, | 1597 | .channels_max = DA7219_DAI_CH_NUM_MAX, |
1592 | .rates = SNDRV_PCM_RATE_8000_96000, | 1598 | .rates = DA7219_RATES, |
1593 | .formats = DA7219_FORMATS, | 1599 | .formats = DA7219_FORMATS, |
1594 | }, | 1600 | }, |
1595 | .capture = { | 1601 | .capture = { |
1596 | .stream_name = "Capture", | 1602 | .stream_name = "Capture", |
1597 | .channels_min = 1, | 1603 | .channels_min = 1, |
1598 | .channels_max = DA7219_DAI_CH_NUM_MAX, | 1604 | .channels_max = DA7219_DAI_CH_NUM_MAX, |
1599 | .rates = SNDRV_PCM_RATE_8000_96000, | 1605 | .rates = DA7219_RATES, |
1600 | .formats = DA7219_FORMATS, | 1606 | .formats = DA7219_FORMATS, |
1601 | }, | 1607 | }, |
1602 | .ops = &da7219_dai_ops, | 1608 | .ops = &da7219_dai_ops, |