summaryrefslogtreecommitdiff
path: root/linux/drivers/media/radio
AgeCommit message (Collapse)Author
2009-02-12Output HW/SW version from scratchpadTobias Lorenz
From: Tobias Lorenz <tobias.lorenz@gmx.net> This patch adds functions to access the scratchpad. For it is this good for? In the first two bytes, the developers stored the HW/PCB version and the software release of the firmware. This is now written to syslog, so debugging get's easier. Also knowing the versions is the key for flash upgrades later on. There are also some cleanups of the flash report sizes. Altogether this should justify the new version number 1.0.9. Thanks to Rick Bronson <rick@efn.org> Priority: normal Signed-off-by: Tobias Lorenz <tobias.lorenz@gmx.net>
2009-02-12LED status outputTobias Lorenz
From: Tobias Lorenz <tobias.lorenz@gmx.net> This patch closes one of my todos that was since long on my list. Some people reported clicks and glitches in the audio stream, correlated to the LED color changing cycle. Thanks to Rick Bronson <rick@efn.org>. Priority: normal Signed-off-by: Tobias Lorenz <tobias.lorenz@gmx.net>
2009-02-12Correction of Stereo detection/setting and signal strength indicationTobias Lorenz
From: Tobias Lorenz <tobias.lorenz@gmx.net> Thanks to Bob Ross <pigiron@gmx.com> - correction of stereo detection/setting - correction of signal strength indicator scaling Priority: normal Signed-off-by: Tobias Lorenz <tobias.lorenz@gmx.net>
2009-02-12Code rearrangements in preparation for other report typesTobias Lorenz
From: Tobias Lorenz <tobias.lorenz@gmx.net> LED_REPORT and all flash REPORTs are on it's way. This code rearrangement cleans up the code for proper integration later on. Priority: normal Signed-off-by: Tobias Lorenz <tobias.lorenz@gmx.net>
2009-02-12Documentation and code cleanupsTobias Lorenz
From: Tobias Lorenz <tobias.lorenz@gmx.net> - "DealExtreme" sells the "PCear" radio and that comes from "Sanei Electric". - MPlayer is also usable as radio application. - Consistent usage of tabulators and blanks in the code. Priority: normal Signed-off-by: Tobias Lorenz <tobias.lorenz@gmx.net>
2009-02-08dsbr100: Add few lost mutex locks.Douglas Schilling Landgraf
From: Alexey Klimov <klimov.linux@gmail.com> Patch adds two lost mutex locks. Priority: normal Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
2009-02-05radio-si470x: use usb_make_path in usb-radio driversDouglas Schilling Landgraf
From: Alexey Klimov <klimov.linux@gmail.com> Place usb_make_path in radio-si470x.c that used when reporting bus_info information in vidioc_querycap. Priority: normal Acked-by: Tobias Lorenz <tobias.lorenz@gmx.net> Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
2009-02-05radio-mr800: fix checking of retval after usb_bulk_msgDouglas Schilling Landgraf
From: Alexey Klimov <klimov.linux@gmail.com> Patch corrects checking of returned value after usb_bulk_msg. Now we also check if number of transferred bytes equals to BUFFER_LENGTH. Priority: normal Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
2009-02-05radio-mr800: increase version and add commentsDouglas Schilling Landgraf
From: Alexey Klimov <klimov.linux@gmail.com> Increase driver version to 0.10, remove old and add new useful comments. Priority: normal Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
2009-02-05radio-mr800: add few lost mutex locksDouglas Schilling Landgraf
From: Alexey Klimov <klimov.linux@gmail.com> Patch adds two lost mutex locks. Priority: normal Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
2009-02-05radio-mr800: add stereo supportDouglas Schilling Landgraf
From: Alexey Klimov <klimov.linux@gmail.com> Patch introduces new amradio_set_stereo function. Driver calls this func to make stereo radio reception. Corrects checking of returned value after usb_bulk_msg. Priority: normal Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
2009-02-05radio-mr800: fix amradio_set_freqDouglas Schilling Landgraf
From: Alexey Klimov <klimov.linux@gmail.com> Fixing frequency adjustment to provide better diapason(band?) fit. Also, add AMRADIO_SET_FREQ to the list of commands. Priority: normal Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
2009-02-05radio-mr800: move radio start and stop in one functionDouglas Schilling Landgraf
From: Alexey Klimov <klimov.linux@gmail.com> Patch introduces new amradio_set_mute function. Amradio_start and amradio_stop removed. This makes driver more flexible and it's useful for next changes. Priority: normal Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
2009-02-05radio-mr800: add more dev_err messages in probeDouglas Schilling Landgraf
From: Alexey Klimov <klimov.linux@gmail.com> Patch adds 3 dev_err messages in usb_amradio_probe() function. Priority: normal Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
2009-02-05radio-mr800: place dev_err instead of dev_warnDouglas Schilling Landgraf
From: Alexey Klimov <klimov.linux@gmail.com> There should be dev_err message if video_register_device() fails. Correct this situation. Priority: normal Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
2009-02-05radio-mr800: codingstyle cleanupsDouglas Schilling Landgraf
From: Alexey Klimov <klimov.linux@gmail.com> Cleanups of many if-check constructions. Priority: normal Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
2009-01-25struct device - replace bus_id with dev_name(), dev_set_name()Mauro Carvalho Chehab
From: Kay Sievers <kay.sievers@vrfy.org> Acked-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-25radio-mr800: fix radio->muted and radio->stereoDouglas Schilling Landgraf
From: Alexey Klimov <klimov.linux@gmail.com> Move radio->muted and radio->stereo in section where radio mutex is locked to avoid possible race condition problems or access to memory. Thanks to David Ellingsworth <david@identd.dyndns.org> for pointing to this weak place in driver. Priority: high Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
2009-01-25v4l/dvb: use usb_make_path in usb-radio driversDouglas Schilling Landgraf
From: Alexey Klimov <klimov.linux@gmail.com> Place usb_make_path in dsbr100.c, radio-mr800.c, radio-si470x.c that used when reporting bus_info information in vidioc_querycap. Priority: normal Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
2008-12-31merge: http://linuxtv.org/hg/~tlorenz/v4l-dvbMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-12-30Add TEA5764 radio driverMauro Carvalho Chehab
From: Fabio Belavenuto <belavenuto@gmail.com> 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@gmail.com> [mchehab@redhat.com: Fixed CodingStyle and solved some merge conflicts] Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-12-03Add USB ID for the Sil4701 radio from DealExtreme.Tobias Lorenz
Signed-off-by: Mark Lord <mlord@pobox.com> Cc: Tobias Lorenz <tobias.lorenz@gmx.net> Cc: Greg KH <greg@kroah.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Code beautifications and documentation added. Signed-off-by: Tobias Lorenz <tobias.lorenz@gmx.net>
2008-11-19radio-mr800: fix unplugMauro Carvalho Chehab
From: Alexey Klimov <klimov.linux@gmail.com> This patch fixes problems(kernel oopses) with unplug of device while it's working. Patch adds disconnect_lock mutex, changes usb_amradio_close and usb_amradio_disconnect functions and adds a lot of safety checks. Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-12-30v4l2: introduce v4l2_file_operations.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Introduce a struct v4l2_file_operations for v4l2 drivers. Remove the unnecessary inode argument. Move compat32 handling (and llseek) into the v4l2-dev core: this is now handled in the v4l2 core and no longer in the drivers themselves. Note that this changeset reverts an earlier patch that changed the return type of__video_ioctl2 from int to long. This change will be reinstated later in a much improved version. Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-11-08dsbr100: add disabled controls and fix versionMauro Carvalho Chehab
From: Alexey Klimov <klimov.linux@gmail.com> Patch adds disabled controls in v4l2_queryctrl struct. Also version of driver corrected. -- Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-11-08dsbr100: add suspend and resumeMauro Carvalho Chehab
From: Alexey Klimov <klimov.linux@gmail.com> This patch adds support for suspend and resume methods in driver. Without this kradio and gnomeradio crashes during resume. Also .supports_autosuspend in usb_driver struct set equal to 0 to avoid suspending of module if usb_autosuspend enabled. Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-12-27dsbr100: change return values in 3 functionsDouglas Schilling Landgraf
From: Alexey Klimov <klimov.linux@gmail.com> Patch replace return -1; with return retval; in 3 functions. And we also change if-checks for this returned values. Priority: normal Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
2008-12-27dsbr100: increase driver versionDouglas Schilling Landgraf
From: Alexey Klimov <klimov.linux@gmail.com> Due to a lot of patches for dsbr100 last time we should update version of driver. Priority: normal Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
2008-12-27dsbr100: fix and add rigth commentsDouglas Schilling Landgraf
From: Alexey Klimov <klimov.linux@gmail.com> Fix and add right comments. Few empty lines removed. Priority: normal Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
2008-12-27dsbr100: dev_err instead of dev_warnDouglas Schilling Landgraf
From: Alexey Klimov <klimov.linux@gmail.com> We should use dev_err (not dev_warn) if video_register_device fails. Priority: normal Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
2008-12-27dsbr100: fix codingstyle, add dev_err messagesDouglas Schilling Landgraf
From: Alexey Klimov <klimov.linux@gmail.com> We should make if-constructions more clear. Introduce int retval variables in some functions to make it this way. Also a lot of useful dev_err messages added. And now we check every returned value after usb_control_msg. Priority: normal Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
2008-12-27dsbr100: place dev_warn instead of printkDouglas Schilling Landgraf
From: Alexey Klimov <klimov.linux@gmail.com> Remove printk in one line and place dev_warn there. Priority: normal Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
2008-12-27dsbr100: fix unplug oopsDouglas Schilling Landgraf
From: Alexey Klimov <klimov.linux@gmail.com> This patch corrects unplug procedure. Patch adds usb_dsbr100_video_device_release, new macros - videodev_to_radio, mutex lock and a lot of safety checks. Struct video_device videodev is embedded in dsbr100_device structure. Priority: high Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
2008-12-27radio-mr800: disable autosuspend supportDouglas Schilling Landgraf
From: Alexey Klimov <klimov.linux@gmail.com> Because this device doesn't provide any powermanagment capabilities(may be they exist but unknown to me yet, so they are not implemented), we should turn them off. Patch sets support_autosuspend equal to 0. Priority: normal Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
2008-12-27radio-mr800: correct unplug, fix to previous patchDouglas Schilling Landgraf
From: Alexey Klimov <klimov.linux@gmail.com> This patch corrects unplug procedure, that was implemented wrong in previous patch. New function usb_amradio_device_release added. Disconnect lock removed. Priority: high Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
2008-11-04radio-mr800: remove warn, info and err messagesMauro Carvalho Chehab
From: Alexey Klimov <klimov.linux@gmail.com> Patch removes warn(), err() and info() statements in drivers/media/radio/radio-mr800.c, and place dev_warn, dev_info in right places. Printk changed on pr_info and pr_err macro. Also new macro amradio_dev_warn defined. Name in usb driver struct changed on MR800_DRIVER_NAME. -- Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Acked-by: David Ellingsworth <david@identd.dyndns.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-10-27rationalise addresses to one common oneMauro Carvalho Chehab
From: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-10-28Documentation, especially regarding audio and informational linksTobias Lorenz
From: Tobias Lorenz <tobias.lorenz@gmx.net> This patch adds a recommendation to select SND_USB_AUDIO for listing and adds a documentation file for si470x. Priority: normal Signed-off-by: Tobias Lorenz <tobias.lorenz@gmx.net>
2008-10-23radio-si470x: add support for kworld usb radioMauro Carvalho Chehab
From: Alexey Klimov <klimov.linux@gmail.com> This patch add support for new device named KWorld USB FM Radio SnapMusic Mobile 700 (FM700). And changes few lines in comments. Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Acked-By: Tobias Lorenz <tobias.lorenz@gmx.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-08-14backport commit aa82661baf8a48379355ffa8bf162b07cf487600Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Author: Greg Kroah-Hartman <gregkh@suse.de> USB: remove warn() macro from usb media drivers USB should not be having it's own printk macros, so remove warn() and use the system-wide standard of dev_warn() wherever possible. In the few places that will not work out, use a basic printk(). kernel-sync: Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-10-20dsbr100: Add frequency checkDouglas Schilling Landgraf
From: Alexey Klimov <klimov.linux@gmail.com> Add checking for frequency and printk if -1 returned. Priority: normal Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@linuxtv.org>
2008-10-20radio-mr800: Add BKL for usb_amradio_open()Douglas Schilling Landgraf
From: Alexey Klimov <klimov.linux@gmail.com> Added BKL for usb_amradio_open() Priority: high Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@linuxtv.org>
2008-10-20dsbr100: CodingStyle issueDouglas Schilling Landgraf
From: Alexey Klimov <klimov.linux@gmail.com> Fixed few coding style issues in dsbr100 Priority: normal Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@linuxtv.org>
2008-10-20dsbr100: Correct bus_info stringDouglas Schilling Landgraf
From: Alexey Klimov <klimov.linux@gmail.com> Replaced bus_info string from ISA to USB Priority: normal Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@linuxtv.org>
2008-10-15Kernel config comment corrected (radio-silabs -> radio-si470x)Tobias Lorenz
2008-09-25si470x: removement of get/set input/audioTobias Lorenz
From: Tobias Lorenz <tobias.lorenz@gmx.net> Hi Mauro, this patch removes the unnecessary get/set input/audio functions. The reason is, that the V4L2 specification says, that if input or audio cannot be switched anyway, the functions doesn't need to be implemented. I've tested the new driver with all current radio programs in Debian/testing and found no problems with that. In my opinion, the driver is much cleaner by removing these unnecessary functions. Bye, Toby Signed-off-by: Tobias Lorenz <tobias.lorenz@gmx.net>
2008-09-25si470x: correction of mono/stereo handlingTobias Lorenz
From: Tobias Lorenz <tobias.lorenz@gmx.net> Hi Mauro, this patch corrects the behavior of mono/stereo indication and selection. These functions now work conform to what's defined in the V4L2 specification. Bye, Toby Signed-off-by: Tobias Lorenz <tobias.lorenz@gmx.net>
2008-09-25si470x: tuner->type handlingTobias Lorenz
From: Tobias Lorenz <tobias.lorenz@gmx.net> Hi Mauro, the V4L2 specification says, when to check and when to return tuner->type as constant value. This patch corrects exactly this behavior, so that it is now conform to the V4L2 specification. Bye, Toby Signed-off-by: Tobias Lorenz <tobias.lorenz@gmx.net>
2008-09-25si470x: improvement of unsupported base controlsTobias Lorenz
From: Tobias Lorenz <tobias.lorenz@gmx.net> Hi Mauro, this patch changes the handling of unsupported base controls. In the former version, specific unsupported base controls were listed in the queryctrl table and were flagged as disabled controls. This was done for all base controls used by the applications. The patch now removes the specific base controls and instead lets queryctrl automatically return unsupported base controls flagged as disabled. Bye, Toby Signed-off-by: Tobias Lorenz <tobias.lorenz@gmx.net>
2008-09-25si470x: improvement of module device supportTobias Lorenz
From: Tobias Lorenz <tobias.lorenz@gmx.net> Hi Mauro, this patch improves support for multiple radio devices. In previous versions all region relevant settings were derived from one module parameter. As in future versions, the region and other configuration should be configurable per device from the user space, this patch already retrieves all relevant information from the actual device specific settings. Best regards, Toby Signed-off-by: Tobias Lorenz <tobias.lorenz@gmx.net>