Lines Matching refs:control_reg

119 	u32 control_reg;  in load_asic()  local
152 control_reg = GML_CONVERTER_ENABLE | GML_48KHZ; in load_asic()
153 err = write_control_reg(chip, control_reg, true); in load_asic()
200 u32 control_reg, clock; in set_sample_rate() local
246 control_reg = le32_to_cpu(chip->comm_page->control_register); in set_sample_rate()
247 control_reg &= GML_CLOCK_CLEAR_MASK; in set_sample_rate()
248 control_reg &= GML_SPDIF_RATE_CLEAR_MASK; in set_sample_rate()
263 if (control_reg & GML_SPDIF_PRO_MODE) in set_sample_rate()
288 control_reg |= clock; in set_sample_rate()
295 return write_control_reg(chip, control_reg, force_write); in set_sample_rate()
302 u32 control_reg, clocks_from_dsp; in set_input_clock() local
306 control_reg = le32_to_cpu(chip->comm_page->control_register) & in set_input_clock()
323 control_reg |= GML_SPDIF_CLOCK; in set_input_clock()
325 control_reg |= GML_DOUBLE_SPEED_MODE; in set_input_clock()
327 control_reg &= ~GML_DOUBLE_SPEED_MODE; in set_input_clock()
336 control_reg |= GML_WORD_CLOCK; in set_input_clock()
338 control_reg |= GML_DOUBLE_SPEED_MODE; in set_input_clock()
340 control_reg &= ~GML_DOUBLE_SPEED_MODE; in set_input_clock()
346 control_reg |= GML_ADAT_CLOCK; in set_input_clock()
347 control_reg &= ~GML_DOUBLE_SPEED_MODE; in set_input_clock()
356 return write_control_reg(chip, control_reg, true); in set_input_clock()
363 u32 control_reg; in dsp_set_digital_mode() local
392 control_reg = le32_to_cpu(chip->comm_page->control_register); in dsp_set_digital_mode()
393 control_reg &= GML_DIGITAL_MODE_CLEAR_MASK; in dsp_set_digital_mode()
398 control_reg |= GML_SPDIF_OPTICAL_MODE; in dsp_set_digital_mode()
410 control_reg |= GML_ADAT_MODE; in dsp_set_digital_mode()
411 control_reg &= ~GML_DOUBLE_SPEED_MODE; in dsp_set_digital_mode()
415 err = write_control_reg(chip, control_reg, false); in dsp_set_digital_mode()