Skip to contentSkip to conversation

ALSA: hda/cirrus: Set Initial DMIC volume to -26 dB

PATCH Applied Vitaly Rodionov 2 participants 2 messages May 31, 2021 – Jun 1, 2021 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: hda/cirrus: Set Initial DMIC volume to -26 dB

From: Stefan Binding <[email protected]>

Previously this fix was applied only to Bullseye variant laptops, and should be applied to Cyborg and Warlock variants.

---
 sound/pci/hda/patch_cirrus.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
sound/pci/hda/patch_cirrus.c +3 -4
index 726507d0b04c..8629e84fef23 100644
@@ -2206,10 +2206,9 @@ static void cs8409_cs42l42_fixups(struct hda_codec *codec,
 		break;
 	case HDA_FIXUP_ACT_PROBE:
 
-		/* Set initial volume on Bullseye to -26 dB */
-		if (codec->fixup_id == CS8409_BULLSEYE)
-			snd_hda_codec_amp_init_stereo(codec, CS8409_CS42L42_DMIC_ADC_PIN_NID,
-					HDA_INPUT, 0, 0xff, 0x19);
+		/* Set initial DMIC volume to -26 dB */
+		snd_hda_codec_amp_init_stereo(codec, CS8409_CS42L42_DMIC_ADC_PIN_NID,
+				HDA_INPUT, 0, 0xff, 0x19);
 		snd_hda_gen_add_kctl(&spec->gen,
 			NULL, &cs8409_cs42l42_hp_volume_mixer);
 		snd_hda_gen_add_kctl(&spec->gen,
Signature · 1 line
2.25.1