oss4: also accept formats not natively supported
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 30 Mar 2010 10:43:04 +0000 (11:43 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 11 May 2010 18:02:55 +0000 (19:02 +0100)
commit59120a02224c92fdab7ff187793841a2e9d90019
tree8b7ea2ad6a8653ebf01519ab00c861f5f7960781
parent3b1347260f58590caf5713a57a65e2db977aee17
oss4: also accept formats not natively supported

Also accept formats that are not natively supported by the
hardware, OSS4 can convert them internally. List the native
formats first in the caps though, to express our preference
for the native formats. We need this in order to support the
case properly where the audio hardware supports only e.g.
little endian PCM, but the host is big endian, since many
audio elements only support native endianness and make the
reasonable assumption that any audiosink will be able to
handle audio in native endianness.

Based on patch by Jerry Tan <jerry.tan@sun.com>

Fixes #614317.
sys/oss4/oss4-audio.c