# Sound distortion on Mopidy and HifiBerry DAC+

**URL:** <https://discourse.mopidy.com/t/sound-distortion-on-mopidy-and-hifiberry-dac/1326>\
**Category:** Misc\
**Created:** [August 26, 2016, 8:49am UTC](https://discourse.mopidy.com/t/sound-distortion-on-mopidy-and-hifiberry-dac/1326 "2016-08-26T08:49:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ales\_Ribic](https://avatars.discourse-cdn.com/v4/letter/a/ea666f/32.png) [@Ales\_Ribic](https://discourse.mopidy.com/u/Ales_Ribic)\
**Post date:** [August 26, 2016, 8:49am UTC](https://discourse.mopidy.com/t/sound-distortion-on-mopidy-and-hifiberry-dac/1326/1 "2016-08-26T08:49:47Z")

</div>

Hi

I have instaled mopidy (latest) and HifiBerry DAC+ with MusicBox\_WebClient extension  
Works fine but when i put slider volume above half there is a distortion on DAC output.  
I have set digital volume in AlsaMixer v1.0.28 to 25 and sound in not loud but still distorted.  
All changes i made to volume is made in AlsaMixer with command:  
sudo -H -u mopidy alsamixer -D equal and then i select soundcard: snd\_rpi\_hifiberry\_dacplus

My question is which volume does MusicBox\_WebClient change? how to limit this volume to 50% ?

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [August 26, 2016, 10:25am UTC](https://discourse.mopidy.com/t/sound-distortion-on-mopidy-and-hifiberry-dac/1326/2 "2016-08-26T10:25:59Z")

</div>

Have you looked at [Settings for piMusicBox 0.6 and HifiBerry Dac +?](https://discourse.mopidy.com/t/settings-for-pimusicbox-0-6-and-hifiberry-dac/1000) ?

---

<div class="post-metadata">

**Author:** ![Ales\_Ribic](https://avatars.discourse-cdn.com/v4/letter/a/ea666f/32.png) [@Ales\_Ribic](https://discourse.mopidy.com/u/Ales_Ribic)\
**Post date:** [August 26, 2016, 11:02am UTC](https://discourse.mopidy.com/t/sound-distortion-on-mopidy-and-hifiberry-dac/1326/3 "2016-08-26T11:02:43Z")

</div>

Yes i do, but distortion is still there.

Im not using MusicBox, but have installed Mopidy manually, so i dont have settings.ini. I have also succsesfuly install equalizer, which is the reason to go manually install from scratch.

These are my settings in mopidy.conf:

[audio]  
output = alsasink device=plug:plugequal  
mixer = software  
mixer\_volume = 20

[alsamixer]  
enabled = true  
card = 0  
control = Digital

Changing: amixer sset Digital 160 to lower or higher value, also distorsion comes louder or quieter. So distorsion comes before amixer. I think it can be Mopidy software mixer? is it possible to limit software mixer not to 100% but 60%

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [August 26, 2016, 1:27pm UTC](https://discourse.mopidy.com/t/sound-distortion-on-mopidy-and-hifiberry-dac/1326/4 "2016-08-26T13:27:04Z")

</div>

With the `mixer = software` configuration you’ve given above, changes to Mopidy’s volume (via musicbox-webclient or any other Mopidy client) will change the software volume i.e. before the output pipeline. You would need to specify `mixer = alsamixer` to change this behaviour.

I don’t think it’s possible to arbitrarily limit Mopidy’s software volume, you just need to be mindful when adjusting the volume in your client.

But I also don’t think it makes sense for that to introduce distortion, providing you have set hardware volume appropriately using amixer. And of course this runs contrary to the experiences of others in the previous thread on the exact same subject that I mentioned above. The only thing different between you and them is you are using equalizer. Do you still get distortion when you remove the equalizer from your output pipeline?

---

<div class="post-metadata">

**Author:** ![Ales\_Ribic](https://avatars.discourse-cdn.com/v4/letter/a/ea666f/32.png) [@Ales\_Ribic](https://discourse.mopidy.com/u/Ales_Ribic)\
**Post date:** [September 2, 2016, 6:07pm UTC](https://discourse.mopidy.com/t/sound-distortion-on-mopidy-and-hifiberry-dac/1326/5 "2016-09-02T18:07:19Z")

</div>

I have tested configuration without EQ, and it is working without distortion. So i have to ask for solution on other forum.  
Thanks for advise.
