From: Greg Kroah-Hartman Date: Mon, 11 Mar 2013 19:38:06 +0000 (-0700) Subject: 3.0-stable patches X-Git-Tag: v3.8.3~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b128031e48091d6bcec0e4d0a89d8fbcd885af18;p=thirdparty%2Fkernel%2Fstable-queue.git 3.0-stable patches added patches: alsa-ice1712-initialize-card-private_data-properly.patch alsa-vmaster-fix-slave-change-notification.patch --- 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 index 00000000000..63f5dbf0c57 --- /dev/null +++ b/queue-3.0/alsa-ice1712-initialize-card-private_data-properly.patch @@ -0,0 +1,31 @@ +From 69a4cfdd444d1fe5c24d29b3a063964ac165d2cd Mon Sep 17 00:00:00 2001 +From: Sean Connor +Date: Thu, 28 Feb 2013 09:20:00 -0500 +Subject: ALSA: ice1712: Initialize card->private_data properly + +From: Sean Connor + +commit 69a4cfdd444d1fe5c24d29b3a063964ac165d2cd upstream. + +Set card->private_data in snd_ice1712_create for fixing NULL +dereference in snd_ice1712_remove(). + +Signed-off-by: Sean Connor +Signed-off-by: Takashi Iwai +Signed-off-by: Greg Kroah-Hartman + +--- + 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 index 00000000000..10aab688d5a --- /dev/null +++ b/queue-3.0/alsa-vmaster-fix-slave-change-notification.patch @@ -0,0 +1,40 @@ +From 2069d483b39a603a5f3428a19d3b4ac89aa97f48 Mon Sep 17 00:00:00 2001 +From: Takashi Iwai +Date: Tue, 5 Mar 2013 15:43:39 +0100 +Subject: ALSA: vmaster: Fix slave change notification + +From: Takashi Iwai + +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 +Signed-off-by: Greg Kroah-Hartman + +--- + 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, diff --git a/queue-3.0/series b/queue-3.0/series index 6c7a4640922..b3010dc31e4 100644 --- a/queue-3.0/series +++ b/queue-3.0/series @@ -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