mt6735 插入耳机,预览铃声时按音量键,音量偏大
时间:10-02
整理:3721RD
点击:
[DESCRIPTION]
插入耳机,先按音量键,再预览铃声的时候正常;但先预览铃声再按音量键的时候,音量偏大。
[SOLUTION]
请在php?mod=tag&id=6090" target="_blank" class="relatedlink">Frameworks\av\services\audiopolicy\AudioPolicyManager.cpp的
AudioPolicyManager::computeVolume()的"volume = computeCustomVolume(stream, index,
device);"之前添加如下代码:
int curDevice = getNewOutputDevice(output,false);
if(stream == AUDIO_STREAM_RING && device == AUDIO_DEVICE_OUT_SPEAKER &&
(curDevice & AUDIO_DEVICE_OUT_SPEAKER) &&
((curDevice & AUDIO_DEVICE_OUT_WIRED_HEADPHONE) || (curDevice &
AUDIO_DEVICE_OUT_WIRED_HEADSET)))
{
ALOGD("computeVolume() stream %d, device %04x, curDevice %04x", stream, device,
curDevice);
device = curDevice;
}
AP和Modem的BT chip 类型不一致会遇到的问题现象
[DESCRIPTION]
AP端的mtk_BT_CHIP和Mdem端的MTK_BT_CHIP不匹配遇到问题的现象如下:
MD(PCM interface) MD(CVSD/MSBC)
AP (PCM interface) 通話正常 DL:正常/UL:無聲
AP(CVSD/MSBC) DL/UL都無聲 通話正常
[SOLUTION]
如果遇到bt chip类型不一致,则需要修改bt chip类型
插入耳机,先按音量键,再预览铃声的时候正常;但先预览铃声再按音量键的时候,音量偏大。
[SOLUTION]
请在php?mod=tag&id=6090" target="_blank" class="relatedlink">Frameworks\av\services\audiopolicy\AudioPolicyManager.cpp的
AudioPolicyManager::computeVolume()的"volume = computeCustomVolume(stream, index,
device);"之前添加如下代码:
int curDevice = getNewOutputDevice(output,false);
if(stream == AUDIO_STREAM_RING && device == AUDIO_DEVICE_OUT_SPEAKER &&
(curDevice & AUDIO_DEVICE_OUT_SPEAKER) &&
((curDevice & AUDIO_DEVICE_OUT_WIRED_HEADPHONE) || (curDevice &
AUDIO_DEVICE_OUT_WIRED_HEADSET)))
{
ALOGD("computeVolume() stream %d, device %04x, curDevice %04x", stream, device,
curDevice);
device = curDevice;
}
AP和Modem的BT chip 类型不一致会遇到的问题现象
[DESCRIPTION]
AP端的mtk_BT_CHIP和Mdem端的MTK_BT_CHIP不匹配遇到问题的现象如下:
MD(PCM interface) MD(CVSD/MSBC)
AP (PCM interface) 通話正常 DL:正常/UL:無聲
AP(CVSD/MSBC) DL/UL都無聲 通話正常
[SOLUTION]
如果遇到bt chip类型不一致,则需要修改bt chip类型