Home
last modified time | relevance | path

Searched refs:codec_if (Results 1 – 24 of 24) sorted by relevance

/openbsd-src/sys/dev/ic/
H A Dac97.c308 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()
[all …]
H A Dac97.h65 u_int16_t (*get_caps)(struct ac97_codec_if *codec_if);
66 int (*set_rate)(struct ac97_codec_if *codec_if, int target,
68 void (*set_clock)(struct ac97_codec_if *codec_if,
70 void (*lock)(struct ac97_codec_if *codec_if);
71 void (*unlock)(struct ac97_codec_if *codec_if);
/openbsd-src/sys/dev/pci/
H A Dauacer.c98 struct ac97_codec_if *codec_if; member
347 sc->codec_if = cif; in auacer_attach_codec()
420 return sc->codec_if->vtbl->set_rate(sc->codec_if, in auacer_set_rate()
422 ret = sc->codec_if->vtbl->set_rate(sc->codec_if, in auacer_set_rate()
427 ret = sc->codec_if->vtbl->set_rate(sc->codec_if, in auacer_set_rate()
432 ret = sc->codec_if->vtbl->set_rate(sc->codec_if, in auacer_set_rate()
481 if (AC97_IS_FIXED_RATE(sc->codec_if)) in auacer_set_params()
558 return (sc->codec_if->vtbl->mixer_set_port(sc->codec_if, cp)); in auacer_set_port()
567 return (sc->codec_if->vtbl->mixer_get_port(sc->codec_if, cp)); in auacer_get_port()
576 return (sc->codec_if->vtbl->query_devinfo(sc->codec_if, dp)); in auacer_query_devinfo()
[all …]
H A Dauvia.c324 ctl.dev = sc->codec_if->vtbl->get_portnum_by_name(sc->codec_if, in auvia_attach()
336 ctl.dev = sc->codec_if->vtbl->get_portnum_by_name(sc->codec_if, in auvia_attach()
341 sc->codec_if->vtbl->unlock(sc->codec_if); in auvia_attach()
350 sc->codec_if = cif; in auvia_attach_codec()
470 sc->codec_if->vtbl->lock(sc->codec_if); in auvia_open()
479 sc->codec_if->vtbl->unlock(sc->codec_if); in auvia_close()
537 struct ac97_codec_if* codec = sc->codec_if; in auvia_set_params()
681 return (sc->codec_if->vtbl->mixer_set_port(sc->codec_if, cp)); in auvia_set_port()
690 return (sc->codec_if->vtbl->mixer_get_port(sc->codec_if, cp)); in auvia_get_port()
699 return (sc->codec_if->vtbl->query_devinfo(sc->codec_if, dip)); in auvia_query_devinfo()
[all …]
H A Dauglx.c193 struct ac97_codec_if *codec_if; member
407 sc->codec_if = cif; in auglx_attach_codec()
470 error = ac97_set_rate(sc->codec_if, in auglx_set_params()
476 error = ac97_set_rate(sc->codec_if, in auglx_set_params()
482 error = ac97_set_rate(sc->codec_if, in auglx_set_params()
495 error = ac97_set_rate(sc->codec_if, AC97_REG_PCM_LR_ADC_RATE, in auglx_set_params()
539 return sc->codec_if->vtbl->mixer_set_port(sc->codec_if, cp); in auglx_set_port()
546 return sc->codec_if->vtbl->mixer_get_port(sc->codec_if, cp); in auglx_get_port()
553 return sc->codec_if->vtbl->query_devinfo(sc->codec_if, dp); in auglx_query_devinfo()
909 ac97_resume(&sc->host_if, sc->codec_if); in auglx_activate()
H A Dauich.c180 struct ac97_codec_if *codec_if; member
504 sc->codec_if->vtbl->unlock(sc->codec_if); in auich_attach()
586 sc->codec_if = cif; in auich_attach_codec()
634 sc->codec_if->vtbl->lock(sc->codec_if); in auich_open()
644 sc->codec_if->vtbl->unlock(sc->codec_if); in auich_close()
652 struct ac97_codec_if *codec = sc->codec_if; in auich_set_params()
709 error = ac97_set_rate(sc->codec_if, in auich_set_params()
[all...]
H A Dneo.c151 struct ac97_codec_if *codec_if; member
673 neo_attach_codec(void *sc_, struct ac97_codec_if *codec_if) in neo_attach_codec() argument
677 sc->codec_if = codec_if; in neo_attach_codec()
873 return ((sc->codec_if->vtbl->mixer_set_port)(sc->codec_if, cp)); in neo_mixer_set_port()
881 return ((sc->codec_if->vtbl->mixer_get_port)(sc->codec_if, cp)); in neo_mixer_get_port()
889 return ((sc->codec_if->vtbl->query_devinfo)(sc->codec_if, dip)); in neo_query_devinfo()
H A Dfms.c239 ctl.dev = sc->codec_if->vtbl->get_portnum_by_name(sc->codec_if, in fms_attach()
323 sc->codec_if = cif; in fms_attach_codec()
530 return (sc->codec_if->vtbl->mixer_set_port(sc->codec_if, cp)); in fms_set_port()
538 return (sc->codec_if->vtbl->mixer_get_port(sc->codec_if, cp)); in fms_get_port()
625 return (sc->codec_if->vtbl->query_devinfo(sc->codec_if, dip)); in fms_query_devinfo()
H A Dauixp.c288 error = ac97_set_rate(co->codec_if, in auixp_set_params()
294 error = ac97_set_rate(co->codec_if, in auixp_set_params()
300 error = ac97_set_rate(co->codec_if, in auixp_set_params()
319 error = ac97_set_rate(co->codec_if, AC97_REG_PCM_LR_ADC_RATE, in auixp_set_params()
412 return co->codec_if->vtbl->mixer_set_port(co->codec_if, mc); in auixp_set_port()
423 return co->codec_if->vtbl->mixer_get_port(co->codec_if, mc); in auixp_get_port()
433 return co->codec_if->vtbl->query_devinfo(co->codec_if, d in auixp_query_devinfo()
1112 auixp_attach_codec(void * aux,struct ac97_codec_if * codec_if) auixp_attach_codec() argument
[all...]
H A Dautri.c207 autri_attach_codec(void *sc_, struct ac97_codec_if *codec_if) in autri_attach_codec() argument
213 sc->codec_if = codec_if; in autri_attach_codec()
548 ctl.dev = sc->sc_codec.codec_if->vtbl->get_portnum_by_name(sc->sc_codec.codec_if, in autri_attach()
579 ac97_resume(&sc->sc_codec.host_if, sc->sc_codec.codec_if); in autri_activate()
940 return (sc->sc_codec.codec_if->vtbl->mixer_set_port( in autri_mixer_set_port()
941 sc->sc_codec.codec_if, cp)); in autri_mixer_set_port()
949 return (sc->sc_codec.codec_if->vtbl->mixer_get_port( in autri_mixer_get_port()
950 sc->sc_codec.codec_if, cp)); in autri_mixer_get_port()
958 return (sc->sc_codec.codec_if->vtbl->query_devinfo( in autri_query_devinfo()
959 sc->sc_codec.codec_if, dip)); in autri_query_devinfo()
[all …]
H A Dmaestro.c441 struct ac97_codec_if *codec_if; member
696 sc->codec_if = NULL; in maestro_attach()
842 struct ac97_codec_if *c = ((struct maestro_softc *)self)->codec_if; in maestro_set_port()
858 struct ac97_codec_if *c = ((struct maestro_softc *)self)->codec_if; in maestro_get_port()
874 struct ac97_codec_if *c = ((struct maestro_softc *)self)->codec_if; in maestro_query_devinfo()
1273 sc->codec_if = cif; in maestro_attach_codec()
1460 if (status & HOSTINT_STAT_HWVOL && sc->codec_if != NULL) { in maestro_intr()
1469 sc->codec_if->vtbl->get_portnum_by_name(sc->codec_if, in maestro_intr()
1471 sc->codec_if in maestro_intr()
[all...]
H A Dcs4281.c118 struct ac97_codec_if *codec_if; member
969 ac97_resume(&sc->host_if, sc->codec_if); in cs4281_activate()
1110 val = sc->codec_if->vtbl->mixer_set_port(sc->codec_if, cp); in cs4281_mixer_set_port()
1121 return (sc->codec_if->vtbl->mixer_get_port(sc->codec_if, cp)); in cs4281_mixer_get_port()
1130 return (sc->codec_if->vtbl->query_devinfo(sc->codec_if, dip)); in cs4281_query_devinfo()
1186 cs4281_attach_codec(void *addr, struct ac97_codec_if *codec_if) in cs4281_attach_codec()
1192 sc->codec_if in cs4281_attach_codec()
1185 cs4281_attach_codec(void * addr,struct ac97_codec_if * codec_if) cs4281_attach_codec() argument
[all...]
H A Dcs4280.c152 struct ac97_codec_if *codec_if; member
910 cs4280_attach_codec(void *sc_, struct ac97_codec_if *codec_if) in cs4280_attach_codec() argument
914 sc->codec_if = codec_if; in cs4280_attach_codec()
1055 return (sc->codec_if->vtbl->mixer_get_port(sc->codec_if, cp)); in cs4280_mixer_get_port()
1063 return (sc->codec_if->vtbl->query_devinfo(sc->codec_if, dip)); in cs4280_query_devinfo()
1070 return (sc->codec_if->vtbl->get_portnum_by_name(sc->codec_if, clas in cs4280_get_portnum_by_name()
[all...]
H A Dyds.c780 ctl.dev = sc->sc_codec[0].codec_if->vtbl->get_portnum_by_name( in yds_attachhook()
781 sc->sc_codec[0].codec_if, AudioCoutputs, AudioNmaster, NULL); in yds_attachhook()
792 yds_attach_codec(void *sc_, struct ac97_codec_if *codec_if) in yds_attach_codec() argument
796 sc->codec_if = codec_if; in yds_attach_codec()
1478 return (sc->sc_codec[0].codec_if->vtbl->mixer_set_port( in yds_mixer_set_port()
1479 sc->sc_codec[0].codec_if, cp)); in yds_mixer_set_port()
1487 return (sc->sc_codec[0].codec_if->vtbl->mixer_get_port( in yds_mixer_get_port()
1488 sc->sc_codec[0].codec_if, cp)); in yds_mixer_get_port()
1496 return (sc->sc_codec[0].codec_if in yds_query_devinfo()
[all...]
H A Dauviavar.h64 struct ac97_codec_if *codec_if; member
H A Dfmsvar.h52 struct ac97_codec_if *codec_if; member
H A Deap.c138 struct ac97_codec_if *codec_if; member
608 ac97_resume(&sc->host_if, sc->codec_if); in eap_resume()
637 eap1371_attach_codec(void *sc_, struct ac97_codec_if *codec_if) in eap1371_attach_codec() argument
641 sc->codec_if = codec_if; in eap1371_attach_codec()
1070 return (sc->codec_if->vtbl->mixer_set_port(sc->codec_if, cp)); in eap1371_mixer_set_port()
1078 return (sc->codec_if->vtbl->mixer_get_port(sc->codec_if, cp)); in eap1371_mixer_get_port()
1086 return (sc->codec_if in eap1371_query_devinfo()
[all...]
H A Dauixpvar.h71 struct ac97_codec_if *codec_if; member
H A Dautrivar.h50 struct ac97_codec_if *codec_if; member
H A Desa.c452 return (sc->codec_if->vtbl->mixer_set_port(sc->codec_if, mc)); in esa_set_port()
461 return (sc->codec_if->vtbl->mixer_get_port(sc->codec_if, mc)); in esa_get_port()
470 return (sc->codec_if->vtbl->query_devinfo(sc->codec_if, di)); in esa_query_devinfo()
1101 esa_attach_codec(void *aux, struct ac97_codec_if *codec_if) in esa_attach_codec() argument
1105 sc->codec_if = codec_if; in esa_attach_codec()
H A Desavar.h113 struct ac97_codec_if *codec_if;
114 struct ac97_codec_if *codec_if; global() member
H A Denvyvar.h95 struct ac97_codec_if *codec_if; member
H A Denvy.c1314 envy_ac97_attach_codec(void *hdl, struct ac97_codec_if *codec_if) in envy_ac97_attach_codec() argument
1318 sc->codec_if = codec_if; in envy_ac97_attach_codec()
2255 return (sc->codec_if->vtbl->query_devinfo(sc->codec_if, dev)); in envy_query_devinfo()
2347 return (sc->codec_if->vtbl->mixer_get_port(sc->codec_if, ctl)); in envy_get_port()
2391 return (sc->codec_if->vtbl->mixer_set_port(sc->codec_if, ctl)); in envy_set_port()
H A Dydsreg.h339 struct ac97_codec_if *codec_if; member