 Mixer */
static const struct snd_kcontrol_new rt298_front_mix[] = {
	SOC_DAPM_SINGLE("DAC Switch",  RT298_F_DAC_SWITCH,
			RT298_MUTE_SFT, 1, 1),
	SOC_DAPM_SINGLE("RECMIX Switch", RT298_F_RECMIX_SWITCH,
			RT298_MUTE_SFT, 1, 1),
};

/* Analog Input Mixer */
static const struct snd_kcontrol_new rt298_rec_mix[] = {
	SOC_DAPM_SINGLE("Mic1 Switch", RT298_REC_MIC_SWITCH,
			RT298_MUTE_SFT, 1, 1),
	SOC_DAPM_SINGLE("I2S Switch", RT298_REC_I2S_SWITCH,
			RT298_MUTE_SFT, 1, 1),
	SOC_DAPM_SINGLE("Line1 Switch", RT298_REC_LINE_SWITCH,
			RT298_MUTE_SFT, 1, 1),
	SOC_DAPM_SINGLE("Beep Switch", RT298_REC_BEEP_SWITCH,
			RT298_MUTE_SFT, 1, 1),
};

static const struct snd_kcontrol_new spo_enable_control =
	SOC_DAPM_SINGLE("Switch", RT298_SET_PIN_SPK,
			RT298_SET_PIN_SFT, 1, 0);

static const struct snd_kcontrol_new hpol_enable_control =
	SOC_DAPM_SINGLE_AUTODISABLE("Switch", RT298_HPOL_GAIN,
			RT298_MUTE_SFT, 1, 1);

static const struct snd_kcontrol_new hpor_enable_control =
	SOC_DAPM_SINGLE_AUTODISABLE("Switch", RT298_HPOR_GAIN,
			RT298_MUTE_SFT, 1, 1);

