Skip to contentSkip to conversation

sound fixes for 4.2-rc1

GIT PULL Takashi Iwai 1 participant 1 message Jul 1, 2015 Sound

lore
Share & tools
lore
#0 lore raw

Linus,

please pull sound fixes for v4.2-rc1 from:

git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-fix-4.2-rc1

The topmost commit is 0755e74b8f04d17cea09fa342a788025b2b50e2e

----------------------------------------------------------------

sound fixes for 4.2-rc1

Here are a bunch of small fixes, mostly for HD-audio quirks, in addition to a few regression fixes and trivial cleanups.

----------------------------------------------------------------

Alex Deucher (1):
ALSA: hda - set proper caps for newer AMD hda audio in KB/KV

Colin Ian King (1):
ALSA: Fix uninintialized error return

David Henningsson (1):
ALSA: hda - Fix Dock Headphone on Thinkpad X250 seen as a Line Out

Hui Wang (1):
ALSA: hda - restore the MIC FIXUP for some Dell machines

Markus Elfring (1):
ALSA: hda: Delete an unnecessary check before the function call "snd_info_free_entry"

Takashi Iwai (5):
ALSA: hda - Disable widget power-save for VIA codecs
ALSA: jack: Fix endless loop at unique index detection
ALSA: hda - Add headset support to Acer Aspire V5
ALSA: hda - Fix the dock headphone output on Fujitsu Lifebook E780
ALSA: hda - Add a fixup for Dell E7450

---
 sound/core/ctljack.c          |  5 ++++-
 sound/core/init.c             |  3 +--
 sound/pci/hda/hda_intel.c     |  4 ++++
 sound/pci/hda/patch_hdmi.c    |  2 +-
 sound/pci/hda/patch_realtek.c | 44 ++++++++++++++++++++++++++++++++++++++++++-
 sound/pci/hda/patch_via.c     |  8 +++++---
 6 files changed, 58 insertions(+), 8 deletions(-)
sound/core/ctljack.c +4 -1
index 9149a4aefa95..84a3cd683068 100644
@@ -41,8 +41,11 @@ static int get_available_index(struct snd_card *card, const char *name)
 	sid.iface = SNDRV_CTL_ELEM_IFACE_CARD;
 	strlcpy(sid.name, name, sizeof(sid.name));
 
-	while (snd_ctl_find_id(card, &sid))
+	while (snd_ctl_find_id(card, &sid)) {
 		sid.index++;
+		/* reset numid; otherwise snd_ctl_find_id() hits this again */
+		sid.numid = 0;
+	}
 
 	return sid.index;
 }
sound/core/init.c +1 -2
index 3e0cebacefe1..20f37fb3800e 100644
@@ -109,13 +109,12 @@ static void snd_card_id_read(struct snd_info_entry *entry,
 
 static int init_info_for_card(struct snd_card *card)
 {
-	int err;
 	struct snd_info_entry *entry;
 
 	entry = snd_info_create_card_entry(card, "id", card->proc_root);
 	if (!entry) {
 		dev_dbg(card->dev, "unable to create card entry\n");
-		return err;
+		return -ENOMEM;
 	}
 	entry->c.text.read = snd_card_id_read;
 	card->proc_id = entry;
sound/pci/hda/hda_intel.c +4 -0
index 7dea7987d2af..ca151b45eeef 100644
@@ -2180,6 +2180,8 @@ static const struct pci_device_id azx_ids[] = {
 	{ PCI_DEVICE(0x1022, 0x780d),
 	  .driver_data = AZX_DRIVER_GENERIC | AZX_DCAPS_PRESET_ATI_SB },
 	/* ATI HDMI */
+	{ PCI_DEVICE(0x1002, 0x1308),
+	  .driver_data = AZX_DRIVER_ATIHDMI_NS | AZX_DCAPS_PRESET_ATI_HDMI_NS },
 	{ PCI_DEVICE(0x1002, 0x793b),
 	  .driver_data = AZX_DRIVER_ATIHDMI | AZX_DCAPS_PRESET_ATI_HDMI },
 	{ PCI_DEVICE(0x1002, 0x7919),
@@ -2188,6 +2190,8 @@ static const struct pci_device_id azx_ids[] = {
 	  .driver_data = AZX_DRIVER_ATIHDMI | AZX_DCAPS_PRESET_ATI_HDMI },
 	{ PCI_DEVICE(0x1002, 0x970f),
 	  .driver_data = AZX_DRIVER_ATIHDMI | AZX_DCAPS_PRESET_ATI_HDMI },
+	{ PCI_DEVICE(0x1002, 0x9840),
+	  .driver_data = AZX_DRIVER_ATIHDMI_NS | AZX_DCAPS_PRESET_ATI_HDMI_NS },
 	{ PCI_DEVICE(0x1002, 0xaa00),
 	  .driver_data = AZX_DRIVER_ATIHDMI | AZX_DCAPS_PRESET_ATI_HDMI },
 	{ PCI_DEVICE(0x1002, 0xaa08),
sound/pci/hda/patch_hdmi.c +1 -1
index f8527342a150..2f2433845d04 100644
@@ -591,7 +591,7 @@ static int eld_proc_new(struct hdmi_spec_per_pin *per_pin, int index)
 
 static void eld_proc_free(struct hdmi_spec_per_pin *per_pin)
 {
-	if (!per_pin->codec->bus->shutdown && per_pin->proc_entry) {
+	if (!per_pin->codec->bus->shutdown) {
 		snd_info_free_entry(per_pin->proc_entry);
 		per_pin->proc_entry = NULL;
 	}
sound/pci/hda/patch_realtek.c +43 -1

116 lines not on this page · raw message

sound/pci/hda/patch_via.c +5 -3
index 0521be8d46a8..da5366405eda 100644
@@ -241,7 +241,9 @@ static int via_pin_power_ctl_get(struct snd_kcontrol *kcontrol,
 				 struct snd_ctl_elem_value *ucontrol)
 {
 	struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
-	ucontrol->value.enumerated.item[0] = codec->power_save_node;
+	struct via_spec *spec = codec->spec;
+
+	ucontrol->value.enumerated.item[0] = spec->gen.power_down_unused;
 	return 0;
 }
 
@@ -252,9 +254,9 @@ static int via_pin_power_ctl_put(struct snd_kcontrol *kcontrol,
 	struct via_spec *spec = codec->spec;
 	bool val = !!ucontrol->value.enumerated.item[0];
 
-	if (val == codec->power_save_node)
+	if (val == spec->gen.power_down_unused)
 		return 0;
-	codec->power_save_node = val;
+	/* codec->power_save_node = val; */ /* widget PM seems yet broken */
 	spec->gen.power_down_unused = val;
 	analog_low_current_mode(codec);
 	return 1;