Re: [PATCH] [media] drxk: Switch the delivery system on FE_SET_PROPERTY

Antti Palosaari
2011-12-09T19:08:39Z

On 12/09/2011 08:58 PM, Mauro Carvalho Chehab wrote:
> On 09-12-2011 16:26, Antti Palosaari wrote:
>> On 12/09/2011 08:20 PM, Mauro Carvalho Chehab wrote:
>>> The DRX-K doesn't change the delivery system at set_properties,
>>> but do it at frontend init. This causes problems on programs like
>>> w_scan that, by default, opens both frontends.
>>>
>>> Instead, explicitly set the format when set_parameters callback is
>>> called.
>>
>> May I ask why you don't use mfe_shared flag instead?
>
> Tested with it. Works. It takes a little more time to switch, but the
> solution will be cleaner. version 2 will follow.

Yes, there is kind of loop timer which tries to take FE and swithing
takes second or two because it waits FE is freed. I looked it when I did
MFE and I did not understood why it was done like that.

cxd2820r has earlier simple lock (inside of demod driver) that just
returned error immediately when busy. It is a little bit mystery for me
why mfe_shared has that kind of waiting mechanism. Could someone explain
reason for that?

regards
Antti

--