Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132722
b: refs/heads/master
c: 6ff1871
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Jan 12, 2009
1 parent 3da434a commit 1451f61
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 758021bfa9ea25c58e62d2f68512628b19502ce7
refs/heads/master: 6ff1871617a3ea1eeaf88b42f652f9a311826bad
7 changes: 4 additions & 3 deletions trunk/drivers/staging/go7007/snd-go7007.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,11 @@ int go7007_snd_init(struct go7007 *go)
spin_lock_init(&gosnd->lock);
gosnd->hw_ptr = gosnd->w_idx = gosnd->avail = 0;
gosnd->capturing = 0;
gosnd->card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0);
if (gosnd->card == NULL) {
ret = snd_card_create(index[dev], id[dev], THIS_MODULE, 0,
&gosnd->card);
if (ret < 0) {
kfree(gosnd);
return -ENOMEM;
return ret;
}
ret = snd_device_new(gosnd->card, SNDRV_DEV_LOWLEVEL, go,
&go7007_snd_device_ops);
Expand Down

0 comments on commit 1451f61

Please sign in to comment.