Closed tstupka closed 2 years ago
I know this issue was opened 9 months ago but I think I've solved this.
git grep -F samplerate
in repo root (notice the lowercase "r") returns lots of results of python functions that read and parse the sample rate.
hifiberrydsp/parser/xmlprofile.py:ATTRIBUTE_SAMPLERATE = "samplerate"
git grep -F sampleRate
with a capital "R" only returns three sample XML files, and nothing in the code itself!
dsptoolkit get-samplerate
returns 48000 as a default value when it can't parse the metadata for whatever reason.So this boils down to a typo in these sample XML files here, not to mention the profiles in hifiberry-os that most users have installed by default.
Correcting this typo in my profile (I'm also using dsp-addon-96-13) and installing it fixed it for me.
Once I have a minute I'll open PRs for this.
rpi3, dac2 hd + dsp linux 5.10.78-2-osmc dsptoolkit 0.20 dsp-addon-96-13.xml
dsptoolkit get-samplerate
returns 48000Hz even though: