diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-06 10:54:17 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-06 10:54:17 -0200 |
commit | 15baf846f560c45d4c809c464b8ee2fda603227f (patch) | |
tree | a5797716b1cdecbb06bce5817593cc8c1d1969d6 /linux/drivers/media/video/em28xx/em28xx-video.c | |
parent | 6474fb8a2f4a3259d13f6bd75908e3141dd15092 (diff) | |
download | mediapointer-dvb-s2-15baf846f560c45d4c809c464b8ee2fda603227f.tar.gz mediapointer-dvb-s2-15baf846f560c45d4c809c464b8ee2fda603227f.tar.bz2 |
Request snd-usb-audio for devices with Audio Class support
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Before this patch, only Vendor Class audio support were loaded. This means that
older em28xx devices won't have digital audio support loaded.
This patch changes the logic to auto load eighter snd-usb-audio, for devices
with USB Audio Class or em28xx-alsa, for devices with USB Vendor Class.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/em28xx/em28xx-video.c')
-rw-r--r-- | linux/drivers/media/video/em28xx/em28xx-video.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/drivers/media/video/em28xx/em28xx-video.c b/linux/drivers/media/video/em28xx/em28xx-video.c index 77d547f81..cfec27b3a 100644 --- a/linux/drivers/media/video/em28xx/em28xx-video.c +++ b/linux/drivers/media/video/em28xx/em28xx-video.c @@ -2065,7 +2065,9 @@ static void request_module_async(struct work_struct *work) struct em28xx, request_module_wk); #endif - if (!dev->has_audio_class) + if (dev->has_audio_class) + request_module("snd-usb-audio"); + else request_module("em28xx-alsa"); } |