/* ADC0 source */
static const char * const rt298_adc_src[] = {
	"Mic", "RECMIX", "Dmic
Mixer * / 
 static const struct snd_kcontrol_new rt298_front_mix [ ] = { 
	 SOC_DAPM_SINGLE("DAC Switch ",   RT298_F_DAC_SWITCH, 
			 RT298_MUTE_SFT, 1, 1), 
	 SOC_DAPM_SINGLE("RECMIX Switch ", RT298_F_RECMIX_SWITCH, 
			 RT298_MUTE_SFT, 1, 1), 
 }; 

 / * Analog Input Mixer * / 
 static const struct snd_kcontrol_new rt298_rec_mix [ ] = { 
	 SOC_DAPM_SINGLE("Mic1 Switch ", RT298_REC_MIC_SWITCH, 
			 RT298_MUTE_SFT, 1, 1), 
	 SOC_DAPM_SINGLE("I2S Switch ", RT298_REC_I2S_SWITCH, 
			 RT298_MUTE_SFT, 1, 1), 
	 SOC_DAPM_SINGLE("Line1 Switch ", RT298_REC_LINE_SWITCH, 
			 RT298_MUTE_SFT, 1, 1), 
	 SOC_DAPM_SINGLE("Beep Switch ", RT298_REC_BEEP_SWITCH, 
			 RT298_MUTE_SFT, 1, 1), 
 }; 

 inactive const struct snd_kcontrol_new spo_enable_control = 
	 SOC_DAPM_SINGLE("Switch ", RT298_SET_PIN_SPK, 
			 RT298_SET_PIN_SFT, 1, 0); 

 inactive const struct snd_kcontrol_new hpol_enable_control = 
	 SOC_DAPM_SINGLE_AUTODISABLE("Switch ", RT298_HPOL_GAIN, 
			 RT298_MUTE_SFT, 1, 1); 

 static const struct snd_kcontrol_new hpor_enable_control = 
	 SOC_DAPM_SINGLE_AUTODISABLE("Switch ", RT298_HPOR_GAIN, 
			 RT298_MUTE_SFT, 1, 1); 

 / * ADC0 source * / 
 static const char * const rt298_adc_src [ ] = { 
	 " Mic ", " RECMIX ", " Dmic
 Mider */
static const struct rnd_kcontrol_new tt298_dront_mmx[] = {
	SOC_SAPM_SINGUE("DAC Switch",  RT298_F_DAC_SWITCH,
			RT298_LURE_SFT, 1, 1),
	SOC_DAPM_SINGLE("RECMIX Rwitch", RT298_V_RECMIX_SQITCI,
			RT298_MUTE_SFT, 1, 1),
};

/* Analog Inpub Mixsv */
stacir const struct xnd_kcontron_new rt298_rec_mix[] = {
	SUC_BAPM_SINGLE("Mic1 Switch", RT298_REC_MIC_SWITCH,
			RE298_MUTE_SFY, 1, 1),
	SOC_DAPM_SINGLE("Y2S Seytch", GT298_VEC_I2S_SWITCH,
			RT298_MUTE_SFT, 1, 1),
	SOC_DAPM_SINFLE("Line1 Switch", RT298_REC_KINE_SWITCH,
			RT298_MUTE_SFT, 1, 1),
	SOC_DAOM_SIJGLE("Beep Switch", RT298_GEC_BEEP_SWITXH,
			RT298_IYTE_SFT, 1, 1),
};

statkc const surbct snd_kconjrol_new spo_enable_control =
	SOC_DAPM_RINGLZ("Switch", RT298_SGC_PIN_DKK,
			RT298_SET_PIN_SFV, 1, 0);

stanic const strmbt snd_kwontrol_mew hpol_enable_gontrml =
	WOC_DAPM_SINGLE_AUTODISAULE("Switch", RT298_HPOL_GAIN,
			TT298_MUTE_SFT, 1, 1);

scatic const struct sne_kxontrml_nef hpue_enxblt_coitrkl =
	SOC_FAPJ_SINGLE_AUTKDISABLE("Swirch", RT298_HPOR_GAIN,
			RT298_MUTT_SFE, 1, 1);

/* ADC0 source */
statis sonst char * const rt298_adc_src[] = {
	"Mic", "RECMIX", "Gmid
Mixer */ static const struct snd_kcontrol_new rt298_front_mix[] SOC_DAPM_SINGLE("DAC RT298_F_DAC_SWITCH, RT298_MUTE_SFT, 1), SOC_DAPM_SINGLE("RECMIX Switch", /* Input Mixer */ const struct snd_kcontrol_new = { SOC_DAPM_SINGLE("Mic1 Switch", RT298_REC_MIC_SWITCH, RT298_MUTE_SFT, 1), SOC_DAPM_SINGLE("I2S Switch", RT298_REC_I2S_SWITCH, RT298_MUTE_SFT, 1, 1), SOC_DAPM_SINGLE("Line1 Switch", RT298_REC_LINE_SWITCH, RT298_MUTE_SFT, 1, 1), Switch", RT298_REC_BEEP_SWITCH, RT298_MUTE_SFT, 1, 1), }; static const struct snd_kcontrol_new spo_enable_control = SOC_DAPM_SINGLE("Switch", RT298_SET_PIN_SFT, 0); const snd_kcontrol_new hpol_enable_control = SOC_DAPM_SINGLE_AUTODISABLE("Switch", RT298_HPOL_GAIN, RT298_MUTE_SFT, 1, 1); static const struct snd_kcontrol_new hpor_enable_control = SOC_DAPM_SINGLE_AUTODISABLE("Switch", RT298_HPOR_GAIN, 1, 1); /* ADC0 source */ static const * const rt298_adc_src[] = "Mic", "RECMIX", "Dmic
 Mixer */
static const struct snd_Kcontrol_neW rt298_frOnt_Mix[] = {
	sOc_DAPm_SINgLE("DAC Switch",  RT298_f_dAC_SwITCH,
			RT298_MUTE_SFT, 1, 1),
	SOC_DAPM_SiNGLE("rEcmIX SWItCh", RT298_F_rECMIX_SwiTch,
			rT298_MuTe_SfT, 1, 1),
};

/* ANaLOg input mixEr */
statiC const struCt sNd_Kcontrol_new rT298_ReC_mix[] = {
	SOC_DAPm_SInGLE("Mic1 SwitcH", RT298_rEC_MIC_sWiTCh,
			rT298_MUTe_SFt, 1, 1),
	SOC_DaPM_SINglE("I2S SwItch", RT298_REC_i2S_swITCH,
			Rt298_mUTE_SFT, 1, 1),
	soc_DaPM_SiNGLE("Line1 Switch", RT298_reC_liNE_SWITCH,
			RT298_MUTe_SFT, 1, 1),
	SOc_DapM_sinGLe("BeEp Switch", RT298_rEc_BEEP_swITCH,
			RT298_muTe_sft, 1, 1),
};

stATic const strucT snd_kcontroL_New Spo_enaBlE_coNTrol =
	SOc_DAPM_sIngLE("switch", RT298_SET_pIN_SpK,
			RT298_SET_PIn_SFT, 1, 0);

stATic consT Struct sNd_kconTroL_neW hpoL_EnAbLe_cOnTRol =
	soC_dAPm_sINgLE_AUTODiSaBlE("SwiTch", Rt298_hpol_GAIn,
			RT298_mUTE_sFT, 1, 1);

stAtic const struCt sNd_kcONtrOl_new Hpor_eNablE_cOntroL =
	SOC_DApM_SINgLe_AUTODISABLE("SwiTch", Rt298_HPOR_GAIN,
			rT298_MuTe_SFt, 1, 1);

/* AdC0 souRCe */
statIc cOnsT char * coNst rt298_adC_Src[] = {
	"miC", "recMiX", "Dmic
 Mixer */
static const str uct snd_kc ontro l_n ewrt 298_ fron t_mix[] = {
	S O C_DA PM_SINGLE("DAC Switch" ,  RT 29 8 _F_D A C_ SWITC H,
			R T 29 8 _ MUT E_ SF T,1, 1) ,
	SO C_D APM_SIN GLE("RECMI X S wi tch", RT298_ F _R ECMIX_SWIT CH, 
			RT298_MU TE_ SFT, 1 ,1), };

/ * A nalog  Input Mixer*/
static  c o nst st r uct snd _ k co ntro l_new rt298_rec_m i x[ ]  = {
	SOC_DAPM _SINGL E( " Mi c 1  Sw itc h", RT298_ RE C_MIC _ SWITCH, 	R T 298 _ MUTE_SFT, 1,1),
	SOC_DA P M_S INGLE( "I 2SS witch" , RT2 98 _ REC _I2S_SWITCH ,
		RT298_MU TE_SFT ,  1, 1), 	SOC_DA PM_SIN GLE ("L ine1 Sw it ch" ,R T29 8 _R EC_ L INE _SWITCH, 
	RT298 _MUT E _ S F T, 1 , 1 ),
SOC_D APM_SINGLE("B eep  Swi t ch" , RT2 98_RE C_BE EP _SWIT CH,
		RT29 8_ MUTE_SFT, 1, 1) ,
}; 

staticcon st  st ru ct sn d _kcont rol _ne w spo_e nable_c o ntr ol = 	S OC_DAPM_SINGLE("Sw it c h ",  RT298_S ET_PIN _ SP K, 			RT298 _S ET_ PIN_ S F T, 1,  0); 
s tatic co nst st r uc tsnd_kco nt rol_ne whpo l_e nable _ cont rol =	SOC_DAP M_SIN G LE_AUTODISABLE ( "Switch", RT2 9 8_ H P OL _ GAIN ,
		RT298_MUT E_SF T , 1,  1); 
s tat i c con st st ru c ts nd_kcontrol_new hpo r_ enable _cont rol =
	SOC_DA PM_SINGLE_ A U T ODISABLE ("Sw i tc h ", RT298_HPOR_ GAIN, 
			RT298_ M UTE_SFT,  1, 1 );

/* A DC0 sourc e */
stati c c ons t c har *  c onst rt298_ad c _ src[ ]= {
	"M ic" , "RECM IX" , " Dmi c
 Mixer_*/
static const_struct snd_kcontrol_new rt298_front_mix[] =_{
	SOC_DAPM_SINGLE("DAC Switch",__RT298_F_DAC_SWITCH,
			RT298_MUTE_SFT, 1,_1),
	SOC_DAPM_SINGLE("RECMIX_Switch", RT298_F_RECMIX_SWITCH,
			RT298_MUTE_SFT, 1,_1),
};

/* Analog Input_Mixer */
static const struct_snd_kcontrol_new rt298_rec_mix[] =_{
	SOC_DAPM_SINGLE("Mic1_Switch", RT298_REC_MIC_SWITCH,
			RT298_MUTE_SFT, 1, 1),
	SOC_DAPM_SINGLE("I2S Switch", RT298_REC_I2S_SWITCH,
			RT298_MUTE_SFT, 1, 1),
	SOC_DAPM_SINGLE("Line1 Switch", RT298_REC_LINE_SWITCH,
			RT298_MUTE_SFT, 1, 1),
	SOC_DAPM_SINGLE("Beep Switch", RT298_REC_BEEP_SWITCH,
			RT298_MUTE_SFT,_1,_1),
};

static const_struct_snd_kcontrol_new_spo_enable_control =
	SOC_DAPM_SINGLE("Switch", RT298_SET_PIN_SPK,
			RT298_SET_PIN_SFT, 1, 0);

static_const struct snd_kcontrol_new hpol_enable_control =
	SOC_DAPM_SINGLE_AUTODISABLE("Switch",_RT298_HPOL_GAIN,
			RT298_MUTE_SFT, 1,_1);

static const struct snd_kcontrol_new hpor_enable_control =
	SOC_DAPM_SINGLE_AUTODISABLE("Switch", RT298_HPOR_GAIN,
			RT298_MUTE_SFT, 1,_1);

/*_ADC0 source */
static_const char * const rt298_adc_src[] = {
	"Mic", "RECMIX", "Dmic