Skip to content

Commit

Permalink
ASoC: tas2770: Allow mono streams
Browse files Browse the repository at this point in the history
The part is a mono speaker amp, but it can do downmix and switch between
left and right channel, so the right channel range is 1 to 2.

Fixes: 1a476ab ("tas2770: add tas2770 smart PA kernel driver")
Signed-off-by: Martin Povišer <povik+lin@cutebit.org>
Link: https://lore.kernel.org/r/20220808141246.5749-3-povik+lin@cutebit.org
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
povik authored and broonie committed Aug 8, 2022
1 parent e9ac31f commit bf54d97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/tas2770.c
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ static struct snd_soc_dai_driver tas2770_dai_driver[] = {
.id = 0,
.playback = {
.stream_name = "ASI1 Playback",
.channels_min = 2,
.channels_min = 1,
.channels_max = 2,
.rates = TAS2770_RATES,
.formats = TAS2770_FORMATS,
Expand Down

0 comments on commit bf54d97

Please sign in to comment.