28 #include <linux/slab.h>
61 snd_ice1712_stdsp24_gpio_write(ice, spec->
boxbits[0]);
70 snd_ice1712_stdsp24_gpio_write(ice, spec->
boxbits[3]);
79 snd_ice1712_stdsp24_gpio_write(ice, spec->
boxbits[3]);
91 snd_ice1712_stdsp24_gpio_write(ice, spec->
boxbits[0]);
97 snd_ice1712_stdsp24_gpio_write(ice, spec->
boxbits[2]);
98 snd_ice1712_stdsp24_gpio_write(ice, spec->
boxbits[3]);
104 snd_ice1712_stdsp24_gpio_write(ice, spec->
boxbits[1]);
105 snd_ice1712_stdsp24_gpio_write(ice, spec->
boxbits[2]);
109 snd_ice1712_stdsp24_gpio_write(ice, spec->
boxbits[2]);
116 snd_ice1712_stdsp24_gpio_write(ice, spec->
boxbits[1]);
123 snd_ice1712_stdsp24_gpio_write(ice, spec->
boxbits[1]);
124 snd_ice1712_stdsp24_gpio_write(ice, spec->
boxbits[2]);
128 snd_ice1712_stdsp24_gpio_write(ice, spec->
boxbits[2]);
133 static void __devinit snd_ice1712_stdsp24_box_midi(
struct snd_ice1712 *ice,
int box,
int master)
141 snd_ice1712_stdsp24_gpio_write(ice, spec->
boxbits[0]);
145 snd_ice1712_stdsp24_gpio_write(ice, spec->
boxbits[2]);
146 snd_ice1712_stdsp24_gpio_write(ice, spec->
boxbits[3]);
151 snd_ice1712_stdsp24_gpio_write(ice, spec->
boxbits[2]);
156 snd_ice1712_stdsp24_gpio_write(ice, spec->
boxbits[2]);
166 snd_ice1712_stdsp24_gpio_write(ice, spec->
boxbits[3]);
233 snd_ice1712_stdsp24_darear(ice,
235 snd_ice1712_stdsp24_mute(ice,
237 snd_ice1712_stdsp24_insel(ice,
239 for (box = 0; box < 4; box++) {
241 snd_ice1712_stdsp24_midi2(ice, 1);
242 for (chn = 0; chn < 4; chn++)
243 snd_ice1712_stdsp24_box_channel(ice, box, chn,
244 (spec->
boxconfig[box] & (1 << chn)) ? 1 : 0);
246 snd_ice1712_stdsp24_box_midi(ice, box, 1);
261 snd_ice1712_save_gpio_status(ice);
266 ice->
gpio.direction | tmp);
278 .lock = stdsp24_ak4524_lock
335 .name =
"Hoontech SoundTrack Audio DSP24",
337 .chip_init = snd_ice1712_hoontech_init,
338 .mpu401_1_name =
"MIDI-1 Hoontech/STA DSP24",
339 .mpu401_2_name =
"MIDI-2 Hoontech/STA DSP24",
343 .name =
"Hoontech SoundTrack Audio DSP24 Value",
344 .model =
"dsp24_value",
345 .chip_init = snd_ice1712_value_init,
349 .name =
"Hoontech STA DSP24 Media 7.1",
351 .chip_init = snd_ice1712_hoontech_init,
355 .name =
"Event Electronics EZ8",
357 .chip_init = snd_ice1712_ez8_init,