[media] tda829x: fix regression in probe functions
authorJarod Wilson <jarod@redhat.com>
Tue, 1 Mar 2011 15:38:48 +0000 (12:38 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 2 Mar 2011 17:18:12 +0000 (14:18 -0300)
commit89a8969afa300c202066c23cc5cc9e42eb81967c
tree5a84b63f75956eb1fed697c8fe02ed024047298b
parenta6994eb0a706bf36bcb3b5f7e439c5b76c31cfe5
[media] tda829x: fix regression in probe functions

In commit 567aba0b7997dad5fe3fb4aeb174ee9018df8c5b, the probe address
for tda8290_probe and tda8295_probe was hard-coded to 0x4b, which is the
default i2c address for those devices, but its possible for the device
to be at an alternate address, 0x42, which is the case for the HVR-1950.
If we probe the wrong address, probe fails and we have a non-working
device. We have the actual address passed into the function by way of
i2c_props, we just need to use it. Also fix up some copy/paste comment
issues and streamline debug spew a touch. Verified to restore my
HVR-1950 to full working order.

Special thanks to Ken Bass for reporting the issue in the first place,
and to both he and Gary Buhrmaster for aiding in debugging and analysis
of the problem.

Reported-by: Ken Bass <kbass@kenbass.com>
Tested-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/tda8290.c