audio play error!!

Started by aron, May 17, 2023, 01:19:03 PM

Previous topic - Next topic

aron

Hi.

A problem occurred while running STMP1-SOM.

Audio play does not work.
Do you have any idea how to fix this?

console message:
root@stm32mp1-olinuxino-som:~# aplay sign_return.wav
Playing WAVE 'sign_return.wav' : Signed 16[  185.711736] es8328 0-0010: ASoC: error at snd_soc_dai_set_sysclk on es8328-hifi-analog: -22
[  185.719538]  4400b004.audio-controller-es8328-hifi-analog: ASoC: error at snd_soc_link_hw_params on 4400b004.audio-controller-es8328-hifi-analog: -22
 bit Little Endian, Rate 22050 Hz, Mono
aplay: set_params:1407: Unable to install hw params:
ACCESS:  RW_INTERLEAVED
FORMAT:  S16_LE
SUBFORMAT:  STD
SAMPLE_BITS: 16
FRAME_BITS: 16
CHANNELS: 1
RATE: 22050
PERIOD_TIME: (46439 46440)
PERIOD_SIZE: 1024
PERIOD_BYTES: 2048
PERIODS: 8
BUFFER_TIME: (371519 371520)
BUFFER_SIZE: 8192
BUFFER_BYTES: 16384
TICK_TIME: 0
root@stm32mp1-olinuxino-som:~#

LubOlimex

Audio play back should work in the official images. Both aplay and mplayer should work, maybe try mplayer sign_return.wav

Try another format or audio file. Edit the settings in alsamixer maybe, sometimes channels can be muted and some terminals make it hard to notice that these channels are muted. Try to unmute with "m" key.
Technical support and documentation manager at Olimex

aron

Hi.
Try again with "STM32MP1-OLinuXino-SOM-bullseye-minimal-20220928-143706.img" for the image.

But I got apply error on "ASoC: error at snd_soc_dai_set_sysclk on es8328-hifi-analog: -22".

I think the reason for this error is the kernel driver.

aron

Audio play was successful by modifying the es8328 driver code.

There is a problem with the kernel driver on the site below, so please modify it and use it.

https://github.com/OLIMEX/linux-olimex/tree/release-20230217-v5.10.105/sound/soc

LubOlimex

Thank you for the update, glad you got it figured out but can you be more specific about how you fixed this issue?

What was wrong wit the es8328 driver code? Your link point to a directory with many sub-folders.
Technical support and documentation manager at Olimex