]> code.ossystems Code Review - openembedded-core.git/commit
alsa-lib: use get32_labels for multi-source
authorWang Zidan <b50113@freescale.com>
Mon, 4 Aug 2014 03:21:12 +0000 (11:21 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 6 Aug 2014 09:02:39 +0000 (10:02 +0100)
commitaef6f71e68c3ef1d662cda237d85307142a997be
tree1537ac61412ac4db2d1fe7295fa65cf7f298533d
parentfbce4a00b28517336aabe50ccf3faf541093d76c
alsa-lib: use get32_labels for multi-source

The PCM route plugin can assign the destination value from average of
multiple sources with attenuation. This requires the read of each
channel value, sums and writes the resultant value in the requested
format.

get_labels gives the value as is only with endianness and signedness
conversions, but put32_labels assumes that the value is normalized to
32bit int and it shifts down to the dest format. In addition, the
current code lacks get_labels entries for the 24bit formats.

For fixing these bugs, this patch replaces the read with get32_labels
and use always 64bit int for sum.

Signed-off-by: Wang Zidan <b50113@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-multimedia/alsa/alsa-lib/0001-pcm-route-Use-get32-for-multi-source-route-calculati.patch [new file with mode: 0755]
meta/recipes-multimedia/alsa/alsa-lib_1.0.27.2.bb