]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.0-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Mar 2013 19:38:06 +0000 (12:38 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Mar 2013 19:38:06 +0000 (12:38 -0700)
added patches:
alsa-ice1712-initialize-card-private_data-properly.patch
alsa-vmaster-fix-slave-change-notification.patch

queue-3.0/alsa-ice1712-initialize-card-private_data-properly.patch [new file with mode: 0644]
queue-3.0/alsa-vmaster-fix-slave-change-notification.patch [new file with mode: 0644]
queue-3.0/series

diff --git a/queue-3.0/alsa-ice1712-initialize-card-private_data-properly.patch b/queue-3.0/alsa-ice1712-initialize-card-private_data-properly.patch
new file mode 100644 (file)
index 0000000..63f5dbf
--- /dev/null
@@ -0,0 +1,31 @@
+From 69a4cfdd444d1fe5c24d29b3a063964ac165d2cd Mon Sep 17 00:00:00 2001
+From: Sean Connor <sconnor004@allyinics.org>
+Date: Thu, 28 Feb 2013 09:20:00 -0500
+Subject: ALSA: ice1712: Initialize card->private_data properly
+
+From: Sean Connor <sconnor004@allyinics.org>
+
+commit 69a4cfdd444d1fe5c24d29b3a063964ac165d2cd upstream.
+
+Set card->private_data in snd_ice1712_create for fixing NULL
+dereference in snd_ice1712_remove().
+
+Signed-off-by: Sean Connor <sconnor004@allyinics.org>
+Signed-off-by: Takashi Iwai <tiwai@suse.de>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ sound/pci/ice1712/ice1712.c |    2 ++
+ 1 file changed, 2 insertions(+)
+
+--- a/sound/pci/ice1712/ice1712.c
++++ b/sound/pci/ice1712/ice1712.c
+@@ -2595,6 +2595,8 @@ static int __devinit snd_ice1712_create(
+       snd_ice1712_proc_init(ice);
+       synchronize_irq(pci->irq);
++      card->private_data = ice;
++
+       err = pci_request_regions(pci, "ICE1712");
+       if (err < 0) {
+               kfree(ice);
diff --git a/queue-3.0/alsa-vmaster-fix-slave-change-notification.patch b/queue-3.0/alsa-vmaster-fix-slave-change-notification.patch
new file mode 100644 (file)
index 0000000..10aab68
--- /dev/null
@@ -0,0 +1,40 @@
+From 2069d483b39a603a5f3428a19d3b4ac89aa97f48 Mon Sep 17 00:00:00 2001
+From: Takashi Iwai <tiwai@suse.de>
+Date: Tue, 5 Mar 2013 15:43:39 +0100
+Subject: ALSA: vmaster: Fix slave change notification
+
+From: Takashi Iwai <tiwai@suse.de>
+
+commit 2069d483b39a603a5f3428a19d3b4ac89aa97f48 upstream.
+
+When a value of a vmaster slave control is changed, the ctl change
+notification is sometimes ignored.  This happens when the master
+control overrides, e.g. when the corresponding master control is
+muted.  The reason is that slave_put() returns the value of the actual
+slave put callback, and it doesn't reflect the virtual slave value
+change.
+
+This patch fixes the function just to return 1 whenever a slave value
+is changed.
+
+Signed-off-by: Takashi Iwai <tiwai@suse.de>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ sound/core/vmaster.c |    5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+--- a/sound/core/vmaster.c
++++ b/sound/core/vmaster.c
+@@ -207,7 +207,10 @@ static int slave_put(struct snd_kcontrol
+       }
+       if (!changed)
+               return 0;
+-      return slave_put_val(slave, ucontrol);
++      err = slave_put_val(slave, ucontrol);
++      if (err < 0)
++              return err;
++      return 1;
+ }
+ static int slave_tlv_cmd(struct snd_kcontrol *kcontrol,
index 6c7a46409224534cbd7be8eb88392048e71a7e4b..b3010dc31e4e9ca304e49570bb45130a71a7a981 100644 (file)
@@ -10,3 +10,5 @@ ath9k-fix-rssi-dummy-marker-value.patch
 md-raid0-fix-error-return-from-create_stripe_zones.patch
 hwmon-sht15-check-return-value-of-regulator_enable.patch
 drm-radeon-add-primary-dac-adj-quirk-for-r200-board.patch
+alsa-ice1712-initialize-card-private_data-properly.patch
+alsa-vmaster-fix-slave-change-notification.patch