ASoC: wm1250-ev1: Flag all supported rates in the DAI
Not previously noticed due to normal usage being with CODEC<->CODEC links. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
9498822d75
commit
bcbf4a69ee
1 changed files with 5 additions and 2 deletions
|
@ -121,20 +121,23 @@ static const struct snd_soc_dai_ops wm1250_ev1_ops = {
|
||||||
.hw_params = wm1250_ev1_hw_params,
|
.hw_params = wm1250_ev1_hw_params,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#define WM1250_EV1_RATES (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 |\
|
||||||
|
SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_64000)
|
||||||
|
|
||||||
static struct snd_soc_dai_driver wm1250_ev1_dai = {
|
static struct snd_soc_dai_driver wm1250_ev1_dai = {
|
||||||
.name = "wm1250-ev1",
|
.name = "wm1250-ev1",
|
||||||
.playback = {
|
.playback = {
|
||||||
.stream_name = "Playback",
|
.stream_name = "Playback",
|
||||||
.channels_min = 1,
|
.channels_min = 1,
|
||||||
.channels_max = 2,
|
.channels_max = 2,
|
||||||
.rates = SNDRV_PCM_RATE_8000,
|
.rates = WM1250_EV1_RATES,
|
||||||
.formats = SNDRV_PCM_FMTBIT_S16_LE,
|
.formats = SNDRV_PCM_FMTBIT_S16_LE,
|
||||||
},
|
},
|
||||||
.capture = {
|
.capture = {
|
||||||
.stream_name = "Capture",
|
.stream_name = "Capture",
|
||||||
.channels_min = 1,
|
.channels_min = 1,
|
||||||
.channels_max = 2,
|
.channels_max = 2,
|
||||||
.rates = SNDRV_PCM_RATE_8000,
|
.rates = WM1250_EV1_RATES,
|
||||||
.formats = SNDRV_PCM_FMTBIT_S16_LE,
|
.formats = SNDRV_PCM_FMTBIT_S16_LE,
|
||||||
},
|
},
|
||||||
.ops = &wm1250_ev1_ops,
|
.ops = &wm1250_ev1_ops,
|
||||||
|
|
Loading…
Reference in a new issue