Headphone audio jack

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Headphone audio jack

772 次查看
Mohan51
Contributor II

Hi, I am using nxp imx8m nano board and tried to play the .wav files and plugged my headphone 3.5mm jack with line out jack in nano board.but unable to hear any sounds.we need to do any settings for enabling the audio jack? Please help me to find a way

0 项奖励
回复
2 回复数

762 次查看
Mohan51
Contributor II

this is my #aplay -l output:

 

**** List of PLAYBACK Hardware Devices ****
card 0: btscoaudio [bt-sco-audio], device 0: 30020000.sai-bt-sco-pcm-wb bt-sco-pcm-wb-0 [30020000.sai-bt-sco-pcm-wb bt-sco-pcm-wb-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: imxspdif [imx-spdif], device 0: S/PDIF PCM snd-soc-dummy-dai-0 [S/PDIF PCM snd-soc-dummy-dai-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: wm8524audio [wm8524-audio], device 0: HiFi wm8524-hifi-0 [HiFi wm8524-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: wm8524audio [wm8524-audio], device 1: HiFi-ASRC-FE (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0

0 项奖励
回复

757 次查看
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @Mohan51 

 

You can try something like this (I tried with imx8mm EVK, but it should works for imx8mn too):

root@imx8mmevk:~# aplay -Dplughw:1,0 file_example_WAV_1MG.wav
Playing WAVE 'file_example_WAV_1MG.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

 

This is my aplay -l output:

root@imx8mmevk:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: btscoaudio [bt-sco-audio], device 0: 30020000.sai-bt-sco-pcm-wb bt-sco-pcm-wb-0 [30020000.sai-bt-sco-pcm-wb bt-sco-pcm-wb-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: wm8524audio [wm8524-audio], device 0: 30030000.sai-wm8524-hifi wm8524-hifi-0 [30030000.sai-wm8524-hifi wm8524-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: imxspdif [imx-spdif], device 0: S/PDIF PCM snd-soc-dummy-dai-0 [S/PDIF PCM snd-soc-dummy-dai-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

 

And the tested BSP:

root@imx8mmevk:~# uname -a
Linux imx8mmevk 5.15.71+g50912be38601 #1 SMP PREEMPT Tue Sep 12 22:17:59 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

 

In your case, you can try to use:

aplay -Dplughw:2,0 "your wav file"

 

Best regards.

 

Salas.

0 项奖励
回复