Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: Popping sound during playback
#31
(02-11-2020, 10:03 PM)Tim Curtis Wrote: Might be related to this MPD issue
https://github.com/MusicPlayerDaemon/MPD/issues/262

Hi @Tim Curtis, thanks for your prompt answer. I've just read that thread and I think is the same problem but, I'm really sorry for that, I didn't understand how to fix it...
Could you please give me a hint?

Thank you so much 

I have another question:
When I play mp3 or flac I can read on the on screen info, under the cover art, the correct info, like 
"Track 7 • Year 1997 • 24/96 FLAC"...
When I play a dsd, no info are displayed.
Do you know why?

Thanks again
Reply
#32
The particular DSD issue has a status of "Waiting for more information from reporter"

I have a few test DSF files and they are tagged with Artist, Album etc. Maybe the files you have are not tagged?
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#33
(02-12-2020, 01:05 AM)Tim Curtis Wrote: The particular DSD issue has a status of "Waiting for more information from reporter"

I have a few test DSF files and they are tagged with Artist, Album etc. Maybe the files you have are not tagged?

Got it for the DSD popping issue... Basically we have to wait.

For the second issue, I can perfectly read on the display the song tag (artist, title, album); I cannot see displayed the infos about the file type and bitrate: e.g. DSD 64 1bit.


Last but not least: Why the usb dac I have is reported simply as "usb" and isn't propely identifyed?

Thanks Tim.
Reply
#34
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]
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#35
Would alsacap be a better source of naming for usb ?
----------
bob
Reply
#36
It's accessing the same underlying information as aplay. In the two examples below what logic can be used to parse for the correct name?

Code:
pi@rp3:~ $ alsacap
*** Scanning for playback devices ***
Card 0, ID `Katana', name `Allo Katana'
 Device 0, ID `bcm2835-i2s-allo-katana-codec allo-katana-codec.1-0030-0', name `bcm2835-i2s-allo-katana-codec allo-katana-codec.1-0030-0', 1 subdevices (1 available)

pi@rp6:~ $ alsacap
*** Scanning for playback devices ***
Card 0, ID `sndrpihifiberry', name `snd_rpi_hifiberry_dacplusadc'
 Device 0, ID `HiFiBerry DAC+ADC HiFi multicodec-0', name `HiFiBerry DAC+ADC HiFi multicodec-0', 1 subdevices (1 available)
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#37
They're i2s devices.
The users question is about the usb device name....your upcoming 6.4.2 will have alsacap and so report the usb name to the system and audio info tabs ?
----------
bob
Reply
#38
The only diff would be that USB Audio device is on card1. I only have an old ODAC and so I don't know how other USB Audio devices might be named. The ODAC has the names "UAC1 DAC" and "USB Audio". Not very descriptive.

Code:
Card 1, ID `DAC', name `UAC1 DAC'
 Device 0, ID `USB Audio', name `USB Audio', 1 subdevices (1 available)

If u have a couple of USB DAC's, post the alsacap output.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#39
Here's one...

Code:
*** Scanning for playback devices ***
Card 0, ID `P80i', name `Perreaux Audiant 80i'
 Device 0, ID `USB Audio', name `USB Audio', 1 subdevices (1 available)
   2 channels, sampling rate 44100..96000 Hz
   Sample formats: S32_LE
     Subdevice 0, name `subdevice #

Name Perreaux Audiant 80i would be fine... just having a unique (manufacturer) name is preferable to 'USB Audio' but together would show that USB is selected and give some device info for confirmation/troubleshooting..

First hit on your UAC1 DAC...
https://blog.jdslabs.com/tag/uac1/


Will test  some more usb boards when I'm home tonight..Smile
----------
bob
Reply
#40
(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
Hi Tim. 
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
Reply


Forum Jump: