Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284144
b: refs/heads/master
c: 74eeb14
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Jan 9, 2012
1 parent f756df3 commit 4395f4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9badda0a0afffebbe1cb30565800896534a6c5bd
refs/heads/master: 74eeb141d3bdf5a9a65c84dd637c41f12c40f41c
3 changes: 3 additions & 0 deletions trunk/sound/pci/asihpi/asihpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -2259,6 +2259,9 @@ static int snd_asihpi_cmode_info(struct snd_kcontrol *kcontrol,
valid_modes++;
}

if (!valid_modes)
return -EINVAL;

uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
uinfo->count = 1;
uinfo->value.enumerated.items = valid_modes;
Expand Down

0 comments on commit 4395f4b

Please sign in to comment.