Hi Gerd,
Some of my users have been complaining about no sound from tvtime.
Specifically, we tried some things with a PixelView Play TV Pro (Model:
PV-BT878P+ rev. 9D), although I got the report also with an ATI TV
Wonder user. If we unmute at startup, then volume works fine, but if I
do my normal routine of mute/unmute on every channel change until signal
is detected, the unmute seems to not work at all. We even tried always
unmuting on every call to my mute function, but it seems that simply
using VIDIOCGAUDIO/VIDIOCSAUDIO too close to channel changes causes us
to not get any sound.
Do you have any insight into why this is happening? User was using
2.4.20 and bttv driver version from this kernel. Thanks!
My mute function, for reference:
void videoinput_do_mute( videoinput_t *vidin, int mute )
{
if( ioctl( vidin->grab_fd, VIDIOCGAUDIO, &(vidin->audio) ) < 0 ) {
fprintf( stderr, "videoinput: Can't get audio settings, no audio on this
card?\n" );
fprintf( stderr, "videoinput: Please post a bug report on "
"http://www.sourceforge.net/projects/tvtime/ and indicate which
card/driver you have.\n" );
fprintf( stderr, "videoinput: Include this error: '%s'\n", strerror( errno ) );
}
if( mute ) {
vidin->audio.flags |= VIDEO_AUDIO_MUTE;
if( ioctl( vidin->grab_fd, VIDIOCSAUDIO, &(vidin->audio) ) < 0 ) {
fprintf( stderr, "videoinput: Can't set audio settings. I have no idea
what "
"might cause this. Post a bug report with your driver info to "
"http://www.sourceforge.net/projects/tvtime/\n" );
fprintf( stderr, "videoinput: Include this error: '%s'\n", strerror( errno
) );
}
} else {
vidin->audio.flags &= ~VIDEO_AUDIO_MUTE;
if( ioctl( vidin->grab_fd, VIDIOCSAUDIO, &(vidin->audio) ) < 0 ) {
fprintf( stderr, "videoinput: Can't set audio settings. I have no idea
what "
"might cause this. Post a bug report with your driver info to "
"http://www.sourceforge.net/projects/tvtime/\n" );
fprintf( stderr, "videoinput: Include this error: '%s'\n", strerror( errno
) );
}
}
}
--
Billy Biggs
[EMAIL PROTECTED]
--
video4linux-list mailing list
Unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/video4linux-list