28.01.2020 18:26, Mark Brown пишет:
On Tue, Jan 28, 2020 at 01:19:17PM +0000, Jon Hunter wrote:
On 28/01/2020 08:59, Ben Dooks wrote:
On 27/01/2020 19:23, Dmitry Osipenko wrote:
27.01.2020 22:20, Dmitry Osipenko пишет: I also suspect that s32 may need some extra patches and thus could be worthwhile to stop advertising it as well.
As far as I am aware that works and we can hit the audio rates for it.
I ran a test on Tegra124 Jetson-TK1 and 24-bit playback seems to work as Ben has indicated. So I don't think it is broken.
Can you try Ben's testcase on Tegra30 (ie. generate a tone using sox and use aplay to play)?
Another test application that's quite useful for this sort of stuff is speaker-test, it generates audio data directly in arbatrary formats and it's part of alsa-utils so if you've got aplay and friends you may already have it already installed.
I tried speaker-test and it doesn't support S24_LE:
# speaker-test -h
speaker-test 1.1.9
Usage: speaker-test [OPTION]... -h,--help help -D,--device playback device -r,--rate stream rate in Hz -c,--channels count of channels in stream -f,--frequency sine wave frequency in Hz -F,--format sample format -b,--buffer ring buffer size in us -p,--period period size in us -P,--nperiods number of periods -t,--test pink=use pink noise, sine=use sine wave, wav=WAV file -l,--nloops specify number of loops to test, 0 = infinite -s,--speaker single speaker test. Values 1=Left, 2=right, etc -w,--wavfile Use the given WAV file as a test sound -W,--wavdir Specify the directory containing WAV files -m,--chmap Specify the channel map to override -X,--force-frequency force frequencies outside the 30-8000hz range -S,--scale Scale of generated test tones in percent (default=80)
Recognized sample formats are: S8 S16_LE S16_BE FLOAT_LE S24_3LE S24_3BE S32_LE S32_BE