Hi Alexandre, Do you know if any applications in ports use /dev/sound as default audio device. Maybe they are not smart enough to try /dev/audio if /dev/sound fails.
- Michael On Thu, Sep 08, 2016 at 08:12:45AM +0200, Alexandre Ratchov wrote: > As audio(4) manual says "In all respects /dev/audio and /dev/sound > are identical". Only one of them is needed and this diff is to > remove /dev/sound. > > OK? > > Index: etc/MAKEDEV.common > =================================================================== > RCS file: /cvs/src/etc/MAKEDEV.common,v > retrieving revision 1.91 > diff -u -p -u -p -r1.91 MAKEDEV.common > --- etc/MAKEDEV.common 4 Sep 2016 15:38:59 -0000 1.91 > +++ etc/MAKEDEV.common 8 Sep 2016 05:48:20 -0000 > @@ -418,13 +418,11 @@ _mkdev(acpi, acpi*, {-M acpi c major_acp > __devitem(pctr, pctr*, PC Performance Tuning Register access device)dnl > _mkdev(pctr, pctr, {-M pctr c major_pctr_c 0 644-})dnl > __devitem(au, audio*, Audio devices,audio)dnl > -_mkdev(au, audio*, {-M sound$U c major_au_c $U > +_mkdev(au, audio*, {-M audio$U c major_au_c $U > M mixer$U c major_au_c Add($U, 16) > - M audio$U c major_au_c Add($U, 128) > M audioctl$U c major_au_c Add($U, 192) > MKlist[${#MKlist[*]}]=";[ -e audio ] || ln -s audio$U audio" > MKlist[${#MKlist[*]}]=";[ -e mixer ] || ln -s mixer$U mixer" > - MKlist[${#MKlist[*]}]=";[ -e sound ] || ln -s sound$U sound" > MKlist[${#MKlist[*]}]=";[ -e audioctl ] || ln -s audioctl$U > audioctl"-})dnl > __devitem(vi, video*, Video V4L2 devices,video)dnl > _mkdev(vi, video*, {-M video$U c major_vi_c $U 600 > Index: share/man/man4/audio.4 > =================================================================== > RCS file: /cvs/src/share/man/man4/audio.4,v > retrieving revision 1.74 > diff -u -p -u -p -r1.74 audio.4 > --- share/man/man4/audio.4 8 Sep 2016 05:18:20 -0000 1.74 > +++ share/man/man4/audio.4 8 Sep 2016 05:48:20 -0000 > @@ -53,14 +53,11 @@ underlying hardware configuration suppor > .Pp > There are four device files available for audio operation: > .Pa /dev/audio , > -.Pa /dev/sound , > .Pa /dev/audioctl , > and > .Pa /dev/mixer . > .Pa /dev/audio > -and > -.Pa /dev/sound > -are used for recording or playback of digital samples. > +is used for recording or playback of digital samples. > .Pa /dev/mixer > is used to manipulate volume, recording source, or other audio mixer > functions. > @@ -68,10 +65,10 @@ functions. > accepts the same > .Xr ioctl 2 > operations as > -.Pa /dev/sound , > +.Pa /dev/audio , > but no other operations. > In contrast to > -.Pa /dev/sound , > +.Pa /dev/audio , > which has the exclusive open property, > .Pa /dev/audioctl > can be opened at any time and can be used to read the > @@ -80,18 +77,11 @@ device variables while it is in use. > .Sh SAMPLING DEVICES > When > .Pa /dev/audio > -or > -.Pa /dev/sound > is opened, it attempts to maintain the previous audio sample format and > record/playback mode. > In addition, if it is opened read-only > (write-only) the device is set to half-duplex record (play) mode with > recording (playing) unpaused. > -In all respects > -.Pa /dev/audio > -and > -.Pa /dev/sound > -are identical. > .Pp > Only one process may hold open a sampling device at a given time > (although file descriptors may be shared between processes once the > @@ -514,7 +504,6 @@ string values. > .Bl -tag -width /dev/audioctl -compact > .It Pa /dev/audio > .It Pa /dev/audioctl > -.It Pa /dev/sound > .It Pa /dev/mixer > .El > .Sh SEE ALSO >