void Sound_Earpiece_Turnoff(void) { #if defined(ENABLE_2_IN_1_SPK) hwSPKClassABTurnOff(); //hw2in1SpeakerSetting(0,0);//0=>spk mode; 1=>receiver mode #if defined(AMP_CLASS_D) hwSPKClassDInit(); #endif #endif }
void Sound_Speaker_Turnoff(int channel) { PRINTK("Sound_Speaker_Turnoff channel = %d\n",channel); if(!gsk_on) return; #if defined(AMP_CLASS_AB) hwSPKClassABTurnOff(); #elif defined(AMP_CLASS_D) hwSPKClassDTurnOff(); #endif gsk_on = false; }
void Sound_Speaker_Turnoff(int channel) { PRINTK("Sound_Speaker_Turnoff channel = %d\n",channel); if(!gsk_on) return; #if defined(TINNO_ANDROID_S9081) if( isHeadsetPlug() == true ) headset_switch_on(); #endif #if defined(AMP_CLASS_AB) hwSPKClassABTurnOff(); #elif defined(AMP_CLASS_D) hwSPKClassDTurnOff(); #endif gsk_on = false; }