diff mbox series

[SRU,J/L/M,1/1] ALSA: hda/cs8409: Suppress vmaster control for Dolphin models

Message ID 20240124070017.18378-2-hui.wang@canonical.com
State New
Headers show
Series Audio balancing setting doesn't work with the cirrus codec | expand

Commit Message

Hui Wang Jan. 24, 2024, 7 a.m. UTC
From: Vitaly Rodionov <vitalyr@opensource.cirrus.com>

BugLink: https://bugs.launchpad.net/bugs/2051050

Customer has reported an issue with specific desktop platform
where two CS42L42 codecs are connected to CS8409 HDA bridge.
If "Master Volume Control" is created then on Ubuntu OS UCM
left/right balance slider in UI audio settings has no effect.
This patch will fix this issue for a target paltform.

Fixes: 20e507724113 ("ALSA: hda/cs8409: Add support for dolphin")
Signed-off-by: Vitaly Rodionov <vitalyr@opensource.cirrus.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20240122184710.5802-1-vitalyr@opensource.cirrus.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
(cherry picked from commit a2ed0a44d637ef9deca595054c206da7d6cbdcbc linux-next)
Signed-off-by: Hui Wang <hui.wang@canonical.com>
---
 sound/pci/hda/patch_cs8409.c | 1 +
 1 file changed, 1 insertion(+)

Comments

AceLan Kao Jan. 31, 2024, 5:08 a.m. UTC | #1
applied to oem-5.17, thanks
Acked-By: AceLan Kao <acelan.kao@canonical.com>
diff mbox series

Patch

diff --git a/sound/pci/hda/patch_cs8409.c b/sound/pci/hda/patch_cs8409.c
index 8efc4ee49b7c..61f8e2167318 100644
--- a/sound/pci/hda/patch_cs8409.c
+++ b/sound/pci/hda/patch_cs8409.c
@@ -1369,6 +1369,7 @@  void dolphin_fixups(struct hda_codec *codec, const struct hda_fixup *fix, int ac
 		spec->scodecs[CS8409_CODEC1] = &dolphin_cs42l42_1;
 		spec->scodecs[CS8409_CODEC1]->codec = codec;
 		spec->num_scodecs = 2;
+		spec->gen.suppress_vmaster = 1;
 
 		codec->patch_ops = cs8409_dolphin_patch_ops;