diff options
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/emu10k1/emu10k1_main.c | 8 | ||||
-rw-r--r-- | sound/pci/hda/hda_beep.h | 9 | ||||
-rw-r--r-- | sound/pci/hda/patch_conexant.c | 1 | ||||
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 18 | ||||
-rw-r--r-- | sound/pci/hda/patch_via.c | 11 | ||||
-rw-r--r-- | sound/pci/lola/lola.c | 2 | ||||
-rw-r--r-- | sound/pci/rme9652/hdspm.c | 8 |
7 files changed, 40 insertions, 17 deletions
diff --git a/sound/pci/emu10k1/emu10k1_main.c b/sound/pci/emu10k1/emu10k1_main.c index 5e619a84da06..15f0161ce4a2 100644 --- a/sound/pci/emu10k1/emu10k1_main.c +++ b/sound/pci/emu10k1/emu10k1_main.c | |||
@@ -1440,6 +1440,14 @@ static struct snd_emu_chip_details emu_chip_details[] = { | |||
1440 | .ca0102_chip = 1, | 1440 | .ca0102_chip = 1, |
1441 | .spk71 = 1, | 1441 | .spk71 = 1, |
1442 | .emu_model = EMU_MODEL_EMU0404}, /* EMU 0404 */ | 1442 | .emu_model = EMU_MODEL_EMU0404}, /* EMU 0404 */ |
1443 | /* EMU0404 PCIe */ | ||
1444 | {.vendor = 0x1102, .device = 0x0008, .subsystem = 0x40051102, | ||
1445 | .driver = "Audigy2", .name = "E-mu 0404 PCIe [MAEM8984]", | ||
1446 | .id = "EMU0404", | ||
1447 | .emu10k2_chip = 1, | ||
1448 | .ca0108_chip = 1, | ||
1449 | .spk71 = 1, | ||
1450 | .emu_model = EMU_MODEL_EMU0404}, /* EMU 0404 PCIe ver_03 */ | ||
1443 | /* Note that all E-mu cards require kernel 2.6 or newer. */ | 1451 | /* Note that all E-mu cards require kernel 2.6 or newer. */ |
1444 | {.vendor = 0x1102, .device = 0x0008, | 1452 | {.vendor = 0x1102, .device = 0x0008, |
1445 | .driver = "Audigy2", .name = "SB Audigy 2 Value [Unknown]", | 1453 | .driver = "Audigy2", .name = "SB Audigy 2 Value [Unknown]", |
diff --git a/sound/pci/hda/hda_beep.h b/sound/pci/hda/hda_beep.h index f1de1bac042c..55f0647458c7 100644 --- a/sound/pci/hda/hda_beep.h +++ b/sound/pci/hda/hda_beep.h | |||
@@ -50,7 +50,12 @@ int snd_hda_enable_beep_device(struct hda_codec *codec, int enable); | |||
50 | int snd_hda_attach_beep_device(struct hda_codec *codec, int nid); | 50 | int snd_hda_attach_beep_device(struct hda_codec *codec, int nid); |
51 | void snd_hda_detach_beep_device(struct hda_codec *codec); | 51 | void snd_hda_detach_beep_device(struct hda_codec *codec); |
52 | #else | 52 | #else |
53 | #define snd_hda_attach_beep_device(...) 0 | 53 | static inline int snd_hda_attach_beep_device(struct hda_codec *codec, int nid) |
54 | #define snd_hda_detach_beep_device(...) | 54 | { |
55 | return 0; | ||
56 | } | ||
57 | static inline void snd_hda_detach_beep_device(struct hda_codec *codec) | ||
58 | { | ||
59 | } | ||
55 | #endif | 60 | #endif |
56 | #endif | 61 | #endif |
diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c index 3e6b9a8539c2..694b9daf691f 100644 --- a/sound/pci/hda/patch_conexant.c +++ b/sound/pci/hda/patch_conexant.c | |||
@@ -3102,6 +3102,7 @@ static const struct snd_pci_quirk cxt5066_cfg_tbl[] = { | |||
3102 | SND_PCI_QUIRK(0x17aa, 0x38af, "Lenovo G560", CXT5066_ASUS), | 3102 | SND_PCI_QUIRK(0x17aa, 0x38af, "Lenovo G560", CXT5066_ASUS), |
3103 | SND_PCI_QUIRK(0x17aa, 0x3938, "Lenovo G565", CXT5066_AUTO), | 3103 | SND_PCI_QUIRK(0x17aa, 0x3938, "Lenovo G565", CXT5066_AUTO), |
3104 | SND_PCI_QUIRK_VENDOR(0x17aa, "Lenovo", CXT5066_IDEAPAD), /* Fallback for Lenovos without dock mic */ | 3104 | SND_PCI_QUIRK_VENDOR(0x17aa, "Lenovo", CXT5066_IDEAPAD), /* Fallback for Lenovos without dock mic */ |
3105 | SND_PCI_QUIRK(0x1b0a, 0x2092, "CyberpowerPC Gamer Xplorer N57001", CXT5066_AUTO), | ||
3105 | {} | 3106 | {} |
3106 | }; | 3107 | }; |
3107 | 3108 | ||
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 7a4e10002f56..61a774b3d3cb 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -1141,6 +1141,13 @@ static void update_speakers(struct hda_codec *codec) | |||
1141 | struct alc_spec *spec = codec->spec; | 1141 | struct alc_spec *spec = codec->spec; |
1142 | int on; | 1142 | int on; |
1143 | 1143 | ||
1144 | /* Control HP pins/amps depending on master_mute state; | ||
1145 | * in general, HP pins/amps control should be enabled in all cases, | ||
1146 | * but currently set only for master_mute, just to be safe | ||
1147 | */ | ||
1148 | do_automute(codec, ARRAY_SIZE(spec->autocfg.hp_pins), | ||
1149 | spec->autocfg.hp_pins, spec->master_mute, true); | ||
1150 | |||
1144 | if (!spec->automute) | 1151 | if (!spec->automute) |
1145 | on = 0; | 1152 | on = 0; |
1146 | else | 1153 | else |
@@ -6201,11 +6208,6 @@ static const struct snd_kcontrol_new alc260_input_mixer[] = { | |||
6201 | /* update HP, line and mono out pins according to the master switch */ | 6208 | /* update HP, line and mono out pins according to the master switch */ |
6202 | static void alc260_hp_master_update(struct hda_codec *codec) | 6209 | static void alc260_hp_master_update(struct hda_codec *codec) |
6203 | { | 6210 | { |
6204 | struct alc_spec *spec = codec->spec; | ||
6205 | |||
6206 | /* change HP pins */ | ||
6207 | do_automute(codec, ARRAY_SIZE(spec->autocfg.hp_pins), | ||
6208 | spec->autocfg.hp_pins, spec->master_mute, true); | ||
6209 | update_speakers(codec); | 6211 | update_speakers(codec); |
6210 | } | 6212 | } |
6211 | 6213 | ||
@@ -11924,7 +11926,7 @@ static const struct hda_verb alc262_nec_verbs[] = { | |||
11924 | * 0x1b = port replicator headphone out | 11926 | * 0x1b = port replicator headphone out |
11925 | */ | 11927 | */ |
11926 | 11928 | ||
11927 | #define ALC_HP_EVENT 0x37 | 11929 | #define ALC_HP_EVENT ALC880_HP_EVENT |
11928 | 11930 | ||
11929 | static const struct hda_verb alc262_fujitsu_unsol_verbs[] = { | 11931 | static const struct hda_verb alc262_fujitsu_unsol_verbs[] = { |
11930 | {0x14, AC_VERB_SET_UNSOLICITED_ENABLE, AC_USRSP_EN | ALC_HP_EVENT}, | 11932 | {0x14, AC_VERB_SET_UNSOLICITED_ENABLE, AC_USRSP_EN | ALC_HP_EVENT}, |
@@ -13314,9 +13316,8 @@ static void alc268_acer_lc_setup(struct hda_codec *codec) | |||
13314 | struct alc_spec *spec = codec->spec; | 13316 | struct alc_spec *spec = codec->spec; |
13315 | spec->autocfg.hp_pins[0] = 0x15; | 13317 | spec->autocfg.hp_pins[0] = 0x15; |
13316 | spec->autocfg.speaker_pins[0] = 0x14; | 13318 | spec->autocfg.speaker_pins[0] = 0x14; |
13317 | spec->automute_mixer_nid[0] = 0x0f; | ||
13318 | spec->automute = 1; | 13319 | spec->automute = 1; |
13319 | spec->automute_mode = ALC_AUTOMUTE_MIXER; | 13320 | spec->automute_mode = ALC_AUTOMUTE_AMP; |
13320 | spec->ext_mic.pin = 0x18; | 13321 | spec->ext_mic.pin = 0x18; |
13321 | spec->ext_mic.mux_idx = 0; | 13322 | spec->ext_mic.mux_idx = 0; |
13322 | spec->int_mic.pin = 0x12; | 13323 | spec->int_mic.pin = 0x12; |
@@ -13860,6 +13861,7 @@ static const struct snd_pci_quirk alc268_cfg_tbl[] = { | |||
13860 | SND_PCI_QUIRK(0x1025, 0x015b, "Acer Aspire One", | 13861 | SND_PCI_QUIRK(0x1025, 0x015b, "Acer Aspire One", |
13861 | ALC268_ACER_ASPIRE_ONE), | 13862 | ALC268_ACER_ASPIRE_ONE), |
13862 | SND_PCI_QUIRK(0x1028, 0x0253, "Dell OEM", ALC268_DELL), | 13863 | SND_PCI_QUIRK(0x1028, 0x0253, "Dell OEM", ALC268_DELL), |
13864 | SND_PCI_QUIRK(0x1028, 0x02b0, "Dell Inspiron 910", ALC268_AUTO), | ||
13863 | SND_PCI_QUIRK_MASK(0x1028, 0xfff0, 0x02b0, | 13865 | SND_PCI_QUIRK_MASK(0x1028, 0xfff0, 0x02b0, |
13864 | "Dell Inspiron Mini9/Vostro A90", ALC268_DELL), | 13866 | "Dell Inspiron Mini9/Vostro A90", ALC268_DELL), |
13865 | /* almost compatible with toshiba but with optional digital outs; | 13867 | /* almost compatible with toshiba but with optional digital outs; |
diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c index 605c99e1e520..c952582fb218 100644 --- a/sound/pci/hda/patch_via.c +++ b/sound/pci/hda/patch_via.c | |||
@@ -832,10 +832,13 @@ static int via_hp_build(struct hda_codec *codec) | |||
832 | knew->subdevice = HDA_SUBDEV_NID_FLAG | nid; | 832 | knew->subdevice = HDA_SUBDEV_NID_FLAG | nid; |
833 | knew->private_value = nid; | 833 | knew->private_value = nid; |
834 | 834 | ||
835 | knew = via_clone_control(spec, &via_hp_mixer[1]); | 835 | nid = side_mute_channel(spec); |
836 | if (knew == NULL) | 836 | if (nid) { |
837 | return -ENOMEM; | 837 | knew = via_clone_control(spec, &via_hp_mixer[1]); |
838 | knew->subdevice = side_mute_channel(spec); | 838 | if (knew == NULL) |
839 | return -ENOMEM; | ||
840 | knew->subdevice = nid; | ||
841 | } | ||
839 | 842 | ||
840 | return 0; | 843 | return 0; |
841 | } | 844 | } |
diff --git a/sound/pci/lola/lola.c b/sound/pci/lola/lola.c index 34b24286d279..2692e5ae5f2d 100644 --- a/sound/pci/lola/lola.c +++ b/sound/pci/lola/lola.c | |||
@@ -445,7 +445,7 @@ static void lola_reset_setups(struct lola *chip) | |||
445 | lola_setup_all_analog_gains(chip, PLAY, false); /* output, update */ | 445 | lola_setup_all_analog_gains(chip, PLAY, false); /* output, update */ |
446 | } | 446 | } |
447 | 447 | ||
448 | static int lola_parse_tree(struct lola *chip) | 448 | static int __devinit lola_parse_tree(struct lola *chip) |
449 | { | 449 | { |
450 | unsigned int val; | 450 | unsigned int val; |
451 | int nid, err; | 451 | int nid, err; |
diff --git a/sound/pci/rme9652/hdspm.c b/sound/pci/rme9652/hdspm.c index 949691a876d3..3f08afc0f0d3 100644 --- a/sound/pci/rme9652/hdspm.c +++ b/sound/pci/rme9652/hdspm.c | |||
@@ -521,6 +521,7 @@ MODULE_SUPPORTED_DEVICE("{{RME HDSPM-MADI}}"); | |||
521 | #define HDSPM_DMA_AREA_KILOBYTES (HDSPM_DMA_AREA_BYTES/1024) | 521 | #define HDSPM_DMA_AREA_KILOBYTES (HDSPM_DMA_AREA_BYTES/1024) |
522 | 522 | ||
523 | /* revisions >= 230 indicate AES32 card */ | 523 | /* revisions >= 230 indicate AES32 card */ |
524 | #define HDSPM_MADI_OLD_REV 207 | ||
524 | #define HDSPM_MADI_REV 210 | 525 | #define HDSPM_MADI_REV 210 |
525 | #define HDSPM_RAYDAT_REV 211 | 526 | #define HDSPM_RAYDAT_REV 211 |
526 | #define HDSPM_AIO_REV 212 | 527 | #define HDSPM_AIO_REV 212 |
@@ -1143,7 +1144,7 @@ static int hdspm_external_sample_rate(struct hdspm *hdspm) | |||
1143 | 1144 | ||
1144 | /* if wordclock has synced freq and wordclock is valid */ | 1145 | /* if wordclock has synced freq and wordclock is valid */ |
1145 | if ((status2 & HDSPM_wcLock) != 0 && | 1146 | if ((status2 & HDSPM_wcLock) != 0 && |
1146 | (status & HDSPM_SelSyncRef0) == 0) { | 1147 | (status2 & HDSPM_SelSyncRef0) == 0) { |
1147 | 1148 | ||
1148 | rate_bits = status2 & HDSPM_wcFreqMask; | 1149 | rate_bits = status2 & HDSPM_wcFreqMask; |
1149 | 1150 | ||
@@ -1639,12 +1640,14 @@ static int snd_hdspm_midi_input_read (struct hdspm_midi *hmidi) | |||
1639 | } | 1640 | } |
1640 | } | 1641 | } |
1641 | hmidi->pending = 0; | 1642 | hmidi->pending = 0; |
1643 | spin_unlock_irqrestore(&hmidi->lock, flags); | ||
1642 | 1644 | ||
1645 | spin_lock_irqsave(&hmidi->hdspm->lock, flags); | ||
1643 | hmidi->hdspm->control_register |= hmidi->ie; | 1646 | hmidi->hdspm->control_register |= hmidi->ie; |
1644 | hdspm_write(hmidi->hdspm, HDSPM_controlRegister, | 1647 | hdspm_write(hmidi->hdspm, HDSPM_controlRegister, |
1645 | hmidi->hdspm->control_register); | 1648 | hmidi->hdspm->control_register); |
1649 | spin_unlock_irqrestore(&hmidi->hdspm->lock, flags); | ||
1646 | 1650 | ||
1647 | spin_unlock_irqrestore (&hmidi->lock, flags); | ||
1648 | return snd_hdspm_midi_output_write (hmidi); | 1651 | return snd_hdspm_midi_output_write (hmidi); |
1649 | } | 1652 | } |
1650 | 1653 | ||
@@ -6377,6 +6380,7 @@ static int __devinit snd_hdspm_create(struct snd_card *card, | |||
6377 | 6380 | ||
6378 | switch (hdspm->firmware_rev) { | 6381 | switch (hdspm->firmware_rev) { |
6379 | case HDSPM_MADI_REV: | 6382 | case HDSPM_MADI_REV: |
6383 | case HDSPM_MADI_OLD_REV: | ||
6380 | hdspm->io_type = MADI; | 6384 | hdspm->io_type = MADI; |
6381 | hdspm->card_name = "RME MADI"; | 6385 | hdspm->card_name = "RME MADI"; |
6382 | hdspm->midiPorts = 3; | 6386 | hdspm->midiPorts = 3; |