mt6735 72平台工厂模式,客戶先去测试SPEAKER,在去测试FM,FM无声
时间:10-02
整理:3721RD
点击:
[Audio Driver]MT6572平台工厂模式,客戶先去测试SPEAKER,在去测试FM,FM无声
[DESCRIPTION]
1. 工厂模式,客戶先去测试SPEAKER,在去测试FM---- 》 SPEAKER 有声, FM 无声.
2. 工厂 模式客戶先去測試 FM ,在去 测试SPEAKER---- 》 FM 有声, SPEAKER 有声.
[SOLUTION]
请帮忙确认下以下AudioDigitalControl.cpp中的以下fuction.
status_t AudioDigitalControl::EnableSideToneHw(uint32 connection , bool direction , bool Enable)
{
ALOGD("+%s(), connection = %d, direction = %d, Enable= %d\n", __FUNCTION__, connection, direction,
Enable);
if (Enable && direction) {
switch (connection) {
case AudioDigitalType::I00:
case AudioDigitalType::I01:
mAfeReg->SetAfeReg(AFE_SGEN_CON0, 0x04662662, 0xffffffff);
break;
case AudioDigitalType::I02:
mAfeReg->SetAfeReg(AFE_SGEN_CON0, 0x14662662, 0xffffffff);
break;
case AudioDigitalType::I03:
case AudioDigitalType::I04:
mAfeReg->SetAfeReg(AFE_SGEN_CON0, 0x24662662, 0xffffffff);
break;
case AudioDigitalType::I05:
case AudioDigitalType::I06:
mAfeReg->SetAfeReg(AFE_SGEN_CON0, 0x34662662, 0xffffffff);
break;
case AudioDigitalType::I07:
case AudioDigitalType::I08:
mAfeReg->SetAfeReg(AFE_SGEN_CON0, 0x44662662, 0xffffffff);
break;
case AudioDigitalType::I09:
case AudioDigitalType::I10:
mAfeReg->SetAfeReg(AFE_SGEN_CON0, 0x54662662, 0xffffffff);
break;
case AudioDigitalType::I11:
case AudioDigitalType::I12:
mAfeReg->SetAfeReg(AFE_SGEN_CON0, 0x64662662, 0xffffffff);
break;
default:
ALOGW("EnableSideToneHw fail with conenction connection");
break;
}
}
else if (Enable) {
switch (connection) {
case AudioDigitalType::O00:
case AudioDigitalType::O01:
mAfeReg->SetAfeReg(AFE_SGEN_CON0, 0x746c26c2, 0xffffffff);
break;
case AudioDigitalType::O02:
mAfeReg->SetAfeReg(AFE_SGEN_CON0, 0x846c26c2, 0xffffffff);
break;
case AudioDigitalType::O03:
case AudioDigitalType::O04:
mAfeReg->SetAfeReg(AFE_SGEN_CON0, 0x946c26c2, 0xffffffff);
break;
case AudioDigitalType::O05:
case AudioDigitalType::O06:
mAfeReg->SetAfeReg(AFE_SGEN_CON0, 0xa46c26c2, 0xffffffff);
break;
case AudioDigitalType::O07:
case AudioDigitalType::O08:
mAfeReg->SetAfeReg(AFE_SGEN_CON0, 0xb46c26c2, 0xffffffff);
break;
case AudioDigitalType::O09:
case AudioDigitalType::O10:
mAfeReg->SetAfeReg(AFE_SGEN_CON0, 0xc46c26c2, 0xffffffff);
break;
case AudioDigitalType::O11:
case AudioDigitalType::O12:
mAfeReg->SetAfeReg(AFE_SGEN_CON0, 0xd46c26c2, 0xffffffff);
break;
default:
ALOGW("EnableSideToneHw fail with conenction connection");
}
}
else {
//mAfeReg->SetAfeReg(AFE_SGEN_CON0, 0x0 , 0xffffffff);
//modify start
mAfeReg->SetAfeReg(AFE_SGEN_CON0, 0xf f0000000 , 0xffffffff);
//modifyend }
return NO_ERROR;
}
ALPS.GB3.MP 申请patch:ALPS00721298
ALPS.JB3.MP 申请patch:ALPS00744448
[DESCRIPTION]
1. 工厂模式,客戶先去测试SPEAKER,在去测试FM---- 》 SPEAKER 有声, FM 无声.
2. 工厂 模式客戶先去測試 FM ,在去 测试SPEAKER---- 》 FM 有声, SPEAKER 有声.
[SOLUTION]
请帮忙确认下以下AudioDigitalControl.cpp中的以下fuction.
status_t AudioDigitalControl::EnableSideToneHw(uint32 connection , bool direction , bool Enable)
{
ALOGD("+%s(), connection = %d, direction = %d, Enable= %d\n", __FUNCTION__, connection, direction,
Enable);
if (Enable && direction) {
switch (connection) {
case AudioDigitalType::I00:
case AudioDigitalType::I01:
mAfeReg->SetAfeReg(AFE_SGEN_CON0, 0x04662662, 0xffffffff);
break;
case AudioDigitalType::I02:
mAfeReg->SetAfeReg(AFE_SGEN_CON0, 0x14662662, 0xffffffff);
break;
case AudioDigitalType::I03:
case AudioDigitalType::I04:
mAfeReg->SetAfeReg(AFE_SGEN_CON0, 0x24662662, 0xffffffff);
break;
case AudioDigitalType::I05:
case AudioDigitalType::I06:
mAfeReg->SetAfeReg(AFE_SGEN_CON0, 0x34662662, 0xffffffff);
break;
case AudioDigitalType::I07:
case AudioDigitalType::I08:
mAfeReg->SetAfeReg(AFE_SGEN_CON0, 0x44662662, 0xffffffff);
break;
case AudioDigitalType::I09:
case AudioDigitalType::I10:
mAfeReg->SetAfeReg(AFE_SGEN_CON0, 0x54662662, 0xffffffff);
break;
case AudioDigitalType::I11:
case AudioDigitalType::I12:
mAfeReg->SetAfeReg(AFE_SGEN_CON0, 0x64662662, 0xffffffff);
break;
default:
ALOGW("EnableSideToneHw fail with conenction connection");
break;
}
}
else if (Enable) {
switch (connection) {
case AudioDigitalType::O00:
case AudioDigitalType::O01:
mAfeReg->SetAfeReg(AFE_SGEN_CON0, 0x746c26c2, 0xffffffff);
break;
case AudioDigitalType::O02:
mAfeReg->SetAfeReg(AFE_SGEN_CON0, 0x846c26c2, 0xffffffff);
break;
case AudioDigitalType::O03:
case AudioDigitalType::O04:
mAfeReg->SetAfeReg(AFE_SGEN_CON0, 0x946c26c2, 0xffffffff);
break;
case AudioDigitalType::O05:
case AudioDigitalType::O06:
mAfeReg->SetAfeReg(AFE_SGEN_CON0, 0xa46c26c2, 0xffffffff);
break;
case AudioDigitalType::O07:
case AudioDigitalType::O08:
mAfeReg->SetAfeReg(AFE_SGEN_CON0, 0xb46c26c2, 0xffffffff);
break;
case AudioDigitalType::O09:
case AudioDigitalType::O10:
mAfeReg->SetAfeReg(AFE_SGEN_CON0, 0xc46c26c2, 0xffffffff);
break;
case AudioDigitalType::O11:
case AudioDigitalType::O12:
mAfeReg->SetAfeReg(AFE_SGEN_CON0, 0xd46c26c2, 0xffffffff);
break;
default:
ALOGW("EnableSideToneHw fail with conenction connection");
}
}
else {
//mAfeReg->SetAfeReg(AFE_SGEN_CON0, 0x0 , 0xffffffff);
//modify start
mAfeReg->SetAfeReg(AFE_SGEN_CON0, 0xf f0000000 , 0xffffffff);
//modifyend }
return NO_ERROR;
}
ALPS.GB3.MP 申请patch:ALPS00721298
ALPS.JB3.MP 申请patch:ALPS00744448