X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=audiomgr.c;h=cfbdc6722b98929219f6e9cac4a15b07faff9210;hb=acb229813f5845e8b38bea56870211319887f3b4;hp=138d9f132b112ca95bf14b17f975e7d4806b5895;hpb=9dc64e1e291d6518da0a918105c5bf7b1c603dd5;p=staging%2Fagl-audio-plugin.git diff --git a/audiomgr.c b/audiomgr.c index 138d9f1..cfbdc67 100644 --- a/audiomgr.c +++ b/audiomgr.c @@ -41,20 +41,20 @@ typedef struct { link_t *links; } routes_t; -struct pa_audiomgr { +struct agl_audiomgr { domain_t domain; pa_hashmap *nodes; /**< nodes ie. sinks and sources */ pa_hashmap *conns; /**< connections */ routes_t defrts; /**< default routes */ }; -struct pa_audiomgr *pa_audiomgr_init (struct userdata *u) +struct agl_audiomgr *agl_audiomgr_init (struct userdata *u) { - pa_audiomgr *am; + agl_audiomgr *am; pa_assert (u); - am = pa_xnew0 (pa_audiomgr, 1); + am = pa_xnew0 (agl_audiomgr, 1); am->domain.id = AM_ID_INVALID; am->domain.state = DS_DOWN; am->nodes = pa_hashmap_new (pa_idxset_trivial_hash_func, @@ -64,9 +64,9 @@ struct pa_audiomgr *pa_audiomgr_init (struct userdata *u) return am; } -void pa_audiomgr_done (struct userdata *u) +void agl_audiomgr_done (struct userdata *u) { - pa_audiomgr *am; + agl_audiomgr *am; if (u && (am = u->audiomgr)) { //if (u->routerif && am->domain.id != AM_ID_INVALID)