* CX23885 card Analog/Digital Switch
@ 2009-09-28 15:54 David T. L. Wong
2009-09-28 16:20 ` Devin Heitmueller
2009-09-28 16:25 ` Steven Toth
0 siblings, 2 replies; 4+ messages in thread
From: David T. L. Wong @ 2009-09-28 15:54 UTC (permalink / raw)
To: linux-media
Hello List,
cx23885 card Magic-Pro ProHDTV Extreme 2, has a cx23885 GPIO pin to
select Analog TV+Radio or Digital TV. How should I add that GPIO setting
code into cx23885?
The current model that all operations goes to FE instead of card is not
very appropriate to model this case.
I thought of adding a callback code for the tuner (XC5000), but my case
is that this behavior is card specific, but not XC5000 generic.
Is there any "Input Selection" hook / callback mechanism to notify the
card, the device.
Regards,
David T.L. Wong
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: CX23885 card Analog/Digital Switch
2009-09-28 15:54 CX23885 card Analog/Digital Switch David T. L. Wong
@ 2009-09-28 16:20 ` Devin Heitmueller
2009-09-28 16:30 ` David T. L. Wong
2009-09-28 16:25 ` Steven Toth
1 sibling, 1 reply; 4+ messages in thread
From: Devin Heitmueller @ 2009-09-28 16:20 UTC (permalink / raw)
To: David T. L. Wong; +Cc: linux-media
On Mon, Sep 28, 2009 at 11:54 AM, David T. L. Wong
<davidtlwong@gmail.com> wrote:
> Hello List,
>
> cx23885 card Magic-Pro ProHDTV Extreme 2, has a cx23885 GPIO pin to
> select Analog TV+Radio or Digital TV. How should I add that GPIO setting
> code into cx23885?
> The current model that all operations goes to FE instead of card is not very
> appropriate to model this case.
> I thought of adding a callback code for the tuner (XC5000), but my case
> is that this behavior is card specific, but not XC5000 generic.
>
> Is there any "Input Selection" hook / callback mechanism to notify the card,
> the device.
>
> Regards,
> David T.L. Wong
You should definitely *not* add a callback to xc5000 (and such a patch
will not be accepted). The best approach may be to look at Michael
Krufky's fe_override tree, which is pending for merge:
http://www.kernellabs.com/hg/~mkrufky/fe_ioctl_override/
Devin
--
Devin J. Heitmueller - Kernel Labs
http://www.kernellabs.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: CX23885 card Analog/Digital Switch
2009-09-28 15:54 CX23885 card Analog/Digital Switch David T. L. Wong
2009-09-28 16:20 ` Devin Heitmueller
@ 2009-09-28 16:25 ` Steven Toth
1 sibling, 0 replies; 4+ messages in thread
From: Steven Toth @ 2009-09-28 16:25 UTC (permalink / raw)
To: David T. L. Wong; +Cc: linux-media
On 9/28/09 11:54 AM, David T. L. Wong wrote:
> Hello List,
>
> cx23885 card Magic-Pro ProHDTV Extreme 2, has a cx23885 GPIO pin to
> select Analog TV+Radio or Digital TV. How should I add that GPIO setting
> code into cx23885?
> The current model that all operations goes to FE instead of card is not
> very appropriate to model this case.
> I thought of adding a callback code for the tuner (XC5000), but my case
> is that this behavior is card specific, but not XC5000 generic.
>
> Is there any "Input Selection" hook / callback mechanism to notify the
> card, the device.
Digital TV is about to have mkrufky's ioctl override patch merged so that the
bridge can be informed before/after a dtv frontend is opened, this is an entry
point for you. The bridge can flip the GPIO on demand based on current hardware
state.
Analog tv entry point could be the hooked into one of the video open ops, such
as video_open(). Likewise, the bridge would be involved.
--
Steven Toth - Kernel Labs
http://www.kernellabs.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: CX23885 card Analog/Digital Switch
2009-09-28 16:20 ` Devin Heitmueller
@ 2009-09-28 16:30 ` David T. L. Wong
0 siblings, 0 replies; 4+ messages in thread
From: David T. L. Wong @ 2009-09-28 16:30 UTC (permalink / raw)
To: Devin Heitmueller; +Cc: linux-media, Steven Toth
Devin Heitmueller wrote:
> On Mon, Sep 28, 2009 at 11:54 AM, David T. L. Wong
> <davidtlwong@gmail.com> wrote:
>> Hello List,
>>
>> cx23885 card Magic-Pro ProHDTV Extreme 2, has a cx23885 GPIO pin to
>> select Analog TV+Radio or Digital TV. How should I add that GPIO setting
>> code into cx23885?
>> The current model that all operations goes to FE instead of card is not very
>> appropriate to model this case.
>> I thought of adding a callback code for the tuner (XC5000), but my case
>> is that this behavior is card specific, but not XC5000 generic.
>>
>> Is there any "Input Selection" hook / callback mechanism to notify the card,
>> the device.
>>
>> Regards,
>> David T.L. Wong
>
> You should definitely *not* add a callback to xc5000 (and such a patch
> will not be accepted). The best approach may be to look at Michael
> Krufky's fe_override tree, which is pending for merge:
>
> http://www.kernellabs.com/hg/~mkrufky/fe_ioctl_override/
>
> Devin
>
Thanks Devin and Steven. I'll will study Michael's tree.
David
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-09-28 16:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-28 15:54 CX23885 card Analog/Digital Switch David T. L. Wong
2009-09-28 16:20 ` Devin Heitmueller
2009-09-28 16:30 ` David T. L. Wong
2009-09-28 16:25 ` Steven Toth
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).