android9.0 HDMI雙音效輸出

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

android9.0 HDMI雙音效輸出

1,545 Views
minyou
Contributor II

Hi

我正在imx6q & imx6dl上使用android9.0,發現使用HDMI模式下,僅有hdmi聲卡有輸出音效

若把HDMI拔除我的聲卡(sgtl5000)就有音效輸出,

因為在我的android6.0上沒有這個困擾。

想請教是否有補丁可以讓他兩個聲卡都可以輸出音效?

我在猜測是不是要修改vendor/nxp-opensource/imx/alsa/tinyalsa_hal.c這份code的內容。

Thanks.

0 Kudos
Reply
4 Replies

1,522 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi 

 

In \frameworks\av\services\audiopolicy\managerdefault\AudioPolicyManager.cpp

You can find void AudioPolicyManager::checkOutputForAttributes and comment mpClientInterface->invalidateStream(stream); 

0 Kudos
Reply

1,489 Views
minyou
Contributor II

Hi

不好意思太晚回覆您了!

我在我的source code中沒有找到你說的function (void AudioPolicyManager::checkOutputForAttributes)

也沒有找到mpClientInterface-> invalidateStream(stream);

不過在void AudioPolicyManager::checkOutputForStrategy這裡面有找到相似的

mpClientInterface->invalidateStream((audio_stream_type_t)i);

我把這句註解後一樣是沒影響的,

附上我這邊的AudioPolicyManager.cpp

0 Kudos
Reply

1,474 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

 

我会继续跟进这个问题,一旦有进展我会回复给你。

 

BR

Zhiming

0 Kudos
Reply

1,528 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

There is no related patch at the moment. However, I am reading the Android audio system recently, but it is certain that the android audio stream switching is determined by the android audio system.I will give you patch if i have new process.

Best Regards

Zhiming