Thank you for your donation!


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


CamillaDSP forgets the filter settings after reboot
#1
This happens on a Raspberry Pi, integrated in a Okto Research dac8 stereo.

When I reboot moOde, I see an error on the DSP page that my config file is invalid.
   

When I go to the CamillaDSP options, I see the filters tab changed to RAW (from WAV) and a wrong format.
   

I then need to fiddle a bit with the save button to get the error to disappear. I probably do not understand the workflow yet but it takes me some tries to get the error to disappear.

To me it seems like the "Apply to CDSP" button in the CamillaDSP settings does not work (or at least not how I'd expect):
1. I fix the bad settings so that the error disappears and hit "Apply to CDSP".
2. I go back by clicking on the back arrow.
3. I hit on "save" on top left
4 error appears again. I need to go back to step 1. It seems like the settings cannot be stored to "quick convolution filter".
Reply
#2
The quick convolution config generates a config called "Quick convolution filter". That configuration shouldn't be edit by hand or with the pipeline editor, because it will be overwrite by moOde. So that explains a little bit of the behaviour you are experiencing.

But the main issue is here of course that the quick convolution config shouldn't have problems.
Based on your screenshot I see that fragments of an old template config (the warning about __IR_FORMAT__) which was used with moOde 7.2 not with 7.3.

To be sure that you have used it way it is excepted; steps are below.
First will we check the basic functionality.
Next we will regenerate the quick convolution config (to see it it was up2date or something is wrong with the template).

basic check:
  1. open the moode camilladsp config page
  2. select the "flat" configuration
  3. press save
  4. and play some music
next:
  1. open the moode camilladsp config page again
  2. select the "Quick convolution filter" configuration
  3. set the correct Quick convolution filter configuration: gain/ir left /ir right/ format (don't use the pipeline editor!)
  4. press save
  5. and play some music
If this didn't go well, please lets us know:
  • if you still get the messages about the __IR__FORMAT__
  • is moode fresh installed or updated
  • did you restore any files after the install /update like /usr/share/camilladsp
-----------------------------------------------------------------------------------------------------------------
@Tim Curtis to be sure; expected is that the in place update also has updated the following files:
  • /usr/share/camilladsp/__config_template__.yml  
  • /usr/share/camilladsp/__quick_convolution__.yml
Can you confirm?
Reply
#3
Yes, entire default /usr/share/camilladsp files were part if the update. Below are the two yml files in question.

config_template
Code:
devices:
 samplerate: 44100
 chunksize: 4096
 queuelimit: 1
 capture:
   type: File
   channels: 2
   filename: "/dev/stdin"
   format: S16LE
 playback:
   type: Alsa
   channels: 2
   device: "plughw:0,0"
   format: S16LE
filters:
   mastergain:
       type: Gain
       parameters:
           gain: 0
pipeline:
 - type: Filter
   channel: 0
   names:
     - mastergain
 - type: Filter
   channel: 1
   names:
     - mastergain
     

quick_convolution
Code:
devices:
 samplerate: 44100
 chunksize: 4096
 queuelimit: 1
 capture:
   type: File
   channels: 2
   filename: "/dev/stdin"
   format: S16LE
 playback:
   type: Alsa
   channels: 2
   device: "plughw:0,0"
   format: S16LE
filters:
   mastergain:
       type: Gain
       parameters:
           gain: __IR_GAIN__
   ir_left:
     type: Conv
     parameters:
       type: __IR_TYPE__
       filename: __IR_LEFT__
       __IR_PARAMS_L__
   ir_right:
     type: Conv
     parameters:
       type: __IR_TYPE__
       filename: __IR_RIGHT__
       __IR_PARAMS_R__
mixers:
 stereo:
   channels:
     in: 2
     out: 2
   mapping:
     - dest: 0
       sources:
         - channel: 0
           gain: 0
           inverted: false
     - dest: 1
       sources:
         - channel: 1
           gain: 0
           inverted: false
pipeline:
 - type: Mixer
   name: stereo
 - type: Filter
   channel: 0
   names:
     - mastergain
     - ir_left
 - type: Filter
   channel: 1
   names:
     - mastergain
     - ir_right
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#4
@Tim Curtis thanks for checking.
Reply
#5
@bitlab

I followed your recommended procedure from post #2 and all now works as it should. I'm confused, but thanks anyway!

EDIT: Correction to the above. I selected Quick Config Filter in the Camilla Config page, but I hadn't selected it in the Audio Config. Now that I have done that I again get the error message 'Config is not valid' etc.
Reply
#6
@jonners it shouldn't matter where you select the active config; on the moOde audio page(+set button) or moOde camilladsp config page(+save button) , both point to the same setting. But if it matters we will have investigate that.
Reply
#7
@jonners I tried to reproduce the error by installing a fresh 7.2 and then did an upgrade to 7.3 and bingo! Same problem.
The system did contain an old __quick_convolution__.yml template from <7.3. So it looks like something didn't go well during the upgrade process.

Quick fix:
  • Open system configuration
  • In the local services section enable ssh term server
  • press the open web ssh terminal (default pi/moodeaudio)
  • And enter the following command (is one single line)
Code:
sudo wget https://raw.githubusercontent.com/moode-player/moode/develop/usr/share/camilladsp/__quick_convolution__.yml -O /usr/share/camilladsp/__quick_convolution__.yml
  • Go to the moode camilladsp configuration page
  • Press save again and the error should be gone
And let us know if fixed the issue in your case?
Reply
#8
Magic! Thanks, @bitlab the issue is fixed and now all is well.
Reply
#9
(07-20-2021, 09:09 PM)bitlab Wrote: @jonners I tried to reproduce the error by installing a fresh 7.2 and then did an upgrade to 7.3 and bingo! Same problem.
The system did contain an old __quick_convolution__.yml template from <7.3. So it looks like something didn't go well during the upgrade process.

Quick fix:
  • Open system configuration
  • In the local services section enable ssh term server
  • press the open web ssh terminal (default pi/moodeaudio)
  • And enter the following command (is one single line)
Code:
sudo wget https://raw.githubusercontent.com/moode-player/moode/develop/usr/share/camilladsp/__quick_convolution__.yml -O /usr/share/camilladsp/__quick_convolution__.yml
  • Go to the moode camilladsp configuration page
  • Press save again and the error should be gone
And let us know if fixed the issue in your case?

I'll check the update package.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#10
The file in the update package is same as in the repo which suggests something else could be causing the update of the file to not happen. Maybe some sort of permission or file in use condition?

Code:
devices:
 samplerate: 44100
 chunksize: 4096
 queuelimit: 1
 capture:
   type: File
   channels: 2
   filename: "/dev/stdin"
   format: S16LE
 playback:
   type: Alsa
   channels: 2
   device: "plughw:0,0"
   format: S16LE
filters:
   mastergain:
       type: Gain
       parameters:
           gain: __IR_GAIN__
   ir_left:
     type: Conv
     parameters:
       type: __IR_TYPE__
       filename: __IR_LEFT__
       __IR_PARAMS_L__
   ir_right:
     type: Conv
     parameters:
       type: __IR_TYPE__
       filename: __IR_RIGHT__
       __IR_PARAMS_R__
mixers:
 stereo:
   channels:
     in: 2
     out: 2
   mapping:
     - dest: 0
       sources:
         - channel: 0
           gain: 0
           inverted: false
     - dest: 1
       sources:
         - channel: 1
           gain: 0
           inverted: false
pipeline:
 - type: Mixer
   name: stereo
 - type: Filter
   channel: 0
   names:
     - mastergain
     - ir_left
 - type: Filter
   channel: 1
   names:
     - mastergain
     - ir_right
     
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Forum Jump: