Skip to main content
Grodriguez
Associate III
February 25, 2020
Question

Control external amplifier via GPIO

  • February 25, 2020
  • 1 reply
  • 628 views

HI all,

I am using an STM32MP15-EV1 eval board and will connect an external amplifier to the HEADSET output. I would like this amplifier to be automatically switched on / off when sound is being played. If I am correct this is supported in the audio-graph-card machine driver via the pa-gpios property. However I cannot make this work. I am adding the following in the DT:

sound {

pa-gpios = <&gpioa 13 GPIO_ACTIVE_LOW>;

};

What else needs to be done?

Thanks,

Guillermo

This topic has been closed for replies.

1 reply

rzr www.rzr.online.fr
Associate
February 26, 2020

Hi,

Which audio stack are you using ? Alsa or pulse ?

Some resources at:

https://wiki.st.com/stm32mpu/wiki/Category:Audio