[mythtv] RE: [mythtv-users] SN41G2 (amd) Shuttle and MythTV
kf0yn at mchsi.com
kf0yn at mchsi.com
Wed Apr 2 16:53:58 EST 2003
> In any case, I worked around it by changing one line in
> NuppleVideoRecorder.cpp. Here's the diff:
>
> --- NuppelVideoRecorder.cpp 30 Mar 2003 20:39:04 -0000 1.93
> +++ NuppelVideoRecorder.cpp 2 Apr 2003 07:37:40 -0000
> @@ -1483,7 +1483,7 @@
> buffer = new unsigned char[audio_buffer_size];
>
> /* trigger record */
> - trigger = ~PCM_ENABLE_INPUT;
> + trigger = 0;
> ioctl(afd,SNDCTL_DSP_SETTRIGGER,&trigger);
>
> trigger = PCM_ENABLE_INPUT;
A better way to do it would be this:
ioctl(afd,SNDCTL_DSP_GETTRIGGER,&trigger);
trigger &= ~PCM_ENABLE_INPUT
ioctl(afd,SNDCTL_DSP_SETTRIGGER,&trigger);
trigger |= PCM_ENABLE_INPUT;
ioctl(afd,SNDCTL_DSP_SETTRIGGER,&trigger);
This way, you don't clobber any other bits.
Carl Fongheiser
kf0yn at mchsi.com
More information about the mythtv-dev
mailing list