How to Output Sound from Headphones?

I tried to check if sound can be output from the headphones using the following command, but no sound was produced. Could you tell me what points I should check?

ā–  Steps Taken

root@imx95-a1-19x19-verdin:~/tmp# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 1: btscoaudio [bt-sco-audio], device 0: sai-tx-rx-bt-sco-pcm-wb bt-sco-pcm-wb-0 [sai-tx-rx-bt-sco-pcm-wb bt-sco-pcm-wb-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: wm8904audio [wm8904-audio], device 0: HiFi wm8904-hifi-0 [HiFi wm8904-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

ā–  Direct Playback with aplay

root@imx95-a1-19x19-verdin:~/tmp# aplay -D hw:2,0 Alarm01.wav
Playing WAVE 'Alarm01.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Stereo

ā–  Result
No audio output.

ā–  Environment
i.MX95 Verdin EVK board by Tradex

I sincerely apologize. My previous check was incorrect. After making the following changes, sound output worked:

  • Turn the volume knob counterclockwise

  • Change the default audio device to WM8904

    gst-launch-1.0 filesrc location=Alarm01.wav ! decodebin ! alsasink device=plughw:2,0

    speaker-test -D hw:2,0 -c 2 -t sine -f 1000

1 Like