Lines Matching defs:codec
710 struct yds_codec_softc *codec;
719 * Attach ac97 codec
733 codec = &sc->sc_codec[i];
734 memcpy(&codec->sc_dev, &sc->sc_dev, sizeof(codec->sc_dev));
735 codec->sc = sc;
736 codec->id = i == 1 ? ac97_id2 : 0;
737 codec->status_data = statregs[i].data;
738 codec->status_addr = statregs[i].addr;
739 codec->host_if.arg = codec;
740 codec->host_if.attach = yds_attach_codec;
741 codec->host_if.read = yds_read_codec;
742 codec->host_if.write = yds_write_codec;
743 codec->host_if.reset = yds_reset_codec;
745 if ((r = ac97_attach(&codec->host_if)) != 0) {
746 printf("%s: can't attach codec (error 0x%X)\n",
862 struct yds_codec_softc *codec = sc_;
863 struct yds_softc *sc = codec->sc;
866 /* reset AC97 codec */