Audio-Out is Not switching between BT_Headset and external speakers.

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

Audio-Out is Not switching between BT_Headset and external speakers.

1,164件の閲覧回数
SharanK
Contributor II
Hi ,
I have problem in switching the audio out between the bluetooth headset and external speakers.
I have created a icon in the statusbar to toggle between BT Headset and speakers.
I am using the setBluetoothScoOn() to switch off and switch on the BT heasdset and setSpeakerphoneOn() to switch off and on the speakers.
After calling the API's, I am checking for the return values and there is no problem.
But the audio is never routed to the speaker. only toggle in the BT headset.
I am using IMX- ARD Board.

Please help.

Thanks in Advance,

Sharan K

ラベル(1)
タグ(2)
0 件の賞賛
返信
3 返答(返信)

931件の閲覧回数
andrebella
Contributor III

hey, is this the forum? I'm lost :smileysad: here

0 件の賞賛
返信

931件の閲覧回数
GunjanSamaiya
Contributor I

Hi Sharan

I hope it will help.

1. alsa_imx5x.cpp file for selecting Sound card.(Location: src\hardware\mx5x\modules\alsa For IMX-53 QSB) 

2.AudioService.java and AudioSystem.java file used for switching devices one from another with the help of intents. (Location: src\frameworks\base\media\java\android\media)

Regards 

Gunjan

0 件の賞賛
返信

931件の閲覧回数
RafaelThomasGoz
Contributor III

Hi Gunjan,

maybe you could help me. For some reason i cannot play audio on imx53 using android QSB.

Actually I can but I need to set Alsa mixer to enable Speaker Function to ON. However it only works if I have tried to play any audio once in android.

Here is the scenario:

- Alsa mixer with speaker function set to ON, play audio for the 1st time on android. Nothing plays.

- Execute alsa mixer again setting again the speaker function to on AFTER playing anything on android.

It now works.. Why is that ? any idea?

0 件の賞賛
返信