Skip to content

Commit

Permalink
V4L/DVB (6970): Request snd-usb-audio for devices with Audio Class su…
Browse files Browse the repository at this point in the history
…pport

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>
  • Loading branch information
Mauro Carvalho Chehab committed Jan 25, 2008
1 parent a495013 commit 3f4dfe2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/media/video/em28xx/em28xx-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down

0 comments on commit 3f4dfe2

Please sign in to comment.