Hi,
I've been trying to use native 24bit and have hit a problem. If I run
arecord -f S24_LE -c 2 -r 48000 -D hw:0,0 | aplay -
All I get is noise. Above is fine with S16_LE and S32_LE.
Since arecord thinks that S24_LE is supported in hardware I would expect it to work.
uname -a reports:
Linux raspberrypi 4.9.60-v7+ #1048 SMP Fri Nov 3 16:05:21 GMT 2017 armv7l GNU/Linux
Native 24bit support
Moderator: flatmax
-
- Posts: 14
- Joined: Tue Oct 31, 2017 3:53 pm
Re: Native 24bit support
Does the codec support it? I forget which codec it is, check the data sheet...
My board arrives today or I would be more help
My board arrives today or I would be more help
Re: Native 24bit support
According to this https://www.cirrus.com/products/wm8731/ yes.
"Stereo 24-bit multi-bit sigma delta ADCs and DACs are used
with oversampling digital interpolation and decimation filters.
Digital audio input word lengths from 16-32 bits and
sampling rates from 8kHz to 96kHz are supported."
"Stereo 24-bit multi-bit sigma delta ADCs and DACs are used
with oversampling digital interpolation and decimation filters.
Digital audio input word lengths from 16-32 bits and
sampling rates from 8kHz to 96kHz are supported."
Re: Native 24bit support [Resolved]
This was caused by a custom .asoundrc file with a softvol. Once I removed it and reverted to a bog standard .asoundrc all is OK.
Bit weird since I was specifying hw:0,0 instead of the plug device. ALSA is a bit weird tho
Bit weird since I was specifying hw:0,0 instead of the plug device. ALSA is a bit weird tho
Re: Native 24bit support
I think if you try to change bit depth with sox after recording you will find that it did record ok ... just that your playback isn't recognising the 24, 3 byte format correctly ...
You can do something like :
sox infile -b 32 outfile
aplay outfile
and it should work - it is an interesting point that you would expect ALSA to be able to handle this ...
Matt
You can do something like :
sox infile -b 32 outfile
aplay outfile
and it should work - it is an interesting point that you would expect ALSA to be able to handle this ...
Matt
Check out our audiophile quality crossovers : https://bit.ly/2kb1nzZ
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector
Who is online
Users browsing this forum: No registered users and 4 guests