V4L/DVB (6952): Add code for autoloading em28xx-alsa, if needed
authorMauro Carvalho Chehab <mchehab@infradead.org>
Sat, 5 Jan 2008 12:59:03 +0000 (09:59 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:04:32 +0000 (19:04 -0200)
commitd7448a8d9d06ca2ca4fd1f17404450ecba8bea3a
tree61be9e95bdf31c4cde511c67ce2f526bb816d0f8
parent6d79468dd8537530f4150e76ed9b4b63f80571c6
V4L/DVB (6952): Add code for autoloading em28xx-alsa, if needed

Older em28xx devices does implement standard Audio Class.

However, on newer devices, this were replaced by a Vendor Class. This
patch autodetects that an em28xx lacks Audio Class and auto-loads
em28xx-alsa, for the devices that implements only a Vendor Class.

For devices with Audio Class, snd-usb-audio module will provide an ALSA
interface.

This patch uses the request_module_async function as defined on cx88-mpeg.c,
originally wrote by Markus Rechberger.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/em28xx/em28xx-audio.c
drivers/media/video/em28xx/em28xx-video.c
drivers/media/video/em28xx/em28xx.h