sound fixes for 4.2-rc1
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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 ;