Lines Matching refs:codec_if
308 struct ac97_codec_if codec_if; member
329 int ac97_set_rate(struct ac97_codec_if *codec_if, int target, u_long *rate);
330 void ac97_set_clock(struct ac97_codec_if *codec_if, unsigned int clock);
331 u_int16_t ac97_get_extcaps(struct ac97_codec_if *codec_if);
781 as->codec_if.as = as; in ac97_attach()
782 as->codec_if.vtbl = &ac97civ; in ac97_attach()
785 if ((error = host_if->attach(host_if->arg, &as->codec_if))) { in ac97_attach()
901 as->codec_if.initfunc = initfunc; in ac97_attach()
910 ctl.dev = ac97_get_portnum_by_name(&as->codec_if, AudioCoutputs, in ac97_attach()
912 ac97_mixer_set_port(&as->codec_if, &ctl); in ac97_attach()
914 ctl.dev = ac97_get_portnum_by_name(&as->codec_if, AudioCinputs, in ac97_attach()
916 ac97_mixer_set_port(&as->codec_if, &ctl); in ac97_attach()
918 ctl.dev = ac97_get_portnum_by_name(&as->codec_if, AudioCrecord, in ac97_attach()
920 ac97_mixer_set_port(&as->codec_if, &ctl); in ac97_attach()
924 ctl.dev = ac97_get_portnum_by_name(&as->codec_if, AudioCrecord, in ac97_attach()
926 ac97_mixer_set_port(&as->codec_if, &ctl); in ac97_attach()
932 ac97_resume(struct ac97_host_if *host_if, struct ac97_codec_if *codec_if) in ac97_resume() argument
934 struct ac97_softc *as = codec_if->as; in ac97_resume()
976 if (as->codec_if.initfunc != NULL) in ac97_resume()
977 as->codec_if.initfunc(as, 1); in ac97_resume()
983 ac97_lock(struct ac97_codec_if *codec_if) in ac97_lock() argument
985 struct ac97_softc *as = (struct ac97_softc *)codec_if; in ac97_lock()
990 ac97_unlock(struct ac97_codec_if *codec_if) in ac97_unlock() argument
992 struct ac97_softc *as = (struct ac97_softc *)codec_if; in ac97_unlock()
997 ac97_query_devinfo(struct ac97_codec_if *codec_if, mixer_devinfo_t *dip) in ac97_query_devinfo() argument
999 struct ac97_softc *as = (struct ac97_softc *)codec_if; in ac97_query_devinfo()
1035 ac97_mixer_set_port(struct ac97_codec_if *codec_if, mixer_ctrl_t *cp) in ac97_mixer_set_port() argument
1037 struct ac97_softc *as = (struct ac97_softc *)codec_if; in ac97_mixer_set_port()
1137 ac97_set_rate(struct ac97_codec_if *codec_if, int target, u_long *rate) in ac97_set_rate() argument
1146 as = (struct ac97_softc *)codec_if; in ac97_set_rate()
1233 ac97_set_clock(struct ac97_codec_if *codec_if, unsigned int clock) in ac97_set_clock() argument
1237 as = (struct ac97_softc *)codec_if; in ac97_set_clock()
1242 ac97_get_extcaps(struct ac97_codec_if *codec_if) in ac97_get_extcaps() argument
1246 as = (struct ac97_softc *)codec_if; in ac97_get_extcaps()
1281 si->mixer_class = ac97_get_portnum_by_name(&as->codec_if, si->class, in ac97_add_port()
1284 idx = ac97_get_portnum_by_name(&as->codec_if, si->class, in ac97_add_port()
1298 ac97_get_portnum_by_name(struct ac97_codec_if *codec_if, char *class, in ac97_get_portnum_by_name() argument
1301 struct ac97_softc *as = (struct ac97_softc *)codec_if; in ac97_get_portnum_by_name()
1316 ac97_mixer_get_port(struct ac97_codec_if *codec_if, mixer_ctrl_t *cp) in ac97_mixer_get_port() argument
1318 struct ac97_softc *as = (struct ac97_softc *)codec_if; in ac97_mixer_get_port()