Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360964
b: refs/heads/master
c: 9fedcc4
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Mar 7, 2013
1 parent 956fb3f commit bd613e3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f73c06dc2cbf1ddf1c92f05f9843f923c8c69529
refs/heads/master: 9fedcc44f10d1e6820914f93a96d51bc7e653d98
14 changes: 12 additions & 2 deletions trunk/sound/core/seq/oss/seq_oss_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,12 @@ local_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev
static int
note_on_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev)
{
struct seq_oss_synthinfo *info = &dp->synths[dev];
struct seq_oss_synthinfo *info;

if (!snd_seq_oss_synth_is_valid(dp, dev))
return -ENXIO;

info = &dp->synths[dev];
switch (info->arg.event_passing) {
case SNDRV_SEQ_OSS_PROCESS_EVENTS:
if (! info->ch || ch < 0 || ch >= info->nr_voices) {
Expand Down Expand Up @@ -340,7 +345,12 @@ note_on_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, st
static int
note_off_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev)
{
struct seq_oss_synthinfo *info = &dp->synths[dev];
struct seq_oss_synthinfo *info;

if (!snd_seq_oss_synth_is_valid(dp, dev))
return -ENXIO;

info = &dp->synths[dev];
switch (info->arg.event_passing) {
case SNDRV_SEQ_OSS_PROCESS_EVENTS:
if (! info->ch || ch < 0 || ch >= info->nr_voices) {
Expand Down
5 changes: 4 additions & 1 deletion trunk/sound/core/vmaster.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,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,
Expand Down

0 comments on commit bd613e3

Please sign in to comment.