Re: Discussion: How to deal with radio tuners which can tune to multiple bands

2012-05-27 Thread Hans de Goede
Hi, Just noticed the following on: http://linuxtv.org/downloads/v4l-dvb-apis/tuner.html#id2570531 This specification does not define radio output devices., iow no radio modulators, but we agreed upon making the band changes to the modulator too, and this makes sense because AFAIK we do support

Re: Discussion: How to deal with radio tuners which can tune to multiple bands

2012-05-27 Thread Hans Verkuil
On Sun May 27 2012 11:06:27 Hans de Goede wrote: Hi, Just noticed the following on: http://linuxtv.org/downloads/v4l-dvb-apis/tuner.html#id2570531 This specification does not define radio output devices., iow no radio modulators, but we agreed upon making the band changes to the

[RFCv1 PATCH 0/5] Add hwseek caps and frequency bands.

2012-05-27 Thread Hans Verkuil
This patch series adds improved hwseek support as discussed here: http://www.mail-archive.com/linux-media@vger.kernel.org/msg45957.html and on irc: http://linuxtv.org/irc/v4l/index.php?date=2012-05-26 From the RFC I have implemented/documented items 1-4 and 6a. I decided not to go with option

[RFCv1 PATCH 1/5] videodev2.h: add new hwseek capability bits.

2012-05-27 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Tell the application whether the hardware seek is bounded and/or wraps around. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- include/linux/videodev2.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/videodev2.h

[RFCv1 PATCH 3/5] S_HW_FREQ_SEEK: set capability flags and return ENODATA instead of EAGAIN.

2012-05-27 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Set the new capability flags in G_TUNER and return ENODATA if no channels were found. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/radio/radio-mr800.c|5 +++-- drivers/media/radio/radio-wl1273.c

[RFCv1 PATCH 4/5] videodev2.h: add frequency band information.

2012-05-27 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- include/linux/videodev2.h | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h index 2339678..013ee46

[RFCv1 PATCH 5/5] V4L2 spec: add frequency band documentation.

2012-05-27 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Based in part on an earlier patch from hallima...@gmail.com. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- Documentation/DocBook/media/v4l/common.xml | 28 -- .../DocBook/media/v4l/vidioc-g-modulator.xml | 38 +---

[RFCv1 PATCH 2/5] v4l2 spec: document the new v4l2_tuner capabilities

2012-05-27 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Update the spec with the new capabilities and specify new error codes for S_HW_FREQ_SEEK. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- .../DocBook/media/v4l/vidioc-g-frequency.xml |6 ++

Re: DVB USB: change USB stream settings dynamically

2012-05-27 Thread Antti Palosaari
On 26.05.2012 01:47, Antti Palosaari wrote: I was planning make DVB USB be able to switch USB streaming parameters dynamically. I mean [struct usb_data_stream_properties] parameters. Currently it reserves USB streaming buffers when device is plugged. Own buffer is reserved for each frontend,

Re: [GIT PULL for v3.5-rc1] media updates for v3.5

2012-05-27 Thread Mauro Carvalho Chehab
Em 25-05-2012 19:38, Stefan Richter escreveu: On May 25 Mauro Carvalho Chehab wrote: A simple way to solve it seems to make those options dependent on CONFIG_EXPERT. Not sure if all usual distributions disable it, but I guess most won't have EXPERT enabled. The enclosed patch does that.

Re: [GIT PULL for v3.5-rc1] media updates for v3.5

2012-05-27 Thread Mauro Carvalho Chehab
Em 27-05-2012 11:47, Mauro Carvalho Chehab escreveu: Em 25-05-2012 19:38, Stefan Richter escreveu: On May 25 Mauro Carvalho Chehab wrote: A simple way to solve it seems to make those options dependent on CONFIG_EXPERT. Not sure if all usual distributions disable it, but I guess most won't

Re: DVB USB: change USB stream settings dynamically

