[media] tuner-core: handle errors when getting signal strength/afc
authorMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 25 Mar 2013 12:55:59 +0000 (09:55 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 25 Mar 2013 18:10:43 +0000 (15:10 -0300)
commit004e45d736bfe62159bd4dc1549eff414bd27496
tree040379919d82f8d9f844324abecfd429a7dae02c
parent6f8ca0b541c8bb542edb02dad68bd723625132e7
[media] tuner-core: handle errors when getting signal strength/afc

If those callbacks fail, it should return zero, and not a random
value. The previous code assumed that all drivers would only change
signal strength if it succeeds, but this may not be true.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/v4l2-core/tuner-core.c