All of lore.kernel.org
 help / color / mirror / Atom feed
From: Antti Palosaari <crope@iki.fi>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: linux-media@vger.kernel.org,
	Mauro Carvalho Chehab <m.chehab@samsung.com>
Subject: Re: [PATCH RFC 4/4] v4l: 1 Hz resolution flag for tuners
Date: Fri, 13 Dec 2013 21:27:21 +0200	[thread overview]
Message-ID: <52AB5F99.7070405@iki.fi> (raw)
In-Reply-To: <52AB30E9.40209@xs4all.nl>

On 13.12.2013 18:08, Hans Verkuil wrote:
> On 12/13/2013 04:42 PM, Antti Palosaari wrote:
>> On 13.12.2013 16:05, Hans Verkuil wrote:
>>> On 12/12/2013 06:22 PM, Antti Palosaari wrote:

>> I really appreciate that as simply has no enough knowledge from V4L2 API
>> and API changes are needed. I will try to list here shortly some SDR
>> devices in general level enough.
>>
>> ant = antenna
>> host = host computer, PC (SW modulator/demodulator)
>> ADC = analog to digital converter
>> DAC = digital to analog converter
>> amp = amplifier
>> mixer = "TX tuner"
>>
>> receiver:
>> ant <> RF tuner <> ADC <> bridge <> host
>> ant <>ADC <> bridge <> host
>> ant <> up-converter <> RF tuner <> ADC <> bridge <> host
>>
>> transmitter:
>> ant <> amp <> mixer <> DAC <> bridge <> host
>> ant <> mixer <> DAC <> bridge <> host
>> ant <> DAC <> bridge <> host
>>
>> Those are the used building blocks in some general view. ADC (DAC) is
>> most important hardware block, but RF tuner is also critical in practice.
>>
>> So what I understood, V4L2 API "tuner" is kinda logical entity that
>> represent single radio device, containing RF tuner, demodulator and so.
>> That same logical entity in DVB API side is frontend, which is mostly
>> implemented by demodulator with a help of RF tuner.
>>
>> So what is needed is to make V4L2 API entity (tuner I guess) that could
>> represent both ADC and RF tuner.
>
> Well, a V4L2 tuner represents the hardware that requires a frequency.
> Which for typical radio and TV devices means the RF tuner + demodulator
> combo. So externally you see only one tuner, but internally there are
> often two devices (tuner and modulator) that have to be controlled.
>
> For SDR you have an RF Tuner with a frequency and an ADC with a frequency,
> and the two frequencies can be set independently. So representing that
> as two tuners seems like a sensible mapping to me.

Correct. Both RF tuner and ADC are independent each others and both must 
be possible to adjust runtime.

Shortly, all-in-all, I will implement those as a tuner#0 is ADC and 
tuner#1 is RF tuner. Patches with corrections follow soon.

regards
Antti

-- 
http://palosaari.fi/

      reply	other threads:[~2013-12-13 19:27 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-11 23:53 [PATCH RFC 0/4] SDR API set ADC and RF frequency Antti Palosaari
2013-12-11 23:54 ` [PATCH RFC 1/4] v4l2-core: don't clear VIDIOC_G_FREQUENCY tuner type Antti Palosaari
2013-12-11 23:54 ` [PATCH RFC 2/4] v4l2: add new device type for Software Defined Radio Antti Palosaari
2013-12-11 23:54 ` [PATCH RFC 3/4] v4l: add new tuner types for SDR Antti Palosaari
2013-12-12  7:50   ` Hans Verkuil
2013-12-12 17:12     ` Antti Palosaari
2013-12-12 19:14       ` Antti Palosaari
2013-12-13 14:31         ` Hans Verkuil
2013-12-13 13:58       ` Hans Verkuil
2013-12-11 23:54 ` [PATCH RFC 4/4] v4l: 1 Hz resolution flag for tuners Antti Palosaari
2013-12-12  7:55   ` Hans Verkuil
2013-12-12 17:22     ` Antti Palosaari
2013-12-13 14:05       ` Hans Verkuil
2013-12-13 15:42         ` Antti Palosaari
2013-12-13 16:08           ` Hans Verkuil
2013-12-13 19:27             ` Antti Palosaari [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52AB5F99.7070405@iki.fi \
    --to=crope@iki.fi \
    --cc=hverkuil@xs4all.nl \
    --cc=linux-media@vger.kernel.org \
    --cc=m.chehab@samsung.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.