diff options
author | Ryan Lee <ryans.lee@analog.com> | 2023-06-01 16:06:00 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-06-01 16:11:50 +0300 |
commit | 3a67ad17b47ed111bda692238b6a19420e6934c8 (patch) | |
tree | 7c3ea5db3cb1390d008f1cbae28b619e2d8c69a9 /sound | |
parent | 0e2ee345856454632dcd2f3ee2ba4bb3f8632f74 (diff) | |
download | linux-3a67ad17b47ed111bda692238b6a19420e6934c8.tar.xz |
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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/max98363.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/max98363.c b/sound/soc/codecs/max98363.c index 53e19c8abb40..e6b84e222b50 100644 --- a/sound/soc/codecs/max98363.c +++ b/sound/soc/codecs/max98363.c @@ -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; |