[media] cx231xx: fix tuner compliance issues
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 13 Sep 2012 15:54:36 +0000 (12:54 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 5 Mar 2013 17:25:58 +0000 (14:25 -0300)
commitb251f95767e1b13b9b32b207b53f5be1c491899e
tree775392f7e2d90ee3112d8909107caa20dea99fc9
parent06c46003f7077cce7f87a75d327635e45c6d2b64
[media] cx231xx: fix tuner compliance issues

The g_tuner call wasn't passed on to the subdevices, g_frequency didn't
check for invalid tuners and a low-level function that was expected to
return 0 or a negative error returned a positive number instead, causing
s_frequency to return bogus errors.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/cx231xx/cx231xx-avcore.c
drivers/media/usb/cx231xx/cx231xx-video.c