]> git.baikalelectronics.ru Git - kernel.git/commit
[media] tea575x: fix HW seek
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 27 Feb 2012 08:31:58 +0000 (05:31 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 19 Mar 2012 14:28:52 +0000 (11:28 -0300)
commitd6cc613ab9f2a0ba1713c76bcb82e19f3dbdc032
tree25905d7ccff4904a10187effa2fafec5daccb6d4
parent1aa4a72ba7d47b30de3304df46dd39c5bc7cef81
[media] tea575x: fix HW seek

Fix HW seek in TEA575x to work properly:
- a delay must be present after search start and before first register read
  or the seek does weird things
- when the search stops, the new frequency is not available immediately, we
  must wait until it appears in the register (fortunately, we can clear the
  frequency bits when starting the search as it starts at the frequency
  currently set, not from the value written)
- sometimes, seek remains on the current frequency (or moves only a little),
  so repeat it until it moves by at least 50 kHz

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
sound/i2c/other/tea575x-tuner.c