AD按键表
#include "key_event_deal.h" #include "key_driver.h" #include "app_config.h" #include "board_config.h" #include "app_task.h" #ifdef CONFIG_BOARD_JL701N_DEMO /*********************************************************** * bt 模式的 adkey table ***********************************************************/ #if TCFG_APP_BT_EN const u16 bt_key_ad_table[KEY_AD_NUM_MAX][KEY_EVENT_MAX] = { //单击 //长按 //hold //抬起 //双击 //三击 [0] = { KEY_SINGLE_0, KEY_LONG_0, KEY_HOLD_0, KEY_UP_LIFT_0, KEY_DOUBLE_0, KEY_TRIPLE_0 }, [1] = { KEY_SINGLE_1, KEY_LONG_1, KEY_HOLD_1, KEY_UP_LIFT_1, KEY_DOUBLE_1, KEY_TRIPLE_1 }, [2] = { KEY_SINGLE_2, KEY_LONG_2, KEY_HOLD_2, KEY_UP_LIFT_2, KEY_DOUBLE_2, KEY_TRIPLE_2 }, [3] = { KEY_SINGLE_3, KEY_LONG_3, KEY_HOLD_3, KEY_UP_LIFT_3, KEY_DOUBLE_3, KEY_TRIPLE_3 }, [4] = { KEY_SINGLE_4, KEY_LONG_4, KEY_HOLD_4, KEY_UP_LIFT_4, KEY_DOUBLE_4, KEY_TRIPLE_4 }, [5] = { KEY_SINGLE_5, KEY_LONG_5, KEY_HOLD_5, KEY_UP_LIFT_5, KEY_DOUBLE_5, KEY_TRIPLE_5 }, [6] = { KEY_SINGLE_6, KEY_LONG_6, KEY_HOLD_6, KEY_UP_LIFT_6, KEY_DOUBLE_6, KEY_TRIPLE_6 }, [7] = { KEY_SINGLE_7, KEY_LONG_7, KEY_HOLD_7, KEY_UP_LIFT_7, KEY_DOUBLE_7, KEY_TRIPLE_7 }, [8] = { KEY_SINGLE_8, KEY_LONG_8, KEY_HOLD_8, KEY_UP_LIFT_8, KEY_DOUBLE_8, KEY_TRIPLE_8 }, [9] = { KEY_SINGLE_9, KEY_LONG_9, KEY_HOLD_9, KEY_UP_LIFT_9, KEY_DOUBLE_9, KEY_TRIPLE_9 }, }; #endif /*********************************************************** * fm 模式的 adkey table ***********************************************************/ #if TCFG_APP_FM_EN const u16 fm_key_ad_table[KEY_AD_NUM_MAX][KEY_EVENT_MAX] = { //单击 //长按 //hold //抬起 //双击 //三击 [0] = { KEY_SINGLE_0, KEY_LONG_0, KEY_HOLD_0, KEY_UP_LIFT_0, KEY_DOUBLE_0, KEY_TRIPLE_0 }, [1] = { KEY_SINGLE_1, KEY_LONG_1, KEY_HOLD_1, KEY_UP_LIFT_1, KEY_DOUBLE_1, KEY_TRIPLE_1 }, [2] = { KEY_SINGLE_2, KEY_LONG_2, KEY_HOLD_2, KEY_UP_LIFT_2, KEY_DOUBLE_2, KEY_TRIPLE_2 }, [3] = { KEY_SINGLE_3, KEY_LONG_3, KEY_HOLD_3, KEY_UP_LIFT_3, KEY_DOUBLE_3, KEY_TRIPLE_3 }, [4] = { KEY_SINGLE_4, KEY_LONG_4, KEY_HOLD_4, KEY_UP_LIFT_4, KEY_DOUBLE_4, KEY_TRIPLE_4 }, [5] = { KEY_SINGLE_5, KEY_LONG_5, KEY_HOLD_5, KEY_UP_LIFT_5, KEY_DOUBLE_5, KEY_TRIPLE_5 }, [6] = { KEY_SINGLE_6, KEY_LONG_6, KEY_HOLD_6, KEY_UP_LIFT_6, KEY_DOUBLE_6, KEY_TRIPLE_6 }, [7] = { KEY_SINGLE_7, KEY_LONG_7, KEY_HOLD_7, KEY_UP_LIFT_7, KEY_DOUBLE_7, KEY_TRIPLE_7 }, [8] = { KEY_SINGLE_8, KEY_LONG_8, KEY_HOLD_8, KEY_UP_LIFT_8, KEY_DOUBLE_8, KEY_TRIPLE_8 }, [9] = { KEY_SINGLE_9, KEY_LONG_9, KEY_HOLD_9, KEY_UP_LIFT_9, KEY_DOUBLE_9, KEY_TRIPLE_9 }, }; #endif /*********************************************************** * linein 模式的 adkey table ***********************************************************/ #if TCFG_APP_LINEIN_EN const u16 linein_key_ad_table[KEY_AD_NUM_MAX][KEY_EVENT_MAX] = { //单击 //长按 //hold //抬起 //双击 //三击 [0] = { KEY_SINGLE_0, KEY_LONG_0, KEY_HOLD_0, KEY_UP_LIFT_0, KEY_DOUBLE_0, KEY_TRIPLE_0 }, [1] = { KEY_SINGLE_1, KEY_LONG_1, KEY_HOLD_1, KEY_UP_LIFT_1, KEY_DOUBLE_1, KEY_TRIPLE_1 }, [2] = { KEY_SINGLE_2, KEY_LONG_2, KEY_HOLD_2, KEY_UP_LIFT_2, KEY_DOUBLE_2, KEY_TRIPLE_2 }, [3] = { KEY_SINGLE_3, KEY_LONG_3, KEY_HOLD_3, KEY_UP_LIFT_3, KEY_DOUBLE_3, KEY_TRIPLE_3 }, [4] = { KEY_SINGLE_4, KEY_LONG_4, KEY_HOLD_4, KEY_UP_LIFT_4, KEY_DOUBLE_4, KEY_TRIPLE_4 }, [5] = { KEY_SINGLE_5, KEY_LONG_5, KEY_HOLD_5, KEY_UP_LIFT_5, KEY_DOUBLE_5, KEY_TRIPLE_5 }, [6] = { KEY_SINGLE_6, KEY_LONG_6, KEY_HOLD_6, KEY_UP_LIFT_6, KEY_DOUBLE_6, KEY_TRIPLE_6 }, [7] = { KEY_SINGLE_7, KEY_LONG_7, KEY_HOLD_7, KEY_UP_LIFT_7, KEY_DOUBLE_7, KEY_TRIPLE_7 }, [8] = { KEY_SINGLE_8, KEY_LONG_8, KEY_HOLD_8, KEY_UP_LIFT_8, KEY_DOUBLE_8, KEY_TRIPLE_8 }, [9] = { KEY_SINGLE_9, KEY_LONG_9, KEY_HOLD_9, KEY_UP_LIFT_9, KEY_DOUBLE_9, KEY_TRIPLE_9 }, }; #endif /*********************************************************** * music 模式的 adkey table ***********************************************************/ #if TCFG_APP_MUSIC_EN const u16 music_key_ad_table[KEY_AD_NUM_MAX][KEY_EVENT_MAX] = { //单击 //长按 //hold //抬起 //双击 //三击 [0] = { KEY_SINGLE_0, KEY_LONG_0, KEY_HOLD_0, KEY_UP_LIFT_0, KEY_DOUBLE_0, KEY_TRIPLE_0 }, [1] = { KEY_SINGLE_1, KEY_LONG_1, KEY_HOLD_1, KEY_UP_LIFT_1, KEY_DOUBLE_1, KEY_TRIPLE_1 }, [2] = { KEY_SINGLE_2, KEY_LONG_2, KEY_HOLD_2, KEY_UP_LIFT_2, KEY_DOUBLE_2, KEY_TRIPLE_2 }, [3] = { KEY_SINGLE_3, KEY_LONG_3, KEY_HOLD_3, KEY_UP_LIFT_3, KEY_DOUBLE_3, KEY_TRIPLE_3 }, [4] = { KEY_SINGLE_4, KEY_LONG_4, KEY_HOLD_4, KEY_UP_LIFT_4, KEY_DOUBLE_4, KEY_TRIPLE_4 }, [5] = { KEY_SINGLE_5, KEY_LONG_5, KEY_HOLD_5, KEY_UP_LIFT_5, KEY_DOUBLE_5, KEY_TRIPLE_5 }, [6] = { KEY_SINGLE_6, KEY_LONG_6, KEY_HOLD_6, KEY_UP_LIFT_6, KEY_DOUBLE_6, KEY_TRIPLE_6 }, [7] = { KEY_SINGLE_7, KEY_LONG_7, KEY_HOLD_7, KEY_UP_LIFT_7, KEY_DOUBLE_7, KEY_TRIPLE_7 }, [8] = { KEY_SINGLE_8, KEY_LONG_8, KEY_HOLD_8, KEY_UP_LIFT_8, KEY_DOUBLE_8, KEY_TRIPLE_8 }, [9] = { KEY_SINGLE_9, KEY_LONG_9, KEY_HOLD_9, KEY_UP_LIFT_9, KEY_DOUBLE_9, KEY_TRIPLE_9 }, }; #endif /*********************************************************** * pc 模式的 adkey table ***********************************************************/ #if TCFG_APP_PC_EN const u16 pc_key_ad_table[KEY_AD_NUM_MAX][KEY_EVENT_MAX] = { //单击 //长按 //hold //抬起 //双击 //三击 [0] = { KEY_SINGLE_0, KEY_LONG_0, KEY_HOLD_0, KEY_UP_LIFT_0, KEY_DOUBLE_0, KEY_TRIPLE_0 }, [1] = { KEY_SINGLE_1, KEY_LONG_1, KEY_HOLD_1, KEY_UP_LIFT_1, KEY_DOUBLE_1, KEY_TRIPLE_1 }, [2] = { KEY_SINGLE_2, KEY_LONG_2, KEY_HOLD_2, KEY_UP_LIFT_2, KEY_DOUBLE_2, KEY_TRIPLE_2 }, [3] = { KEY_SINGLE_3, KEY_LONG_3, KEY_HOLD_3, KEY_UP_LIFT_3, KEY_DOUBLE_3, KEY_TRIPLE_3 }, [4] = { KEY_SINGLE_4, KEY_LONG_4, KEY_HOLD_4, KEY_UP_LIFT_4, KEY_DOUBLE_4, KEY_TRIPLE_4 }, [5] = { KEY_SINGLE_5, KEY_LONG_5, KEY_HOLD_5, KEY_UP_LIFT_5, KEY_DOUBLE_5, KEY_TRIPLE_5 }, [6] = { KEY_SINGLE_6, KEY_LONG_6, KEY_HOLD_6, KEY_UP_LIFT_6, KEY_DOUBLE_6, KEY_TRIPLE_6 }, [7] = { KEY_SINGLE_7, KEY_LONG_7, KEY_HOLD_7, KEY_UP_LIFT_7, KEY_DOUBLE_7, KEY_TRIPLE_7 }, [8] = { KEY_SINGLE_8, KEY_LONG_8, KEY_HOLD_8, KEY_UP_LIFT_8, KEY_DOUBLE_8, KEY_TRIPLE_8 }, [9] = { KEY_SINGLE_9, KEY_LONG_9, KEY_HOLD_9, KEY_UP_LIFT_9, KEY_DOUBLE_9, KEY_TRIPLE_9 }, }; #endif /*********************************************************** * record 模式的 adkey table ***********************************************************/ #if TCFG_APP_RECORD_EN const u16 record_key_ad_table[KEY_AD_NUM_MAX][KEY_EVENT_MAX] = { //单击 //长按 //hold //抬起 //双击 //三击 [0] = { KEY_SINGLE_0, KEY_LONG_0, KEY_HOLD_0, KEY_UP_LIFT_0, KEY_DOUBLE_0, KEY_TRIPLE_0 }, [1] = { KEY_SINGLE_1, KEY_LONG_1, KEY_HOLD_1, KEY_UP_LIFT_1, KEY_DOUBLE_1, KEY_TRIPLE_1 }, [2] = { KEY_SINGLE_2, KEY_LONG_2, KEY_HOLD_2, KEY_UP_LIFT_2, KEY_DOUBLE_2, KEY_TRIPLE_2 }, [3] = { KEY_SINGLE_3, KEY_LONG_3, KEY_HOLD_3, KEY_UP_LIFT_3, KEY_DOUBLE_3, KEY_TRIPLE_3 }, [4] = { KEY_SINGLE_4, KEY_LONG_4, KEY_HOLD_4, KEY_UP_LIFT_4, KEY_DOUBLE_4, KEY_TRIPLE_4 }, [5] = { KEY_SINGLE_5, KEY_LONG_5, KEY_HOLD_5, KEY_UP_LIFT_5, KEY_DOUBLE_5, KEY_TRIPLE_5 }, [6] = { KEY_SINGLE_6, KEY_LONG_6, KEY_HOLD_6, KEY_UP_LIFT_6, KEY_DOUBLE_6, KEY_TRIPLE_6 }, [7] = { KEY_SINGLE_7, KEY_LONG_7, KEY_HOLD_7, KEY_UP_LIFT_7, KEY_DOUBLE_7, KEY_TRIPLE_7 }, [8] = { KEY_SINGLE_8, KEY_LONG_8, KEY_HOLD_8, KEY_UP_LIFT_8, KEY_DOUBLE_8, KEY_TRIPLE_8 }, [9] = { KEY_SINGLE_9, KEY_LONG_9, KEY_HOLD_9, KEY_UP_LIFT_9, KEY_DOUBLE_9, KEY_TRIPLE_9 }, }; #endif /*********************************************************** * rtc 模式的 adkey table ***********************************************************/ #if TCFG_APP_RTC_EN const u16 rtc_key_ad_table[KEY_AD_NUM_MAX][KEY_EVENT_MAX] = { //单击 //长按 //hold //抬起 //双击 //三击 [0] = { KEY_SINGLE_0, KEY_LONG_0, KEY_HOLD_0, KEY_UP_LIFT_0, KEY_DOUBLE_0, KEY_TRIPLE_0 }, [1] = { KEY_SINGLE_1, KEY_LONG_1, KEY_HOLD_1, KEY_UP_LIFT_1, KEY_DOUBLE_1, KEY_TRIPLE_1 }, [2] = { KEY_SINGLE_2, KEY_LONG_2, KEY_HOLD_2, KEY_UP_LIFT_2, KEY_DOUBLE_2, KEY_TRIPLE_2 }, [3] = { KEY_SINGLE_3, KEY_LONG_3, KEY_HOLD_3, KEY_UP_LIFT_3, KEY_DOUBLE_3, KEY_TRIPLE_3 }, [4] = { KEY_SINGLE_4, KEY_LONG_4, KEY_HOLD_4, KEY_UP_LIFT_4, KEY_DOUBLE_4, KEY_TRIPLE_4 }, [5] = { KEY_SINGLE_5, KEY_LONG_5, KEY_HOLD_5, KEY_UP_LIFT_5, KEY_DOUBLE_5, KEY_TRIPLE_5 }, [6] = { KEY_SINGLE_6, KEY_LONG_6, KEY_HOLD_6, KEY_UP_LIFT_6, KEY_DOUBLE_6, KEY_TRIPLE_6 }, [7] = { KEY_SINGLE_7, KEY_LONG_7, KEY_HOLD_7, KEY_UP_LIFT_7, KEY_DOUBLE_7, KEY_TRIPLE_7 }, [8] = { KEY_SINGLE_8, KEY_LONG_8, KEY_HOLD_8, KEY_UP_LIFT_8, KEY_DOUBLE_8, KEY_TRIPLE_8 }, [9] = { KEY_SINGLE_9, KEY_LONG_9, KEY_HOLD_9, KEY_UP_LIFT_9, KEY_DOUBLE_9, KEY_TRIPLE_9 }, }; #endif /*********************************************************** * spdif 模式的 adkey table ***********************************************************/ #if TCFG_APP_SPDIF_EN const u16 spdif_key_ad_table[KEY_AD_NUM_MAX][KEY_EVENT_MAX] = { //单击 //长按 //hold //抬起 //双击 //三击 [0] = { KEY_SINGLE_0, KEY_LONG_0, KEY_HOLD_0, KEY_UP_LIFT_0, KEY_DOUBLE_0, KEY_TRIPLE_0 }, [1] = { KEY_SINGLE_1, KEY_LONG_1, KEY_HOLD_1, KEY_UP_LIFT_1, KEY_DOUBLE_1, KEY_TRIPLE_1 }, [2] = { KEY_SINGLE_2, KEY_LONG_2, KEY_HOLD_2, KEY_UP_LIFT_2, KEY_DOUBLE_2, KEY_TRIPLE_2 }, [3] = { KEY_SINGLE_3, KEY_LONG_3, KEY_HOLD_3, KEY_UP_LIFT_3, KEY_DOUBLE_3, KEY_TRIPLE_3 }, [4] = { KEY_SINGLE_4, KEY_LONG_4, KEY_HOLD_4, KEY_UP_LIFT_4, KEY_DOUBLE_4, KEY_TRIPLE_4 }, [5] = { KEY_SINGLE_5, KEY_LONG_5, KEY_HOLD_5, KEY_UP_LIFT_5, KEY_DOUBLE_5, KEY_TRIPLE_5 }, [6] = { KEY_SINGLE_6, KEY_LONG_6, KEY_HOLD_6, KEY_UP_LIFT_6, KEY_DOUBLE_6, KEY_TRIPLE_6 }, [7] = { KEY_SINGLE_7, KEY_LONG_7, KEY_HOLD_7, KEY_UP_LIFT_7, KEY_DOUBLE_7, KEY_TRIPLE_7 }, [8] = { KEY_SINGLE_8, KEY_LONG_8, KEY_HOLD_8, KEY_UP_LIFT_8, KEY_DOUBLE_8, KEY_TRIPLE_8 }, [9] = { KEY_SINGLE_9, KEY_LONG_9, KEY_HOLD_9, KEY_UP_LIFT_9, KEY_DOUBLE_9, KEY_TRIPLE_9 }, }; #endif /*********************************************************** * idle 模式的 adkey table ***********************************************************/ const u16 idle_key_ad_table[KEY_AD_NUM_MAX][KEY_EVENT_MAX] = { //单击 //长按 //hold //抬起 //双击 //三击 [0] = { KEY_SINGLE_0, KEY_LONG_0, KEY_HOLD_0, KEY_UP_LIFT_0, KEY_DOUBLE_0, KEY_TRIPLE_0 }, [1] = { KEY_SINGLE_1, KEY_LONG_1, KEY_HOLD_1, KEY_UP_LIFT_1, KEY_DOUBLE_1, KEY_TRIPLE_1 }, [2] = { KEY_SINGLE_2, KEY_LONG_2, KEY_HOLD_2, KEY_UP_LIFT_2, KEY_DOUBLE_2, KEY_TRIPLE_2 }, [3] = { KEY_SINGLE_3, KEY_LONG_3, KEY_HOLD_3, KEY_UP_LIFT_3, KEY_DOUBLE_3, KEY_TRIPLE_3 }, [4] = { KEY_SINGLE_4, KEY_LONG_4, KEY_HOLD_4, KEY_UP_LIFT_4, KEY_DOUBLE_4, KEY_TRIPLE_4 }, [5] = { KEY_SINGLE_5, KEY_LONG_5, KEY_HOLD_5, KEY_UP_LIFT_5, KEY_DOUBLE_5, KEY_TRIPLE_5 }, [6] = { KEY_SINGLE_6, KEY_LONG_6, KEY_HOLD_6, KEY_UP_LIFT_6, KEY_DOUBLE_6, KEY_TRIPLE_6 }, [7] = { KEY_SINGLE_7, KEY_LONG_7, KEY_HOLD_7, KEY_UP_LIFT_7, KEY_DOUBLE_7, KEY_TRIPLE_7 }, [8] = { KEY_SINGLE_8, KEY_LONG_8, KEY_HOLD_8, KEY_UP_LIFT_8, KEY_DOUBLE_8, KEY_TRIPLE_8 }, [9] = { KEY_SINGLE_9, KEY_LONG_9, KEY_HOLD_9, KEY_UP_LIFT_9, KEY_DOUBLE_9, KEY_TRIPLE_9 }, }; /*********************************************************** * broadcast mic 模式的 adkey table ***********************************************************/ #if (TCFG_APP_LIVE_MIC_EN || \ ((defined TCFG_APP_LIVE_IIS_EN) && (TCFG_APP_LIVE_IIS_EN))) const u16 live_mic_key_ad_table[KEY_AD_NUM_MAX][KEY_EVENT_MAX] = { //单击 //长按 //hold //抬起 //双击 //三击 [0] = { KEY_SINGLE_0, KEY_LONG_0, KEY_HOLD_0, KEY_UP_LIFT_0, KEY_DOUBLE_0, KEY_TRIPLE_0 }, [1] = { KEY_SINGLE_1, KEY_LONG_1, KEY_HOLD_1, KEY_UP_LIFT_1, KEY_DOUBLE_1, KEY_TRIPLE_1 }, [2] = { KEY_SINGLE_2, KEY_LONG_2, KEY_HOLD_2, KEY_UP_LIFT_2, KEY_DOUBLE_2, KEY_TRIPLE_2 }, [3] = { KEY_SINGLE_3, KEY_LONG_3, KEY_HOLD_3, KEY_UP_LIFT_3, KEY_DOUBLE_3, KEY_TRIPLE_3 }, [4] = { KEY_SINGLE_4, KEY_LONG_4, KEY_HOLD_4, KEY_UP_LIFT_4, KEY_DOUBLE_4, KEY_TRIPLE_4 }, [5] = { KEY_SINGLE_5, KEY_LONG_5, KEY_HOLD_5, KEY_UP_LIFT_5, KEY_DOUBLE_5, KEY_TRIPLE_5 }, [6] = { KEY_SINGLE_6, KEY_LONG_6, KEY_HOLD_6, KEY_UP_LIFT_6, KEY_DOUBLE_6, KEY_TRIPLE_6 }, [7] = { KEY_SINGLE_7, KEY_LONG_7, KEY_HOLD_7, KEY_UP_LIFT_7, KEY_DOUBLE_7, KEY_TRIPLE_7 }, [8] = { KEY_SINGLE_8, KEY_LONG_8, KEY_HOLD_8, KEY_UP_LIFT_8, KEY_DOUBLE_8, KEY_TRIPLE_8 }, [9] = { KEY_SINGLE_9, KEY_LONG_9, KEY_HOLD_9, KEY_UP_LIFT_9, KEY_DOUBLE_9, KEY_TRIPLE_9 }, }; #endif #endifView Code
/////////////////////////////////////////////////////////// #define ADJUST_FREQ_VALUE ((22000-12000)/8) #define FRWQ0 (65000) #define FRWQ1 (12000+ADJUST_FREQ_VALUE*0) #define FRWQ2 (FRWQ1+ADJUST_FREQ_VALUE*1) #define FRWQ3 (FRWQ1+ADJUST_FREQ_VALUE*2) #define FRWQ4 (FRWQ1+ADJUST_FREQ_VALUE*3) #define FRWQ5 (FRWQ1+ADJUST_FREQ_VALUE*4) #define FRWQ6 (FRWQ1+ADJUST_FREQ_VALUE*5) #define FRWQ7 (FRWQ1+ADJUST_FREQ_VALUE*6) #define FRWQ8 (FRWQ1+ADJUST_FREQ_VALUE*7) #define FRWQ9 (FRWQ1+ADJUST_FREQ_VALUE*8) #define MACRO_NAME(x) (#x) // #include "application/audio_eq_drc_apply.h" struct high_bass high_bass_param2 = {0}; /////////////////////////////////////////////////////////// switch (key_event) { //////////////////////////////////////////////////////////////// // case KEY_SINGLE_0: // printf("KEY_SINGLE_0 ARRAY_SIZE(linux_color_table):%d--ARRAY_SIZE(linux_style_table):%d\n",ARRAY_SIZE(linux_color_table),ARRAY_SIZE(linux_style_table)); // for(u8 i=0;i<ARRAY_SIZE(linux_color_table);i++) // { // for(u8 i2=0;i2<ARRAY_SIZE(linux_style_table);i2++) // { // // (printf("i:%d--i2:%d msg:L%d-%s:",i,i2,__LINE__,__FUNCTION__),printf(linux_color_table[i] "Hello World" linux_style_table[i2], ##__VA_ARGS__)); // // printf("%si:%d--i2:%d msg:L%d-%s: Hello World %s\033[0m", linux_color_table[i],i,i2,__LINE__,__FUNCTION__, linux_style_table[i2]); // // printf("%si:%d--i2:%d%s msg:L%d-%s: Hello World \033[0m", linux_color_table[i],i,i2, linux_style_table[i2],__LINE__,__FUNCTION__); // // printf("%s%si:%d--i2:%d msg:L%d-%s: Hello World", linux_color_table[i],linux_style_table[i2],i,i2, __LINE__,__FUNCTION__,"\033[0m"); // printf("%s%si:%d--i2:%d msg:L%d-%s: Hello World%s", linux_color_table[i],linux_style_table[i2],i,i2, __LINE__,__FUNCTION__,"\e[0m"); // } // } // break; case KEY_LONG_0: high_bass_param2.freq=FRWQ0; printf("KEY_LONG_0 all 0\n"); static u8 key0_cnt; if(key0_cnt++%2) { printfc("0 KEY_LONG_0 FRWQ0:%d 12\n",FRWQ0); high_bass_param2.gain=12; mix_out_high_bass(AUDIO_EQ_HIGH, &high_bass_param2); } else { printfc("1 KEY_LONG_0 FRWQ0:%d -12\n",FRWQ0); high_bass_param2.gain=-12; mix_out_high_bass(AUDIO_EQ_HIGH, &high_bass_param2); } break; case KEY_LONG_1: high_bass_param2.freq=FRWQ1; static u8 key1_cnt; if(key1_cnt++%2) { printfc("0 KEY_LONG_1 FRWQ1:%d 12\n",FRWQ1); high_bass_param2.gain=12; mix_out_high_bass(AUDIO_EQ_HIGH, &high_bass_param2); } else { printfc("1 KEY_LONG_1 FRWQ1:%d -12\n",FRWQ1); high_bass_param2.gain=-12; mix_out_high_bass(AUDIO_EQ_HIGH, &high_bass_param2); } break; case KEY_LONG_2: high_bass_param2.freq=FRWQ2; static u8 key2_cnt; if(key2_cnt++%2) { printfc("0 KEY_LONG_2 FRWQ2:%d 12\n",FRWQ2); high_bass_param2.gain=12; mix_out_high_bass(AUDIO_EQ_HIGH, &high_bass_param2); } else { printfc("1 KEY_LONG_2 FRWQ2:%d -12\n",FRWQ2); high_bass_param2.gain=-12; mix_out_high_bass(AUDIO_EQ_HIGH, &high_bass_param2); } break; case KEY_LONG_3: high_bass_param2.freq=FRWQ3; static u8 key3_cnt; if(key3_cnt++%2) { printfc("0 KEY_LONG_3 FRWQ3:%d 12\n",FRWQ3); high_bass_param2.gain=12; mix_out_high_bass(AUDIO_EQ_HIGH, &high_bass_param2); } else { printfc("1 KEY_LONG_3 FRWQ3:%d -12\n",FRWQ3); high_bass_param2.gain=-12; mix_out_high_bass(AUDIO_EQ_HIGH, &high_bass_param2); } break; case KEY_LONG_4: high_bass_param2.freq=FRWQ4; static u8 key4_cnt; if(key4_cnt++%2) { printfc("0 KEY_LONG_4 FRWQ4:%d 12\n",FRWQ4); high_bass_param2.gain=12; mix_out_high_bass(AUDIO_EQ_HIGH, &high_bass_param2); } else { printfc("1 KEY_LONG_4 FRWQ4:%d -12\n",FRWQ4); high_bass_param2.gain=-12; mix_out_high_bass(AUDIO_EQ_HIGH, &high_bass_param2); } break; case KEY_LONG_5: static u8 key5_cnt; if(key5_cnt++%2) { printfc("0 KEY_LONG_1 FRWQ5:%d 12\n",FRWQ5); high_bass_param2.gain=12; mix_out_high_bass(AUDIO_EQ_HIGH, &high_bass_param2); } else { printfc("1 KEY_LONG_5 FRWQ5:%d -12\n",FRWQ5); high_bass_param2.gain=-12; mix_out_high_bass(AUDIO_EQ_HIGH, &high_bass_param2); } break; case KEY_LONG_6: high_bass_param2.freq=FRWQ6; static u8 key6_cnt; if(key6_cnt++%2) { printfc("0 KEY_LONG_6 FRWQ6:%d 12\n",FRWQ6); high_bass_param2.gain=12; mix_out_high_bass(AUDIO_EQ_HIGH, &high_bass_param2); } else { printfc("1 KEY_LONG_6 FRWQ6:%d -12\n",FRWQ6); high_bass_param2.gain=-12; mix_out_high_bass(AUDIO_EQ_HIGH, &high_bass_param2); } break; case KEY_LONG_7: high_bass_param2.freq=FRWQ7; static u8 key7_cnt; if(key7_cnt++%2) { printfc("0 KEY_LONG_7 FRWQ7:%d 12\n",FRWQ7); high_bass_param2.gain=12; mix_out_high_bass(AUDIO_EQ_HIGH, &high_bass_param2); } else { printfc("1 KEY_LONG_7 FRWQ7:%d -12\n",FRWQ7); high_bass_param2.gain=-12; mix_out_high_bass(AUDIO_EQ_HIGH, &high_bass_param2); } break; case KEY_LONG_8: high_bass_param2.freq=FRWQ8; static u8 key8_cnt; if(key8_cnt++%2) { printfc("0 KEY_LONG_8 FRWQ8:%d 12\n",FRWQ8); high_bass_param2.gain=12; mix_out_high_bass(AUDIO_EQ_HIGH, &high_bass_param2); } else { printfc("1 KEY_LONG_8 FRWQ8:%d -12\n",FRWQ8); high_bass_param2.gain=-12; mix_out_high_bass(AUDIO_EQ_HIGH, &high_bass_param2); } break; case KEY_LONG_9: high_bass_param2.freq=FRWQ9; static u8 key9_cnt; if(key9_cnt++%2) { printfc("0 KEY_LONG_9 FRWQ9:%d 12\n",FRWQ9); high_bass_param2.gain=12; mix_out_high_bass(AUDIO_EQ_HIGH, &high_bass_param2); } else { printfc("1 KEY_LONG_9 FRWQ9:%d -12\n",FRWQ9); high_bass_param2.gain=-12; mix_out_high_bass(AUDIO_EQ_HIGH, &high_bass_param2); } break; case KEY_DOUBLE_0: high_bass_param2.freq=FRWQ0; key0_cnt=0; printfc("2 KEY_DOUBLE_ FRWQ0:%d 0\n",FRWQ0); high_bass_param2.gain=0; mix_out_high_bass(AUDIO_EQ_HIGH, &high_bass_param2); break; case KEY_DOUBLE_1: high_bass_param2.freq=FRWQ1; key1_cnt=0; printfc("2 KEY_DOUBLE_ FRWQ1:%d 0\n",FRWQ1); high_bass_param2.gain=0; mix_out_high_bass(AUDIO_EQ_HIGH, &high_bass_param2); break; case KEY_DOUBLE_2: high_bass_param2.freq=FRWQ2; key2_cnt=0; printfc("2 KEY_DOUBLE_ FRWQ2:%d 0\n",FRWQ2); high_bass_param2.gain=0; mix_out_high_bass(AUDIO_EQ_HIGH, &high_bass_param2); break; case KEY_DOUBLE_3: high_bass_param2.freq=FRWQ3; key3_cnt=0; printfc("2 KEY_DOUBLE_ FRWQ3:%d 0\n",FRWQ3); high_bass_param2.gain=0; mix_out_high_bass(AUDIO_EQ_HIGH, &high_bass_param2); break; case KEY_DOUBLE_4: high_bass_param2.freq=FRWQ4; key4_cnt=0; printfc("2 KEY_DOUBLE_ FRWQ4:%d 0\n",FRWQ4); high_bass_param2.gain=0; mix_out_high_bass(AUDIO_EQ_HIGH, &high_bass_param2); break; case KEY_DOUBLE_5: high_bass_param2.freq=FRWQ5; key5_cnt=0; printfc("2 KEY_DOUBLE_ FRWQ5:%d 0\n",FRWQ5); high_bass_param2.gain=0; mix_out_high_bass(AUDIO_EQ_HIGH, &high_bass_param2); break; case KEY_DOUBLE_6: high_bass_param2.freq=FRWQ6; key6_cnt=0; printfc("2 KEY_DOUBLE_ FRWQ6:%d 0\n",FRWQ6); high_bass_param2.gain=0; mix_out_high_bass(AUDIO_EQ_HIGH, &high_bass_param2); break; case KEY_DOUBLE_7: high_bass_param2.freq=FRWQ7; key7_cnt=0; printfc("2 KEY_DOUBLE_ FRWQ7:%d 0\n",FRWQ7); high_bass_param2.gain=0; mix_out_high_bass(AUDIO_EQ_HIGH, &high_bass_param2); break; case KEY_DOUBLE_8: high_bass_param2.freq=FRWQ8; key8_cnt=0; printfc("2 KEY_DOUBLE_ FRWQ8:%d 0\n",FRWQ8); high_bass_param2.gain=0; mix_out_high_bass(AUDIO_EQ_HIGH, &high_bass_param2); break; case KEY_DOUBLE_9: high_bass_param2.freq=FRWQ9; key9_cnt=0; printfc("2 KEY_DOUBLE_ FRWQ9:%d 0\n",FRWQ9); high_bass_param2.gain=0; mix_out_high_bass(AUDIO_EQ_HIGH, &high_bass_param2); break; //////////////////////////////////////////////////////////////// }
标签:频率,DOUBLE,UP,LONG,SINGLE,LIFT,音量,KEY,高音 From: https://www.cnblogs.com/xuweihui/p/18112792