Lines Matching defs:mode
101 /* Set the digital mode - currently for Gina24, Layla24, Mona, 3G */
102 static int set_digital_mode(struct echoaudio *chip, u8 mode)
107 /* All audio channels must be closed before changing the digital mode */
111 if (snd_BUG_ON(!(chip->digital_modes & (1 << mode))))
115 err = dsp_set_digital_mode(chip, mode);
117 /* If we successfully changed the digital mode from or to ADAT,
120 if (err >= 0 && previous_mode != mode &&
121 (previous_mode == DIGITAL_MODE_ADAT || mode == DIGITAL_MODE_ADAT)) {
245 * 48 kHz, internal clock, S/PDIF RCA mode */
262 /* Only set the clock for internal mode. */
377 static int dsp_set_digital_mode(struct echoaudio *chip, u8 mode)
382 /* Set clock to "internal" if it's not compatible with the new mode */
384 switch (mode) {
396 "Digital mode not supported: %d\n", mode);
407 /* Clear the current digital mode */
412 switch (mode) {
429 chip->digital_mode = mode;