Lines Matching refs:chip
29 static int set_sample_rate(struct echoaudio *chip, u32 rate)
33 if (wait_handshake(chip))
36 old_control_reg = le32_to_cpu(chip->comm_page->control_register);
64 dev_dbg(chip->card->dev,
66 chip->comm_page->control_register = cpu_to_le32(control_reg);
67 chip->sample_rate = rate;
68 clear_handshake(chip);
69 return send_vector(chip, DSP_VC_UPDATE_CLOCKS);
77 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe,
82 if (snd_BUG_ON(pipe >= num_pipes_out(chip) ||
83 output >= num_busses_out(chip)))
86 if (wait_handshake(chip))
89 chip->vmixer_gain[output][pipe] = gain;
90 index = output * num_pipes_out(chip) + pipe;
91 chip->comm_page->vmixer[index] = gain;
93 dev_dbg(chip->card->dev,
101 static int update_vmixer_level(struct echoaudio *chip)
103 if (wait_handshake(chip))
105 clear_handshake(chip);
106 return send_vector(chip, DSP_VC_SET_VMIXER_GAIN);
111 static u32 detect_input_clocks(const struct echoaudio *chip)
119 static int load_asic(struct echoaudio *chip)