Posts by racko
-
-
speaker-test -t sine -c 2 -r 44100 -F S24_3LE -b 200000 -p 50000 -D iec958:CARD=Audio,DEV=0
Hi Hias, can I run something similar under RPiOS but with 96kHz/24-bit, to check if it's working?
I wasn't able to solve this problem, I have issues using Volumio. I can only stream 44.1/16, I get an error message when I try streaming 96/24. I tried also to stream a mp3 and I received the same error, very strange. FLAC, WAV and ALAC 44.1/16 are working also.
I tried MoOde as well, the same problem as with Volumio. I just don't get it...
-
Or you could try the latest LibreELEC nightly, it enables USB autosuspend (which was accidentally disabled before).
I tried now, everything is the same. No sound over DigiHug USB Audio S/PDIF. I don't know what to do, I still cannot use my Rpi4 because of this issue ...
-
Hi! Any news regarding this issue?
-
Installed on RPi4 and I'm using an external USB DAC which accepts 96kHz/24-bit maximum sample rate.
Using DigiHug USB Audio S/PDIF output (Fixed, Optimized or Best match) I don't have sound at all.
Using DigiHug USB Audio Analog output I have sound but everything is resampled at 48KHz with "Best match"output configuration.
I have tried with 44.1/16, 88.2/24 and 96/24 audio files.
-
Hi! I installed today LibreELEC 9.95.2, still no sound over DigiHug USB Audio S/PDIF.
-
-
With LibreELEC 9.2.6 I have sound on "DigiHug USB Audio S/PDIF" but resampled at 48kHz, the same way as with "DigiHug USB Audio Analog" (tested with audio tracks at 44.1/16 and 96/24).
Here is the log: http://ix.io/2WXq
I also ran the speaker-test, no success:
Code
Display Morelogin as: root root@libreelec's password: ############################################## # LibreELEC # # https://libreelec.tv # ############################################## LibreELEC (official): 9.2.6 (RPi4.arm) LibreELEC:~ # pastekodi http://ix.io/2WXq LibreELEC:~ # systemctl stop kodi LibreELEC:~ # speaker-test -t sine -c 2 -r 44100 -F S24_3LE -b 200000 -p 50000 -D iec958:CARD=Audio,DEV=0 speaker-test 1.1.9 Playback device is iec958:CARD=Audio,DEV=0 Stream parameters are 44100Hz, S24_3LE, 2 channels Sine wave rate is 440.0000Hz Rate set to 44100Hz (requested 44100Hz) Buffer size range from 90 to 174762 Period size range from 45 to 87381 Requested period time 50000 us Requested buffer time 200000 us Unable to set hw params for playback: Input/output error Setting of hwparams failed: Input/output error LibreELEC:~ #
So, on LE 9.2.6 DigiHug USB Audio S/PDIF is working but the problem is that all audio files are resampled at 48kHz with "Best Match" output option.
-
Hi Hias,
I installed LibreELEC-RPi4.arm-10.0-nightly-20210422-a72cc4b.img.gz but unfortunately there is no change, the situation is exactly the same. No sound over DigiHug USB Audio S/PDIF, only with DigiHug USB Audio Analog where everything is resampled at 48kHz.
I ran the speaker-test as you said, no success:
Code
Display Morelogin as: root root@libreelec's password: ############################################## # LibreELEC # # https://libreelec.tv # ############################################## LibreELEC (community): nightly-20210422-a72cc4b (RPi4.arm) LibreELEC:~ # systemctl stop kodi LibreELEC:~ # speaker-test -t sine -c 2 -r 44100 -F S24_3LE -b 200000 -p 50000 -D iec958:CARD=Audio,DEV=0 speaker-test 1.2.4 Playback device is iec958:CARD=Audio,DEV=0 Stream parameters are 44100Hz, S24_3LE, 2 channels Sine wave rate is 440.0000Hz Rate set to 44100Hz (requested 44100Hz) Buffer size range from 90 to 174762 Period size range from 45 to 87381 Requested period time 50000 us Requested buffer time 200000 us Unable to set hw params for playback: Input/output error Setting of hwparams failed: Input/output error LibreELEC:~ #
-
I can hear alternating front left/right test tones.
-
Just installed Raspberry Pi OS on RPi4 and I have sound output over DigiHug USB Audio with both Analog Stereo Output and Digital Stereo (IEC958) Output device profile. The DAC is showing the right sampling rate 44.1kHz in both cases.
I will check the USB firmware on LibreELEC but I have to write LE on the SD card again.
-
Ok, I'll get back roght away with a new log. The previous was after boot, without playing anything.
New log after trying to play three tracks at 44.1/16, 96/24 and 192/24:
-
Do I have to use Kodi to play something or just to boot and save the log?
Here it is: http://ix.io/2WTm
-
Thanks a lot, all I can do is to wait than. I hope it could be solved ...
I was really excited about switching to RPi4 and the audio quality is really important to me.
-
Thanks for testing. Do you have audio when you switch to a "Fixed" sampling rate?
No.
-
USB Audio Analog: The DAC only offers 48kHz on RPi3B+ and RPi4B, so the driver generally works fine.
USB Audio S/PDIF: The DAC offers 96kHz at max. on RPi3B+ and RPi4B, so you should limit the sampling rate to 96kHz, not 192kHz.
Make sure you have your DAC attached to a blue USB port, because that ensures max. data rate.
RPi3 is working just fine with 192kHz sampling rate limit. I tried anyway with 96kHz limit on RPi4, no change.
The problem is that I don't have sound at all (not even GUI sounds) on RPi4 through USB Audio S/PDIF, with identical settings with RPi3. So it's not about the sampling rate limit. And on RPi4 the DAC is displaying 48kHz instead of 44.1kHz right after the boot, when nothing is playing - which is not normal.
I attached the DAC to both USB 2.0 and USB 3.0 on my RPi4, no sound. And USB 2.0 is anyway sufficient for data rate even for 192kHz/24-bit audio files. As I said, my RPi3 is working perfect up to 192/24 and it has only USB 2.0.
-
You DAC advertises the following
Code
Display More2021-04-20 20:36:14.044 T:1178 INFO <general>: Device 5 2021-04-20 20:36:14.044 T:1178 INFO <general>: m_deviceName : @:CARD=Audio,DEV=0 2021-04-20 20:36:14.044 T:1178 INFO <general>: m_displayName : DigiHug USB Audio 2021-04-20 20:36:14.044 T:1178 INFO <general>: m_displayNameExtra: Analog 2021-04-20 20:36:14.044 T:1178 INFO <general>: m_deviceType : AE_DEVTYPE_PCM 2021-04-20 20:36:14.044 T:1178 INFO <general>: m_channels : FL, FR 2021-04-20 20:36:14.044 T:1178 INFO <general>: m_sampleRates : 48000 2021-04-20 20:36:14.044 T:1178 INFO <general>: m_dataFormats : AE_FMT_S16NE,AE_FMT_S16LE 2021-04-20 20:36:14.045 T:1178 INFO <general>: m_streamTypes : No passthrough capabilities 2021-04-20 20:36:14.045 T:1178 INFO <general>: Device 6 2021-04-20 20:36:14.045 T:1178 INFO <general>: m_deviceName : iec958:CARD=Audio,DEV=0 2021-04-20 20:36:14.045 T:1178 INFO <general>: m_displayName : DigiHug USB Audio 2021-04-20 20:36:14.045 T:1178 INFO <general>: m_displayNameExtra: S/PDIF 2021-04-20 20:36:14.045 T:1178 INFO <general>: m_deviceType : AE_DEVTYPE_IEC958 2021-04-20 20:36:14.045 T:1178 INFO <general>: m_channels : FL, FR 2021-04-20 20:36:14.045 T:1178 INFO <general>: m_sampleRates : 8000,16000,32000,44100,48000,96000 2021-04-20 20:36:14.045 T:1178 INFO <general>: m_dataFormats : AE_FMT_RAW,AE_FMT_S24NE3,AE_FMT_S16NE,AE_FMT_S16LE 2021-04-20 20:36:14.045 T:1178 INFO <general>: m_streamTypes : STREAM_TYPE_AC3,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_512
Which tells me that the Analog device only supports 48kHz. The iec958 (spdif) supports up to 96kHz. So someone is lying
My mistake, sorry, I was a bit tired ... This is what I have:
Both RPi3 and RPi4:- Output configuration - Best match
- Limit sampling rate - 192kHz
Outcome (I underlined the differences):
RPi3
1. DigiHug USB Audio Analog: everything is resampled at 48kHz. After boot, without playing anything, the DAC shows 48kHz.
2. Digi USB Audio S/PDIF: everything OK, 44.1kHz and 96kHz are passed away without resampling. After boot, without playing anything, the DAC shows 44.1kHz).
RPi4:
1. DigiHug USB Audio Analog: everything is resampled at 48kHz. After boot, without playing anything, the DAC shows 48kHz.
2. Digi USB Audio S/PDIF: no sound at all. After boot, without playing anything, the DAC shows 48kHz.
The DAC only offers 48kHz (device 5), so it could be a driver problem.
I bet on your RPi3B+ the DAC offers more sampling rates. Can you check this please?
Attached are the logs of RPi3 and RPi4, both with same settings below:
- DigiHug USB Audio S/PDIF
- Output configuration - Best match
- Limit sampling rate - 192kHz
To summarize:
- DigiHug USB Audio Analog: both RPi3 and RPi4 are resampling everything at 48kHz (probably that is how it is supposed to be)
- DigiHug USB Audio S/PDIF: RPi3 is working as it should and the DAC is displaying 44.1kHz at boot. RPi4 has no audio output at all (not even GUI sounds) and the DAC is displaying 48kHz at boot.
Thanks for help!
-
I think I figured it out, see attached. Are these ok?