CX23885 card Analog/Digital Switch
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
Quoted 10 lines · David T. L. Wong
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.
Quoted 5 lines
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
Signature · 2 lines
Devin J. Heitmueller - Kernel Labs http://www.kernellabs.com
Quoted 18 lines · Devin Heitmueller
Quoted 10 lines · David T. L. Wong
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.Quoted 5 lines
Is there any "Input Selection" hook / callback mechanism to notify the card, the device.
Regards,
David T.L. Wong
Quoted 8 lines
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_overridetree, 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
Quoted 10 lines · David T. L. Wong
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.
Quoted 2 lines
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.
Signature · 2 lines
Steven Toth - Kernel Labs http://www.kernellabs.com