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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,775 Views
akhilgopi
Contributor II

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

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

Labels (3)
1 Solution
1,120 Views
igorpadykov
NXP Employee
NXP Employee

Hi Akhil

please check attached Linux Manual HDMI Unit test sect.15.4.2 Audio

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

1 Reply
1,121 Views
igorpadykov
NXP Employee
NXP Employee

Hi Akhil

please check attached Linux Manual HDMI Unit test sect.15.4.2 Audio

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------