[oe-commits] Wang Zidan : alsa-lib: use get32_labels for multi-source

git at git.openembedded.org git at git.openembedded.org
Mon Aug 4 15:26:30 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: 8a4c13974d26d8870b49e77f2b1c27cbc30ed996
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=8a4c13974d26d8870b49e77f2b1c27cbc30ed996

Author: Wang Zidan <b50113 at freescale.com>
Date:   Mon Aug  4 11:21:12 2014 +0800

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 at freescale.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 ...se-get32-for-multi-source-route-calculati.patch | 345 +++++++++++++++++++++
 meta/recipes-multimedia/alsa/alsa-lib_1.0.27.2.bb  |   3 +-
 2 files changed, 347 insertions(+), 1 deletion(-)

Diff:   http://git.openembedded.org/?p=openembedded-core.git/?a=commitdiff;h=8a4c13974d26d8870b49e77f2b1c27cbc30ed996


More information about the Openembedded-commits mailing list