1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Linux driver for TerraTec DMX 6Fire USB
6 * Created: Jan 01, 2011
7 * Copyright: (C) Torsten Schenk
10 #ifndef USB6FIRE_CONTROL_H
11 #define USB6FIRE_CONTROL_H
16 CONTROL_MAX_ELEMENTS = 32
29 struct control_runtime {
30 int (*update_streaming)(struct control_runtime *rt);
31 int (*set_rate)(struct control_runtime *rt, int rate);
32 int (*set_channels)(struct control_runtime *rt, int n_analog_out,
33 int n_analog_in, bool spdif_out, bool spdif_in);
35 struct sfire_chip *chip;
37 struct snd_kcontrol *element[CONTROL_MAX_ELEMENTS];
39 bool line_phono_switch;
40 bool digital_thru_switch;
49 int usb6fire_control_init(struct sfire_chip *chip);
50 void usb6fire_control_abort(struct sfire_chip *chip);
51 void usb6fire_control_destroy(struct sfire_chip *chip);
52 #endif /* USB6FIRE_CONTROL_H */