diff options
| -rw-r--r-- | sound/soc/codecs/wm8804.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8804.c b/sound/soc/codecs/wm8804.c index 6785688f8806..9a5e67c5a6bd 100644 --- a/sound/soc/codecs/wm8804.c +++ b/sound/soc/codecs/wm8804.c | |||
| @@ -680,20 +680,25 @@ static struct snd_soc_dai_ops wm8804_dai_ops = { | |||
| 680 | #define WM8804_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE | \ | 680 | #define WM8804_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE | \ |
| 681 | SNDRV_PCM_FMTBIT_S24_LE) | 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 | static struct snd_soc_dai_driver wm8804_dai = { | 688 | static struct snd_soc_dai_driver wm8804_dai = { |
| 684 | .name = "wm8804-spdif", | 689 | .name = "wm8804-spdif", |
| 685 | .playback = { | 690 | .playback = { |
| 686 | .stream_name = "Playback", | 691 | .stream_name = "Playback", |
| 687 | .channels_min = 2, | 692 | .channels_min = 2, |
| 688 | .channels_max = 2, | 693 | .channels_max = 2, |
| 689 | .rates = SNDRV_PCM_RATE_8000_192000, | 694 | .rates = WM8804_RATES, |
| 690 | .formats = WM8804_FORMATS, | 695 | .formats = WM8804_FORMATS, |
| 691 | }, | 696 | }, |
| 692 | .capture = { | 697 | .capture = { |
| 693 | .stream_name = "Capture", | 698 | .stream_name = "Capture", |
| 694 | .channels_min = 2, | 699 | .channels_min = 2, |
| 695 | .channels_max = 2, | 700 | .channels_max = 2, |
| 696 | .rates = SNDRV_PCM_RATE_8000_192000, | 701 | .rates = WM8804_RATES, |
| 697 | .formats = WM8804_FORMATS, | 702 | .formats = WM8804_FORMATS, |
| 698 | }, | 703 | }, |
| 699 | .ops = &wm8804_dai_ops, | 704 | .ops = &wm8804_dai_ops, |
