Aloshi / EmulationStation

A flexible emulator front-end supporting keyboardless navigation and custom system themes.
MIT License
2.07k stars 905 forks source link

Volume control on rpi with i2s DACs #609

Open howardqiao opened 8 years ago

howardqiao commented 8 years ago

There are many DACs on Raspberry pi,they have diffent mixer name on volume adjust such as hifiberry-dac,iqaudio-dac, the mixer name should not be "PCM" but "Digital"

const char * VolumeControl::mixerName = "PCM"; should be const char * VolumeControl::mixerName = "Digital"; in some DACs

If the mixer name can be config by config file,will be perfect! thank you very much!

Gadgetoid commented 7 years ago

The alternate approach to achieve both sound and volume control is to create a virtual mixer device and name it "PCM", tricking EmulationStation into recognizing it. We've done that with Picade HAT using the following asound.conf:

https://github.com/pimoroni/picade-hat/blob/master/daemon/etc/asound.conf