27 #define GPIO_CS53x1_M_MASK 0x000c
28 #define GPIO_CS53x1_M_SINGLE 0x0000
29 #define GPIO_CS53x1_M_DOUBLE 0x0004
30 #define GPIO_CS53x1_M_QUAD 0x0008
49 static void xonar_ext_power_gpio_changed(
struct oxygen *
chip)
62 "Hey! Don't unplug the power cable!\n");
75 chip->
model.gpio_changed = xonar_ext_power_gpio_changed;
109 value->
value.integer.value[0] =
120 u16 old_bits, new_bits;
125 if (!!value->
value.integer.value[0] ^ invert)
126 new_bits = old_bits |
bit;
128 new_bits = old_bits & ~bit;
129 changed = new_bits != old_bits;