Lines Matching defs:amixer_mgr
202 struct amixer_mgr *mgr)
232 static int get_amixer_rsc(struct amixer_mgr *mgr,
283 static int put_amixer_rsc(struct amixer_mgr *mgr, struct amixer *amixer)
299 int amixer_mgr_create(void *hw, struct amixer_mgr **ramixer_mgr)
302 struct amixer_mgr *amixer_mgr;
305 amixer_mgr = kzalloc(sizeof(*amixer_mgr), GFP_KERNEL);
306 if (!amixer_mgr)
309 err = rsc_mgr_init(&amixer_mgr->mgr, AMIXER, AMIXER_RESOURCE_NUM, hw);
313 spin_lock_init(&amixer_mgr->mgr_lock);
315 amixer_mgr->get_amixer = get_amixer_rsc;
316 amixer_mgr->put_amixer = put_amixer_rsc;
318 *ramixer_mgr = amixer_mgr;
323 kfree(amixer_mgr);
327 int amixer_mgr_destroy(struct amixer_mgr *amixer_mgr)
329 rsc_mgr_uninit(&amixer_mgr->mgr);
330 kfree(amixer_mgr);