aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2013-04-05 13:57:48 -0700
committerTodd Poynor <toddpoynor@google.com>2013-04-05 13:57:48 -0700
commit033e18ff2cdbacb4837abd9776aeeca478a431f2 (patch)
tree05f9c8db8477a76f2da811fb0f04fd317cb75b7d /sound/core
parentad4f2bf22c25143a31f9a7547c49cee5096a4c67 (diff)
parent12b868488bc5abfb5fc0910aa34b32d6209073df (diff)
downloadkernel_samsung_tuna-033e18ff2cdbacb4837abd9776aeeca478a431f2.zip
kernel_samsung_tuna-033e18ff2cdbacb4837abd9776aeeca478a431f2.tar.gz
kernel_samsung_tuna-033e18ff2cdbacb4837abd9776aeeca478a431f2.tar.bz2
Merge branch 'android-3.0' into android-omap-3.0
Diffstat (limited to 'sound/core')
-rw-r--r--sound/core/seq/seq_timer.c8
-rw-r--r--sound/core/vmaster.c5
2 files changed, 8 insertions, 5 deletions
diff --git a/sound/core/seq/seq_timer.c b/sound/core/seq/seq_timer.c
index 160b1bd..24d44b2 100644
--- a/sound/core/seq/seq_timer.c
+++ b/sound/core/seq/seq_timer.c
@@ -290,10 +290,10 @@ int snd_seq_timer_open(struct snd_seq_queue *q)
tid.device = SNDRV_TIMER_GLOBAL_SYSTEM;
err = snd_timer_open(&t, str, &tid, q->queue);
}
- if (err < 0) {
- snd_printk(KERN_ERR "seq fatal error: cannot create timer (%i)\n", err);
- return err;
- }
+ }
+ if (err < 0) {
+ snd_printk(KERN_ERR "seq fatal error: cannot create timer (%i)\n", err);
+ return err;
}
t->callback = snd_seq_timer_interrupt;
t->callback_data = q;
diff --git a/sound/core/vmaster.c b/sound/core/vmaster.c
index a39d3d8..6058a37 100644
--- a/sound/core/vmaster.c
+++ b/sound/core/vmaster.c
@@ -207,7 +207,10 @@ static int slave_put(struct snd_kcontrol *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,