When I run the company’s own qt application, the following message appears.
Failed to open ALSA sound device for input plughw:1,0 (Device or resource busy)
When I do the speaker-test, there is a beeping sound from side to side.
speaker-test -D hw:tegrasndt210ref,0 -c 2 -r 48000 -F S32_LE -t sine -f 500
Do you have an ‘/etc/asound.conf’ file? If so can you show the contents of this file?
Also what does the command ‘pacmd list-sinks’ show?
The ‘Device or resource busy’ usually means that something else like pulseaudio is using the audio device. Pulseaudio is the audio service that Ubuntu uses for playing audio and so if you want to play audio from a browser you need this. Can you direct the qt application to use pulse instead (aplay -D pulse)?
Yes S16_LE is 16-bit and not 32-bit. However, looking at the codec it appears to support both 24-bit and 16-bit audio and so I was wondering if 16-bit works.
I am a bit confused above you said …
Do you mean S16_LE here? I assume that S32_LE works fine. Please can you confirm?
In the article I quoted above, I only hear noise when I run the three commands Jonathan gave me. However, unlike normal noise, it seems that something can be heard left and right, but it is difficult to express it in words.
Thanks for the update. Great to hear the youtube is working.
I have observed the ‘Device or resource busy’ message from time to time and when I have seen this it is because pulseaudio is using the device. I have verified that by disabling pulseaudio temporarily. However, you need pulseaudio for applications like youtube to work and so that is not a solution that will work for you.
Is the device plughw:1,0 definitely the codec? I recommend that people use the soundcard name where possible because the order in which sound cards are registered could change. So better to use plughw:tegrasndt210ref,0.
Have you tried using pulse:tegrasndt210ref,0 instead of plughw:tegrasndt210ref,0 to see if this helps?