This is a note to let you know that I've just added the patch titled

    ALSA: hda - Release assigned pin/cvt at error path of hdmi_pcm_open()

to the 3.7-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     alsa-hda-release-assigned-pin-cvt-at-error-path-of-hdmi_pcm_open.patch
and it can be found in the queue-3.7 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From 2ad779b7329d6894a80df94e693e72eaa0d56790 Mon Sep 17 00:00:00 2001
From: Takashi Iwai <[email protected]>
Date: Fri, 1 Feb 2013 14:01:27 +0100
Subject: ALSA: hda - Release assigned pin/cvt at error path of hdmi_pcm_open()

From: Takashi Iwai <[email protected]>

commit 2ad779b7329d6894a80df94e693e72eaa0d56790 upstream.

If the driver detects and invalid ELD, it gives an open error.
But it forgot to release the assigned pin, converter and spdif ctls
before returning.

Signed-off-by: Takashi Iwai <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

---
 sound/pci/hda/patch_hdmi.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

--- a/sound/pci/hda/patch_hdmi.c
+++ b/sound/pci/hda/patch_hdmi.c
@@ -1100,8 +1100,12 @@ static int hdmi_pcm_open(struct hda_pcm_
        if (!static_hdmi_pcm && eld->eld_valid) {
                snd_hdmi_eld_update_pcm_info(eld, hinfo);
                if (hinfo->channels_min > hinfo->channels_max ||
-                   !hinfo->rates || !hinfo->formats)
+                   !hinfo->rates || !hinfo->formats) {
+                       per_cvt->assigned = 0;
+                       hinfo->nid = 0;
+                       snd_hda_spdif_ctls_unassign(codec, pin_idx);
                        return -ENODEV;
+               }
        }
 
        /* Store the updated parameters */


Patches currently in stable-queue which might be from [email protected] are

queue-3.7/alsa-usb-fix-processing-unit-descriptor-parsers.patch
queue-3.7/alsa-rme32.c-irq-enabling-after-spin_lock_irq.patch
queue-3.7/alsa-ali5451-remove-irq-enabling-in-pointer-callback.patch
queue-3.7/alsa-hda-workaround-for-silent-output-on-sony-vaio-vgc-ln51jgb-with-alc889.patch
queue-3.7/alsa-hda-fix-default-multichannel-hdmi-mapping-regression.patch
queue-3.7/alsa-hda-hdmi-eld-shouldn-t-be-valid-after-unplug.patch
queue-3.7/alsa-hda-release-assigned-pin-cvt-at-error-path-of-hdmi_pcm_open.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to