提交 b200e7a6 编写于 作者: M Martin Povišer 提交者: Zheng Zengkai

ASoC: tas2770: Allow mono streams

stable inclusion
from stable-v5.10.138
commit dffe1c4780e09b6fa6c1e8e28f2b231ad2cab7ce
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I60QFD

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=dffe1c4780e09b6fa6c1e8e28f2b231ad2cab7ce

--------------------------------

commit bf54d97a upstream.

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: 1a476abc ("tas2770: add tas2770 smart PA kernel driver")
Signed-off-by: NMartin Povišer <povik+lin@cutebit.org>
Link: https://lore.kernel.org/r/20220808141246.5749-3-povik+lin@cutebit.orgSigned-off-by: NMark Brown <broonie@kernel.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Reviewed-by: NWei Li <liwei391@huawei.com>
上级 b2b9230c
...@@ -507,7 +507,7 @@ static struct snd_soc_dai_driver tas2770_dai_driver[] = { ...@@ -507,7 +507,7 @@ static struct snd_soc_dai_driver tas2770_dai_driver[] = {
.id = 0, .id = 0,
.playback = { .playback = {
.stream_name = "ASI1 Playback", .stream_name = "ASI1 Playback",
.channels_min = 2, .channels_min = 1,
.channels_max = 2, .channels_max = 2,
.rates = TAS2770_RATES, .rates = TAS2770_RATES,
.formats = TAS2770_FORMATS, .formats = TAS2770_FORMATS,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册