gpio_runtime
struct gpio_runtime;
void (*init)(struct gpio_runtime *rt);
void (*exit)(struct gpio_runtime *rt);
void (*all_amps_off)(struct gpio_runtime *rt);
void (*all_amps_restore)(struct gpio_runtime *rt);
void (*set_headphone)(struct gpio_runtime *rt, int on);
void (*set_speakers)(struct gpio_runtime *rt, int on);
void (*set_lineout)(struct gpio_runtime *rt, int on);
void (*set_master)(struct gpio_runtime *rt, int on);
int (*get_headphone)(struct gpio_runtime *rt);
int (*get_speakers)(struct gpio_runtime *rt);
int (*get_lineout)(struct gpio_runtime *rt);
int (*get_master)(struct gpio_runtime *rt);
void (*set_hw_reset)(struct gpio_runtime *rt, int on);
int (*set_notify)(struct gpio_runtime *rt,
int (*get_detect)(struct gpio_runtime *rt,
struct gpio_runtime *gpio;
static void ftr_gpio_set_##name(struct gpio_runtime *rt, int on)\
static int ftr_gpio_get_##name(struct gpio_runtime *rt) \
static void ftr_gpio_set_hw_reset(struct gpio_runtime *rt, int on)
static void ftr_gpio_all_amps_off(struct gpio_runtime *rt)
static void ftr_gpio_all_amps_restore(struct gpio_runtime *rt)
static void ftr_gpio_init(struct gpio_runtime *rt)
static void ftr_gpio_exit(struct gpio_runtime *rt)
static int ftr_set_notify(struct gpio_runtime *rt,
static int ftr_get_detect(struct gpio_runtime *rt,
static int pmf_set_notify(struct gpio_runtime *rt,
static void pmf_gpio_set_##name(struct gpio_runtime *rt, int on)\
static int pmf_get_detect(struct gpio_runtime *rt,
static int pmf_gpio_get_##name(struct gpio_runtime *rt) \
static void pmf_gpio_set_hw_reset(struct gpio_runtime *rt, int on)
static void pmf_gpio_all_amps_off(struct gpio_runtime *rt)
static void pmf_gpio_all_amps_restore(struct gpio_runtime *rt)
static void pmf_gpio_init(struct gpio_runtime *rt)
static void pmf_gpio_exit(struct gpio_runtime *rt)
struct gpio_runtime gpio;
struct gpio_runtime *gpio = snd_kcontrol_chip(kcontrol); \
struct gpio_runtime *gpio = snd_kcontrol_chip(kcontrol); \