• Home
  • Raw
  • Download

Lines Matching refs:ac97

130 static int snd_soc_ac97_init_gpio(struct snd_ac97 *ac97,  in snd_soc_ac97_init_gpio()  argument
139 ac97->gpio_priv = gpio_priv; in snd_soc_ac97_init_gpio()
152 static void snd_soc_ac97_free_gpio(struct snd_ac97 *ac97) in snd_soc_ac97_free_gpio() argument
154 gpiochip_remove(&ac97->gpio_priv->gpio_chip); in snd_soc_ac97_free_gpio()
157 static int snd_soc_ac97_init_gpio(struct snd_ac97 *ac97, in snd_soc_ac97_init_gpio() argument
163 static void snd_soc_ac97_free_gpio(struct snd_ac97 *ac97) in snd_soc_ac97_free_gpio() argument
180 struct snd_ac97 *ac97; in snd_soc_alloc_ac97_codec() local
182 ac97 = kzalloc(sizeof(struct snd_ac97), GFP_KERNEL); in snd_soc_alloc_ac97_codec()
183 if (ac97 == NULL) in snd_soc_alloc_ac97_codec()
186 ac97->bus = &soc_ac97_bus; in snd_soc_alloc_ac97_codec()
187 ac97->num = 0; in snd_soc_alloc_ac97_codec()
189 ac97->dev.bus = &ac97_bus_type; in snd_soc_alloc_ac97_codec()
190 ac97->dev.parent = codec->component.card->dev; in snd_soc_alloc_ac97_codec()
191 ac97->dev.release = soc_ac97_device_release; in snd_soc_alloc_ac97_codec()
193 dev_set_name(&ac97->dev, "%d-%d:%s", in snd_soc_alloc_ac97_codec()
197 device_initialize(&ac97->dev); in snd_soc_alloc_ac97_codec()
199 return ac97; in snd_soc_alloc_ac97_codec()
220 struct snd_ac97 *ac97; in snd_soc_new_ac97_codec() local
223 ac97 = snd_soc_alloc_ac97_codec(codec); in snd_soc_new_ac97_codec()
224 if (IS_ERR(ac97)) in snd_soc_new_ac97_codec()
225 return ac97; in snd_soc_new_ac97_codec()
228 ret = snd_ac97_reset(ac97, false, id, id_mask); in snd_soc_new_ac97_codec()
236 ret = device_add(&ac97->dev); in snd_soc_new_ac97_codec()
240 ret = snd_soc_ac97_init_gpio(ac97, codec); in snd_soc_new_ac97_codec()
244 return ac97; in snd_soc_new_ac97_codec()
247 put_device(&ac97->dev); in snd_soc_new_ac97_codec()
258 void snd_soc_free_ac97_codec(struct snd_ac97 *ac97) in snd_soc_free_ac97_codec() argument
260 snd_soc_ac97_free_gpio(ac97); in snd_soc_free_ac97_codec()
261 device_del(&ac97->dev); in snd_soc_free_ac97_codec()
262 ac97->bus = NULL; in snd_soc_free_ac97_codec()
263 put_device(&ac97->dev); in snd_soc_free_ac97_codec()
269 static void snd_soc_ac97_warm_reset(struct snd_ac97 *ac97) in snd_soc_ac97_warm_reset() argument
285 static void snd_soc_ac97_reset(struct snd_ac97 *ac97) in snd_soc_ac97_reset() argument