LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Enable software audio control for device? (https://www.linuxquestions.org/questions/linux-hardware-18/enable-software-audio-control-for-device-4175622596/)

Jason_25 01-28-2018 07:50 PM

Enable software audio control for device?
 
I have set up an i2s amplifier for an Odroid C0 SBC. But there are no mixer controls in amixer or alsamixer. The device is listed by aplay and works fine but quietly.

I have tried with the Odroid support forums but they don't seem to understand.

How might I add software controls or use software to boost the gain to the device whichever is easiest?

frankbell 01-29-2018 08:11 PM

I'm assuming, because this is Linux Questions, that you put some flavor of Linux on that device.

Please tell us more about the install, such as: What distro/version? It it headless? Is there a GUI interface? What version of ALSA and alsamixer? And so on.

Jason_25 01-30-2018 09:13 PM

I got this all working. See this thread: https://www.raspberrypi.org/forums/v...47994#p1147994

This was taken from the thread above:
Code:

pcm.!default  {
 type plug   
 slave.pcm "speakerphat"
}

ctl.!default {
 type hw card 0
}

pcm.speakerphat {
  type softvol
  slave.pcm "plughw:0"
  control.name "Master"
  control.card 0
}

Note that usually control.card, hw card, and the plughw number should be the same index number. Also the name speakerphat can be anything you want. You might also want to specify the full card address with a comma and then the sub-device behind the plughw index number.

frankbell 01-30-2018 09:32 PM

Glad you got it working. Thanks for the update.


All times are GMT -5. The time now is 01:46 AM.