Lines Matching defs:mode
98 /* Set the digital mode - currently for Gina24, Layla24, Mona, 3G */
99 static int set_digital_mode(struct echoaudio *chip, u8 mode)
104 /* All audio channels must be closed before changing the digital mode */
108 if (snd_BUG_ON(!(chip->digital_modes & (1 << mode))))
112 err = dsp_set_digital_mode(chip, mode);
114 /* If we successfully changed the digital mode from or to ADAT,
117 if (err >= 0 && previous_mode != mode &&
118 (previous_mode == DIGITAL_MODE_ADAT || mode == DIGITAL_MODE_ADAT)) {
242 * 48 kHz, internal clock, S/PDIF RCA mode */
259 /* 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) {
395 DE_ACT(("Digital mode not supported: %d\n", mode));
406 /* Clear the current digital mode */
411 switch (mode) {
428 chip->digital_mode = mode;