aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video
Commit message (Collapse)AuthorAgeFilesLines
* OMAP: TILER: Optimize placement for NV12 buffersAndy Gross2014-10-012-16/+32
| | | | | | | | | | | | | | This patch changes the behaviour when allocating 2D buffers. If the required alignment is less than 4KiB and a security token is set, the allocation will be flagged specifically for this format. All subsequent buffers of the same format and size will be placed inside this area until the area is exhausted. For NV12 allocations, this means that all Y allocations will share one area, and the UV allocations will share another. Change-Id: I13d29257c0cbab627c2938d4623557918448ee86 Signed-off-by: Andy Gross <andy.gross@ti.com>
* OMAP: TILER: validate input width and heightAndy Gross2014-10-011-12/+17
| | | | | | | | | | Add validation of input width and height to ensure that it does not exceed maximum pixel width and height for the specific format. Validate maximum length for 1D allocations. Change-Id: I64b00f93a312ae715a040da28a0b0fe663afa9d8 Signed-off-by: Andy Gross <andy.gross@ti.com>
* TILER: Add tiler_backpages methodLajos Molnar2014-10-011-11/+50
| | | | | | | | | | | | tiler_backpages method can be used to get the number of pages required for a tiler allocation. This method is called before the memory is partitioned, therefore, we cannot rely on tiler being initialized. Separated geometry initialization for this purpose. Change-Id: Ia68cbd81c31a357fdc51036753db222d21994996 Signed-off-by: Lajos Molnar <lajos@ti.com> Signed-off-by: Dima Svetlov <svetlov@ti.com>
* OMAP4: ION/TILER: Expose virtual stride and sizeAndy Gross2014-10-011-0/+6
| | | | | | | | | | Added an interface to query the virtual stride and size from the tiler buffer via an ION handle. Change-Id: Iac756475236d3463b1aeaa6e29767ba03e758851 Signed-off-by: Andy Gross <andy.gross@ti.com> Signed-off-by: Atanas (Tony) Zlatinski <zlatinski@gmail.com> Signed-off-by: Hemant Hariyani <hemanthariyani@ti.com>
* OMAP4: TILER: Adds func to fill the virt. sizesAtanas (Tony) Zlatinski2014-10-011-0/+45
| | | | | | | | Adds public tiler_fill_virt_array() that deals with non-page-aligned addresses correctly. Change-Id: I31f4aa9a2e81cd84e393529b6534674811f99563 Signed-off-by: Atanas (Tony) Zlatinski <zlatinski@gmail.com>
* OMAP4: TILER: Add offset parameter for allocationAndy Gross2014-10-016-47/+70
| | | | | | | | | | | Add offset parameter for use in tiler_alloc_block_area_aligned. This allows a user to get a tiler allocation with a specific alignment and offset. Change-Id: I8b1b9dd17bc9def124ea92cbbede2f3c56823387 Signed-off-by: Andy Gross <andy.gross@ti.com> Signed-off-by: Tony Zlatinski <x0146664@ti.com> Signed-off-by: Atanas (Tony) Zlatinski <zlatinski@gmail.com>
* OMAP4: TILER: Add variable alignment allocation APIAndy Gross2014-10-016-140/+182
| | | | | | | | | | | Added tiler_alloc_block_area_aligned API to allow for variable alignment when allocating when using the kernel APIs. Change-Id: I2f3c44675a3fa1b2c6dfef21ccdd9bcac2f1d0e5 Signed-off-by: Andy Gross <andy.gross@ti.com> Signed-off-by: Tony Zlatinski <x0146664@ti.com> Signed-off-by: Atanas (Tony) Zlatinski <zlatinski@gmail.com>
* OMAP: TILER: Kconfig: Disable tiler ioctl interfaceShivananda Hebbar2014-10-011-16/+16
| | | | | | | | | | | | | TILER provided an interface to userspace through a character driver /dev/tiler, and through a MemMgr API in the userspace. This TILER ioctl interface is currently deprecated. The kernel config options have been changed accordingly to avoid any misuse. Change-Id: Ia69f4f6161e6f4d5fb45ef12aaac5976e0bdd53d Signed-off-by: Shivananda Hebbar <x0hebbar@ti.com> Signed-off-by: Andy Gross <andy.gross@ti.com> Signed-off-by: Suman Anna <s-anna@ti.com>
* OMAP: TILER: Make character driver creation configurableShivananda Hebbar2014-10-012-6/+22
| | | | | | | | | | | | | The TILER code that creates the character driver code and interacts with the userspace has been placed under the kernel configuration option that controls the userspace, so that the cdev creation is bypassed when userspace is disabled. Change-Id: I3d5d372433fc89e676e54088dc8af8bdb74b8007 Signed-off-by: Shivananda Hebbar <x0hebbar@ti.com> Signed-off-by: Andy Gross <andy.gross@ti.com> Signed-off-by: Suman Anna <s-anna@ti.com>
* OMAP: TILER: Add bounds checking on format inputsAndy Gross2014-10-011-0/+4
| | | | | | | Added bounds checking to validate incoming tiler format. Change-Id: Icd791cc294ecb1838afb3f91451626debd59c29e Signed-off-by: Andy Gross <andy.gross@ti.com>
* Merge branch 'android-3.0' into android-omap-3.0Todd Poynor2013-01-163-6/+10
|\ | | | | | | | | | | | | Fixup incompatible code in opp.c: omap_init_opp_table() Change-Id: Iac7d60b814a539285d00e0a3dbb6e3f0060cb683 Signed-off-by: Todd Poynor <toddpoynor@google.com>
| * media: au0828: fix case where STREAMOFF being called on stopped stream ↵Devin Heitmueller2012-10-281-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | causes BUG() commit a595c1ce4c9d572cf53513570b9f1a263d7867f2 upstream. We weren't checking whether the resource was in use before calling res_free(), so applications which called STREAMOFF on a v4l2 device that wasn't already streaming would cause a BUG() to be hit (MythTV). Reported-by: Larry Finger <larry.finger@lwfinger.net> Reported-by: Jay Harbeston <jharbestonus@gmail.com> Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * USB: spca506: remove __devinit* from the struct usb_device_id tableGreg Kroah-Hartman2012-09-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit e694d518886c7afedcdd1732477832b2e32744e4 upstream. This structure needs to always stick around, even if CONFIG_HOTPLUG is disabled, otherwise we can oops when trying to probe a device that was added after the structure is thrown away. Thanks to Fengguang Wu and Bjørn Mork for tracking this issue down. Reported-by: Fengguang Wu <fengguang.wu@intel.com> Reported-by: Bjørn Mork <bjorn@mork.no> CC: Hans de Goede <hdegoede@redhat.com> CC: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| * media: uvcvideo: Fix ENUMINPUT handlingLaurent Pinchart2012-06-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | commit 31c5f0c5e25ed71eeced170f113bb590f2f1f6f3 upstream. Properly validate the user-supplied index against the number of inputs. The code used the pin local variable instead of the index by mistake. Reported-by: Jozef Vesely <vesely@gjh.sk> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* | Merge linux-stable 3.0.28 into linux-omap-3.0Todd Poynor2012-04-1912-6/+107
|\ \ | |/ | | | | | | Change-Id: I76904a60370e2cb9cc29ccde5d526d9183ff4f8e Signed-off-by: Todd Poynor <toddpoynor@google.com>
| * pvrusb2: fix 7MHz & 8MHz DVB-T tuner support for HVR1900 rev D1F5Michael Krufky2012-04-021-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 9ab2393fc3e460cd2040de1483918eb17abb822f upstream. The D1F5 revision of the WinTV HVR-1900 uses a tda18271c2 tuner instead of a tda18271c1 tuner as used in revision D1E9. To account for this, we must hardcode the frontend configuration to use the same IF frequency configuration for both revisions of the device. 6MHz DVB-T is unaffected by this issue, as the recommended IF Frequency configuration for 6MHz DVB-T is the same on both c1 and c2 revisions of the tda18271 tuner. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Cc: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| * hdpvr: fix race conditon during start of streamingJanne Grunau2012-02-291-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | commit afa159538af61f1a65d48927f4e949fe514fb4fc upstream. status has to be set to STREAMING before the streaming worker is queued. hdpvr_transmit_buffers() will exit immediately otherwise. Reported-by: Joerg Desch <vvd.joede@googlemail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| * uvcvideo: Fix integer overflow in uvc_ioctl_ctrl_map()Haogang Chen2012-01-252-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 806e23e95f94a27ee445022d724060b9b45cb64a upstream. There is a potential integer overflow in uvc_ioctl_ctrl_map(). When a large xmap->menu_count is passed from the userspace, the subsequent call to kmalloc() will allocate a buffer smaller than expected. map->menu_count and map->menu_info would later be used in a loop (e.g. in uvc_query_v4l2_ctrl), which leads to out-of-bound access. The patch checks the ioctl argument and returns -EINVAL for zero or too large values in xmap->menu_count. Signed-off-by: Haogang Chen <haogangchen@gmail.com> [laurent.pinchart@ideasonboard.com Prevent excessive memory consumption] Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * V4L/DVB: v4l2-ioctl: integer overflow in video_usercopy()Dan Carpenter2012-01-251-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 6c06108be53ca5e94d8b0e93883d534dd9079646 upstream. If ctrls->count is too high the multiplication could overflow and array_size would be lower than expected. Mauro and Hans Verkuil suggested that we cap it at 1024. That comes from the maximum number of controls with lots of room for expantion. $ grep V4L2_CID include/linux/videodev2.h | wc -l 211 Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * media: s5p-fimc: Use correct fourcc for RGB565 colour formatSylwester Nawrocki2012-01-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit f83f71fda27650ae43558633be93652577dbc38c upstream. With 16-bit RGB565 colour format pixels are stored by the device in memory in the following order: | b3 | b2 | b1 | b0 | ~+-----+-----+-----+-----+ | R5 G6 B5 | R5 G6 B5 | This corresponds to V4L2_PIX_FMT_RGB565 fourcc, not V4L2_PIX_FMT_RGB565X. This change is required to avoid trouble when setting up video pipeline with the s5p-tv devices, so the colour formats at both devices can be properly matched. Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * saa7164: Add support for another HVR2200 hardware revisionTony Jago2011-11-263-0/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 62dd28d0c659db29bdb89cfe9f0aefe42f0adfe9 upstream. Hauppauge have released a new model rev, sub id 8940, this adds support. [stoth@kernellabs.com: I modified Tony's patch slightly in relation to the card numbering in saa7164.h, appending rather than inserting the new card - normal practise] Signed-off-by: Tony Jago <tony@hammertelecom.com.au> Signed-off-by: Steven Toth <stoth@kernellabs.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Stefan Bader <stefan.bader@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * tuner_xc2028: Allow selection of the frequency adjustment code for XC3028Mauro Carvalho Chehab2011-11-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | commit 9bed77ee2fb46b74782d0d9d14b92e9d07f3df6e upstream. This device is not using the proper demod IF. Instead of using the IF macro, it is specifying a IF frequency. This doesn't work, as xc3028 needs to load an specific SCODE for the tuner. In this case, there's no IF table for 5 MHz. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * uvcvideo: Set alternate setting 0 on resume if the bus has been resetMing Lei2011-11-113-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit d59a7b1dbce8b972ec2dc9fcaaae0bfa23687423 upstream. If the bus has been reset on resume, set the alternate setting to 0. This should be the default value, but some devices crash or otherwise misbehave if they don't receive a SET_INTERFACE request before any other video control request. Microdia's 0c45:6437 camera has been found to require this change or it will stop sending video data after resume. uvc_video.c] Signed-off-by: Ming Lei <ming.lei@canonical.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* | Merge commit 'v3.0.8' into linux-omap-3.0Colin Cross2011-10-271-1/+1
|\ \ | |/ | | | | | | | | | | | | | | Conflicts: drivers/tty/serial/omap-serial.c drivers/usb/musb/musb_gadget.c sound/soc/omap/omap-mcbsp.c Change-Id: Ic31b7266dda3ac8483f737272874ebf4725b5fe3
| * uvcvideo: Fix crash when linking entitiesLaurent Pinchart2011-10-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 4d9b2ebd335d83044b9e6656d0e604e8e1300334 upstream. The uvc_mc_register_entity() function wrongfully selects the media_entity associated with a UVC entity when creating links. This results in access to uninitialized media_entity structures and can hit a BUG_ON statement in media_entity_create_link(). Fix it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> Cc: Josh Boyer <jwboyer@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* | OMAP: TILER: use correct type for usr_countAndy Gross2011-10-201-1/+2
| | | | | | | | | | | | | | | | Changed usr_count to use correct type so that it will be evaluated correctly. Change-Id: If3d1fbf16b319c29a21af53c67baeff2be0cfba2 Signed-off-by: Andy Gross <andy.gross@ti.com>
* | OMAP: TILER: virt2phys requires taking mm semaphoreAndy Gross2011-09-231-1/+5
| | | | | | | | | | | | | | Get read lock on mm semaphore before doing virt2phys operation Change-Id: I2aa49fd3c392d993b7dbf9083eb461873fc44d1f Signed-off-by: Andy Gross <andy.gross@ti.com>
* | OMAP: TILER: Fix validation of address against vmaAndy Gross2011-09-231-13/+5
| | | | | | | | | | | | | | | | Changed vma validation code to ensure that the user address completely falls within closest vma found by the find_vma. Change-Id: I8686e0baac0159b960bb76406ad557407e3feeb4 Signed-off-by: Andy Gross <andy.gross@ti.com>
* | OMAP: TILER: Add mutex protection around dmac arrayLajos Molnar2011-09-231-0/+7
| | | | | | | | | | | | | | | | | | Both tmm_pin and tmm_unpin use the same dma-contiguous array to save page addresses. Added mutex to protect the array for the current use. Change-Id: I2f3e116e724d732c7605b51064bfa08cce9e04a4 Signed-off-by: Lajos Molnar <molnar@ti.com>
* | OMAP: TILER: Use fixed retries when programming PATAndy Gross2011-09-221-24/+53
| | | | | | | | | | | | | | | | | | Added mutex locking around DMM PAT programming. Also fixed the number of retries when waiting for register accesses to finish. The loops will now poll up to 1ms. Change-Id: I27149d1d44451b97153e6d160130d243dde596a0 Signed-off-by: Andy Gross <andy.gross@ti.com>
* | OMAP: TILER: Correct usage of get_user_pagesAndy Gross2011-09-151-28/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | get_user_pages can return a negative number. That will cause the IF statement to be successful in some error cases. We will then use a bogus page pointer. Changed the code to get all of the user pages in one get_user_page call. If we get some pages, but not all, release the pages we did get. If we get no pages, try to get them from the kernel mappings. Change-Id: I94762582022c77403b14ac21fa42fde0a6237083 Signed-off-by: Andy Gross <andy.gross@ti.com>
* | OMAP: TILER: Use hwmod entry to create dmm/tiler devicesAndy Gross2011-08-291-3/+20
| | | | | | | | | | | | | | | | | | | | | | | | Added creation of devices for dmm through use of hwmod. Added base address and IRQ information into the dmm platform data. The tiler platform device is created after the dmm device to ensure correct sequence for suspend/resume. Use the platform data to intialize dmm device during probe. Change-Id: I19672fb086e5ade023db0118b5b4a7cf70d393af Signed-off-by: Andy Gross <andy.gross@ti.com> Signed-off-by: Iliyan Malchev <malchev@google.com>
* | OMAP: TILER: Add suspend/resume functionality into Tiler driverAndy Gross2011-08-292-13/+41
| | | | | | | | | | | | | | | | | | Added in PM suspend/resume functions into Tiler. On resume, the Tiler will now clear out the DMM PAT using the dummy page and then it will pin in all of the allocations currently tracked in the global blocks. Change-Id: I4ca7a0031a8ee509e7684f2f69954d32d981c69f Signed-off-by: Andy Gross <andy.gross@ti.com>
* | tiler: fix a use-after free errorIliyan Malchev2011-08-221-1/+1
| | | | | | | | Signed-off-by: Iliyan Malchev <malchev@google.com>
* | Merge commit 'v3.0' into linux-omap-3.0Colin Cross2011-08-102-11/+14
|\ \ | |/
| * Merge branch 'v4l_for_linus' of ↵Linus Torvalds2011-07-172-11/+14
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6 * 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: [media] tuner-core: fix a 2.6.39 regression with mt20xx [media] dvb_frontend: fix race condition in stopping/starting frontend [media] media: fix radio-sf16fmr2 build when SND is not enabled [media] MEDIA: Fix non-ISA_DMA_API link failure of sound code [media] nuvoton-cir: make idle timeout more sane [media] mceusb: increase default timeout to 100ms [media] mceusb: Timeout unit corrections [media] Revert "V4L/DVB: cx23885: Enable Message Signaled Interrupts(MSI)"
| | * [media] tuner-core: fix a 2.6.39 regression with mt20xxMauro Carvalho Chehab2011-07-131-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As Simon reported, digital TV broke with mt20xx tuner due to commit ad020dc2fe9039628cf6cef42cd1b76531ee8411. The mt20xx tuner passes V4L2_TUNER_DIGITAL_TV to tuner core. However, the check_mode code now doesn't handle it well. Change the logic there to avoid the breakage, and fix a test for analog-only at g_tuner. Reported-by: Simon Arlott <simon@fire.lp0.eu> Tested-by: Simon Arlott <simon@fire.lp0.eu> Cc: stable@kernel.org Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| | * [media] Revert "V4L/DVB: cx23885: Enable Message Signaled Interrupts(MSI)"Jarod Wilson2011-07-111-7/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit e38030f3ff02684eb9e25e983a03ad318a10a2ea. MSI flat-out doesn't work right on cx2388x devices yet. There are now multiple reports of cards that hard-lock systems when MSI is enabled, including my own HVR-1250 when trying to use its built-in IR receiver. Disable MSI and it works just fine. Similar for another user's HVR-1270. Issues have also been reported with the HVR-1850 when MSI is enabled, and the 1850 behavior sounds similar to an as-yet-undiagnosed issue I've seen with an 1800. CC: stable@kernel.org CC: Steven Toth <stoth@kernellabs.com> CC: Kusanagi Kouichi <slash@ac.auone-net.jp> Signed-off-by: Jarod Wilson <jarod@redhat.com> Acked-by: Andy Walls <awalls@md.metrocast.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* | | OMAP:TILER: Add alloc_debug parameter.Lajos Molnar2011-07-291-2/+52
| | | | | | | | | | | | | | | | | | | | | | | | Setting this parameter to a non-zero value will cause debug prints for each area allocation and freing. Change-Id: Ie1fde463226f3ad031e02648f8bf8f2588df7846 Signed-off-by: Lajos Molnar <molnar@ti.com>
* | | OMAP:TILER: Add debugfs entries for map print.Lajos Molnar2011-07-291-0/+191
| | | | | | | | | | | | | | | | | | | | | | | | Added <debugfs>/tiler/map/* files which contains the TILER container map subsampled. E.g. 4x2 is subsampled horizontally by 4, vertically by 2. Signed-off-by: Lajos Molnar <molnar@ti.com> Change-Id: I61c5c446b6a6c7c8287fd1b25c5205d50343f328
* | | Merge commit 'v3.0-rc7' into linux-omap-3.0Colin Cross2011-07-1229-468/+432
|\ \ \ | |/ /
| * | Merge branch 'v4l_for_linus' of ↵Linus Torvalds2011-07-117-136/+145
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6 * 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: [media] msp3400: fill in v4l2_tuner based on vt->type field [media] tuner-core.c: don't change type field in g_tuner or g_frequency [media] cx18/ivtv: fix g_tuner support [media] tuner-core: power up tuner when called with s_power(1) [media] v4l2-ioctl.c: check for valid tuner type in S_HW_FREQ_SEEK [media] tuner-core: simplify the standard fixup [media] tuner-core/v4l2-subdev: document that the type field has to be filled in [media] v4l2-subdev.h: remove unused s_mode tuner op [media] feature-removal-schedule: change in how radio device nodes are handled [media] bttv: fix s_tuner for radio [media] pvrusb2: fix g/s_tuner support [media] v4l2-ioctl.c: prefill tuner type for g_frequency and g/s_tuner [media] tuner-core: fix tuner_resume: use t->mode instead of t->type [media] tuner-core: fix s_std and s_tuner
| | * [media] msp3400: fill in v4l2_tuner based on vt->type fieldHans Verkuil2011-07-071-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | The vt->type field determines how the msp3400 should fill in the tuner data, not whether the msp3400 is in radio mode or not. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| | * [media] tuner-core.c: don't change type field in g_tuner or g_frequencyHans Verkuil2011-07-071-19/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The tuner core should not silently change the type field in g_tuner and g_frequency. If the tuner is in a different mode than the one that was requested, then just fill in what you can and don't attempt to read afc, signal or rxsubchans values. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| | * [media] cx18/ivtv: fix g_tuner supportHans Verkuil2011-07-072-12/+4
| | | | | | | | | | | | | | | | | | | | | | | | The driver shouldn't override vt->type, and the tuner name should be based on vt->type as well. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| | * [media] tuner-core: power up tuner when called with s_power(1)Hans Verkuil2011-07-071-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Drivers must be able to rely on s_power to power up subdevices. Note that at this moment no driver attempts to power up tuners. This probably isn't surprising since s_power(1) was never implemented in tuner-core.c until now. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| | * [media] v4l2-ioctl.c: check for valid tuner type in S_HW_FREQ_SEEKHans Verkuil2011-07-071-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | Prohibit attempts to change the tuner to a type that is different from the device node the ioctl is called from. I.e. the type must be RADIO for a radio node and ANALOG_TV for a video/vbi node. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| | * [media] tuner-core: simplify the standard fixupHans Verkuil2011-07-071-65/+28
| | | | | | | | | | | | | | | | | | | | | | | | Get rid of a number of unnecessary tuner_dbg messages by simplifying the std fixup function. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| | * [media] tuner-core/v4l2-subdev: document that the type field has to be filled inHans Verkuil2011-07-071-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The tuner ops g_frequency, g_tuner and s_tuner require that the tuner type field is filled in. Document this. The tuner-core doc is based on a patch from Mauro Carvalho Chehab <mchehab@redhat.com>. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| | * [media] bttv: fix s_tuner for radioHans Verkuil2011-07-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix typo: g_tuner should have been s_tuner. Tested with a bttv card. Cc: stable@kernel.org Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>