Hi
我正在imx6q & imx6dl上使用android9.0,發現使用HDMI模式下,僅有hdmi聲卡有輸出音效
若把HDMI拔除我的聲卡(sgtl5000)就有音效輸出,
因為在我的android6.0上沒有這個困擾。
想請教是否有補丁可以讓他兩個聲卡都可以輸出音效?
我在猜測是不是要修改vendor/nxp-opensource/imx/alsa/tinyalsa_hal.c這份code的內容。
Thanks.
Hi
In \frameworks\av\services\audiopolicy\managerdefault\AudioPolicyManager.cpp
You can find void AudioPolicyManager::checkOutputForAttributes and comment mpClientInterface->invalidateStream(stream);
Hi
不好意思太晚回覆您了!
我在我的source code中沒有找到你說的function (void AudioPolicyManager::checkOutputForAttributes)
也沒有找到mpClientInterface-> invalidateStream(stream);
不過在void AudioPolicyManager::checkOutputForStrategy這裡面有找到相似的
mpClientInterface->invalidateStream((audio_stream_type_t)i);
我把這句註解後一樣是沒影響的,
附上我這邊的AudioPolicyManager.cpp
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