Lines Matching defs:mode
109 static int set_digital_mode(struct echoaudio *chip, u8 mode)
117 /* All audio channels must be closed before changing the digital mode */
121 if (snd_BUG_ON(!(chip->digital_modes & (1 << mode))))
125 err = dsp_set_digital_mode(chip, mode);
127 /* If we successfully changed the digital mode from or to ADAT,
130 if (err >= 0 && previous_mode != mode &&
131 (previous_mode == DIGITAL_MODE_ADAT || mode == DIGITAL_MODE_ADAT)) {
165 /* Set the new S/PDIF flags depending on the mode */
169 /* Professional mode */
185 /* Consumer mode */