Re: [PATCH] Add TEA5764 radio driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Hi Fabio,

On Wednesday 17 December 2008 23:49:33 Fabio Belavenuto wrote:
> Add support for radio driver TEA5764 from NXP.
> This chip is connected in pxa I2C bus in EZX phones
> from Motorola, the chip is used in phone model A1200.
> This driver is for OpenEZX project (www.openezx.org)
> Tested with A1200 phone, openezx kernel and fm-tools
>
> Signed-off-by: Fabio Belavenuto <belavenuto@xxxxxxxxx>
>
>  drivers/media/radio/Kconfig         |   19 +
>  drivers/media/radio/Makefile        |    1 +
>  drivers/media/radio/radio-tea5764.c |  641
> +++++++++++++++++++++++++++++++++++ 3 files changed, 661 insertions(+), 0
> deletions(-)
>

I'm sorry, but this isn't the right approach. This chip is a radio tuner and 
as such can be used in many other products. So the tea5764 driver should be 
implemented as a tuner driver instead. See drivers/media/common/tuners for 
other such drivers, including the close cousins tea5761 and tea5767.

Next to that you need a v4l radio driver for this platform that loads the 
tuner module and sets it up correctly.

Basically this driver needs to be split into a tuner driver and a v4l driver 
for this platform.

The big advantage is that the tea5764 driver can be reused in other 
products, and also that it is easy to change the v4l driver if another 
tuner chip is chosen in the future.

BTW, it might be possible that the tea5764 is very similar to the existing 
tea radio drivers. In that case you might want to consider adding support 
for this new variant to an existing driver, rather than creating a new 
driver. I've never looked at the datasheets for these chips, so I don't 
know how feasible that is.

Regards,

	Hans

-- 
Hans Verkuil - video4linux developer - sponsored by TANDBERG

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

[Linux Media]     [Older V4L]     [Linux DVB]     [Video Disk Recorder]     [Linux Kernel]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [SSH]     [DVB Maintainers]     [Linux USB]     [Yosemite Information]

Add to Google Powered by Linux