• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/pci/echoaudio/

Lines Matching defs:chip

32 static int set_input_clock(struct echoaudio *chip, u16 clock);
33 static int set_professional_spdif(struct echoaudio *chip, char prof);
34 static int update_flags(struct echoaudio *chip);
35 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe,
37 static int update_vmixer_level(struct echoaudio *chip);
40 static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id)
48 if ((err = init_dsp_comm_page(chip))) {
53 chip->device_id = device_id;
54 chip->subdevice_id = subdevice_id;
55 chip->bad_board = TRUE;
56 chip->dsp_code_to_load = FW_MIA_DSP;
59 chip->asic_loaded = TRUE;
61 chip->has_midi = TRUE;
62 chip->input_clock_types = ECHO_CLOCK_BIT_INTERNAL |
65 if ((err = load_firmware(chip)) < 0)
67 chip->bad_board = FALSE;
75 static int set_mixer_defaults(struct echoaudio *chip)
77 return init_line_levels(chip);
82 static u32 detect_input_clocks(const struct echoaudio *chip)
88 clocks_from_dsp = le32_to_cpu(chip->comm_page->status_clocks);
101 static int load_asic(struct echoaudio *chip)
108 static int set_sample_rate(struct echoaudio *chip, u32 rate)
134 if (chip->input_clock == ECHO_CLOCK_SPDIF)
138 if (control_reg != le32_to_cpu(chip->comm_page->control_register)) {
139 if (wait_handshake(chip))
142 chip->comm_page->sample_rate = cpu_to_le32(rate); /* ignored by the DSP */
143 chip->comm_page->control_register = cpu_to_le32(control_reg);
144 chip->sample_rate = rate;
146 clear_handshake(chip);
147 return send_vector(chip, DSP_VC_UPDATE_CLOCKS);
154 static int set_input_clock(struct echoaudio *chip, u16 clock)
161 chip->input_clock = clock;
162 return set_sample_rate(chip, chip->sample_rate);
168 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe,
173 if (snd_BUG_ON(pipe >= num_pipes_out(chip) ||
174 output >= num_busses_out(chip)))
177 if (wait_handshake(chip))
180 chip->vmixer_gain[output][pipe] = gain;
181 index = output * num_pipes_out(chip) + pipe;
182 chip->comm_page->vmixer[index] = gain;
191 static int update_vmixer_level(struct echoaudio *chip)
193 if (wait_handshake(chip))
195 clear_handshake(chip);
196 return send_vector(chip, DSP_VC_SET_VMIXER_GAIN);
202 static int update_flags(struct echoaudio *chip)
204 if (wait_handshake(chip))
206 clear_handshake(chip);
207 return send_vector(chip, DSP_VC_UPDATE_FLAGS);
212 static int set_professional_spdif(struct echoaudio *chip, char prof)
216 chip->comm_page->flags |=
219 chip->comm_page->flags &=
221 chip->professional_spdif = prof;
222 return update_flags(chip);