Thanks for pointing out the other bug. I'm always setting the audio input by 
hand so I had not noticed.

About this one, I didn't know what to do about the audio selection since now 
there is an extra line-in selection which is internal line-in (input 3) so it 
would have to be selected when using video input 1 (svideo2) and 3 (composite 
2)

I think it would be much clearer if the cx25840 was exposing all inputs it 
could support and was not aware of the wm8775. It should also not be aware of 
different type of cards. That should be reserved for a pvr150 section of ivtv 
that would interface with the cx25840 module.

Jean-Francois Thibert

On May 18, 2005 02:12 pm, Bryan Mayland wrote:
> Ok, just one new thread for me today and that's it.  I promise!  :)  I
> knew about this in my last message, but I thought it could use its own
> thread because I don't know what to do about it.
>
> When switching to Composite or S-Video input on a PVR-150, the wrong
> audio input is also automatically selected.  This occurs in the
> VIDIOC_S_INPUT ioctl in ivtv-ioctl.c around line 961.
>                         if (ivtv_get_input(itv, inp)->type ==
>                             V4L2_INPUT_TYPE_TUNER) {
>                                 itv->audio_input_tv = 0;        /* TV
> tuner */
>                         } else {
>                                 itv->audio_input_tv = 1;        /* Line
> in */
>                         }
> Problem is that with the recent patch that corrects the inputs as passed
> to the wm8775 (ref: Jean-Francois Thibert 5/17), the Line In input is
> now 2 for the PVR-150.  Of course, we can just throw code here to set
> audio_input_tv to 2 if using a PVR150 but it seems kinda awkward.
>
> In addition to this, audio_input_radio is set to 2 for all cards (in
> ivtv-driver.c), but the radio input for the PVR150 is now 4.
>
> Sooooo I don't know if both places should be updated to set the proper
> values for audio inputs for the PVR-150, or should the set_audio_input
> function should "reinterpret" the input number.  Until this is fixed,
> we'll probably see a lot of people complaining that when they switch to
> SVideo/Composite that their sound is all F-ed up.
>
> On a side note, audio on the 0.3.4w works great for me even switching
> inputs and changing channels (retail PVR-150 nonMCE tuner 50).
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by Oracle Space Sweepstakes
> Want to be the first software developer in space?
> Enter now for the Oracle Space Sweepstakes!
> http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
> _______________________________________________
> ivtv-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ivtv-devel


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
ivtv-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ivtv-devel

Reply via email to