After moving to Linux 2.6, I found I got no audio in lavrec recordings on my MGA-G400TV/Marvel hardware. After fixing a bug in the Marvel drivers, I still found that there was no sound on the 2nd and subsequent lavrec recordings. This was due to an ioctl call in liblavrec.c to mute the audio at the end of a recording that did not (like the un-mute call at the start of recording) first make an ioctl call to fetch the current audio settings. This caused the audio chip volume parameter to be zeroed.
It appears the semantics of set-type V4L ioctl calls is such that they always change every parameter, no matter the flag setting, so that one must fetch the current parameter settings before they are sent back in with changes.
Copying the code for the VIDIOCGAUDIO ioctl call from pre-recording un-mute to post-recording mute does the trick.
Mark
------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users
