Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99143
b: refs/heads/master
c: 031005f
h: refs/heads/master
i:
  99141: 3d2a3cc
  99139: e9a2965
  99135: 95dbf9c
v: v3
  • Loading branch information
Takashi Iwai authored and Jaroslav Kysela committed Jun 27, 2008
1 parent ce271ec commit 516ddee
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4a3b6983232cd296ea260e06461d031f10065d63
refs/heads/master: 031005f78c8d0aebc17ddf7a34af9ffd48034d7d
22 changes: 13 additions & 9 deletions trunk/sound/pci/hda/patch_conexant.c
Original file line number Diff line number Diff line change
Expand Up @@ -1005,15 +1005,19 @@ static int patch_cxt5045(struct hda_codec *codec)
#endif
}

/*
* Fix max PCM level to 0 dB
* (originall it has 0x2b steps with 0dB offset 0x14)
*/
snd_hda_override_amp_caps(codec, 0x17, HDA_INPUT,
(0x14 << AC_AMPCAP_OFFSET_SHIFT) |
(0x14 << AC_AMPCAP_NUM_STEPS_SHIFT) |
(0x05 << AC_AMPCAP_STEP_SIZE_SHIFT) |
(1 << AC_AMPCAP_MUTE_SHIFT));
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)
*/
snd_hda_override_amp_caps(codec, 0x17, HDA_INPUT,
(0x14 << AC_AMPCAP_OFFSET_SHIFT) |
(0x14 << AC_AMPCAP_NUM_STEPS_SHIFT) |
(0x05 << AC_AMPCAP_STEP_SIZE_SHIFT) |
(1 << AC_AMPCAP_MUTE_SHIFT));
break;
}

return 0;
}
Expand Down

0 comments on commit 516ddee

Please sign in to comment.