Changing volume output


#1

I installed a pHat Dac but now I need to use the GPIO pins for another project which needs a volume output, what do I do to change the volume output?
Thanks for the help


#2

I’m unsure what you mean… do you want to control the volume using external components or?

the easiest, and better way to control volume is at your amp… it is possible to do it in software, including using buttons or a pot hooked up to GPIO, but the sound quality will be degraded at anything but full volume.


#3

I mean I want to make my volume output the jack in the Pi


#4

right, so you meant audio output ;-)

… you should be able to just uncomment the following in /boot/config.txt:

dtparam=audio=on
(plus reboot)

… if that is not enough, try to comment the following in that same file:

dtoverlay=hifiberry-dac
(plus reboot)

… and of that still does not get you audio through the jack, then it’s likely because it’s routed to HDMI, use raspi-config to override.


#5

Thanks so much, I’ll try that out. ;-p