]> Git Repo - linux.git/commitdiff
ASoC: max98363: limit the number of channel to 1
authorRyan Lee <[email protected]>
Thu, 1 Jun 2023 13:06:00 +0000 (06:06 -0700)
committerMark Brown <[email protected]>
Thu, 1 Jun 2023 13:11:50 +0000 (14:11 +0100)
MAX98363 is a mono amplifier. The number of channel needs to be always 1.

Signed-off-by: Ryan Lee <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
sound/soc/codecs/max98363.c

index 53e19c8abb405e3035993a8d9c2abfa07b76dc3d..e6b84e222b504b213cfa5519897dc3d6a8e6273d 100644 (file)
@@ -246,7 +246,7 @@ static int max98363_sdw_dai_hw_params(struct snd_pcm_substream *substream,
        stream_config.frame_rate = params_rate(params);
        stream_config.bps = snd_pcm_format_width(params_format(params));
        stream_config.direction = direction;
-       stream_config.ch_count = params_channels(params);
+       stream_config.ch_count = 1;
 
        if (stream_config.ch_count > runtime->hw.channels_max) {
                stream_config.ch_count = runtime->hw.channels_max;
This page took 0.059998 seconds and 4 git commands to generate.