Mute/unmute issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



  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
vektor@xxxxxxxxxxxx





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux