There are a few options.
- One option would be using two push-buttons and using those as volume up and volume down buttons.
- Another option is using a potentiometer for analog control of the audio level.
- Yet another option is using a rotary encoder as a volume control.
Depending on the interface hardware you want to use, the software will change.
Luckily, we have example projects on our Wiki that show you how to implement each of these options.
The wiki page containing example projects is here: http://wiki.analog.com/resources/tools-software/sigmastudio/tutorials
The top level wiki is here: http://wiki.analog.com/resources/tools-software/sigmastudio
Links to the individual project files (in zip archive format) are here:
- Control the volume of the audio with a potentiometer connected to the auxiliary ADC
- Use two pushbuttons to control the audio volume
- Control the audio volume using a rotary encoder
(These particular projects are designed to work with the ADAU1701/ADAU1702/ADAU1401A SigmaDSPs, but the same design techniques can be applied to other SigmaDSPs as well)
For information about hardware design for GPIO controls, refer to this application note: