amixer_mgr
struct amixer_mgr *mgr)
static int get_amixer_rsc(struct amixer_mgr *mgr,
static int put_amixer_rsc(struct amixer_mgr *mgr, struct amixer *amixer)
struct amixer_mgr *amixer_mgr;
amixer_mgr = kzalloc_obj(*amixer_mgr);
if (!amixer_mgr)
err = rsc_mgr_init(&amixer_mgr->mgr, AMIXER, AMIXER_RESOURCE_NUM, hw);
spin_lock_init(&amixer_mgr->mgr_lock);
amixer_mgr->get_amixer = get_amixer_rsc;
amixer_mgr->put_amixer = put_amixer_rsc;
amixer_mgr->card = hw->card;
*ramixer_mgr = amixer_mgr;
kfree(amixer_mgr);
struct amixer_mgr *amixer_mgr = ptr;
rsc_mgr_uninit(&amixer_mgr->mgr);
kfree(amixer_mgr);
int (*get_amixer)(struct amixer_mgr *mgr,
int (*put_amixer)(struct amixer_mgr *mgr, struct amixer *amixer);
int amixer_mgr_destroy(void *amixer_mgr);
struct amixer_mgr *amixer_mgr = atc->rsc_mgrs[AMIXER];
err = amixer_mgr->get_amixer(amixer_mgr, &mix_dsc,
struct amixer_mgr *amixer_mgr = atc->rsc_mgrs[AMIXER];
amixer_mgr->put_amixer(amixer_mgr, apcm->amixers[i]);
struct amixer_mgr *amixer_mgr = atc->rsc_mgrs[AMIXER];
err = amixer_mgr->get_amixer(amixer_mgr, &mix_dsc,
struct amixer_mgr *amixer_mgr = atc->rsc_mgrs[AMIXER];
err = amixer_mgr->get_amixer(amixer_mgr, &mix_dsc,
struct amixer_mgr *amixer_mgr =
(struct amixer_mgr *)mixer->atc->rsc_mgrs[AMIXER];
amixer_mgr->put_amixer(amixer_mgr, amixer);
struct amixer_mgr *amixer_mgr;
amixer_mgr = (struct amixer_mgr *)mixer->atc->rsc_mgrs[AMIXER];
err = amixer_mgr->get_amixer(amixer_mgr, &am_desc, &amixer);
amixer_mgr->put_amixer(amixer_mgr, amixer);