AnsweredAssumed Answered

How to check the sound out from "imx-hdmi-soc", HDMI audio? Will this sound available at any audio port in base board?

Question asked by Akhil Gopi on Mar 28, 2017
Latest reply on Mar 28, 2017 by igorpadykov

Question:

``````````````
How to check the sound out from "imx-hdmi-soc", HDMI audio?
It seems ALSA driver on sound card2 is running by "# cat /proc/asound/card2/pcm0p/sub0/status" when checking with cactus player. Will this sound available at any audio port in base board?

 

Please see below for details...

 

-------------------------------------------------------------------------------------------------------------------------------------------

System Setup:
Target Board : iMX6Q Sabre AI
OS : Android M6
Other connections : 1. HDMI display with touch connected
2. Headphone connected to AUDIO OUT(3rd AV port)

 

-------------------------------------------------------------------------------------------------------------------------------------------

Available Sound Cards:

``````````````````````````````
root@sabreauto_6q:/ # cat /proc/asound/cards
0 [cs42888audio ]: cs42888-audio - cs42888-audio
cs42888-audio
1 [imxspdif ]: imx-spdif - imx-spdif
imx-spdif
2 [imxhdmisoc ]: imx-hdmi-soc - imx-hdmi-soc
imx-hdmi-soc

Available Sound Devices:
````````````````````````````````
root@sabreauto_6q:/ # cat /proc/asound/card0/
id pcm0c/ pcm0p/ pcm1c/ pcm1p/
root@sabreauto_6q:/ # cat /proc/asound/card1/
id pcm0c/
root@sabreauto_6q:/ # cat /proc/asound/card2/
id pcm0p/

Note: Total 3 sound cards and 3 Audio(ALSA) out devices are present.

 

-------------------------------------------------------------------------------------------------------------------------------------------

Attempts to test audio out devices:

`````````````````````````````````````````````

1. Using tinyplay utility sound out verified from AUDIO OUT port on base board.
# tinyplay test.wav -D 0 -d 0 --> Sound verified from AUDIO OUT port on base board.
Note : ALSA device 0 on Sound Card 0 is running to produce sound out.

#@

2. Attempt to run ALSA device 0 on Sound Card 2.
# tinyplay test.wav -D 2 -d 0 --> Sound out not coming out of Audio port on base board.

Note:
Sound card 2 is "imx-hdmi-soc" and its working can be verified by checking the status.
cat /proc/asound/card2/pcm0p/sub0/status
state: RUNNING
owner_pid : 516
trigger_time: 3491.260549416
tstamp : 3503.560340084
delay : 6144
avail : 0
avail_max : 5952
-----
hw_ptr : 589824
appl_ptr : 595968

-------------------------------------------------------------------------------------------------------------------------------------------

Outcomes