2012-05-27 Thread Gianluca Gennari
Hi Antti, Il 27/05/2012 15:10, Antti Palosaari ha scritto: On 26.05.2012 01:47, Antti Palosaari wrote: I was planning make DVB USB be able to switch USB streaming parameters dynamically. I mean [struct usb_data_stream_properties] parameters. Currently it reserves USB streaming buffers when

[RFC PATCH 1/3] media: reorganize the main Kconfig items

2012-05-27 Thread Mauro Carvalho Chehab
Change the main items to: m Multimedia support --- [ ] Webcams and video grabbers support [ ] Analog TV API and drivers support [ ] Digital TV support [ ] AM/FM radio receivers/transmitters support [ ] Remote Controller support This provides an interface that is clearer

[RFC PATCH 3/3] media: only show V4L devices based on device type selection

2012-05-27 Thread Mauro Carvalho Chehab
After this patch, the MEDIA*_SUPP will be used as a filter, exposing only devices that are pertinent to one of the 3 V4L types: webcam/grabber, radio, analog TV. Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/radio/Kconfig|1 + drivers/media/video/Kconfig

[RFC PATCH 2/3] media: Remove VIDEO_MEDIA Kconfig option

2012-05-27 Thread Mauro Carvalho Chehab
In the past, it was possible to have either DVB or V4L2 core as module and the other as builtin. Such config never make much sense, and created several issues in order to make the Kconfig dependency to work, as all drivers that depend on both (most TV drivers) would need to be compiled as 'm'. Due

[RFC PATCH 0/3] Improve Kconfig selection for media devices

2012-05-27 Thread Mauro Carvalho Chehab
The Kconfig building system is improperly selecting some drivers, like analog TV tuners even when this is not required. Rearrange the Kconfig in a way to prevent that. Mauro Carvalho Chehab (3): media: reorganize the main Kconfig items media: Remove VIDEO_MEDIA Kconfig option media: only

[RFC] file tree rearrangement - was: Re: [RFC PATCH 0/3] Improve Kconfig selection for media devices

2012-05-27 Thread Mauro Carvalho Chehab
Em 27-05-2012 13:56, Mauro Carvalho Chehab escreveu: The Kconfig building system is improperly selecting some drivers, like analog TV tuners even when this is not required. Rearrange the Kconfig in a way to prevent that. Mauro Carvalho Chehab (3): media: reorganize the main Kconfig

Re: [RFC PATCH 1/3] media: reorganize the main Kconfig items

2012-05-27 Thread Hans Verkuil
Just a few typos... On Sun May 27 2012 18:56:41 Mauro Carvalho Chehab wrote: Change the main items to: m Multimedia support --- [ ] Webcams and video grabbers support [ ] Analog TV API and drivers support [ ] Digital TV support [ ] AM/FM radio receivers/transmitters

Re: [RFC PATCH 1/3] media: reorganize the main Kconfig items

2012-05-27 Thread Mauro Carvalho Chehab
Em 27-05-2012 14:15, Hans Verkuil escreveu: Just a few typos... On Sun May 27 2012 18:56:41 Mauro Carvalho Chehab wrote: Change the main items to: m Multimedia support --- [ ] Webcams and video grabbers support [ ] Analog TV API and drivers support [ ] Digital TV support

Re: [RFC] file tree rearrangement - was: Re: [RFC PATCH 0/3] Improve Kconfig selection for media devices

2012-05-27 Thread Hans Verkuil
On Sun May 27 2012 19:13:38 Mauro Carvalho Chehab wrote: Em 27-05-2012 13:56, Mauro Carvalho Chehab escreveu: The Kconfig building system is improperly selecting some drivers, like analog TV tuners even when this is not required. Rearrange the Kconfig in a way to prevent that. Mauro

Re: [RFC PATCH 1/3] media: reorganize the main Kconfig items

2012-05-27 Thread Sylwester Nawrocki
Hi Mauro, On 05/27/2012 06:56 PM, Mauro Carvalho Chehab wrote: Change the main items to: m Multimedia support --- [ ] Webcams and video grabbers support [ ] Analog TV API and drivers support [ ] Digital TV support [ ] AM/FM radio receivers/transmitters support [ ]

