33 static int set_professional_spdif(
struct echoaudio *
chip,
char prof);
48 if ((err = init_dsp_comm_page(chip))) {
49 DE_INIT((
"init_hw - could not initialize DSP comm page\n"));
65 if ((err = load_firmware(chip)) < 0)
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)
84 u32 clocks_from_dsp, clock_bits;
101 static int load_asic(
struct echoaudio *chip)
129 DE_ACT((
"set_sample_rate: %d invalid!\n", rate));
139 if (wait_handshake(chip))
146 clear_handshake(chip);
156 DE_ACT((
"set_input_clock(%d)\n", clock));
174 output >= num_busses_out(chip)))
177 if (wait_handshake(chip))
181 index = output * num_pipes_out(chip) +
pipe;
184 DE_ACT((
"set_vmixer_gain: pipe %d, out %d = %d\n", pipe, output, gain));
191 static int update_vmixer_level(
struct echoaudio *chip)
193 if (wait_handshake(chip))
195 clear_handshake(chip);
202 static int update_flags(
struct echoaudio *chip)
204 if (wait_handshake(chip))
206 clear_handshake(chip);
212 static int set_professional_spdif(
struct echoaudio *chip,
char prof)
214 DE_ACT((
"set_professional_spdif %d\n", prof));
222 return update_flags(chip);