6/02/2012

ac3 compressed audio playback over HDMI using ADB

1.Connect HDMI cable to the target and enable HDMI from UI using Qualcomm setting App.




2. Connect the target through ADB and run the below commends



a. Run the command "mm-audio-native-test &" to start the test app.





b. Run the command "mm-audio-native-test -format devctl"


This command will list all the devices with ID's.Ex:for HDMI,device ID is 23.

c. Switch the device to HDMI device





#echo "devctl -cmd=dev_switch_rx -dev_id=23" > /data/audio_test

d. Play the ac3 compressed audio





#echo "hdmi_ac3 /data/surround_test.ac3 -id=1 -dev=/dev/msm_lpa_if_out" > /data/audio_test





Test app source code is available in \vendor\qcom\opensource\kernel-tests\mm-audio\audio-native\qdsp5\audiotest.c

No comments:

Post a Comment