Skip to content

Commit 3a67ad1

Browse files
Ryan Leebroonie
authored andcommitted
ASoC: max98363: limit the number of channel to 1
MAX98363 is a mono amplifier. The number of channel needs to be always 1. Signed-off-by: Ryan Lee <ryans.lee@analog.com> Link: https://lore.kernel.org/r/20230601130600.25344-2-ryan.lee.analog@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 0e2ee34 commit 3a67ad1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/codecs/max98363.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ static int max98363_sdw_dai_hw_params(struct snd_pcm_substream *substream,
246246
stream_config.frame_rate = params_rate(params);
247247
stream_config.bps = snd_pcm_format_width(params_format(params));
248248
stream_config.direction = direction;
249-
stream_config.ch_count = params_channels(params);
249+
stream_config.ch_count = 1;
250250

251251
if (stream_config.ch_count > runtime->hw.channels_max) {
252252
stream_config.ch_count = runtime->hw.channels_max;

0 commit comments

Comments
 (0)