[alsa-devel] Suspecting a bug in plugin_ops.h

Soulard, MathieuX mathieux.soulard at intel.com
Thu May 26 15:19:15 CEST 2011


Hi all,


I'm using alsalib and I checked its code because of one issue I have.

I did not yet solved my issue, but I think I saw a bug in alsa-lib that I would like to share with you.

It is located in [alsa-lib]/src/pcm/plugin_ops.h in the inline function sx24s().

static inline u_int32_t sx24s(u_int32_t x)
{
        if(x&0x00008000)
                return x|0x000000FF;
        return x&0xFFFFFF00;
}

I think that 0x00008000 should be replaced by 0x00000800.



Thanks
Regards

Mathieu




More information about the Alsa-devel mailing list