02-14-2020, 09:09 AM
(02-12-2020, 01:08 PM)Tim Curtis Wrote: I'm not able to repro "I cannot see displayed the infos about the file type and bitrate: e.g. DSD 64 1bit." My test DSF file is DSD64 format that's decoded to DoP and played on a Katana DAC.
Post the output from the command below while your file is playing and I'll have a look.
Code:cat /proc/asound/card1/pcm0p/sub0/hw_params
I used to maintain a table of USB Audio device names but it became too time consuming to update because there are just too many of them and new ones are frequently being released so I reverted to just "USB Audio device". I suppose I could try to parse the name from the output of aplay -l command but IIRC the name is often not a well formed product name and in a fixed location in the output. See examples below for a couple of I2S DAC's.
Code:card 0: Katana [Allo Katana], device 0: bcm2835-i2s-allo-katana-codec allo-katana-codec.1-0030-0 [bcm2835-i2s-allo-katana-codec allo-katana-codec.1-0030-0]
card 0: sndrpihifiberry [snd_rpi_hifiberry_dacplusadc], device 0: HiFiBerry DAC+ADC HiFi multicodec-0 [HiFiBerry DAC+ADC HiFi multicodec-0]
Code:
Audio Information
INPUT / OUTPUT
Source: USB/saitama/DSD/Jacintha - Autumn Leaves The Songs of Johnny Mercer/10 - Jacintha - Moon River.dsf
Encoded at: DSD64, 1 bit, 5.644 Mbps Stereo
Decoded to: DoP 24 bit 176.4 kHz, Stereo, 8.467 Mbps
Destination: Local
Output rate: 32 bit, 176.4 kHz, Stereo, 11.290 Mbps
DSP OPERATIONS
Volume ctl: Software (MPD 32-bit float with dither)
Resampling: off
Polarity inv: off
Crossfade: off
Crossfeed: off
Parametric EQ: off
Graphic EQ: off
Replaygain: off
Normalize vol: off
Chip options: None
AUDIO DEVICE
Device: USB audio device
Chip:
Interface: USB
Formats: Unable to determine formats
Platform: Pi-3B+ 1GB v1.3
This is what I've got.
1) playing a DSD
pi@moode:~ $ cat /proc/asound/card1/pcm0p/sub0/hw_params
access: RW_INTERLEAVED
format: S32_LE
subformat: STD
channels: 2
rate: 176400 (176400/1)
period_size: 22050
buffer_size: 88200
2) Playing a flac
pi@moode:~ $ cat /proc/asound/card1/pcm0p/sub0/hw_params
access: RW_INTERLEAVED
format: S32_LE
subformat: STD
channels: 2
rate: 44100 (44100/1)
period_size: 5513
buffer_size: 22050
As you can see there'n no bitrate/freq shown
below the aplay -l
pi@moode:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
Subdevices: 7/7
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 IEC958/HDMI [bcm2835 IEC958/HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: ALSA [bcm2835 ALSA], device 2: bcm2835 IEC958/HDMI1 [bcm2835 IEC958/HDMI1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: D50 [D50], device 0: USB Audio [USB Audio]
Subdevices: 0/1
Subdevice #0: subdevice #0
Last question:
Do you know how to show on the display the filetype aswell?
Thanks