cancel
Showing results for 
Search instead for 
Did you mean: 

speaker output in STM32MP157C-EV1

AVazquez
Associate III

HI, All.

I would like use speaker output in STM32MP157C-EV1. I revised the wiki but there aren't references about how play audio with speaker output. Is it enable speaker output to this board? Is it possible enable this output to play audio?

Regards!

Alex.

1 ACCEPTED SOLUTION

Accepted Solutions
Bernard PUEL
ST Employee

Working alsa config for EV1:

amixer -c 0 cset name='AIF1DAC1 Volume' '96' '96'

amixer -c 0 cset name='DAC1L Mixer AIF1.1 Switch' 'on'

amixer -c 0 cset name='DAC1R Mixer AIF1.1 Switch' 'on'

amixer -c 0 cset name='DAC1 Switch' 'on','on'

amixer -c 0 cset name='DAC1 Volume' '96','96'

amixer -c 0 cset name='SPKL DAC1 Volume' '50' '50'

amixer -c 0 cset name='SPKR DAC1 Volume' '50' '50'

amixer -c 0 cset name='SPKL DAC1 Switch' 'on'

amixer -c 0 cset name='SPKR DAC1 Switch' 'on'

amixer -c 0 cset name='SPKL Output Switch' 'on'

amixer -c 0 cset name='SPKR Output Switch' 'on'

amixer -c 0 cset name='Speaker Mode' 'Class AB'

amixer -c 0 cset name='Speaker Volume' '50' '50'

amixer -c 0 cset name='Speaker Mixer Volume' 3

amixer -c 0 cset name='Speaker Reference' 0

amixer -c 0 cset name='Speaker Switch' 'on'

This use case will be added to wiki:

https://wiki.st.com/stm32mpu/wiki/Soundcard_configuration

View solution in original post

4 REPLIES 4
PatrickF
ST Employee

Speaker is not enabled in our examples deliveries. Need to change some Codec driver configuration.

See https://wiki.st.com/stm32mpu/wiki/Audio_codecs_hardware_components#Wolfson_wm8994

and STM32MP15 evaluation board sound card configuration

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Bernard PUEL
ST Employee

Working alsa config for EV1:

amixer -c 0 cset name='AIF1DAC1 Volume' '96' '96'

amixer -c 0 cset name='DAC1L Mixer AIF1.1 Switch' 'on'

amixer -c 0 cset name='DAC1R Mixer AIF1.1 Switch' 'on'

amixer -c 0 cset name='DAC1 Switch' 'on','on'

amixer -c 0 cset name='DAC1 Volume' '96','96'

amixer -c 0 cset name='SPKL DAC1 Volume' '50' '50'

amixer -c 0 cset name='SPKR DAC1 Volume' '50' '50'

amixer -c 0 cset name='SPKL DAC1 Switch' 'on'

amixer -c 0 cset name='SPKR DAC1 Switch' 'on'

amixer -c 0 cset name='SPKL Output Switch' 'on'

amixer -c 0 cset name='SPKR Output Switch' 'on'

amixer -c 0 cset name='Speaker Mode' 'Class AB'

amixer -c 0 cset name='Speaker Volume' '50' '50'

amixer -c 0 cset name='Speaker Mixer Volume' 3

amixer -c 0 cset name='Speaker Reference' 0

amixer -c 0 cset name='Speaker Switch' 'on'

This use case will be added to wiki:

https://wiki.st.com/stm32mpu/wiki/Soundcard_configuration

Hi, Bernard!

Perfect, I've done a quick test and I can now play sound through the speakers.

Thanks!

I have done some test. I've increased the volume of SPKL,SPKR and Speaker to 100%

I have checked that the sound through the speaker output is lower than the headphone output, It doesn't make sense...

Is there any other general/specific control to increase the output volume of the speakers?

Thanks!