]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ASoC: max9867: Fix codec capabilities
authorLadislav Michl <ladis@linux-mips.org>
Thu, 1 Mar 2018 14:20:56 +0000 (15:20 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 1 Mar 2018 17:56:35 +0000 (17:56 +0000)
Codes is stereo only with playback and capture streams bind
to the same rate.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/max9867.c

index ac30213deac421245d67b8c0e51fb82ae532d05a..367c0329d5c86eca9f1b3dd6cdb3cb8cbc6245a0 100644 (file)
@@ -369,19 +369,20 @@ static struct snd_soc_dai_driver max9867_dai[] = {
        .name = "max9867-aif1",
        .playback = {
                .stream_name = "HiFi Playback",
-               .channels_min = 1,
+               .channels_min = 2,
                .channels_max = 2,
                .rates = MAX9867_RATES,
                .formats = MAX9867_FORMATS,
        },
        .capture = {
                .stream_name = "HiFi Capture",
-               .channels_min = 1,
+               .channels_min = 2,
                .channels_max = 2,
                .rates = MAX9867_RATES,
                .formats = MAX9867_FORMATS,
        },
        .ops = &max9867_dai_ops,
+       .symmetric_rates = 1,
        }
 };