hifiberry / hifiberry-dsp

DSP toolkit
MIT License
143 stars 36 forks source link

dsptoolkit get-samplerate returns default 48000 on dac2 hd + DSP #43

Closed tstupka closed 2 years ago

tstupka commented 2 years ago

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:

<?xml version="1.0" encoding="utf-8"?>
<ROM IC="ADAU1451" IC_Address="1" Address_byte_length="2">
        <dateTime>2020-12-08T12:44:00.3255070Z</dateTime>
        <version>4.5.0.1779</version>
        <beometa>
                <metadata type="sampleRate">96000</metadata>
                <metadata type="profileName">DSP add-on</metadata>
                <metadata type="profileVersion">13</metadata>
ashtoncowie commented 2 years ago

I know this issue was opened 9 months ago but I think I've solved this.

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.