mtk faq: handset with small speakers, loud speaker with a large software configuration

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/szx940213/article/details/98846386

For the part of the customer's needs: the handset with small speakers, loud with a big horn that take out the earpiece from the built-in SPKP PA and SPKN, connected to an external PA MP3L

on or MP3R.
[SOLUTION]
on Please connect the hardware according to the above description, and in the software modified as follows:
1. the code audcoeff.c variables from 0 to Spk2In1 place. 1
2._AFE_Switch_TurnOn_Amp function:
{
..... .
IF ((v_lowest> = 0) && (afe.aud [v_lowest] .out_dev & L1SP_BUFFER_0) && (Spk2In1)) // add this determination conditions
_AFE_Switch_IntAmp (KAL_TRUE);
the else // add this determination condition, only the large i.e. speaker-go here
AFE_SwitchExtAmplifier (to true);
......
}
3._AFE_Switch_TurnOff_Amp function
{
......
IF ((v_lowest> = 0) && (afe.aud [v_lowest] .out_dev & L1SP_BUFFER_0) && ( Spk2In1)) // add this determination conditions
_AFE_Switch_IntAmp (KAL_FALSE);


....
}
4. Depending on your hardware design, rewrite external PA driver functions void AFE_SwitchExtAmplifier (char sw_on).

Source: http://bbs.16rd.com/thread-478909-1-1.html

Guess you like

Origin blog.csdn.net/szx940213/article/details/98846386