Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ryan Lee and committed by
Mark Brown
3a67ad17 0e2ee345

+1 -1
+1 -1
sound/soc/codecs/max98363.c
··· 246 246 stream_config.frame_rate = params_rate(params); 247 247 stream_config.bps = snd_pcm_format_width(params_format(params)); 248 248 stream_config.direction = direction; 249 - stream_config.ch_count = params_channels(params); 249 + stream_config.ch_count = 1; 250 250 251 251 if (stream_config.ch_count > runtime->hw.channels_max) { 252 252 stream_config.ch_count = runtime->hw.channels_max;