void pcm_lr_exchange(void *data, u32 len)
{
s32 valuetemp;
s16 *buf;
buf = data;
len >>= 1; //byte to point
for (u32 i = 0; i < len; i += 2) {
valuetemp = buf[i];
buf[i] = buf[i+1];
buf[i+1] = valuetemp;
}
}
void pcm_lr_exchange(void *data, u32 len)
{
s32 valuetemp;
s16 *buf;
buf = data;
len >>= 1; //byte to point
for (u32 i = 0; i < len; i += 2) {
valuetemp = buf[i];
buf[i] = buf[i+1];
buf[i+1] = valuetemp;
}
}