summaryrefslogtreecommitdiff
path: root/linux/drivers/media
AgeCommit message (Collapse)Author
2008-01-31videobuf lock is already initialized at videobuf-core.cMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Removes the duplicated mutex_init code. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-31Remove obsolete code from v4l2-commonMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-30dvb-ttpci: Improved display of still picturesOliver Endriss
From: Oliver Endriss <o.endriss@gmx.de> Improved display of still pictures (VIDEO_STILLPICTURE ioctl). Ensure that both fields are displayed for progressive frames. Thanks to Reinhard Nissl and Klaus Schmidinger for finding out that the FREEZE command does this. Signed-off-by: Oliver Endriss <o.endriss@gmx.de> Thanks-to: Reinhard Nissl <rnissl@gmx.de> Thanks-to: Klaus Schmidinger <Klaus.Schmidinger@cadsoft.de>
2008-01-30budget-av: Add support for Satelco EasyWatch PCI DVB-TOliver Endriss
From: Kim Sandberg <ksan@saunalahti.fi> Add support for Satelco EasyWatch PCI DVB-T, sub-id 0x1894:0x003a. Signed-off-by: Kim Sandberg <ksan@saunalahti.fi> Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
2008-01-30budget-av: Add support for KNC TV Station Plus X4Oliver Endriss
From: Oliver Endriss <o.endriss@gmx.de> Add support for KNC TV Station Plus X4, sub-system id 0x1894:0x0015. Based on a patch submitted by Johannes Deisenhofer. Signed-off-by: Oliver Endriss <o.endriss@gmx.de> Thanks-to: Johannes Deisenhofer <jo.deisenhofer@googlemail.com>
2008-01-29Fix bug #9833: regression when compiling V4L without I2CMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Adrian Bunk reported: > > Commit 8ffbc6559493c64d6194c92d856196fdaeb8a5fb causes the following > > compile error with CONFIG_VIDEO_DEV=y/m, CONFIG_I2C=n: > > > > <-- snip --> > > > > ... > > MODPOST 26 modules > > ERROR: "i2c_attach_client" [drivers/media/video/v4l2-common.ko] undefined! > > make[2]: *** [__modpost] Error 1 > > > > <-- snip --> ... And what should happen if CONFIG_VIDEO_DEV=y, CONFIG_I2C=m? CC: Adrian Bunk <bunk@kernel.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-28 tuner-xc2028.c: make a function staticMauro Carvalho Chehab
From: Adrian Bunk <bunk@kernel.org> dump_firm_type_and_int_freq() can become static. Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-29merge: reverting changeset 5b83176312ccMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-29changeset 5b83176312cc got mangled by an experimental changeMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Reverting the changeset. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-28 Trivial printf warning fix (radio-si470)Mauro Carvalho Chehab
From: Tobias Lorenz <tobias.lorenz@gmx.net> Thanks to Darren Salt <linux@youmustbejoking.demon.co.uk> for pointing this issue. Signed-off-by: Tobias Lorenz <tobias.lorenz@gmx.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-28 radio-si470x.c: check-after-useMauro Carvalho Chehab
From: Tobias Lorenz <tobias.lorenz@gmx.net> Adrian used the coverity checker against radio-si470x and found this: > The Coverity checker spotted the following check-after-use in > drivers/media/radio/radio-si470x.c: > > <-- snip --> > static void si470x_usb_driver_disconnect(struct usb_interface *intf) > { > struct si470x_device *radio = usb_get_intfdata(intf); > > del_timer_sync(&radio->timer); <------------------ > flush_scheduled_work(); > > usb_set_intfdata(intf, NULL); > if (radio) { <------------------ > video_unregister_device(radio->videodev); > kfree(radio->buffer); > kfree(radio); > } > } > <-- snip --> > > Either "radio" can be NULL and this case has to be properly handled or > the NULL check is not required. These two lines should indeed better be inside the if statement. Signed-off-by: Tobias Lorenz <tobias.lorenz@gmx.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-28 tuner-xc2028.c: make a function staticMauro Carvalho Chehab
From: Adrian Bunk <bunk@kernel.org> dump_firm_type_and_int_freq() can become static. Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-28 frontends/tda18271-common.c: fix off-by-oneMauro Carvalho Chehab
From: Adrian Bunk <bunk@kernel.org> This patch fixes an off-by-one error spotted by the Coverity checker. Signed-off-by: Adrian Bunk <bunk@kernel.org> Reviewed-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-28 frontends/xc5000.c: make a struct staticMauro Carvalho Chehab
From: Adrian Bunk <bunk@kernel.org> struct XC5000_Standard[] can become static. Signed-off-by: Adrian Bunk <bunk@kernel.org> Reviewed-by: Steven Toth <stoth@hauppauge.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-28 em28xx/: make 2 functions staticMauro Carvalho Chehab
From: Adrian Bunk <bunk@kernel.org> This patch makes the following needlessly global functions static: - em28xx-core.c:em28xx_write_reg_bits() - em28xx-video.c:em28xx_vdev_init() Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-28 ivtv-yuv.c: make 3 functions staticMauro Carvalho Chehab
From: Adrian Bunk <bunk@kernel.org> This patch makes the following needlessly global functions static: - ivtv_yuv_next_free() - ivtv_yuv_setup_frame() - ivtv_yuv_udma_frame() Signed-off-by: Adrian Bunk <bunk@kernel.org> Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-28 stk-sensor.c: make 2 functions staticMauro Carvalho Chehab
From: Adrian Bunk <bunk@kernel.org> This patch makes the following needlessly global functions static: - stk_sensor_outb() - stk_sensor_inb() Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-28 make stk_camera_cleanup() staticMauro Carvalho Chehab
From: Adrian Bunk <bunk@kernel.org> stk_camera_cleanup() can become static. Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-28 make tuner-core.c:tuner_list staticMauro Carvalho Chehab
From: Adrian Bunk <bunk@kernel.org> tuner_list can become static - and it's anyway a way too generic name for a global variable - see commit b00ef4b8d8c29bfb5f6f92ee60bc04b604f36ef2 for a completely different global variable of the same name I just made static... Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-28Partially revert changeset 7097:ed7daeb29425Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> An experimental, incomplete changeset were committed by mistake. Reverting it. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-28saa7134-dvb: add missing dvb_attach call (for tda10046_attach)Mauro Carvalho Chehab
From: Matthias Schwarzott <zzam@gentoo.org> saa7134-dvb: add missing dvb_attach around tda10046_attach This patch adds a possibly missing dvb_attach for tda10046_attach. This removes the hard dependency of saa7134-dvb on tda1004x module. Signed-off-by: Matthias Schwarzott <zzam@gentoo.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-27merge: http://linuxtv.org/hg/~dougsland/v4lMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-27[PATCH] static memoryDouglas Schilling Landgraf
From: Douglas Schilling Landgraf <dougsland@gmail.com> - Static memory is always initialized with 0. - Replaced in some cases C99 comments for /* */ Signed-off-by: Douglas Schilling Landgraf <dougsland@gmail.com>
2008-01-27 radio-si470x improvements and seldom problem fixed in tuning functionsMauro Carvalho Chehab
From: Tobias Lorenz <tobias.lorenz@gmx.net> I updated the radio-si470x driver another time. Here are the commented history entries: - number of seek_retries changed to tune_timeout The last versions checked for the end of frequency tuning by polling a si470x register. Therefore polling depended on the usb utilization. This was changed to have a constant timeout now. - fixed problem with incomplete tune operations by own buffers The last version used a shared buffer to assembly the USB HID reports. It sometimes happened, that multiple functions were modifing this buffer simultanuously. When sending such reports, the hardware returned USB stalls (-EPIPE). Now buffers of the correct size (smaller than before) are allocated as local variables. - optimization of variables The size of some variables has been reduced to allow the compiler to generate more optimized code. - improved error logging At some important location, error checking was improved. Especially the usb transfers to access si470x registers and the tuning functions were modified. Signed-off-by: Tobias Lorenz <tobias.lorenz@gmx.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-27Fix bugzilla 9699Douglas Schilling Landgraf
From: Mauro Carvalho Chehab <mchehab@infradead.org> isapnp_fmi_probe attaches device. However, if request_region() fails, the device isn't disattached. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Douglas Schilling Landgraf <dougsland@gmail.com>
2008-01-27Fix bugzilla 9699Douglas Schilling Landgraf
From: Douglas Schilling Landgraf <dougsland@gmail.com> Changed request_region() validation to avoid crash. Signed-off-by: Douglas Schilling Landgraf <dougsland@gmail.com>
2008-01-27 V4L: stkwebcam: use v4l_compat_ioctl32Mauro Carvalho Chehab
From: Jaime Velasco Juan <jsagarribay@gmail.com> Signed-off-by: Jaime Velasco Juan <jsagarribay@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-27 V4L: stkwebcam: Power management supportMauro Carvalho Chehab
From: Jaime Velasco Juan <jsagarribay@gmail.com> Signed-off-by: Jaime Velasco Juan <jsagarribay@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-27 V4L: stkwebcam: Add support for YUYV formatMauro Carvalho Chehab
From: Jaime Velasco Juan <jsagarribay@gmail.com> Signed-off-by: Jaime Velasco Juan <jsagarribay@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-26tuner-simple: move device-specific code into three separate functionsMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Move the switch..case blocks with device-specific code from functions simple_set_tv_freq and simple_set_radio_freq ...into three new functions: simple_std_setup, simple_post_tune and simple_radio_bandswitch Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-28tuner: properly handle failed calls to simple_tuner_attachMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> If simple_tuner_attach fails, set t->type to TUNER_ABSENT, set t->mode_mask to T_UNINITIALIZED, and exit the set_type function. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-29tuner: remove dependency of tuner-core on tuner-typesMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> This patch fully removes the dependency of tuner-core on tuner-types. There is no longer any need to pass struct tunertype in attach-time config structure - instead pass the tuner type ID. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-28tuner: move tuner type ID check to simple_tuner_attachMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Move tuner type ID check from tuner-core::set_type to simple_tuner_attach. Since tuner-core forwards all attach requests to tuner-simple as the default case, unless a specific attach function is specified in set_type, this change is an appropriate cleanup. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-27tuner: build tuner-types independently of tuner-coreMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> tuner-types is needed for tuner-simple, and does not need to be bound to tuner-core. Any caller of tuner-simple, including tuner-core, needs to pass a structure from tuner-types into tuner-simple at attach-time. Export the two needed symbols from tuner-types for now, so that card-level drivers can attach tuner-simple for hybrid dvb_frontend devices. We will remove this dependency altogether as tuner refactoring phase 3 progresses. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-27tuner-simple: display frequency in MHzMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> fix debug in simple_config_lookup to display frequency in MHz Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-27tuner-simple: create separate t_params and ranges lookup functionsMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Move some reuseable code out of simple_set_tv_freq into separate functions. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-15tda18271: use hybrid_tuner_request_state to manage tuner instancesMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Convert tda18271 to use the new hybrid_tuner_request_state and hybrid_tuner_release_state macros to manage state sharing between hybrid tuner instances. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-02-02remove PREFIX from users of tuner_foo printk macrosMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Store a pointer to the device name in the name field of struct tuner_i2c_props, so that we can remove the printk macros defined in tuner-i2c.h Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-15tuner: create a macro for sharing state between hybrid tuner instancesMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Create a macro implementing a standard method to share state amongst multiple instances of a hybrid tuner object. Also, prepare tuner_foo printk macros for the removal of PREFIX Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-11-03tuner-simple: whitespace / comments / codingstyle cleanupsMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-26 driver: tcm825x - fix logical typo errorMauro Carvalho Chehab
From: Cyrill Gorcunov <gorcunov@gmail.com> This patch does fix potential NULL pointer dereference due to logical typo error. The issue is pointed out by Guennadi Liakhovetski <g.liakhovetski@pengutronix.de> CC: Sakari Ailus <sakari.ailus@nokia.com> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-20saa7134: detect the LifeView FlyDVB-T Hybrid Mini PCIHartmut Hackmann
From: Hermann Pitton <hermann-pitton@arcor.de> Thanks to Angelo Lisco for his initial patch we missed and to Ahmet Dogan Ugurel confirming such a device functional. Signed-off-by: Hermann Pitton <hermann-pitton@arcor.de> Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>
2008-01-20saa7134: add support for the Medion / Creatix CTX948 cardHartmut Hackmann
From: Hermann Pitton <hermann-pitton@arcor.de> This adds support for analog inputs and DVB-T. Good sensitivity for DVB-T currently needs to use analog TV first. DVB-S support is not yet completed, but is on the way. Signed-off-by: Hermann Pitton <hermann-pitton@arcor.de> Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>
2008-01-20saa7134: enable radio and external analog audio-in on the md2819Hartmut Hackmann
From: Hermann Pitton <hermann-pitton@arcor.de> It also enumerates now the separate composite input at first and adds mute ability to radio and external audio-in. Many thanks to Daftcho Tabakov for reporting the flaws and testing. Signed-off-by: Hermann Pitton <hermann-pitton@arcor.de> Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>
2008-01-20support for Twinhan Hybrid DTV-DVB 3056 PCIHartmut Hackmann
From: Hermann Pitton <hermann-pitton@arcor.de> S-Video is unconfirmed, but likely correct. The remote is not yet investigated. Thanks go to Sioux for providing code and asking to fix the auto detection. Signed-off-by: sioux <sioux_it@libero.it> Signed-off-by: Hermann Pitton <hermann-pitton@arcor.de> Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>
2008-01-25zr364xx: add support for Creative DiVi CAM 516Antoine Jacquet
From: Antoine Jacquet <royale@zerezo.com> Signed-off-by: Antoine Jacquet <royale@zerezo.com>
2008-01-25zr364xx: add support for Pentax Optio 50Antoine Jacquet
From: Antoine Jacquet <royale@zerezo.com> Signed-off-by: Antoine Jacquet <royale@zerezo.com>
2008-01-23 radio: fix sf16fmi section mismatchMauro Carvalho Chehab
From: Randy Dunlap <randy.dunlap@oracle.com> isapnp_fmi_probe() is only called by fmi_init(), which is __init, so isapnp_fmi_probe() can also be __init. media/radio/radio-sf16fmi.c: Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-21 bt878: remove handcrafted PCI subsystem ID checkMauro Carvalho Chehab
From: Akinobu Mita <akinobu.mita@gmail.com> This patch moves the subsystem ID and subsystem vendor ID check from probing function to the PCI generic function by describing subsystem IDs in pci_device_id table. This enables to add new PCI IDs to a device driver pci_ids table at runtime by new_id file in sysfs pci driver tree. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Manu Abraham <manu@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-19 bt878: include KERN_ facility levelMauro Carvalho Chehab
From: Akinobu Mita <akinobu.mita@gmail.com> printk should use KERN_* levels. CC: Manu Abraham <manu@linuxtv.org> Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>