Commit 3f4dfe2a authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

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: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent a4950134
......@@ -1979,7 +1979,9 @@ static void request_module_async(struct work_struct *work)
struct em28xx *dev = container_of(work,
struct em28xx, request_module_wk);
if (!dev->has_audio_class)
if (dev->has_audio_class)
request_module("snd-usb-audio");
else
request_module("em28xx-alsa");
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment