diff options
author | Takashi Iwai <tiwai@suse.de> | 2016-11-29 02:20:13 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2016-11-29 02:20:13 -0500 |
commit | 55d2b19071f1868d7db974af694dcb707b2c9f1f (patch) | |
tree | 3cd074b2af76c32895a55b98bf0291beb7c82acd | |
parent | 2e57069c869f3009ae70a429d6719a545de43522 (diff) | |
parent | b5337cfe067e96b8a98699da90c7dcd2bec21133 (diff) |
Merge branch 'for-linus' into for-next
-rw-r--r-- | sound/pci/hda/hda_auto_parser.c | 2 | ||||
-rw-r--r-- | sound/pci/hda/patch_ca0132.c | 1 | ||||
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 5 | ||||
-rw-r--r-- | sound/pci/hda/thinkpad_helper.c | 3 | ||||
-rw-r--r-- | sound/usb/card.c | 3 |
5 files changed, 9 insertions, 5 deletions
diff --git a/sound/pci/hda/hda_auto_parser.c b/sound/pci/hda/hda_auto_parser.c index 7f57a145a47e..4ad29f8d7a4a 100644 --- a/sound/pci/hda/hda_auto_parser.c +++ b/sound/pci/hda/hda_auto_parser.c | |||
@@ -901,7 +901,7 @@ static bool pin_config_match(struct hda_codec *codec, | |||
901 | for (; t_pins->nid; t_pins++) { | 901 | for (; t_pins->nid; t_pins++) { |
902 | if (t_pins->nid == nid) { | 902 | if (t_pins->nid == nid) { |
903 | found = 1; | 903 | found = 1; |
904 | if (t_pins->val == cfg) | 904 | if ((t_pins->val & 0xfffffff0) == (cfg & 0xfffffff0)) |
905 | break; | 905 | break; |
906 | else if ((cfg & 0xf0000000) == 0x40000000 && (t_pins->val & 0xf0000000) == 0x40000000) | 906 | else if ((cfg & 0xf0000000) == 0x40000000 && (t_pins->val & 0xf0000000) == 0x40000000) |
907 | break; | 907 | break; |
diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index ad06866d7c69..11b9b2f17a2e 100644 --- a/sound/pci/hda/patch_ca0132.c +++ b/sound/pci/hda/patch_ca0132.c | |||
@@ -780,6 +780,7 @@ static const struct hda_pintbl alienware_pincfgs[] = { | |||
780 | static const struct snd_pci_quirk ca0132_quirks[] = { | 780 | static const struct snd_pci_quirk ca0132_quirks[] = { |
781 | SND_PCI_QUIRK(0x1028, 0x0685, "Alienware 15 2015", QUIRK_ALIENWARE), | 781 | SND_PCI_QUIRK(0x1028, 0x0685, "Alienware 15 2015", QUIRK_ALIENWARE), |
782 | SND_PCI_QUIRK(0x1028, 0x0688, "Alienware 17 2015", QUIRK_ALIENWARE), | 782 | SND_PCI_QUIRK(0x1028, 0x0688, "Alienware 17 2015", QUIRK_ALIENWARE), |
783 | SND_PCI_QUIRK(0x1028, 0x0708, "Alienware 15 R2 2016", QUIRK_ALIENWARE), | ||
783 | {} | 784 | {} |
784 | }; | 785 | }; |
785 | 786 | ||
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 47224c69cc06..64c22ccf239b 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -5917,6 +5917,9 @@ static const struct snd_hda_pin_quirk alc269_pin_fixup_tbl[] = { | |||
5917 | {0x12, 0x90a60180}, | 5917 | {0x12, 0x90a60180}, |
5918 | {0x14, 0x90170120}, | 5918 | {0x14, 0x90170120}, |
5919 | {0x21, 0x02211030}), | 5919 | {0x21, 0x02211030}), |
5920 | SND_HDA_PIN_QUIRK(0x10ec0255, 0x1028, "Dell", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE, | ||
5921 | {0x1b, 0x01011020}, | ||
5922 | {0x21, 0x02211010}), | ||
5920 | SND_HDA_PIN_QUIRK(0x10ec0256, 0x1028, "Dell", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE, | 5923 | SND_HDA_PIN_QUIRK(0x10ec0256, 0x1028, "Dell", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE, |
5921 | {0x12, 0x90a60160}, | 5924 | {0x12, 0x90a60160}, |
5922 | {0x14, 0x90170120}, | 5925 | {0x14, 0x90170120}, |
@@ -6907,8 +6910,6 @@ static const struct hda_fixup alc662_fixups[] = { | |||
6907 | .v.pins = (const struct hda_pintbl[]) { | 6910 | .v.pins = (const struct hda_pintbl[]) { |
6908 | { 0x15, 0x40f000f0 }, /* disabled */ | 6911 | { 0x15, 0x40f000f0 }, /* disabled */ |
6909 | { 0x16, 0x40f000f0 }, /* disabled */ | 6912 | { 0x16, 0x40f000f0 }, /* disabled */ |
6910 | { 0x18, 0x01014011 }, /* LO */ | ||
6911 | { 0x1a, 0x01014012 }, /* LO */ | ||
6912 | { } | 6913 | { } |
6913 | } | 6914 | } |
6914 | }, | 6915 | }, |
diff --git a/sound/pci/hda/thinkpad_helper.c b/sound/pci/hda/thinkpad_helper.c index 6a23302297c9..4d9d320a7971 100644 --- a/sound/pci/hda/thinkpad_helper.c +++ b/sound/pci/hda/thinkpad_helper.c | |||
@@ -13,7 +13,8 @@ static void (*old_vmaster_hook)(void *, int); | |||
13 | static bool is_thinkpad(struct hda_codec *codec) | 13 | static bool is_thinkpad(struct hda_codec *codec) |
14 | { | 14 | { |
15 | return (codec->core.subsystem_id >> 16 == 0x17aa) && | 15 | return (codec->core.subsystem_id >> 16 == 0x17aa) && |
16 | (acpi_dev_found("LEN0068") || acpi_dev_found("IBM0068")); | 16 | (acpi_dev_found("LEN0068") || acpi_dev_found("LEN0268") || |
17 | acpi_dev_found("IBM0068")); | ||
17 | } | 18 | } |
18 | 19 | ||
19 | static void update_tpacpi_mute_led(void *private_data, int enabled) | 20 | static void update_tpacpi_mute_led(void *private_data, int enabled) |
diff --git a/sound/usb/card.c b/sound/usb/card.c index 9e5276d6dda0..2ddc034673a8 100644 --- a/sound/usb/card.c +++ b/sound/usb/card.c | |||
@@ -315,7 +315,8 @@ static int snd_usb_audio_free(struct snd_usb_audio *chip) | |||
315 | snd_usb_endpoint_free(ep); | 315 | snd_usb_endpoint_free(ep); |
316 | 316 | ||
317 | mutex_destroy(&chip->mutex); | 317 | mutex_destroy(&chip->mutex); |
318 | dev_set_drvdata(&chip->dev->dev, NULL); | 318 | if (!atomic_read(&chip->shutdown)) |
319 | dev_set_drvdata(&chip->dev->dev, NULL); | ||
319 | kfree(chip); | 320 | kfree(chip); |
320 | return 0; | 321 | return 0; |
321 | } | 322 | } |