[alsa-devel] alsa lib bug in 1.0.24

Scott Jiang scott.jiang.linux at gmail.com
Wed Oct 26 08:32:27 CEST 2011


Hi Takashi and Mark,

When I use ad1836 and ad1938 with alsa lib 1.0.24, there is an error:

root:/> arecord -t wav -c 2 -d 3 -r 48000 -f S32_LE 1.wav
Recording WAVE '1.wav' : Signed 32 bit Little Endian, Rate 48000 Hz, Stereo
arecord: pcm_read:1773: read error: Input/output error

If I use S16_LE and S24_LE there is no error.
The drivers for ad1836 and ad1938 only support S32_LE.
My card config file lists below:

bfin-ad1836.pcm.default {
        @args [ CARD ]
        @args.CARD {
                type string
        }
        type plug
        slave.pcm {
                type mmap_emul
                slave.pcm {
                        type hw
                        card $CARD
                        format S32_LE
                        rate 48000
                }
        }
}

If I used alsa lib 1.0.18, S16_LE, S24_LE and S32_LE are all ok.
Is my config file wrong in new version lib?
It seems if the format is the same as driver supports it will get an error.

Regards,
Scott


More information about the Alsa-devel mailing list