Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 98479
b: refs/heads/master
c: df61918
h: refs/heads/master
i:
  98477: 42c69cc
  98475: 2b5ee6d
  98471: 6d4114f
  98463: 6dd7ec8
v: v3
  • Loading branch information
Devin Heitmueller authored and Mauro Carvalho Chehab committed Jun 26, 2008
1 parent e6e0e6f commit 2483681
Show file tree
Hide file tree
Showing 3 changed files with 23 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: 1a78db826973b9fa658d72291ec2007889e2faf7
refs/heads/master: df619181631217e3166bb6c7538f981e0272617f
12 changes: 12 additions & 0 deletions trunk/drivers/media/video/em28xx/em28xx-audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,12 @@ static int em28xx_audio_init(struct em28xx *dev)
static int devnr;
int ret, err;

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

printk(KERN_INFO "em28xx-audio.c: probing for em28x1 "
"non standard usbaudio\n");
printk(KERN_INFO "em28xx-audio.c: Copyright (C) 2006 Markus "
Expand Down Expand Up @@ -458,6 +464,12 @@ static int em28xx_audio_fini(struct em28xx *dev)
if (dev == NULL)
return 0;

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

if (dev->adev) {
snd_card_free(dev->adev->sndcard);
kfree(dev->adev);
Expand Down
10 changes: 10 additions & 0 deletions trunk/drivers/media/video/em28xx/em28xx-dvb.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,11 @@ static int dvb_init(struct em28xx *dev)
int result = 0;
struct em28xx_dvb *dvb;

if (!dev->has_dvb) {
/* This device does not support the extension */
return 0;
}

dvb = kzalloc(sizeof(struct em28xx_dvb), GFP_KERNEL);

if (dvb == NULL) {
Expand Down Expand Up @@ -444,6 +449,11 @@ static int dvb_init(struct em28xx *dev)

static int dvb_fini(struct em28xx *dev)
{
if (!dev->has_dvb) {
/* This device does not support the extension */
return 0;
}

if (dev->dvb) {
unregister_dvb(dev->dvb);
dev->dvb = NULL;
Expand Down

0 comments on commit 2483681

Please sign in to comment.