ASoC: fsi: fixup channels_min/max
FSI can support 1 - 8 channel input/output, but current driver is supporting 2 channel format only. This patch fixes channel mismatch Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
ddffeb8c4d
commit
2a8c8a569f
|
@ -1497,7 +1497,7 @@ static struct snd_pcm_hardware fsi_pcm_hardware = {
|
||||||
.rates = FSI_RATES,
|
.rates = FSI_RATES,
|
||||||
.rate_min = 8000,
|
.rate_min = 8000,
|
||||||
.rate_max = 192000,
|
.rate_max = 192000,
|
||||||
.channels_min = 1,
|
.channels_min = 2,
|
||||||
.channels_max = 2,
|
.channels_max = 2,
|
||||||
.buffer_bytes_max = 64 * 1024,
|
.buffer_bytes_max = 64 * 1024,
|
||||||
.period_bytes_min = 32,
|
.period_bytes_min = 32,
|
||||||
|
@ -1585,14 +1585,14 @@ static struct snd_soc_dai_driver fsi_soc_dai[] = {
|
||||||
.playback = {
|
.playback = {
|
||||||
.rates = FSI_RATES,
|
.rates = FSI_RATES,
|
||||||
.formats = FSI_FMTS,
|
.formats = FSI_FMTS,
|
||||||
.channels_min = 1,
|
.channels_min = 2,
|
||||||
.channels_max = 8,
|
.channels_max = 2,
|
||||||
},
|
},
|
||||||
.capture = {
|
.capture = {
|
||||||
.rates = FSI_RATES,
|
.rates = FSI_RATES,
|
||||||
.formats = FSI_FMTS,
|
.formats = FSI_FMTS,
|
||||||
.channels_min = 1,
|
.channels_min = 2,
|
||||||
.channels_max = 8,
|
.channels_max = 2,
|
||||||
},
|
},
|
||||||
.ops = &fsi_dai_ops,
|
.ops = &fsi_dai_ops,
|
||||||
},
|
},
|
||||||
|
@ -1601,14 +1601,14 @@ static struct snd_soc_dai_driver fsi_soc_dai[] = {
|
||||||
.playback = {
|
.playback = {
|
||||||
.rates = FSI_RATES,
|
.rates = FSI_RATES,
|
||||||
.formats = FSI_FMTS,
|
.formats = FSI_FMTS,
|
||||||
.channels_min = 1,
|
.channels_min = 2,
|
||||||
.channels_max = 8,
|
.channels_max = 2,
|
||||||
},
|
},
|
||||||
.capture = {
|
.capture = {
|
||||||
.rates = FSI_RATES,
|
.rates = FSI_RATES,
|
||||||
.formats = FSI_FMTS,
|
.formats = FSI_FMTS,
|
||||||
.channels_min = 1,
|
.channels_min = 2,
|
||||||
.channels_max = 8,
|
.channels_max = 2,
|
||||||
},
|
},
|
||||||
.ops = &fsi_dai_ops,
|
.ops = &fsi_dai_ops,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue