Fox Stilgar
Posts: 2
Joined: Tue Apr 28, 2026 12:09 pm

Configuring chipdip-dac

Hello everyone.

I`ve tried to configure the DAC based on Adau 1701 - I`ve choosed the HiFiberry in the setup window, and changed dtoverlay for chipdip-dac in the /boot/firmware/config.txt

alsa also was configured for work with hw:ChipDipDAC,0 and i could hear the test sounds using speaker-test -c 2 -t sine -f 440 -l 1

The next step was to configure alsaloop -C hw:Loopback,1,0 -P hw:ChipDipDAC,0 -t 50000 -f S32_LE -r 48000 -c
After that I`v=e managed to get the sound from the Berryaudio but it was very slow and distorted.
i suppose it was caused with the wrong DAC settings such as 48000Hz, LRCLC Left justified
, Data 1 bit delay. 24bit depth WS High Level, SD Data left channe etc

Unfortunately, chainging these parameters for alsaloop had no good - the sound still playing corrupted.

Maybe there should be a spcial config file to adjust, but I have no Idea where to find it.

Do you have any ideas where to dig next?

Thanks in advance.
User avatar
varungujjar
Site Admin
Posts: 36
Joined: Thu Nov 20, 2025 5:50 pm

Re: Configuring chipdip-dac

Hi apologies for the late response, did you check the Camilla DSP settings and change the sample rate there to fixed sample rate?

http://berryaudio.local:8081

Also I am planning a new release in the coming days that allows you to configure the DAC directly from the UI itself so may be that would help
Fox Stilgar
Posts: 2
Joined: Tue Apr 28, 2026 12:09 pm

Re: Configuring chipdip-dac

Thank You for Your reply!

Actually I should check the project structure before asking such silly questions) Though it really took a time - the solution appeared to be really easy.

You were right - I had to check the Camilla DSP settings.

Just to share my experience - here are three steps to get started with Adau1701 + Berryaudio:

1. Adding the new DAC to UI - /home/pi/berryaudio/mixer/playback_mixers.json

One block added

{
"device": "plughw:ChipDipDac",
"name": "ChipDipDac",
"description": "ADAU1701 I2S Master",
"volume_control_mixer": "Digital",
"supports_hw_volume": true,
"supports_hw_mute": true,
"channel_count": 2,
"supported_sample_rates": [44100, 48000, 88200, 96000],
"supported_formats": ["S16_LE", "S24_LE", "S32_LE"],
"dtoverlay": "chipdip-dac"
}

2. Configuring DSP - /home/pi/builds/camilladsp/configs/camilladsp.yml

capture:
channels: 2
device: plughw:Loopback,1
type: Alsa
capture_samplerate: 48000 #Just to be sure
chunksize: 8192
enable_rate_adjust: null
multithreaded: true
playback:
channels: 2
device: multi_out
type: Alsa
samplerate: 48000


3. Making some changes for /etc/asound.conf


pcm.multi_out {
type plug
slave.pcm {
type multi
slaves {
ada { channels 2 pcm "plughw:ChipDipDAC" }
snapcast { channels 2 pcm "hw:Loopback,0,1" }
spectrum { channels 2 pcm "plughw:Loopback,0,2" }
}
bindings {
0 { slave ada channel 0 }
1 { slave ada channel 1 }
2 { slave snapcast channel 0 }
3 { slave snapcast channel 1 }
4 { slave spectrum channel 0 }
5 { slave spectrum channel 1 }
}
}
# Modified routing one stereo-in (2ch) three stereo out (6ch)
ttable [
[ 1 0 1 0 1 0 ] # Input L → Ada L, Snap L, Spec L
[ 0 1 0 1 0 1 ] # Input R → Ada R, Snap R, Spec R
]
}

And thats it.
User avatar
varungujjar
Site Admin
Posts: 36
Joined: Thu Nov 20, 2025 5:50 pm

Re: Configuring chipdip-dac

no problem :) I am glad it worked out for you.

Return to “Help & Support”