[media] cx231xx: Clear avmode bits before setting
authorDevin Heitmueller <dheitmueller@hauppauge.com>
Mon, 12 Jul 2010 18:31:56 +0000 (15:31 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Oct 2010 03:17:22 +0000 (01:17 -0200)
commitcc355753e860559744baf5ddb2fcf427433e0346
treee1ac13f8195bfb4334e210b3a42ec3af5728d437
parent435b4f7897b7e2f233c313e65ac82bd1d3599c43
[media] cx231xx: Clear avmode bits before setting

We need to clear out the field before setting individual bits, or else we end
up with a union of whatever was there and what we are trying to set.  For
example, switching to digital mode ends up being 0x30 instead of 0x10 if we
were previously in analog tv mode.

Signed-off-by: Devin Heitmueller <dheitmueller@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx231xx/cx231xx-avcore.c