IMX8MQ: Android: HDMI AUDIO

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

IMX8MQ: Android: HDMI AUDIO

2,117 Views
mps
Contributor I

On my device HDMI video works fine, however audio is always from Audio jack(line out).

Both  wm8904-audio and imx-audio-hdmi  are detected, however sound/audio for system sounds and video playback is routed via audio jack.

Also attached my audio_policy_configuration.xml file.

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

04-20 22:25:16.047 3188 3188 W audio_hw_primary: card 0, id wm8904audio, driver wm8904-audio, name wm8904-audio
04-20 22:25:16.064 3188 3188 W audio_hw_primary: out rate 44100
04-20 22:25:16.173 3188 3188 W audio_hw_primary: in rate 44100, channels 2 format 0
04-20 22:25:16.187 3188 3188 W audio_hw_primary: card 1, id imxaudiohdmi, driver imx-audio-hdmi, name imx-audio-hdmi
04-20 22:25:16.208 3188 3188 W audio_hw_primary: out rate 44100
04-20 22:25:16.211 3188 3188 W audio_hw_primary: in rate 0, channels 0 format 0
04-20 22:25:16.211 3188 3188 I audio_hw_primary: Total 2 cards match
04-20 22:25:16.211 3188 3188 I audio_hw_primary: card idx 0, name wm8904-audio
04-20 22:25:16.211 3188 3188 I audio_hw_primary: card idx 1, name imx-audio-hdmi
04-20 22:25:16.215 3188 3188 I audio_hw_primary: select_output_device(), headphone 0 ,headset 0 ,speaker 2, earpiece 0,
04-20 22:25:16.219 3188 3282 I audio_hw_primary: adev_open_output_stream: enter: sample_rate(48000) channel_mask(0x3) format(0x1) devices(0x2) flags(0x2), address()
04-20 22:25:16.223 3188 3282 I audio_hw_primary: adev_open_output_stream: exit: output_type 1, output 0xf0c26000
04-20 22:25:16.328 3188 3282 I audio_hw_primary: adev_set_mode mode 0
04-20 22:25:16.346 3188 3188 D audio_hw_primary: out_set_parameters: enter: kvpairs: routing=2
04-20 22:25:16.346 3188 3188 D audio_hw_primary: out_set_parameters: exit: code(0)
04-20 22:25:16.355 3188 3188 W audio_hw_primary: In channels 2, rate 48000, devices 0x80000004
04-20 22:25:16.365 3188 3188 W audio_hw_primary: get_input_buffer_size size = 512, channel_count = 2
04-20 22:25:16.366 3188 3188 W audio_hw_primary: get_input_buffer_size size = 512, channel_count = 2
04-20 22:25:20.458 3188 3282 D audio_hw_primary: adev_set_parameters: enter: A2dpSuspended=false
04-20 22:25:20.458 3188 3282 D audio_hw_primary: adev_set_parameters: exit with code(0)
04-20 22:25:20.466 3188 3282 D audio_hw_primary: adev_set_parameters: enter: BT_SCO=off
04-20 22:25:20.466 3188 3282 D audio_hw_primary: adev_set_parameters: exit with code(0)
04-20 22:25:21.950 3188 3282 D audio_hw_primary: adev_set_parameters: enter: connect=1024
04-20 22:25:21.951 3188 3282 D audio_hw_primary: adev_set_parameters: exit with code(0)
04-20 22:25:21.954 3188 3282 D audio_hw_primary: out_set_parameters: enter: kvpairs: routing=0
04-20 22:25:21.954 3188 3282 D audio_hw_primary: out_set_parameters: exit: code(0)
04-20 22:25:23.470 3188 3188 D audio_hw_primary: adev_set_parameters: enter: A2dpSuspended=false
04-20 22:25:23.470 3188 3188 D audio_hw_primary: adev_set_parameters: exit with code(0)
04-20 22:25:23.473 3188 3282 D audio_hw_primary: adev_set_parameters: enter: BT_SCO=off
04-20 22:25:23.473 3188 3282 D audio_hw_primary: adev_set_parameters: exit with code(0)
04-20 22:25:58.943 3188 3188 D audio_hw_primary: out_set_parameters: enter: kvpairs: routing=1024
04-20 22:25:58.943 3188 3188 I audio_hw_primary: select_output_device(), headphone 0 ,headset 0 ,speaker 0, earpiece 0,
04-20 22:25:58.943 3188 3188 D audio_hw_primary: out_set_parameters: exit: code(0)
04-20 22:25:59.113 3188 4536 I audio_hw_primary: start_output_stream_primary... 0xf0c26000, device 1024, address , mode 0
04-20 22:25:59.114 3188 4536 I audio_hw_primary: select_output_device(), headphone 0 ,headset 0 ,speaker 0, earpiece 0,
04-20 22:25:59.122 3188 4536 W audio_hw_primary: card 0, port 0 device 0x400
04-20 22:25:59.123 3188 4536 W audio_hw_primary: rate 48000, channel 2 period_size 0xc0
04-20 22:26:02.962 3188 4531 W audio_hw_primary: do_out_standby... 0xf0c26000
04-20 22:26:14.499 3188 4536 I audio_hw_primary: start_output_stream_primary... 0xf0c26000, device 1024, address , mode 0
04-20 22:26:14.499 3188 4536 I audio_hw_primary: select_output_device(), headphone 0 ,headset 0 ,speaker 0, earpiece 0,
04-20 22:26:14.504 3188 4536 W audio_hw_primary: card 0, port 0 device 0x400
04-20 22:26:14.504 3188 4536 W audio_hw_primary: rate 48000, channel 2 period_size 0xc0
04-20 22:26:17.714 3188 3280 W audio_hw_primary: do_out_standby... 0xf0c26000
04-20 22:26:29.199 3188 4536 I audio_hw_primary: start_output_stream_primary... 0xf0c26000, device 1024, address , mode 0
04-20 22:26:29.199 3188 4536 I audio_hw_primary: select_output_device(), headphone 0 ,headset 0 ,speaker 0, earpiece 0,
04-20 22:26:29.209 3188 4536 W audio_hw_primary: card 0, port 0 device 0x400
04-20 22:26:29.209 3188 4536 W audio_hw_primary: rate 48000, channel 2 period_size 0xc0
04-20 22:26:35.423 3188 3280 W audio_hw_primary: do_out_standby... 0xf0c26000

cheers,

mohit

Tags (1)
0 Kudos
2 Replies

1,950 Views
igorpadykov
NXP Employee
NXP Employee

Hi MOHIT

first one can try to test audio outputs with linux using for example amixer,

described in Table 7-7. Audio Mixer controls attached Linux Manual

mxc_amix_test\test - imx-test - i.MX Driver Test Application Software 

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

0 Kudos

1,950 Views
mps
Contributor I

Also to add I am able to play .wav file via tiny play from shell.

0 Kudos