summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tuner-xc2028.c
AgeCommit message (Collapse)Author
2007-11-16Fix a wrong typecastMauro Carvalho Chehab
From: Michel Ludwig <michel.ludwig@gmail.com> Signed-off-by: Michel Ludwig <michel.ludwig@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-11-15Add a modprobe option to manually select audio standardMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> While there's no public API to define audio standard, adds a hack option for select them. This is needed only for NICAM and A2 firmwares, since AM, BTSC and EAIJ are already properly handled, on firmware version 2.7. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-11-15Corrects printk linesMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Make the driver less verbose by default. It adds a debug parameter to make the driver more verbose. Also, error messages were using KERN_ERR level, instead of KERN_INFO. A few printk messages were reviewed to make them more clear. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-11-15Fix scode table loadingMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Xceive 2028/3028 has a concept of scode/dcode. Scode is a table of 16 values (each with 12 bytes i2c sequence). Dcode is the entry of Scode table that should be used, given a certain frequency. The idea is that, depending on what frequency is selected, and according with a country-based (or standard-based?) table, the Xceive should be "hacked" to fine-tune that specific frequency. By default, Scode=0 is used, for undefined frequencies. Also, Scode=0 seems to be the most used value. This patch adds the capability of selecting a scode. However, extra work will be needed to allow auto-selecting the proper scode, for a given set of frequencies. I'm not sure what would be the proper way for implementing the dcode selection. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-11-14Add the capability to work with more complete firmwaresMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Firmware version 2.7 has other firmware types. This patch adds the capability for the driver to work with those newer types. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-11-05Fix xc2028 get register functions and callsMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> The status registers require a dword for setting register. Fix it on all occurrences, and at xc3028_get_reg. Also, improves the hardware/firmware detection printk. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-11-05Fix a buffer overflow at xc2028_get_regMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-11-04tuner: convert to bus-based I2C APIHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-11-01CodingStyle fixupMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Used scripts/Lindent + manual check + scripts/checkpatch.pl Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-11-01Allow faster loading by using 64 bytes block by em28xx i2c writeMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-10-30Properly fill MODULE_AUTHORMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Most of the driver were written by Mauro Carvalho Chehab. DTV parts were added by Michel Ludwig. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-10-29Fix some troubles at list handlingMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> - priv->count were wrong. Should be incremented since the first usage; - forgot to use list_del() to remove the driver; - Release memory if an error occurs during _attach Thanks to Aidan Thornton <makosoft@googlemail.com> for pointing this. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-10-24Improve firmware formatMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> --- linux/drivers/media/video/tuner-xc2028-types.h | 99 +++++ linux/drivers/media/video/tuner-xc2028.c | 463 +++++++++++++++++++------ linux/drivers/media/video/tuner-xc2028.h | 15 3 files changed, 466 insertions(+), 111 deletions(-)
2007-10-23Convert tuner-xc2028 driver to the newer hybrid approachMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> This changeset converts tuner-xc2028 to the newer hybrid approach. It also prevents creating twice the xc3028 private struct by both DVB and V4L parts. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> --- linux/drivers/media/Kconfig | 8 linux/drivers/media/video/Kconfig | 12 linux/drivers/media/video/Makefile | 5 linux/drivers/media/video/tuner-core.c | 12 linux/drivers/media/video/tuner-driver.h | 2 linux/drivers/media/video/tuner-xc2028.c | 424 ++++++++++++++----------------- linux/drivers/media/video/tuner-xc2028.h | 24 + 7 files changed, 248 insertions(+), 239 deletions(-)
2007-09-27Avoid having two tuner commands happening at the same timeMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> --- linux/drivers/media/video/tuner-xc2028.c | 60 ++++++++++++++++++++++++------- 1 file changed, 47 insertions(+), 13 deletions(-)
2007-07-27Make the naming of the DTV firmware files more consistent.Michel Ludwig
From: Michel Ludwig <michel.ludwig@gmail.com> Signed-off-by: Michel Ludwig <michel.ludwig@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> --- linux/drivers/media/video/tuner-xc2028.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
2007-07-18Some cleanups at tuner-xc2028 driverMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> --- linux/drivers/media/video/tm6000/tm6000-video.c | 2 linux/drivers/media/video/tuner-xc2028.c | 54 ++++--------------------------- 1 file changed, 7 insertions(+), 47 deletions(-)
2007-07-18Some fixes on tuner-xc2028Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> --- linux/drivers/media/video/tuner-xc2028.c | 113 +++++++++++++------------------ 1 file changed, 48 insertions(+), 65 deletions(-)
2007-07-18Add experimental DVB frontend tuner interface to xc2028/3028.Michel Ludwig
From: Michel Ludwig <michel.ludwig@gmail.com> Signed-off-by: Michel Ludwig <michel.ludwig@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> --- linux/drivers/media/video/tuner-xc2028.c | 208 ++++++++++++++++++++++++++++--- linux/drivers/media/video/tuner-xc2028.h | 5 2 files changed, 193 insertions(+), 20 deletions(-)
2007-07-18Improve tuner-xc2028 scriptMichel Ludwig
From: Michel Ludwig <michel.ludwig@gmail.com> Signed-off-by: Michel Ludwig <michel.ludwig@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> --- linux/drivers/media/video/tuner-xc2028.c | 50 ++++++++++++++++++------------- 1 file changed, 30 insertions(+), 20 deletions(-)
2007-10-02Add tuner-xc2028 driverMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Add support for Xceive XC2028/XC3028 tuner driver Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> --- linux/drivers/media/video/Kconfig | 12 linux/drivers/media/video/Makefile | 4 linux/drivers/media/video/tuner-core.c | 5 linux/drivers/media/video/tuner-driver.h | 2 linux/drivers/media/video/tuner-xc2028.c | 407 +++++++++++++++++++++++++++++++ linux/drivers/media/video/tuner-xc2028.h | 9 v4l/versions.txt | 1 7 files changed, 440 insertions(+)