aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/dvb
AgeCommit message (Collapse)AuthorFilesLines
2012-08-13[media] Rename media/dvb as media/pciMauro Carvalho Chehab122-40361/+0
The remaining dvb drivers are pci, so rename them to match the bus. Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-13[media] dvb-usb: move it to drivers/media/usb/dvb-usbMauro Carvalho Chehab129-59181/+0
As media/dvb will be removed, move it to a proper place. Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-13[media] firewire: move it one level upMauro Carvalho Chehab11-3041/+0
Move firewire to one level up, as the dvb subdirectory will be removed. Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-13[media] move the dvb/frontends to drivers/media/dvb-frontendsMauro Carvalho Chehab252-128848/+13
Raise the DVB frontends one level up, as the intention is to remove the drivers/media/dvb directory. Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-13[media] dvb: move the dvb core one level upMauro Carvalho Chehab39-12197/+17
just like the V4L2 core, move the DVB core to drivers/media, as the intention is to get rid of both "video" and "dvb" directories. Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-13[media] it913x ver 1.32 driver moved to dvb-usb-v2Malcolm Priestley6-942/+809
Functional changes PID filter is default to off and controlled from dvb-usb-v2 Driver now supports suspend and resume changes in dvb-usb-v2 USB bus repeater functions have been removed. Signed-off-by: Malcolm Priestley <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-13[media] lmedm04: fix data usage past the end of the bufferMalcolm Priestley1-4/+0
On Mon, 2012-08-13 at 19:58 +0300, Dan Carpenter wrote: > Hello Mauro Carvalho Chehab, > > The patch db6651a9ebb3: "[media] lmedm04: fix build" from Aug 12, > 2012, leads to the following warning: > drivers/media/dvb/dvb-usb-v2/lmedm04.c:769 lme2510_download_firmware() > error: usb_control_msg() 'data' too small (128 vs 265) > > 737 data = kzalloc(128, GFP_KERNEL); > ^^^ > data is 128 bytes. Control isn't used, so remove it. Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Malcolm Priestley <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-13[media] DVB: improve handling of TS packets containing a raised TEI bitMichael Krufky1-5/+14
When the TEI bit is raised, we should not trust any of the contents of the packet in question, including but not limited to its PID number. Considering that we don't trust the PID number of this packet, we should not proceed to check the packet counter (if dvb_demux_tscheck is set). We should expect to see at least one discontinuity after a bad packet is received, so any time a TEI is detected, a following TS packet counter mismatch is to be expected. There is no real reason to ever allow bad packets to pass through the kernel demux, other than for purposes of attempting error correction via software or statistical information. However, since we have always passed these bad packets though the demux, we should not change this default behavior. Without altering module options, this patch merely prevents the TS packet counter check on packets containing a raised TEI. If module option dvb_demux_feed_err_pkts is set to 0, the kernel demux will drop these error packets entirely, preventing any possibility of corruption caused by userspace programs that are expecting valid data. Signed-off-by: Michael Krufky <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-13[media] dvb_usb_v2: use %*ph to dump usb xfer debugsAntti Palosaari1-10/+4
Cc: Andy Shevchenko <[email protected]> Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-13[media] dvb-usb: use %*ph to dump small buffersAndy Shevchenko3-8/+5
[[email protected]: fix trivial merge conflict] Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-13[media] dvb: use %*ph to hexdump small buffersAndy Shevchenko4-18/+8
Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-13[media] dvb: frontends: use %*ph to dump small buffersAndy Shevchenko3-8/+5
Signed-off-by: Andy Shevchenko <[email protected]> Acked-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-13[media] dvb: get rid of fe_ioctl_override callbackMauro Carvalho Chehab7-70/+2
This callback were meant to allow overriding a FE callback, before its call, but it is not really needed, as the callback can be intercepted after tuner attachment. Worse than that, only DVBv3 calls are intercepted this way, so a DVBv5 application will produce different effects than a DVBv3 one. So, get rid of it. Signed-off-by: Mauro Carvalho Chehab <[email protected]> Acked-by: Antti Palosaari <[email protected]> Reviewed-by: Antti Palosaari <[email protected]>
2012-08-13[media] add DTMB support for DVB APIAntti Palosaari5-6/+16
Cc: Patrick Boettcher <[email protected]> Cc: Andreas Oberritter <[email protected]> Cc: Mauro Carvalho Chehab <[email protected]> Acked-by: Patrick Boettcher <[email protected]> Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-13[media] rtl28xxu: generalize streaming controlAntti Palosaari1-39/+5
Move rtl2831u LED from streaming control to power control. It changes LED behavior slightly but who cares :) After that same streaming control can be used for both rtl2831u and rtl2832u. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-13[media] rtl28xxu: convert to new DVB USBAntti Palosaari6-405/+260
Tested-by: Hin-Tak Leung <[email protected]> Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-12[media] ttpci: add support for Omicom S2 PCIEvgeny Plehov1-0/+60
Support for yet another SAA7146-based budget card (very similar to TT S2-1600, but use LNBH23 instead ISL6423). Signed-off-by: Evgeny Plehov <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-12[media] mantis: fix silly crash caseAlan Cox1-2/+4
If we set mantis->fe to NULL on an error its not a good idea to then try passing NULL to the unregister paths and oopsing really. Resolves-bug: https://bugzilla.kernel.org/show_bug.cgi?id=16473 Signed-off-by: Alan Cox <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-12[media] dvb: nxt200x: apply levels to the printk()sAndy Shevchenko1-26/+30
Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-12[media] m88rs2000: add missing FE_HAS_SYNC flagAntti Palosaari1-1/+1
Cc: Malcolm Priestley <[email protected]> Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-12[media] lmedm04: fix buildMauro Carvalho Chehab2-0/+0
Those files were at the wrong place, probably due to the usage of a previous version of dvb-usb-v2 tree. Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-12[media] lmedm04 2.06 conversion to dvb-usb-v2 version 2Malcolm Priestley5-329/+291
Conversion of lmedm04 to dvb-usb-v2 Functional changes m88rs2000 tuner now uses all callbacks. TODO migrate other tuners to the callbacks. This patch is applied on top of [BUG] Re: dvb_usb_lmedm04 crash Kernel (rs2000) http://patchwork.linuxtv.org/patch/13584/ Signed-off-by: Malcolm Priestley <[email protected]> Acked-by: Antti Palosaari <[email protected]> Tested-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-12[media] dvb core: remove support for post FE legacy ioctl interceptMauro Carvalho Chehab3-18/+2
This DVB_FE_IOCTL_POST isn't used, so remove it. Also, intercepting ioctl's like that only works with legacy ioctl's, due to the way it was implemented. so this design is broken. Document it. Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-12[media] dvb_usb_lmedm04: don't crash if firmware is not loadedMalcolm Priestley1-0/+4
There is a missing error handling when no firmware file found. It seems that this is more of a problem with udev-182+. However, so far udev-182 is only a problem on first ever plug. Signed-off-by: Malcolm Priestley <[email protected]> Tested-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-11[media] ngene: add support for Terratec Cynergy 2400i Dual DVB-TPatrice Chotard1-0/+263
This code is based on ngene initial check-in (dae52d009fc950b5c209260d50fcc000f5becd3c) Signed-off-by: Patrice Chotard <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-11[media] dvb: add support for Thomson DTT7520XPatrice Chotard2-0/+27
Add support for Thomson DTT7520X pll needed by ngene card Terratec Cynergy 2400i DT Signed-off-by: Patrice Chotard <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-10[media] mantis: Terratec Cinergy C PCI HD (CI)Igor M. Liplianin2-2/+2
This patch seems for rectifying a typo. But actually the difference between mantis_vp2040.c and mantis_vp2033.c code is a card name only. Signed-off-by: Igor M. Liplianin <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-09[media] au0828: prevent i2c gate from being kept open while in analog modeDevin Heitmueller4-5/+16
The original implementation of the analog support would use an i2c_gate_ctrl function when using the digital side of the au8522, but on the analog side we would always just force the gate open and leave it open all the time. This can have adverse effects on the xc5000 given the tuner is receiving all the spurious i2c traffic (a problem which can be exaggerated due to bugs in the au0828 i2c hardware implementation). Rework the existing hack to only open/close the gate when actually talking to the tuner. This logic might need to be reworked a bit if anybody ever tries to add support for a board that has the au0828/au8522 but doesn't have digital support implemented (because the i2c_gate_ctrl callback is being set in the DVB attach). However given how few different models are in circulation, this can be deferred until such a situation arises (if ever). Signed-off-by: Devin Heitmueller <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-09[media] au8522: fix regression in logging introduced by separation of modulesDevin Heitmueller1-2/+7
The au8522 driver was broken into three modules (dig, decoder, common), and as a result the debug modprobe option doesn't work for any of the common functions. Copy the module macros over to the common module so that the debug option works again. Signed-off-by: Devin Heitmueller <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-09[media] au8522: Fix off-by-one in SNR table for QAM256Devin Heitmueller1-48/+48
The table of valid SNR values for QAM 256 is off by one, and as a result if the SNR is oscillating between 40.0 and 39.9 dB, tools like azap show it going back and forth between 40.0 and 0 (misleading some people, including myself, to think signal lock is being lost or there is a problem with register reads). Fix the table so that 40.0 dB is properly represented. Cc: Steven Toth <[email protected]> Signed-off-by: Devin Heitmueller <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-09[media] au8522: fix intermittent lockup of analog video decoderDevin Heitmueller2-5/+29
It turns up the autodetection for the video standard in the au8522 is prone to hanging the chip until a reset is performed. This condition is trivial to reproduce simply by tuning to a station and then rapidly unplugging/ replugging the coax feed. Because we've never claimed to support anything other than NTSC-M, just disable the video-standard autodetection logic and force it to always be NTSC-M. Signed-off-by: Devin Heitmueller <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-06[media] az6007: Update copyrightMauro Carvalho Chehab1-2/+2
Update copyright comments after dvb-usb-v2 conversion. Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-06[media] az6007: handle CI during suspend/resumeMauro Carvalho Chehab1-2/+23
The dvb-usb-v2 core doesn't know anything about CI. So, the driver needs to handle it by hand. This patch stops CI just before stopping URB's/RC, and restarts it before URB/RC start. It should be noticed that suspend/resume is not yet working properly, as the PM model requires the implementation of reset_resume: dvb_usb_az6007 1-6:1.0: no reset_resume for driver dvb_usb_az6007? But this is not implemented there at dvb-usb-v2 yet. Cc: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-06[media] az6007: make all functions staticMauro Carvalho Chehab1-2/+2
There's no reason why those functions shouldn't be static. Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-06[media] az6007: rename "st" to "state" at az6007_power_ctrl()Mauro Carvalho Chehab1-4/+4
On all other parts, this var is called state. So, use the same name here, to be consistent. Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-06[media] az6007: Fix the number of parameters for QAM setupMauro Carvalho Chehab1-0/+1
Remove those warning messages: [ 121.696758] drxk: SCU_RESULT_INVPAR while sending cmd 0x0203 with params: [ 121.703401] drxk: 02 00 00 00 10 00 07 00 03 02 .......... [ 121.703587] drxk: Warning -22 on QAMDemodulatorCommand Acked-by: Antti Palosaari <[email protected]> Reviewed-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-06[media] az6007: fix the I2C W+R logicMauro Carvalho Chehab1-1/+1
The test for I2C W+R will never be true. Fix it. Acked-by: Antti Palosaari <[email protected]> Reviewed-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-06[media] az6007: convert it to use dvb-usb-v2Mauro Carvalho Chehab5-231/+174
Change it to use dvb-usb-v2. The driver should be working as before. The only functional changes should be at the driver debug logs. This driver needs the cypress firmware load, so, auto-selects it. Acked-by: Antti Palosaari <[email protected]> Reviewed-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-06[media] dvb-usb-v2: Don't ask user to select Cypress firmware moduleMauro Carvalho Chehab1-8/+0
The dvb-usb-v2 cypress firmware module is not optional, as drivers won't work without it. So, instead of opening a menu for the user to manually select, let the drivers that need it to select, hiding this option from the Kconfig menu. Acked-by: Antti Palosaari <[email protected]> Reviewed-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-06[media] dvb-usb-v2: Fix cypress firmware compilationMauro Carvalho Chehab1-1/+2
ERROR: "usbv2_cypress_load_firmware" [drivers/media/dvb/dvb-usb-v2/dvb-usb-az6007.ko] undefined! Cypress fimware will never be compiled properly, as the Makefile rule is wrong. Acked-by: Antti Palosaari <[email protected]> Reviewed-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-05[media] move dvb-usb-ids.h to dvb-coreMauro Carvalho Chehab3-2/+1
While this header were meant to be used just by dvb-usb driver, it is now being used also by dvb-usb-v2 and cx231xx. So, move it to a better place. Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-04[media] dvb_usbv2: rename dvb_usb_firmware to cypress_firmwareAntti Palosaari4-8/+16
Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-04[media] af9015: remote controller fixesAntti Palosaari2-3/+13
1) AF9015 remote controller query will fail rarely due to register access failures and dvb_usb_v2 will stop rc polling when error returned. Add logic to allow errors until two consecutive errors occurs. 2) Remote controller key map was not loaded in case of key map was set as a device property. Fix it. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-04[media] dvb_usb_v2: move from dvb-usb to dvb-usb-v2Antti Palosaari40-136/+142
Move to own directory. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-04[media] gl861: convert to new DVB USBAntti Palosaari3-91/+46
Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-04[media] mxl111sf: convert to new DVB USBAntti Palosaari4-925/+557
Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-04[media] dvb_usb_v2: register device even no remote keymap definedAntti Palosaari4-5/+15
It failed to register device when remote keymap was not set. Fix it to register device even keymap is NULL. In that case just skip remote registration. Driver should set RC_MAP_EMPTY to enable remote in case of there is remote receiver but default keymap is unknown. Reported-by: pierigno <[email protected]> Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-04[media] dvb_usb_v2: remove usb_clear_halt() from streamAntti Palosaari1-3/+0
It works no longer as it was designed since we can change streaming configuration during device operation. Maybe it should be performed conditionally on cases when streaming endpoint is changed. Anyhow, let it out now and add later if needed. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-04[media] dvb_usb_v2: do not try to remove non-existent adapterAntti Palosaari1-3/+5
Check that adapter exists before trying to remove it. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-08-04[media] dvb_usb_v2: use dev_* logging macrosAntti Palosaari3-135/+161
Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>