Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 031005f7 authored by Takashi Iwai's avatar Takashi Iwai Committed by Jaroslav Kysela
Browse files

ALSA: hda - disable amp override on non-HP machines



Some machines with Cx5045 seem to have no problem with the volume
over 0dB on NID 0x17.  Disable amp overrides for other devices but HP.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
parent 4a3b6983
Loading
Loading
Loading
Loading
+13 −9
Original line number Diff line number Diff line
@@ -1005,7 +1005,9 @@ static int patch_cxt5045(struct hda_codec *codec)
#endif	
	}

	/*
	switch (codec->subsystem_id >> 16) {
	case 0x103c:
		/* HP laptop has a really bad sound over 0dB on NID 0x17.
		 * Fix max PCM level to 0 dB
		 * (originall it has 0x2b steps with 0dB offset 0x14)
		 */
@@ -1014,6 +1016,8 @@ static int patch_cxt5045(struct hda_codec *codec)
					  (0x14 << AC_AMPCAP_NUM_STEPS_SHIFT) |
					  (0x05 << AC_AMPCAP_STEP_SIZE_SHIFT) |
					  (1 << AC_AMPCAP_MUTE_SHIFT));
		break;
	}

	return 0;
}