Francesco Vannini
Published © LGPL

How To Configure JustBoom Amps As Mono

This guide will show you how to configure ALSA on a Raspbian-based OS to merge both stereo signals on one channel.

IntermediateProtip30 minutes634
How To Configure JustBoom Amps As Mono

Things used in this project

Hardware components

JustBoom Amp HAT
JustBoom Amp HAT
×1
JustBoom Amp Zero
JustBoom Amp Zero
×1

Software apps and online services

Raspbian
Raspberry Pi Raspbian

Story

Read more

Code

.asoundrc

Plain text
ctl.!default {
 type hw card sndrpijustboomd
}

pcm.mmap0 {
 type mmap_emul;
 slave {
 pcm "hw:CARD=sndrpijustboomd,DEV=0"
 }
}

pcm.swap {
 type plug
 slave {
 pcm mmap0;
 }
 ttable.0.1 1
 ttable.1.0 1
}

pcm.mono_left {
 type plug;
 slave {
 pcm mmap0;
 }
 ttable.0.0 0.5
 ttable.1.0 0.5
}

pcm.mono_right {
 type plug;
 slave {
 pcm mmap0;
 }
 ttable.0.1 0.5
 ttable.1.1 0.5
}

pcm.!default mono_left
#pcm.!default mono_right
#pcm.!default swap

Credits

Francesco Vannini
9 projects • 19 followers

Comments