I get no sound after using pactl or gnome-shell to change the volume, regardless of the value of the volume. I find the volume of pcm, which can be showed by 'mixer' command, is always set to 0 after using pactl. A patch is available in FreeBSD ports: http://svnweb.freebsd.org/ports/head/audio/pulseaudio/files/patch-src_modules_oss_module-oss.c?revision=372768&view=markup
Thanks for reporting. The link you gave points to a PulseAudio change, but the change is part of a bigger commit: http://svnweb.freebsd.org/ports?view=revision&revision=372768 Is only that small part required to fix the volume problem?
Hmm, actually this seems to be the original commit: http://svnweb.freebsd.org/ports?limit_changes=0&view=revision&revision=237576 Revision 372768 just adds a comment to the old patch. The original patch was committed by "marcus", do you know the full name and email address of "marcus"? Those would be useful for the git commit authorship information.
Yes, only the patch for src/modules/oss/module-oss.c is needed. I tested using the master branch. The name and email of "marcus" can be found on this web page: http://www.freebsd.org/gnome/contact.html
Now that I looked more closely at what the patch does, the first part (adding #ifndef __FreeBSD__) doesn't make sense to me. However, the mixer fd fix is obviously good. I'll apply the mixer fd fix. If you really need the first part of the patch too, I'll apply it separately, if you can explain why it's needed. I'm closing this bug, please reopen if necessary.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.