Lines Matching defs:component
42 struct snd_soc_component *component;
59 return gpio_priv->component;
73 struct snd_soc_component *component = gpio_to_component(chip);
75 dev_dbg(component->dev, "set gpio %d to output\n", offset);
76 return snd_soc_component_update_bits(component, AC97_GPIO_CFG,
82 struct snd_soc_component *component = gpio_to_component(chip);
85 ret = snd_soc_component_read(component, AC97_GPIO_STATUS);
87 dev_dbg(component->dev, "get gpio %d : %d\n", offset,
97 struct snd_soc_component *component = gpio_to_component(chip);
101 snd_soc_component_write(component, AC97_GPIO_STATUS,
103 dev_dbg(component->dev, "set gpio %d to %d\n", offset, !!value);
109 struct snd_soc_component *component = gpio_to_component(chip);
111 dev_dbg(component->dev, "set gpio %d to output\n", offset);
113 return snd_soc_component_update_bits(component, AC97_GPIO_CFG,
129 struct snd_soc_component *component)
134 gpio_priv = devm_kzalloc(component->dev, sizeof(*gpio_priv), GFP_KERNEL);
138 gpio_priv->component = component;
141 gpio_priv->gpio_chip.parent = component->dev;
146 dev_err(component->dev, "Failed to add GPIOs: %d\n", ret);
156 struct snd_soc_component *component)
168 * @component: The COMPONENT for which to create the AC'97 device
176 struct snd_ac97 *snd_soc_alloc_ac97_component(struct snd_soc_component *component)
188 ac97->dev.parent = component->card->dev;
192 component->card->snd_card->number, 0,
193 component->name);
203 * @component: audio component
207 * Initialises AC97 component resources for use by ad-hoc devices only.
215 struct snd_ac97 *snd_soc_new_ac97_component(struct snd_soc_component *component,
221 ac97 = snd_soc_alloc_ac97_component(component);
228 dev_err(component->dev, "Failed to reset AC97 device: %d\n",
238 ret = snd_soc_ac97_init_gpio(ac97, component);
251 * snd_soc_free_ac97_component - free AC97 component device
254 * Frees AC97 component device resources.