Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

V4L/DVB (6970): Request snd-usb-audio for devices with Audio Class support

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>

+3 -1
+3 -1
drivers/media/video/em28xx/em28xx-video.c
··· 1979 1979 struct em28xx *dev = container_of(work, 1980 1980 struct em28xx, request_module_wk); 1981 1981 1982 - if (!dev->has_audio_class) 1982 + if (dev->has_audio_class) 1983 + request_module("snd-usb-audio"); 1984 + else 1983 1985 request_module("em28xx-alsa"); 1984 1986 } 1985 1987