V4L/DVB (12586): Update ALSA capture controls according to selected source.
authorOldřich Jedlička <oldium.pro@seznam.cz>
Sat, 22 Aug 2009 18:13:51 +0000 (15:13 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 12 Sep 2009 15:19:41 +0000 (12:19 -0300)
commit736dadaa17218b6e516053ee896dbb075eadba4b
tree1a7ef0b80e77bf7f65236abacfa7e0f35840692e
parented44f66e4039dfc8fb7905078d546c83adf76811
V4L/DVB (12586): Update ALSA capture controls according to selected source.

The patch introduces new snd_saa7134_capsrc_set (code taken from
snd_saa7134_capsrc_put) that updates also the ALSA capture controls during
snd_card_saa7134_capture_prepare and snd_saa7134_capsrc_put.

There can be much more work done in order to unify the control of the card
(now the card's capture source is tuned/switched in saa7134-video.c too), but
I don't have enough time. This work could be a starting point, but it can be
applied as-is too (it doesn't need any further work to make it working).

Signed-off-by: Oldřich Jedlička <oldium.pro@seznam.cz>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/saa7134/saa7134-alsa.c