[alsa-devel] [PATCH v2] pcm: softvol: add support for S24_LE

Takashi Iwai tiwai at suse.de
Mon Sep 18 15:38:13 CEST 2017


On Wed, 13 Sep 2017 16:21:10 +0200,
Jörg Krause wrote:
> 
> Tested with the Wolfson WM8524 DAC on a i.MX6UL board and the following
> ALSA configuration file using the pcm test utility from alsa-lib:
> 
> """
> $ cat /etc/asound.conf
> pcm.!default {
>     type plug
>     slave.pcm "softvol"
> }
> pcm.softvol {
>     type softvol
>     slave {
>         pcm "hw:0"
>     }
>     control {
>         name "Master"
>         card 0
>     }
> }
> ctl.!default {
>     type hw
>     card 0
> }
> ctl.softvol {
>     type hw
>     card 0
> }
> 
> $ pcm -D softvol -o S24_LE -c 2 -r 48000
> """
> 
> The data in the Synchronous Audio Interface (SAI) of the i.MX6UL is
> aligned the following way:
> 
> """
> 31 30 29 28 | 27 26 25 24 | 23 22 21 20 | .. | 3 2 1 0
> ## ## ## ##   ## ## ## ## [           DATA[23:0]       ]
> """
> 
> Signed-off-by: Jörg Krause <joerg.krause at embedded.rocks>
> ---
> v2:
>  * add CONVERT_AREA_S24_LE algorithm instead of using the same one as S32_LE

Thanks, applied.

There can be more generic for S24 in general, but it's OK to take this
as the first step.


Takashi


More information about the Alsa-devel mailing list