Thank you for your donation!


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


Solved: CamillaDSP - MPD unable to play flat.yml
#3
I've done some more troubleshooting using bitlab's guide pt1- no progress but hopefully this helps someone more knowledgable than me!

The camillagui service wasn't running, when I did

Code:
systemctl list-unit-files

I've now made that start, using the following and confirmed it is enabled when the rpi is rebooted.  

Code:
sudo systemctl enable camillagui.service

Unfortunately, Moode config for CamillaDSP still is unchanged, with the backend offline (same as before, it changes after a second or so).

I've then tried to run CamillaDSP directly, using the v0.5 beta 6 download from github.  I've also checked all the dependencies and they are all there (as expected).

I've then checked the capabilities under alsa for my device (USBStreamer).Max sample rate is 192000

Code:
alsacap
*** Scanning for playback devices ***
Card 0, ID `b1', name `bcm2835 HDMI 1'
 Device 0, ID `bcm2835 HDMI 1', name `bcm2835 HDMI 1', 4 subdevices (4 available)
   1..8 channels, sampling rate 8000..192000 Hz
   Sample formats: U8, S16_LE
   Buffer size range from 80 to 131072
   Period size range from 80 to 131072

     Subdevice 0, name `subdevice #0'
     Subdevice 1, name `subdevice #1'
     Subdevice 2, name `subdevice #2'
     Subdevice 3, name `subdevice #3'
Card 1, ID `Headphones', name `bcm2835 Headphones'
 Device 0, ID `bcm2835 Headphones', name `bcm2835 Headphones', 4 subdevices (4 available)
   1..8 channels, sampling rate 8000..192000 Hz
   Sample formats: U8, S16_LE
   Buffer size range from 80 to 131072
   Period size range from 80 to 131072

     Subdevice 0, name `subdevice #0'
     Subdevice 1, name `subdevice #1'
     Subdevice 2, name `subdevice #2'
     Subdevice 3, name `subdevice #3'
Card 2, ID `USBStreamer', name `USBStreamer'
 Device 0, ID `USB Audio', name `USB Audio', 1 subdevices (1 available)
   8 channels, sampling rate 44100..192000 Hz
   Sample formats: S16_LE, S32_LE
   Buffer size range from 12 to 65536
   Period size range from 6 to 32768

However, the camilladsp config file has a max sample rate of 384000, so i've commented those out of the config file.


Code:
cat /etc/alsa/conf.d/camilladsp.conf
# For more info about this configuration file see: https://github.com/scripple/alsa_cdsp
pcm.camilladsp {
   type cdsp
   cpath "/usr/local/bin/camilladsp"
   config_out "/usr/share/camilladsp/working_config.yml"

   # config_cdsp says to use the new CamillaDSP internal substitutions.
   # When config_cdsp is set to an integer != 0 the hw_params and
   # extra samples are passed to CamillaDSP on the command line as
   # -f format -r samplerate -n channels -e extra_samples
   config_cdsp 1

####################################
# Set the values for your DAC here #
####################################
   min_channels 1
   max_channels 8
   rates = [
       44100
       48000
       88200
       96000
       176400
       192000
       #352800
       #384000
   ]

###############################################
# Uncomment the following lines,              #
# if you want more detailed logging output in #
# /var/log/mpd/log                            #
###############################################
  cargs [
#        -v
       -p "1234"
       -a "0.0.0.0"
  ]

Despite all this, when i run the (downloaded 0.5 beta 6) camilla DSP, it still gives the same error when i point it to flat.yml, irrespective of whether I limit the same rate and channels, or just go with the defaults.


Code:
camilladsp /usr/share/camilladsp/working_config.yml
Apr 21 04:57:27.482 ERRO Playback error: ALSA function 'snd_pcm_hw_params_set_channels' failed with error 'EINVAL: Invalid argument', module: camilladsp
Apr 21 04:57:27.483 INFO Playback thread has already stopped., module: camillalib::processing

Code:
#Verbose Mode, with 2 channels and limited to 44100 sample rate
~/camdsp $ camilladsp -v -n 2 -r 44100 /usr/share/camilladsp/working_config.yml
Apr 21 04:59:02.351 DEBG Read config file Some("/usr/share/camilladsp/working_config.yml"), module: camilladsp
Apr 21 04:59:02.352 DEBG Apply override for samplerate: 44100, module: camillalib::config
Apr 21 04:59:02.353 DEBG Samplerate changed, adjusting chunksize: 4096 -> 4096, module: camillalib::config
Apr 21 04:59:02.354 DEBG Scale extra samples: 0 -> 0, module: camillalib::config
Apr 21 04:59:02.354 DEBG Apply override for capture channels: 2, module: camillalib::config
Apr 21 04:59:02.354 DEBG Config is valid, module: camilladsp
Apr 21 04:59:02.355 DEBG Wait for config, module: camilladsp
Apr 21 04:59:02.355 DEBG Config ready, module: camilladsp
Apr 21 04:59:02.356 DEBG Using channels [true, true], module: camilladsp
Apr 21 04:59:02.357 DEBG Build new pipeline, module: camillalib::filters
Apr 21 04:59:02.357 DEBG build filters, waiting to start processing loop, module: camillalib::processing
Apr 21 04:59:02.358 DEBG Capture thread ready to start, module: camilladsp
Apr 21 04:59:02.359 ERRO Playback error: ALSA function 'snd_pcm_hw_params_set_channels' failed with error 'EINVAL: Invalid argument', module: camilladsp
Apr 21 04:59:02.360 DEBG Error while starting, release barrier, module: camilladsp
Apr 21 04:59:02.360 DEBG Wait for capture thread to exit.., module: camilladsp
Apr 21 04:59:02.361 DEBG starting captureloop, module: camillalib::filedevice
Apr 21 04:59:02.362 DEBG starting captureloop, module: camillalib::filedevice
Apr 21 04:59:02.363 DEBG Exit message received, sending EndOfStream, module: camillalib::filedevice
Apr 21 04:59:02.363 INFO Playback thread has already stopped., module: camillalib::processing
Apr 21 04:59:02.364 DEBG Restarting with new config, module: camilladsp
Apr 21 04:59:02.364 DEBG Wait for config, module: camilladsp
Apr 21 04:59:02.365 DEBG No config and not in wait mode, exiting!, module: camilladsp


Hope someone can assist, as I'm runnng out of ideas!
Reply


Messages In This Thread
RE: CamillaDSP - MPD unable to play flat.yml - by gingerbeer - 04-21-2021, 09:12 AM

Forum Jump: