diff options
author | Devin Heitmueller <devin.heitmueller@gmail.com> | 2008-11-12 00:05:19 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-29 14:53:32 -0500 |
commit | 24a613e4b08c4077b4c809bebab1d4a36d541fcc (patch) | |
tree | 3b721a1858db824896da535fa5a6f960beb2511c /drivers/media/video/em28xx/em28xx-audio.c | |
parent | 95ea4705746f52e17f1f14f9136ea2106ffe3b26 (diff) |
V4L/DVB (9588): Don't load em28xx audio module for digital-only devices
Rework the logic so that the em28xx-alsa module does not get loaded for devices
that don't support analog audio (such as the em2874)
Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx-audio.c')
-rw-r--r-- | drivers/media/video/em28xx/em28xx-audio.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/media/video/em28xx/em28xx-audio.c b/drivers/media/video/em28xx/em28xx-audio.c index 4a42b29481b..15c03f0e69a 100644 --- a/drivers/media/video/em28xx/em28xx-audio.c +++ b/drivers/media/video/em28xx/em28xx-audio.c | |||
@@ -426,9 +426,10 @@ static int em28xx_audio_init(struct em28xx *dev) | |||
426 | static int devnr; | 426 | static int devnr; |
427 | int err; | 427 | int err; |
428 | 428 | ||
429 | if (dev->has_audio_class) { | 429 | if (dev->has_alsa_audio != 1) { |
430 | /* This device does not support the extension (in this case | 430 | /* This device does not support the extension (in this case |
431 | the device is expecting the snd-usb-audio module) */ | 431 | the device is expecting the snd-usb-audio module or |
432 | doesn't have analog audio support at all) */ | ||
432 | return 0; | 433 | return 0; |
433 | } | 434 | } |
434 | 435 | ||
@@ -480,9 +481,10 @@ static int em28xx_audio_fini(struct em28xx *dev) | |||
480 | if (dev == NULL) | 481 | if (dev == NULL) |
481 | return 0; | 482 | return 0; |
482 | 483 | ||
483 | if (dev->has_audio_class) { | 484 | if (dev->has_alsa_audio != 1) { |
484 | /* This device does not support the extension (in this case | 485 | /* This device does not support the extension (in this case |
485 | the device is expecting the snd-usb-audio module */ | 486 | the device is expecting the snd-usb-audio module or |
487 | doesn't have analog audio support at all) */ | ||
486 | return 0; | 488 | return 0; |
487 | } | 489 | } |
488 | 490 | ||