Module Name: src Committed By: nakayama Date: Mon May 13 08:50:25 UTC 2019
Modified Files: src/sys/dev/audio: audio.c Log Message: audio_open: On full duplex hardware, the flags passed to hw_if->open() is always (FREAD | FWRITE). But some devices (e.g. uaudio) check its capabilities at open(), so unidirection devices like USB speakers always return EACCES. Avoid open() failure on such devices by checking the capabilities of the device and changing the flags passed to hw_if->open(). To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/dev/audio/audio.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.