Commit ea0fd1f2712b03caa2f7a55ea7ff2fb062d43996
Committed by
Greg Kroah-Hartman
1 parent
67a07350f9
ASoC: WM8804 does not support sample rates below 32kHz
commit 3115ae174620eeab4b16f52c8d0a9a35d2717e3c upstream. Reported-by: Kieran O'Leary <Kieran.O'Leary@wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Showing 1 changed file with 7 additions and 2 deletions Side-by-side Diff
sound/soc/codecs/wm8804.c
... | ... | @@ -680,20 +680,25 @@ |
680 | 680 | #define WM8804_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE | \ |
681 | 681 | SNDRV_PCM_FMTBIT_S24_LE) |
682 | 682 | |
683 | +#define WM8804_RATES (SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | \ | |
684 | + SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_64000 | \ | |
685 | + SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000 | \ | |
686 | + SNDRV_PCM_RATE_176400 | SNDRV_PCM_RATE_192000) | |
687 | + | |
683 | 688 | static struct snd_soc_dai_driver wm8804_dai = { |
684 | 689 | .name = "wm8804-spdif", |
685 | 690 | .playback = { |
686 | 691 | .stream_name = "Playback", |
687 | 692 | .channels_min = 2, |
688 | 693 | .channels_max = 2, |
689 | - .rates = SNDRV_PCM_RATE_8000_192000, | |
694 | + .rates = WM8804_RATES, | |
690 | 695 | .formats = WM8804_FORMATS, |
691 | 696 | }, |
692 | 697 | .capture = { |
693 | 698 | .stream_name = "Capture", |
694 | 699 | .channels_min = 2, |
695 | 700 | .channels_max = 2, |
696 | - .rates = SNDRV_PCM_RATE_8000_192000, | |
701 | + .rates = WM8804_RATES, | |
697 | 702 | .formats = WM8804_FORMATS, |
698 | 703 | }, |
699 | 704 | .ops = &wm8804_dai_ops, |