ASoC: fsl_sai: support more than 2 channels
authorAlexandre Belloni <[email protected]>
Fri, 10 Feb 2017 18:42:43 +0000 (19:42 +0100)
committerMark Brown <[email protected]>
Mon, 13 Feb 2017 18:01:55 +0000 (18:01 +0000)
The FSL SAI can support up to 32 channels using TDM. Report that value so
they can actually be used.

Tested using 8 channels.

Signed-off-by: Alexandre Belloni <[email protected]>
Acked-by: Nicolin Chen <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
sound/soc/fsl/fsl_sai.c

index 9fadf7e31c5f86459efc0b70fb1674f45da5a289..18e5ce81527d223b98d832fcd7ab6d5ee7ee7879 100644 (file)
@@ -668,7 +668,7 @@ static struct snd_soc_dai_driver fsl_sai_dai = {
        .playback = {
                .stream_name = "CPU-Playback",
                .channels_min = 1,
-               .channels_max = 2,
+               .channels_max = 32,
                .rate_min = 8000,
                .rate_max = 192000,
                .rates = SNDRV_PCM_RATE_KNOT,
@@ -677,7 +677,7 @@ static struct snd_soc_dai_driver fsl_sai_dai = {
        .capture = {
                .stream_name = "CPU-Capture",
                .channels_min = 1,
-               .channels_max = 2,
+               .channels_max = 32,
                .rate_min = 8000,
                .rate_max = 192000,
                .rates = SNDRV_PCM_RATE_KNOT,