Lines Matching defs:component
49 struct snd_soc_component *component;
56 return gpio_priv->component;
70 struct snd_soc_component *component = gpio_to_component(chip);
72 dev_dbg(component->dev, "set gpio %d to output\n", offset);
73 return snd_soc_component_update_bits(component, AC97_GPIO_CFG,
79 struct snd_soc_component *component = gpio_to_component(chip);
82 ret = snd_soc_component_read(component, AC97_GPIO_STATUS);
84 dev_dbg(component->dev, "get gpio %d : %d\n", offset,
94 struct snd_soc_component *component = gpio_to_component(chip);
98 snd_soc_component_write(component, AC97_GPIO_STATUS,
100 dev_dbg(component->dev, "set gpio %d to %d\n", offset, !!value);
106 struct snd_soc_component *component = gpio_to_component(chip);
108 dev_dbg(component->dev, "set gpio %d to output\n", offset);
110 return snd_soc_component_update_bits(component, AC97_GPIO_CFG,
126 struct snd_soc_component *component)
131 gpio_priv = devm_kzalloc(component->dev, sizeof(*gpio_priv), GFP_KERNEL);
135 gpio_priv->component = component;
138 gpio_priv->gpio_chip.parent = component->dev;
143 dev_err(component->dev, "Failed to add GPIOs: %d\n", ret);
153 struct snd_soc_component *component)
165 * @component: The COMPONENT for which to create the AC'97 device
173 struct snd_ac97 *snd_soc_alloc_ac97_component(struct snd_soc_component *component)
185 ac97->dev.parent = component->card->dev;
189 component->card->snd_card->number, 0,
190 component->name);
200 * @component: audio component
204 * Initialises AC97 component resources for use by ad-hoc devices only.
212 struct snd_ac97 *snd_soc_new_ac97_component(struct snd_soc_component *component,
218 ac97 = snd_soc_alloc_ac97_component(component);
225 dev_err(component->dev, "Failed to reset AC97 device: %d\n",
235 ret = snd_soc_ac97_init_gpio(ac97, component);
248 * snd_soc_free_ac97_component - free AC97 component device
251 * Frees AC97 component device resources.