Lines Matching refs:ecard
48 static void ecard_setadcgain(struct emu10k1_card *card, struct ecard_state *ecard, u16 gain) in ecard_setadcgain() argument
51 ecard->adc_gain = gain; in ecard_setadcgain()
54 ecard_write(card, ecard->control_bits & ~EC_TRIM_CSN); in ecard_setadcgain()
57 ecard_write(card, ecard->control_bits & ~EC_TRIM_CSN); in ecard_setadcgain()
61 u32 value = ecard->control_bits & ~(EC_TRIM_CSN|EC_TRIM_SDATA); in ecard_setadcgain()
72 ecard_write(card, ecard->control_bits); in ecard_setadcgain()
117 struct ecard_state ecard; in emu10k1_ecard_init() local
120 ecard.mux0_setting = EC_DEFAULT_SPDIF0_SEL; in emu10k1_ecard_init()
121 ecard.mux1_setting = EC_DEFAULT_SPDIF1_SEL; in emu10k1_ecard_init()
122 ecard.mux2_setting = 0; in emu10k1_ecard_init()
123 ecard.adc_gain = EC_DEFAULT_ADC_GAIN; in emu10k1_ecard_init()
124 ecard.control_bits = EC_RAW_RUN_MODE | in emu10k1_ecard_init()
125 EC_SPDIF0_SELECT(ecard.mux0_setting) | in emu10k1_ecard_init()
126 EC_SPDIF1_SELECT(ecard.mux1_setting); in emu10k1_ecard_init()
151 ecard_write(card, ecard.control_bits); in emu10k1_ecard_init()
154 ecard_setadcgain(card, &ecard, ecard.adc_gain); in emu10k1_ecard_init()