Re: [RFCv1 PATCH 1/5] videodev2.h: add new hwseek capability bits.

2012-05-27 Thread Hans de Goede
Looks good: Acked-by: Hans de Goede hdego...@redhat.com On 05/27/2012 01:50 PM, Hans Verkuil wrote: From: Hans Verkuilhans.verk...@cisco.com Tell the application whether the hardware seek is bounded and/or wraps around. Signed-off-by: Hans Verkuilhans.verk...@cisco.com ---

Re: [RFCv1 PATCH 2/5] v4l2 spec: document the new v4l2_tuner capabilities

2012-05-27 Thread Hans de Goede
Small typo, see comment inline, with that fixed: Acked-by: Hans de Goede hdego...@redhat.com On 05/27/2012 01:50 PM, Hans Verkuil wrote: From: Hans Verkuilhans.verk...@cisco.com Update the spec with the new capabilities and specify new error codes for S_HW_FREQ_SEEK. Signed-off-by: Hans

Re: [RFCv1 PATCH 3/5] S_HW_FREQ_SEEK: set capability flags and return ENODATA instead of EAGAIN.

2012-05-27 Thread Hans de Goede
Looks good: Acked-by: Hans de Goede hdego...@redhat.com On 05/27/2012 01:50 PM, Hans Verkuil wrote: From: Hans Verkuilhans.verk...@cisco.com Set the new capability flags in G_TUNER and return ENODATA if no channels were found. Signed-off-by: Hans Verkuilhans.verk...@cisco.com ---

cron job: media_tree daily build: WARNINGS

2012-05-27 Thread Hans Verkuil
This message is generated daily by a cron job that builds media_tree for the kernels and architectures in the list below. Results of the daily build of media_tree: date:Sun May 27 19:00:19 CEST 2012 git hash:5472d3f17845c4398c6a510b46855820920c2181 gcc version: i686-linux-gcc

Re: [RFCv1 PATCH 4/5] videodev2.h: add frequency band information.

2012-05-27 Thread Hans de Goede
Looks good: Acked-by: Hans de Goede hdego...@redhat.com On 05/27/2012 01:50 PM, Hans Verkuil wrote: From: Hans Verkuilhans.verk...@cisco.com Signed-off-by: Hans Verkuilhans.verk...@cisco.com --- include/linux/videodev2.h | 19 +-- 1 file changed, 17 insertions(+), 2

Re: [RFCv1 PATCH 5/5] V4L2 spec: add frequency band documentation.

2012-05-27 Thread Hans de Goede
Hi, Comments inline. On 05/27/2012 01:50 PM, Hans Verkuil wrote: From: Hans Verkuilhans.verk...@cisco.com Based in part on an earlier patch fromhallima...@gmail.com. Signed-off-by: Hans Verkuilhans.verk...@cisco.com --- Documentation/DocBook/media/v4l/common.xml | 28 --

Re: [RFC] file tree rearrangement - was: Re: [RFC PATCH 0/3] Improve Kconfig selection for media devices

2012-05-27 Thread Andy Walls
Hans Verkuil hverk...@xs4all.nl wrote: On Sun May 27 2012 19:13:38 Mauro Carvalho Chehab wrote: Em 27-05-2012 13:56, Mauro Carvalho Chehab escreveu: The Kconfig building system is improperly selecting some drivers, like analog TV tuners even when this is not required. Rearrange the

Re: [RFC] file tree rearrangement - was: Re: [RFC PATCH 0/3] Improve Kconfig selection for media devices

2012-05-27 Thread Mauro Carvalho Chehab
Em 27-05-2012 14:25, Hans Verkuil escreveu: On Sun May 27 2012 19:13:38 Mauro Carvalho Chehab wrote: Em 27-05-2012 13:56, Mauro Carvalho Chehab escreveu: The Kconfig building system is improperly selecting some drivers, like analog TV tuners even when this is not required. Rearrange the

