* Re: comments for DVB LNA API [not found] <4FFC5B4E.8080903@stevekerrison.com> @ 2012-07-10 16:42 ` Steve Kerrison 2012-07-10 21:32 ` Antti Palosaari 0 siblings, 1 reply; 3+ messages in thread From: Steve Kerrison @ 2012-07-10 16:42 UTC (permalink / raw) To: linux-media; +Cc: Antti Palosaari Hi Antti, On 10/07/12 17:20, Antti Palosaari wrote: > I am looking how to implement LNA support for the DVB API. > > What we need to be configurable at least is: OFF, ON, AUTO. > > There is LNAs that support variable gain and likely those will be > sooner or later. Actually I think there is already LNAs integrated to > the RF-tuner that offers adjustable gain. Also looking to NXP catalog > and you will see there is digital TV LNAs with adjustable gain. > > Coming from that requirements are: > adjustable gain 0-xxx dB > LNA OFF > LNA ON > LNA AUTO > > Setting LNA is easy but how to query capabilities of supported LNA > values? eg. this device has LNA which supports Gain=5dB, Gain=8dB, LNA > auto? Without having a sample of device capabilities this question may be irrelevant, but what if the gain is somewhat continuiously configurable vs. discretized? For example can some be configured just for 5,8 and 11, whilst some might have some 8-bit value that controls gain between 5 and 11? > > LNA ON (bypass) could be replaced with Gain=0 and LNA ON with Gain>0, > Gain=-1 is for auto example. How should the API handle differences between the specified gain and the capabilities of the LNA? Round to nearest possible config if it's within the operating range; return error if out of range? > > > > regards > Antti > -- Steve Kerrison MEng Hons. http://www.stevekerrison.com/ ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: comments for DVB LNA API 2012-07-10 16:42 ` comments for DVB LNA API Steve Kerrison @ 2012-07-10 21:32 ` Antti Palosaari 0 siblings, 0 replies; 3+ messages in thread From: Antti Palosaari @ 2012-07-10 21:32 UTC (permalink / raw) To: Steve Kerrison; +Cc: linux-media On 07/10/2012 07:42 PM, Steve Kerrison wrote: > On 10/07/12 17:20, Antti Palosaari wrote: >> I am looking how to implement LNA support for the DVB API. >> >> What we need to be configurable at least is: OFF, ON, AUTO. >> >> There is LNAs that support variable gain and likely those will be >> sooner or later. Actually I think there is already LNAs integrated to >> the RF-tuner that offers adjustable gain. Also looking to NXP catalog >> and you will see there is digital TV LNAs with adjustable gain. >> >> Coming from that requirements are: >> adjustable gain 0-xxx dB >> LNA OFF >> LNA ON >> LNA AUTO >> >> Setting LNA is easy but how to query capabilities of supported LNA >> values? eg. this device has LNA which supports Gain=5dB, Gain=8dB, LNA >> auto? > Without having a sample of device capabilities this question may be > irrelevant, but what if the gain is somewhat continuiously configurable > vs. discretized? For example can some be configured just for 5,8 and 11, > whilst some might have some 8-bit value that controls gain between 5 and > 11? Yes. For example external DVB-T/C LNA NXP BGU7033. It does have 3 modes, 10 dB, 5 dB and bypass -2 dB. LNAs offering more adjustable gain is called VGA (variable gain amplifier). It could have control interface like 5-bits or some other bus like I2C. Those are usually integrated to the silicon RF-tuner and in that case configuration is possible via tuner registers. Usually it is not needed to configure at all on run-time. >> LNA ON (bypass) could be replaced with Gain=0 and LNA ON with Gain>0, >> Gain=-1 is for auto example. > > How should the API handle differences between the specified gain and the > capabilities of the LNA? Round to nearest possible config if it's within > the operating range; return error if out of range? I think rounding is best approach. Maybe it is not necessary to read at all. Just allow user set LNA in steps of one number, 0, 1, 2, 3, ..., 100 and let the driver detect scale. In that case simple LNA having only one static gain value has values: AUTO, 0, 1. LNA having 2 gain levels: AUTO, 0, 1, 2. VGA having 3 bit control: AUTO, 0, 1, 2, 3, 4, 5, 6, 7. regards Antti -- http://palosaari.fi/ ^ permalink raw reply [flat|nested] 3+ messages in thread
* comments for DVB LNA API @ 2012-07-10 16:20 Antti Palosaari 0 siblings, 0 replies; 3+ messages in thread From: Antti Palosaari @ 2012-07-10 16:20 UTC (permalink / raw) To: linux-media I am looking how to implement LNA support for the DVB API. What we need to be configurable at least is: OFF, ON, AUTO. There is LNAs that support variable gain and likely those will be sooner or later. Actually I think there is already LNAs integrated to the RF-tuner that offers adjustable gain. Also looking to NXP catalog and you will see there is digital TV LNAs with adjustable gain. Coming from that requirements are: adjustable gain 0-xxx dB LNA OFF LNA ON LNA AUTO Setting LNA is easy but how to query capabilities of supported LNA values? eg. this device has LNA which supports Gain=5dB, Gain=8dB, LNA auto? LNA ON (bypass) could be replaced with Gain=0 and LNA ON with Gain>0, Gain=-1 is for auto example. regards Antti -- http://palosaari.fi/ ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-07-10 21:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <4FFC5B4E.8080903@stevekerrison.com>
2012-07-10 16:42 ` comments for DVB LNA API Steve Kerrison
2012-07-10 21:32 ` Antti Palosaari
2012-07-10 16:20 Antti Palosaari
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).