summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/dvb-usb/af9015.c
AgeCommit message (Collapse)Author
2009-06-09af9015: fix stack corruption bugMauro Carvalho Chehab
From: Jan Nikitenko <jan.nikitenko@gmail.com> This patch fixes stack corruption bug present in af9015_eeprom_dump(): the buffer buf is one byte smaller than required - there is 4 chars for address prefix, 16*3 chars for dump of 16 eeprom bytes per line and 1 byte for zero ending the string required, i.e. 53 bytes, but only 52 are provided. The one byte missing in stack based buffer buf causes following oops on MIPS little endian platform, because i2c_adap pointer in af9015_af9013_frontend_attach() is corrupted by inlined function af9015_eeprom_dump(): CPU 0 Unable to handle kernel paging request at virtual address 00000000, epc == 803a4488, ra == c049a1c8 Oops[#1]: Cpu 0 $ 0 : 00000000 10003c00 00000000 803a4468 $ 4 : 8f17c600 8f067b30 00000002 00000038 $ 8 : 00000001 8faf3e98 11da000d 09010002 $12 : 00000000 00000000 00000000 0000000a $16 : 8f17c600 8f067b68 8faf3c00 8f067c04 $20 : 8f067b9c 00000100 8f067bf0 80104100 $24 : 00000000 2aba9fb0 $28 : 8f066000 8f067af0 802cbc48 c049a1c8 Hi : 00000000 Lo : 00000000 epc : 803a4488 i2c_transfer+0x20/0x104 Not tainted ra : c049a1c8 af9013_read_reg+0x78/0xc4 [af9013] Status: 10003c03 KERNEL EXL IE Cause : 00808008 BadVA : 00000000 PrId : 03030200 (Au1550) Modules linked in: af9013 dvb_usb_af9015(+) dvb_usb dvb_core firmware_class i2c_au1550 au1550_spi Process modprobe (pid: 2757, threadinfo=8f066000, task=8fade098, tls=2aad6470) Stack : c049f5e0 80163090 805ba880 00000100 8f067bf0 0000d733 8f067b68 8faf3c00 8f067c04 c049a1c8 80163bc0 8056a630 8f067b40 80163224 80569fc8 8f0033d7 00000038 80140003 8f067b2c 00010038 c0420001 8f067b28 c049f5e0 00000004 00000004 c049a524 c049d5a8 c049d5a8 00000000 803a6700 00000000 8f17c600 c042a7a4 8f17c600 c042a7a4 c049c924 00000000 00000000 00000002 613a6c00 ... Call Trace: [<803a4488>] i2c_transfer+0x20/0x104 [<c049a1c8>] af9013_read_reg+0x78/0xc4 [af9013] [<c049a524>] af9013_read_reg_bits+0x2c/0x70 [af9013] [<c049c924>] af9013_attach+0x98/0x65c [af9013] [<c04257bc>] af9015_af9013_frontend_attach+0x214/0x67c [dvb_usb_af9015] [<c03e2428>] dvb_usb_adapter_frontend_init+0x20/0x12c [dvb_usb] [<c03e1ad8>] dvb_usb_device_init+0x374/0x6b0 [dvb_usb] [<c0426120>] af9015_usb_probe+0x4fc/0xfcc [dvb_usb_af9015] [<80381024>] usb_probe_interface+0xbc/0x218 [<803227fc>] driver_probe_device+0x12c/0x30c [<80322a80>] __driver_attach+0xa4/0xac [<80321ed0>] bus_for_each_dev+0x60/0xd0 [<8032162c>] bus_add_driver+0x1e8/0x2a8 [<80322cdc>] driver_register+0x7c/0x17c [<80380d30>] usb_register_driver+0xa0/0x12c [<c042e030>] af9015_usb_module_init+0x30/0x6c [dvb_usb_af9015] [<8010d2a4>] __kprobes_text_end+0x3c/0x1f4 [<80167150>] sys_init_module+0xb8/0x1cc [<80102370>] stack_done+0x20/0x3c Code: afb10018 7000003f 00808021 <8c430000> 7000003f 1060002d 00c09021 8f830014 3c02efff Signed-off-by: Jan Nikitenko <jan.nikitenko@gmail.com> Acked-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-05-31af9015: support for Genius TVGo DVB-T03Antti Palosaari
From: Antti Palosaari <crope@iki.fi> Add USB ID (0458:4012) for Genius TVGo DVB-T03. Thanks to Petr Vodicka <vodicka.petr@email.cz> for reporting and testing. Priority: normal Signed-off-by: Antti Palosaari <crope@iki.fi> Tested-by: Petr Vodicka <vodicka.petr@email.cz>
2009-04-28af9015: support for KWorld MC810Mauro Carvalho Chehab
From: Wen-chien Jesse Sung <jesse@cola.voip.idv.tw> Add USB ID (1b80:c810) for Kworld MC810. Priority: normal Signed-off-by: Wen-chien Jesse Sung <jesse@cola.voip.idv.tw> Acked-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-04-09af9015: support for Conceptronic USB2.0 DVB-T CTVDIGRCU V3.0Antti Palosaari
From: Marcel Jueling <Marcel@Jueling.de> Add USB ID (1b80:e397) for Conceptronic USB2.0 DVB-T CTVDIGRCU V3.0. Priority: normal Signed-off-by: Marcel Jueling <Marcel@Jueling.de> Signed-off-by: Antti Palosaari <crope@iki.fi>
2009-04-09af9015: support for AverMedia AVerTV Volar GPS 805 (A805)Antti Palosaari
From: Antti Palosaari <crope@iki.fi> Add USB ID (07ca:a805) for AverMedia AVerTV Volar GPS 805 (A805). Thanks to Chris Brown <chrisneilbrown@gmail.com> for reporting and testing. Priority: normal Signed-off-by: Antti Palosaari <crope@iki.fi> Tested-by: Chris Brown <chrisneilbrown@gmail.com>
2009-04-09af9015: add new dvb_usb_device_properties entry for upcoming USB IDsAntti Palosaari
From: Antti Palosaari <crope@iki.fi> Add 3rd dvb_usb_device_properties entry for upcoming USB IDs because current entries are full. Priority: normal Signed-off-by: Antti Palosaari <crope@iki.fi>
2009-04-02af9015: support for DigitalNow TinyTwin remoteAntti Palosaari
From: Stuart Hall <mailing-lists@enginuities.com> Patch to provide basic support for DigitalNow TinyTwin Remote. It uses same remote as TwinHan AzureWave AD-TU700(704J). Priority: normal Signed-off-by: Stuart Hall <mailing-lists@enginuities.com> Signed-off-by: Antti Palosaari <crope@iki.fi>
2009-03-31af9015: add support for AverMedia AVerTV Volar Black HD (A850)Antti Palosaari
From: Antti Palosaari <crope@iki.fi> Add USB ID (07ca:850a) and configuration hack for AverMedia AVerTV Volar Black HD (A850) DVB-T USB stick. Priority: normal Signed-off-by: Antti Palosaari <crope@iki.fi> Tested-by: Olivier MENUEL <omenuel@laposte.net> Tested-by: Thomas Renard <threnard@gmail.com>
2009-03-27af9015: add support for TrekStor DVB-T USB StickAntti Palosaari
From: Marc Schneider <macke@macke.org> Add USB ID (15a4:901b) and remote for TrekStor DVB-T USB Stick. Priority: normal Signed-off-by: Marc Schneider <macke@macke.org> Signed-off-by: Antti Palosaari <crope@iki.fi>
2009-03-27af9015: add new USB ID for KWorld USB DVB-T TV Stick II (VS-DVB-T 395U)Antti Palosaari
From: Antti Palosaari <crope@iki.fi> Add new USB ID (1b80:e395) for KWorld USB DVB-T TV Stick II (VS-DVB-T 395U). Thanks to Julian Aron Prenner <julian@linux4you.it> for reporting this. Priority: normal Signed-off-by: Antti Palosaari <crope@iki.fi>
2009-02-17Drop test for kernel version 2.6.15Mauro Carvalho Chehab
From: Jean Delvare <khali@linux-fr.org> The v4l-dvb repository supports kernel versions 2.6.16 and later only, so no need to test for kernel version 2.6.15. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-02-02af9015: add MC44S803 supportAntti Palosaari
From: Jochen Friedrich <jochen@scram.de> Add MC44S803 support to AF9015 driver. Priority: normal Signed-off-by: Jochen Friedrich <jochen@scram.de> Signed-off-by: Antti Palosaari <crope@iki.fi>
2009-01-24af9015: New remote RM-KS for Avermedia Volar-XAntti Palosaari
From: Jose Alberto Reguero <jareguero@telefonica.net> The new Avermedia Volar-X is shipped with a new remote(RM-KS). The attached patch add a new option to the remote parameter of dvb_usb_af9015 for this remote. Priority: normal Signed-off-by: Felipe Morales Moreno <felipe.morales.moreno@gmail.com> Signed-off-by: Jose Alberto Reguero <jareguero@telefonica.net> Signed-off-by: Antti Palosaari <crope@iki.fi>
2009-01-23af9015: remove dual_mode module paramAntti Palosaari
From: Antti Palosaari <crope@iki.fi> Remove dual_mode module param. Possible 2nd FE seems not to be buggy any more and therefore can be enabled as default. Priority: normal Signed-off-by: Antti Palosaari <crope@iki.fi>
2009-01-20af9015: bug fix: stick does not work always when pluggedAntti Palosaari
From: Antti Palosaari <crope@iki.fi> First control messages to the stick timeouts very often due to probable hw bug. Repeat first message few times if it fails as workaround. Priority: high Signed-off-by: Antti Palosaari <crope@iki.fi>
2009-01-13af9015: fix second FEAntti Palosaari
From: Antti Palosaari <crope@iki.fi> Bug causes 2nd FE MPEG TS buffer size to be zero and therefore no picture when 2nd FE was enabled. Configure correct buffer size also for 2nd FE. Priority: high Signed-off-by: Antti Palosaari <crope@iki.fi>
2009-01-13af9015: add new USB ID for KWorld DVB-T 395UAntti Palosaari
From: Antti Palosaari <crope@iki.fi> Add new USB ID 1b80:e39b for KWorld DVB-T 395U. This device revision does have Quantek QT1010 silicon tuner. Priority: normal Signed-off-by: Antti Palosaari <crope@iki.fi> Thanks-to: Ray Chen <swyear@gmail.com>
2008-11-25fix boards for kernels with algo_controlMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> changeset 4ecae6da8244 removed algo_control from i2c drivers. However, on older kernels, a dummy function to implement algo_control is required, otherwise, an OOPS is generated. This patch adds a backport for all i2c drivers that defines an i2c_algorithm, except for cafe_ccic, since OLPC hardware only works for kernels newer than 2.6.19. Some of the backported drivers would need also extra changes to work with older kernels, as specified on v4l/versions.txt. Yet, I decided to add the backport for those drivers also, since the lack of algo_control doesn't generate any compilation error, but it is enough to break the driver. So, better to all for all boards than to allow compiling a kernel backported that just generates OOPS. Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-11-20af9015: fix compilation errorHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> It is much more readable to swap the byteorder in the switch rather than in each case statement. In addition, this fixes a compile error when compiled for 2.6.16. Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-11-20merge: http://linuxtv.org/hg/~anttip/af9015Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-11-17af9015: Add support for the Digittrade DVB-T USB Stick remoteAntti Palosaari
From: Alain Kalker <miki@dds.nl> Adds support for the Digittrade DVB-T USB Stick remote. As the Digittrade USB stick identifies itself as a generic Afatech AF9015 device, the remote cannot be autodetected. To enable it, add the following to /etc/modprobe.d/dvb-usb-af9015 or /etc/modprobe.conf: options dvb-usb-af9015 remote=4 Priority: normal Signed-off-by: Alain Kalker <miki@dds.nl> Signed-off-by: Antti Palosaari <crope@iki.fi>
2008-11-13af9015: don't reconnect device in USB-busAntti Palosaari
From: Jose Alberto Reguero <jareguero@telefonica.net> Don't reconnect device in the USB-bus. Reconnect command was not executed every time by device firmware and that causes harm. Reconnection is not needed so remove it. Priority: high Signed-off-by: Jose Alberto Reguero <jareguero@telefonica.net> Signed-off-by: Antti Palosaari <crope@iki.fi>
2008-11-14usb vendor_ids/product_ids are __le16Mauro Carvalho Chehab
From: Harvey Harrison <harvey.harrison@gmail.com> Noticed by sparse: drivers/media/dvb/dvb-usb/af9015.c:756:25: warning: restricted __le16 degrades to integer drivers/media/dvb/dvb-usb/af9015.c:744:28: warning: restricted __le16 degrades to integer Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-11-05af9015: fix compile warningsAntti Palosaari
From: Antti Palosaari <crope@iki.fi> - use static to avoid compile warnings Priority: normal Signed-off-by: Antti Palosaari <crope@iki.fi>
2008-11-04af9015: add support for KWorld USB DVB-T TV Stick II (VS-DVBT 395U)Antti Palosaari
From: Antti Palosaari <crope@iki.fi> - add USB-ID 1b80:e396 for KWorld USB DVB-T TV Stick II (VS-DVBT 395U) Priority: normal Signed-off-by: Antti Palosaari <crope@iki.fi> Thanks-to: Bo Hansen <bohans@online.no>
2008-11-04af9015: add support for AverMedia Volar X remote.Antti Palosaari
From: Jose Alberto Reguero <jareguero@telefonica.net> This patch add support for AverMedia Volar X remote. Priority: normal Signed-off-by: Jose Alberto Reguero <jareguero@telefonica.net> Signed-off-by: Antti Palosaari <crope@iki.fi>
2008-10-07af9015: Add USB ID for MSI DIGIVOX mini IIIAntti Palosaari
From: Herbert Graeber <herbert@graeber-clan.de> - Add USB ID for MSI DIGIVOX mini III (1462:8807) Priority: normal Signed-off-by: Herbert Graeber <herbert@graeber-clan.de> Signed-off-by: Antti Palosaari <crope@iki.fi>
2008-10-06af901x: fix some compiler errors and warningsAntti Palosaari
From: Antti Palosaari <crope@iki.fi> - cast firmware data to u8 - remove cpu_to_le16 from switch-case label Priority: normal Signed-off-by: Antti Palosaari <crope@iki.fi>
2008-09-26af901x: clean-upAntti Palosaari
From: Antti Palosaari <crope@iki.fi> - remove unnecessary #undef's Priority: normal Signed-off-by: Antti Palosaari <crope@iki.fi>
2008-09-22af9015: enable Maxlinear mxl5005s tuner RSSIAntti Palosaari
From: Antti Palosaari <crope@iki.fi> - enable Maxlinear mxl5005s tuner RSSI Thaks to Jose Alberto for finding this setting. Priority: normal Signed-off-by: Antti Palosaari <crope@iki.fi> Thanks-to: Jose Alberto Reguero <jareguero@telefonica.net>
2008-09-22af9015: fix wrong GPIOAntti Palosaari
From: Antti Palosaari <crope@iki.fi> - fix wrong GPIO that causes 2nd FE not to work ater warmboot Thanks to Andrew Williams <andrew.williams@joratech.com> for reporting this. Priority: normal Signed-off-by: Antti Palosaari <crope@iki.fi>
2008-09-22af9015: Add USB ID for AVerMedia A309Antti Palosaari
From: Antti Palosaari <crope@iki.fi> - AVerMedia A309 Mini Card (07ca:a309) Priority: normal Signed-off-by: Antti Palosaari <crope@iki.fi> Thanks-to: Dirk Vornheder <dirk_vornheder@yahoo.de>
2008-09-20af9015: cleanupAntti Palosaari
From: Antti Palosaari <crope@iki.fi> - cleanup Telestar Starstick 2 patch Priority: normal Signed-off-by: Antti Palosaari <crope@iki.fi>
2008-09-20af9015: Add USB ID for Telestar Starstick 2Antti Palosaari
From: Mikko Ohtamaa <mikko@redinnovation.com> - Add USB ID for Telestar Starstick 2 (10b9:8000) Priority: normal Signed-off-by: Mikko Ohtamaa <mikko@redinnovation.com> Signed-off-by: Antti Palosaari <crope@iki.fi>
2008-09-15initial driver for af9015 chipsetAntti Palosaari
From: Antti Palosaari <crope@iki.fi> - initial driver for the Afatech AF9015 chipset Priority: normal Signed-off-by: Antti Palosaari <crope@iki.fi> Thanks-to: Mark Spieth <mark@digivation.com.au> Thanks-to: Lee Essen <lee.essen@nowonline.co.uk> Thanks-to: Luca Olivetti <luca@ventoso.org> Thanks-to: Andrew Leech <andrew@floppyspongeonline.com> Thanks-to: Nick Andrew <nick-linuxtv@nick-andrew.net> Thanks-to: Rafael Antoniello <rafael.antoniello@gmail.com> Thanks-to: Jarryd Beck <jarro.2783@gmail.com> Thanks-to: Jose Alberto Reguero <jareguero@telefonica.net> Thanks-to: Benjamin Larsson <banan@ludd.ltu.se> Thanks-to: Wolfgang Breyha <wbreyha@gmx.net>