Open howardqiao opened 8 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
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!