Skip to content

Commit b9f3995

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6: ALSA: hda - Enable beep on Realtek codecs with PCI SSID override ALSA: usb-audio - Add volume resolution quirk for some Logitech webcams ALSA: hda - Add Macbook 5,2 quirk ALSA: hda - Fix uninitialized variable
2 parents c77e9e6 + 7645054 commit b9f3995

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

‎sound/pci/hda/patch_realtek.c‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,8 +1268,10 @@ static int alc_auto_parse_customize_define(struct hda_codec *codec)
12681268
struct alc_spec *spec = codec->spec;
12691269

12701270
ass = codec->subsystem_id & 0xffff;
1271-
if (ass != codec->bus->pci->subsystem_device && (ass & 1))
1271+
if (ass != codec->bus->pci->subsystem_device && (ass & 1)) {
1272+
spec->cdefine.enable_pcbeep = 1; /* assume always enabled */
12721273
goto do_sku;
1274+
}
12731275

12741276
nid = 0x1d;
12751277
if (codec->vendor_id == 0x10ec0260)
@@ -2547,7 +2549,7 @@ static struct snd_kcontrol_new alc_beep_mixer[] = {
25472549
static int alc_build_controls(struct hda_codec *codec)
25482550
{
25492551
struct alc_spec *spec = codec->spec;
2550-
struct snd_kcontrol *kctl;
2552+
struct snd_kcontrol *kctl = NULL;
25512553
struct snd_kcontrol_new *knew;
25522554
int i, j, err;
25532555
unsigned int u;
@@ -9486,6 +9488,7 @@ static struct snd_pci_quirk alc882_ssid_cfg_tbl[] = {
94869488
SND_PCI_QUIRK(0x106b, 0x3e00, "iMac 24 Aluminum", ALC885_IMAC24),
94879489
SND_PCI_QUIRK(0x106b, 0x4900, "iMac 9,1 Aluminum", ALC885_IMAC91),
94889490
SND_PCI_QUIRK(0x106b, 0x3f00, "Macbook 5,1", ALC885_MB5),
9491+
SND_PCI_QUIRK(0x106b, 0x4a00, "Macbook 5,2", ALC885_MB5),
94899492
/* FIXME: HP jack sense seems not working for MBP 5,1 or 5,2,
94909493
* so apparently no perfect solution yet
94919494
*/

‎sound/usb/mixer.c‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,6 +1107,19 @@ static void build_feature_ctl(struct mixer_build *state, void *raw_desc,
11071107
}
11081108
break;
11091109

1110+
case USB_ID(0x046d, 0x0809):
1111+
case USB_ID(0x046d, 0x0991):
1112+
/* Most audio usb devices lie about volume resolution.
1113+
* Most Logitech webcams have res = 384.
1114+
* Proboly there is some logitech magic behind this number --fishor
1115+
*/
1116+
if (!strcmp(kctl->id.name, "Mic Capture Volume")) {
1117+
snd_printk(KERN_INFO
1118+
"set resolution quirk: cval->res = 384\n");
1119+
cval->res = 384;
1120+
}
1121+
break;
1122+
11101123
}
11111124

11121125
snd_printdd(KERN_INFO "[%d] FU [%s] ch = %d, val = %d/%d/%d\n",

0 commit comments

Comments
 (0)