/* once codecs register, they are passed here after. *Theyareofcoursenotinitialised,sincethe *fabricisresponsibleforinitialisingsomefields
* in the codec structure! */ int (*found_codec)(struct aoa_codec *codec); /* called for each codec when it is removed, *alsointhecasethataoa_fabric_unregister *iscalledandallcodecsareremoved *fromthisfabric. *Alsocallediffound_codecreturned0but
* the codec couldn't initialise. */ void (*remove_codec)(struct aoa_codec *codec); /* If found_codec returned 0, and the codec
* could be initialised, this is called. */ void (*attached_codec)(struct aoa_codec *codec);
};
/* return 0 on success, -EEXIST if another fabric is *registered,-EALREADYifthesamefabricisregistered. *PassingNULLcanbeusedtotestforthepresence *ofanotherfabric,if-EALREADYisreturnedthereis *nootherfabricpresent. *Inthecasethatthefunctionreturns-EALREADY *andthefabricpassedisnotNULL,allcodecs *thatarenotassignedyetarepassedtothefabric
* again for reconsideration. */ externint
aoa_fabric_register(struct aoa_fabric *fabric, struct device *dev);
/* it is vital to call this when the fabric exits! *Whencalling,theremove_codecwillbecalled
* for all codecs, unless it is NULL. */ externvoid
aoa_fabric_unregister(struct aoa_fabric *fabric);
/* if for some reason you want to get rid of a codec *beforethefabricisremoved,usethis.
* Note that remove_codec is called for it! */ externvoid
aoa_fabric_unlink_codec(struct aoa_codec *codec);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.