Page MenuHomeFreeBSD

audio/sndio: Fix format selection

Authored by tobik on Mar 28 2017, 1:33 PM.


With incompletely specified parameters the OSS backend will always
fallback to s16le for no good reason.  Replace them with default
values, so the format table lookup can work.  This should fix playback
of 24-bit/32-bit files in e.g. cmus without a running sndiod.

Approved by:	??? (mentor)
Differential Revision:
Test Plan

poudriere testport 10.3/i386 ok
poudriere testport 11.0/amd64 ok

Diff Detail

rP FreeBSD ports repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This revision is now accepted and ready to land.Mar 28 2017, 2:37 PM
This revision was automatically updated to reflect the committed changes.