Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124145
b: refs/heads/master
c: 1f6340b
h: refs/heads/master
i:
  124143: 5ec7e27
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Dec 29, 2008
1 parent 8b6c312 commit abf28a6
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 886134e4be4e9ef585b0ecde5eebcaf37ee78f80
refs/heads/master: 1f6340bd431921f9b6dc995973eb065d6c14f024
11 changes: 8 additions & 3 deletions trunk/drivers/media/video/em28xx/em28xx-audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ static int em28xx_audio_init(struct em28xx *dev)

if (dev->has_audio_class) {
/* This device does not support the extension (in this case
the device is expecting the snd-usb-audio module */
the device is expecting the snd-usb-audio module) */
return 0;
}

Expand All @@ -449,7 +449,12 @@ static int em28xx_audio_init(struct em28xx *dev)
}

spin_lock_init(&adev->slock);
ret = snd_pcm_new(card, "Em28xx Audio", 0, 0, 1, &pcm);
err = snd_pcm_new(card, "Em28xx Audio", 0, 0, 1, &pcm);
if (err < 0) {
snd_card_free(card);
return err;
}

snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_em28xx_pcm_capture);
pcm->info_flags = 0;
pcm->private_data = dev;
Expand All @@ -461,7 +466,7 @@ static int em28xx_audio_init(struct em28xx *dev)
err = snd_card_register(card);
if (err < 0) {
snd_card_free(card);
return -ENOMEM;
return err;
}
adev->sndcard = card;
adev->udev = dev->udev;
Expand Down

0 comments on commit abf28a6

Please sign in to comment.