IMX8MP, WM8962, aplay: pcm_write:2127: write error: Input/output error

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

IMX8MP, WM8962, aplay: pcm_write:2127: write error: Input/output error

798件の閲覧回数
Lex_tracy
Contributor II

An error occurred when specifying wm8962 to play music on IMX8MP
Can help me solve this problem?

root@imx8mpevk:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: btscoaudio [bt-sco-audio], device 0: 30c20000.sai-bt-sco-pcm-wb bt-sco-pcm-wb-0 [30c20000.sai-bt-sco-pcm-wb bt-sco-pcm-wb-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: audiohdmi [audio-hdmi], device 0: i.MX HDMI i2s-hifi-0 [i.MX HDMI i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 3: wm8962audio [wm8962-audio], device 0: HiFi wm8962-0 [HiFi wm8962-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 4: imxaudioxcvr [imx-audio-xcvr], device 0: XCVR PCM snd-soc-dummy-dai-0 [XCVR PCM snd-soc-dummy-dai-0]
Subdevices: 1/1
Subdevice #0: subdevice #0

root@imx8mpevk:~# aplay -Dhw:3,0 -r 44100 JAX_V.wav
Playing WAVE 'JAX_V.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
aplay: pcm_write:2127: write error: Input/output error
root@imx8mpevk:~#

タグ(2)
0 件の賞賛
返信
4 返答(返信)

679件の閲覧回数
Lex_tracy
Contributor II

Hi

I referred to the case you provided and used the methods in it to correct it.
ASoC: error at soc_component_read_no_lock on wm8962.2-001a: -16
Now dmesg will not cause this error , thank you.

But aplay: pcm_write:2127: write error: Input/output error is not resolved
I refer to /arch/arm64/boot/dts/freescale/imx8mm-beacon-baseboard.dtsi to set the same clocks
"assigned-clock-rates = <24576000>;"
Use an oscilloscope to measure that when he plays music, it is indeed the same as the clock I set.
Are there any other areas that need attention and need to be checked?

 

0 件の賞賛
返信

707件の閲覧回数
Lex_tracy
Contributor II

HI 

problem is specific to hw:3,0.
I check asound.conf no find problem , I not find .asoundrc files
I use dmesg | grep -i snd, no find anything
but use dmesg |grep 8962 ,find error
ASoC: error at soc_component_read_no_lock on wm8962.2-001a: -16
this error effect audio aplay?

0 件の賞賛
返信

692件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

Please refer this case to check MCLK setting and your hardware.

https://community.nxp.com/t5/i-MX-Processors/i-mx8mp%E7%A7%BB%E6%A4%8Dwm8962%E8%8A%AF%E7%89%87%E6%8A...


Best Regards
Zhiming

0 件の賞賛
返信

752件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

Please also test other devices, try to play the file on a different audio device to see if the issue is specific to hw:3,0.

Then check and update the ALSA configuration to ensure it is correctly set up for the device, editing the /etc/asound.conf or ~/.asoundrc files.

You can use dmesg to view the logs:

dmesg | grep -i snd


Best Regards
Zhiming

0 件の賞賛
返信