[IMX53 QSB ] Set default sound card for Android

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

[IMX53 QSB ] Set default sound card for Android

1,849件の閲覧回数
phuongdangminh
Contributor III

Hello,

I'm using IMX53 QSB with Andeneo Android 2.3 and need to play video via HDMI cable but no sound out put

but only SGTL5000. How to set default with card1 (imx3stackspdif) instead card0 (SGTL5000) ?

# /system/bin/alsa_aplay -D hw:1,0 -f dat /mnt/sdcard/download/equinox-48KHz.wav

Play a wav file by using the alsa_player and it can ouput via HMDI that mean the driver works properly

Thank you.

ラベル(2)
0 件の賞賛
5 返答(返信)

764件の閲覧回数
daiane_angolini
NXP Employee
NXP Employee

Have you tried anything?

I´ve been studying this, and looks like Android would be able to swicth to HDMI audo automaticaly.

I was not able to get a HDMI monitor so far, so I had not tried it yet.

Could you, please, share your tests?

0 件の賞賛

764件の閲覧回数
phuongdangminh
Contributor III

Thanks for your respond,

Maybe there are some limit in the Android source code of Adeneo. I tried it but no result, only audio output via the headphone Jack.

Android doesn't like linux, I don't known where to setting HDMI audio output options or modify the source code.

Regards,

0 件の賞賛

764件の閲覧回数
daiane_angolini
NXP Employee
NXP Employee

well, if you want to modify source code, you will change something on alsa, but I took a look in the source, and it looks like it is smart enough to understand when you swap the output.

Maybe, some set.prop on Android layer to determinates the output....

764件の閲覧回数
daiane_angolini
NXP Employee
NXP Employee

Sorry for my delay. I may had missed your comment on my document.

I´m still working on how to configure spdif/hdmi default output for android rootfs, so I don´t have a detailed how-to.

As soon as I have any update I let you know

764件の閲覧回数
phuongdangminh
Contributor III

Hello,

Thank you very much. I'm waiting for you.

Regards,

0 件の賞賛