V4L/DVB (11979): em28xx: don't create audio device if not supported
authorDevin Heitmueller <dheitmueller@kernellabs.com>
Wed, 10 Jun 2009 02:40:39 +0000 (23:40 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 16 Jun 2009 22:07:46 +0000 (19:07 -0300)
commit1cdc6392b74246be333e2c88b61beedbf9991422
tree2553f023ffb2ef4ea92155b535b092308454347a
parentd7de5d8ff74efd01916b01af875a0e87419a3599
V4L/DVB (11979): em28xx: don't create audio device if not supported

In cases where the device does not actually provide a USB audio class *or*
vendor audio, do not load the driver that provides vendor audio support (such
as the KWorld 2800d).  Otherwise, the /dev/audio1 device file gets created and
users get confused.

Also, reworks the logic a bit so that we don't try to inspect the register
content if the register read failed entirely.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/em28xx/em28xx-core.c