Re: [RFC] file tree rearrangement - was: Re: [RFC PATCH 0/3] Improve Kconfig selection for media devices

2012-05-27 Thread Mauro Carvalho Chehab
Em 27-05-2012 15:47, Andy Walls escreveu: Hans Verkuil hverk...@xs4all.nl wrote: On Sun May 27 2012 19:13:38 Mauro Carvalho Chehab wrote: Em 27-05-2012 13:56, Mauro Carvalho Chehab escreveu: The Kconfig building system is improperly selecting some drivers, like analog TV tuners even when

Re: [PATCH 1/1] [media] s5p-fimc: Add missing static storage class

2012-05-27 Thread Sylwester Nawrocki
On 05/26/2012 05:11 PM, Sachin Kamat wrote: Fixes the following sparse warnings: Hi Sachin. Thanks, in case somebody else applies this patch before I do: Acked-by: Sylwester Nawrocki s.nawro...@samsung.com I would just change the summary line to: s5p-fimc: Add missing static storage class

Re: [RFC/PATCH] media: Add stk1160 new driver

2012-05-27 Thread Ezequiel Garcia
Hi Hans, On Sat, May 26, 2012 at 2:05 PM, Hans Verkuil hverk...@xs4all.nl wrote: Always test your driver using the v4l2-compliance test tool that it part of v4l-utils! If it passes that, then your code will be in really good shape! You're right. I'll add v4l2-compliance output in the next

em28xx: Remote control support for another board

2012-05-27 Thread Martin Blumenstingl
Hello, some days ago I purchased a TerraTec Cinergy HTC Stick HD. Unfortunately the remote control (which came bundled) did not work. I found out that there's no remote control support for that stick/board in the em28xx driver. Thus I wrote two patches: The first one adds remote control support

[PATCH 1/2] [media] em28xx: Add remote control support for Terratec's Cinergy HTC Stick HD.

2012-05-27 Thread Martin Blumenstingl
The Cinergy HTC Stick HD uses the same remote control as the TerraTec Cinergy XS products. --- drivers/media/video/em28xx/em28xx-cards.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/video/em28xx/em28xx-cards.c b/drivers/media/video/em28xx/em28xx-cards.c index

[PATCH 2/2] [media] em28xx: Show a warning if the board does not support remote controls.

2012-05-27 Thread Martin Blumenstingl
This simply shows a little warning if the board does not have remote control support. This should make it easier for users to see if they have misconfigured their system or if the driver simply does not have rc-support for their card (yet). --- drivers/media/video/em28xx/em28xx-input.c |3 +++

Re: [RFC/PATCH] media: Add stk1160 new driver

2012-05-27 Thread Ezequiel Garcia
Hi Sylwester, On Sat, May 26, 2012 at 4:31 PM, Sylwester Nawrocki snj...@gmail.com wrote: You can drop this line, it's overwritten with KERNEL_VERSION in v4l2-ioctl.c. Also I could imagine there might be better names, than dev, for capabilities. Yes, indeed. Starting with cap. +    

Re: [RFC/PATCH] media: Add stk1160 new driver

2012-05-27 Thread Sylwester Nawrocki
Hi Ezequiel, On 05/27/2012 11:32 PM, Ezequiel Garcia wrote: +static int buffer_prepare(struct vb2_buffer *vb) +{ +struct stk1160 *dev = vb2_get_drv_priv(vb-vb2_queue); +struct stk1160_buffer *buf = +container_of(vb, struct stk1160_buffer, vb); + +/* If the

Re: DVB USB: change USB stream settings dynamically

2012-05-27 Thread Antti Palosaari
On 27.05.2012 19:43, Gianluca Gennari wrote: Hi Antti, Il 27/05/2012 15:10, Antti Palosaari ha scritto: On 26.05.2012 01:47, Antti Palosaari wrote: I was planning make DVB USB be able to switch USB streaming parameters dynamically. I mean [struct usb_data_stream_properties] parameters.