Re: [PATCH RFC v3 6/7] rtl2832_sdr: convert to SDR API

Hans Verkuil
2013-12-19T09:21:53Z

On 12/16/2013 11:08 PM, Antti Palosaari wrote:
> It was abusing video device API. Use SDR API instead.
>
> Signed-off-by: Antti Palosaari <crope@iki.fi>
> ---
> drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c | 291 ++++++++++++++++++-----
> 1 file changed, 227 insertions(+), 64 deletions(-)
>

A question: does this driver only do SDR, or does it also
do 'regular' video and/or radio?

If it does, then how does it switch from one tuner mode to another?

E.g. from ANALOG_TV to RADIO to SDR?

During the Barcelona summit in 2012 we discussed this. See the last two
slides of my presentation:

http://linuxtv.org/downloads/presentations/media_ws_2012_EU/ambiguities2.odp

Basically this proposal was accepted provided that the code to handle tuner
ownership should be shared between DVB and V4L2.

I made an initial attempt for this here:

http://git.linuxtv.org/hverkuil/media_tree.git/shortlog/refs/heads/tuner

I never had the time to continue with it, but it might be useful for rtl2832.

Regards,

Hans