alsa: fix supported format detection
authorTim-Philipp Müller <tim@centricular.net>
Wed, 17 Oct 2012 23:04:06 +0000 (00:04 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Thu, 18 Oct 2012 10:03:07 +0000 (11:03 +0100)
commit1e329bb4f4defcbf4a09200804f338841840b50d
tree2352d2d819b50ae6e430df230f4c127beb5578e0
parent3ee2ad255b09a66e5184de6b9c642158bf4c9089
alsa: fix supported format detection

The format probing code was assuming there'd be one caps
structure for each separate width/depth combination like
we did in 0.10 all over the place: for one, we'd query
unsigned/signed formats together for the same width/height,
and we'd add the entire current structure to the probed
caps when we find a format is supported. Now that we have
all raw formats in a single structure, this is all not going
to work so well any more. We added the entire structure with
all possible formats to the caps if we support just one format.

Fix probing so that we only return the list of actually
supported raw audio formats (with native endianness) from
get_caps().
ext/alsa/gstalsa.c
ext/alsa/gstalsasink.c