• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/sound/pci/echoaudio/

Lines Matching defs:chip

32 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe,
34 static int update_vmixer_level(struct echoaudio *chip);
37 static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id)
44 if ((err = init_dsp_comm_page(chip))) {
49 chip->device_id = device_id;
50 chip->subdevice_id = subdevice_id;
51 chip->bad_board = TRUE;
52 chip->dsp_code_to_load = &card_fw[FW_INDIGO_IO_DSP];
55 chip->asic_loaded = TRUE;
56 chip->input_clock_types = ECHO_CLOCK_BIT_INTERNAL;
58 if ((err = load_firmware(chip)) < 0)
60 chip->bad_board = FALSE;
62 if ((err = init_line_levels(chip)) < 0)
67 set_vmixer_gain(chip, 0, 0, 0);
68 set_vmixer_gain(chip, 1, 1, 0);
69 set_vmixer_gain(chip, 0, 2, 0);
70 set_vmixer_gain(chip, 1, 3, 0);
71 set_vmixer_gain(chip, 0, 4, 0);
72 set_vmixer_gain(chip, 1, 5, 0);
73 set_vmixer_gain(chip, 0, 6, 0);
74 set_vmixer_gain(chip, 1, 7, 0);
75 err = update_vmixer_level(chip);
83 static u32 detect_input_clocks(const struct echoaudio *chip)
91 static int load_asic(struct echoaudio *chip)
98 static int set_sample_rate(struct echoaudio *chip, u32 rate)
100 if (wait_handshake(chip))
103 chip->sample_rate = rate;
104 chip->comm_page->sample_rate = cpu_to_le32(rate);
105 clear_handshake(chip);
106 return send_vector(chip, DSP_VC_UPDATE_CLOCKS);
112 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe,
117 snd_assert(pipe < num_pipes_out(chip) &&
118 output < num_busses_out(chip), return -EINVAL);
120 if (wait_handshake(chip))
123 chip->vmixer_gain[output][pipe] = gain;
124 index = output * num_pipes_out(chip) + pipe;
125 chip->comm_page->vmixer[index] = gain;
134 static int update_vmixer_level(struct echoaudio *chip)
136 if (wait_handshake(chip))
138 clear_handshake(chip);
139 return send_vector(chip, DSP_VC_SET_VMIXER_GAIN);