Created attachment 179395 [details] audio___sndio.diff - Success in opening /dev/dsp* O_RDWR does not mean the device supports play/recording. Add an extra check to see if the requested mode is really supported. - Sndiod cannot currently be started in jails as root, because it tries to setpriority(-20). Allow setpriority to fail and start the daemon anyway. - Fallback to /dev/dsp instead of /dev/dsp0 when using libsndio directly without a running sndiod - Implement sio_setvol in the OSS backend for application level volume control with just libsndio Portlint: ok Synth test log: https://pkg.tobik.me/logs/audio___sndio.log
Take
A commit references this bug: Author: cpm Date: Wed Feb 1 17:04:29 UTC 2017 New revision: 433052 URL: https://svnweb.freebsd.org/changeset/ports/433052 Log: audio/sndio: Various fixes - Success in opening /dev/dsp* O_RDWR does not mean the device supports play/recording. Add an extra check to see if the requested mode is really supported. - sndiod cannot currently be started in jails as root, because it tries to setpriority(-20). Allow setpriority to fail and start the daemon anyway. - Fallback to /dev/dsp instead of /dev/dsp0 when using libsndio directly without a running sndiod. - Implement sio_setvol in the OSS backend for application level volume control with just libsndio. PR: 216571 Submitted by: Tobias Kortkamp <t@tobik.me> (maintainer) Changes: head/audio/sndio/Makefile head/audio/sndio/files/patch-libsndio_sio.c head/audio/sndio/files/patch-libsndio_sio__oss.c head/audio/sndio/pkg-message
Committed! Thanks