Lines Matching full:codec

32  * Intel High Definition Audio (CODEC) driver for FreeBSD.
63 #define hdacc_lock(codec) snd_mtxlock((codec)->lock)
64 #define hdacc_unlock(codec) snd_mtxunlock((codec)->lock)
65 #define hdacc_lockassert(codec) snd_mtxassert((codec)->lock)
67 MALLOC_DEFINE(M_HDACC, "hdacc", "HDA CODEC");
478 device_set_descf(dev, "%s HDA CODEC", buf);
485 struct hdacc_softc *codec = device_get_softc(dev);
493 codec->lock = HDAC_GET_MTX(device_get_parent(dev), dev);
494 codec->dev = dev;
495 codec->cad = cad;
497 hdacc_lock(codec);
500 hdacc_unlock(codec);
503 codec->fgcnt = HDA_PARAM_SUB_NODE_COUNT_TOTAL(subnode);
505 endnode = startnode + codec->fgcnt;
514 codec->fgs = malloc(sizeof(struct hdacc_fg) * codec->fgcnt,
517 codec->fgs[n].nid = i;
518 hdacc_lock(codec);
519 codec->fgs[n].type =
522 codec->fgs[n].subsystem_id = hda_command(dev,
524 hdacc_unlock(codec);
525 codec->fgs[n].dev = child = device_add_child(dev, NULL, DEVICE_UNIT_ANY);
530 device_set_ivars(child, &codec->fgs[n]);
541 struct hdacc_softc *codec = device_get_softc(dev);
546 free(codec->fgs, M_HDACC);
585 struct hdacc_softc *codec = device_get_softc(dev);
602 hdacc_lock(codec);
605 hdacc_unlock(codec);
633 struct hdacc_softc *codec = device_get_softc(dev);
635 return (codec->lock);
649 struct hdacc_softc *codec = device_get_softc(dev);
655 codec->streams[dir][stream] = child;
662 struct hdacc_softc *codec = device_get_softc(dev);
664 codec->streams[dir][stream] = NULL;
701 struct hdacc_softc *codec = device_get_softc(dev);
704 if ((child = codec->streams[dir][stream]) != NULL)
711 struct hdacc_softc *codec = device_get_softc(dev);
717 if (codec->tags[tag] == NULL) {
718 codec->tags[tag] = child;
731 struct hdacc_softc *codec = device_get_softc(dev);
734 codec->tags[tag] = NULL;
741 struct hdacc_softc *codec = device_get_softc(dev);
746 if ((child = codec->tags[tag]) != NULL)
749 device_printf(codec->dev, "Unexpected unsolicited "