Home
last modified time | relevance | path

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

/netbsd-src/sys/dev/pci/
H A Dgcscaudio.c106 struct ac97_codec_if *codec_if; member
332 if (AC97_IS_4CH(sc->codec_if)) in gcscaudio_attach()
334 if (AC97_IS_6CH(sc->codec_if)) in gcscaudio_attach()
336 if (AC97_IS_FIXED_RATE(sc->codec_if)) { in gcscaudio_attach()
355 gcscaudio_attach_codec(void *arg, struct ac97_codec_if *codec_if) in gcscaudio_attach_codec() argument
360 sc->codec_if = codec_if; in gcscaudio_attach_codec()
477 sc->codec_if->vtbl->lock(sc->codec_if); in gcscaudio_open()
487 sc->codec_if->vtbl->unlock(sc->codec_if); in gcscaudio_close()
511 if (!AC97_IS_FIXED_RATE(sc->codec_if)) { in gcscaudio_set_format()
514 if ((error = sc->codec_if->vtbl->set_rate(sc->codec_if, in gcscaudio_set_format()
[all …]
H A Dauich.c179 struct ac97_codec_if *codec_if; member
631 sc->codec_if->vtbl->unlock(sc->codec_if); in auich_attach()
632 sc->sc_fixedrate = AC97_IS_FIXED_RATE(sc->codec_if); in auich_attach()
638 if (!AC97_IS_4CH(sc->codec_if)) in auich_attach()
640 if (!AC97_IS_6CH(sc->codec_if)) in auich_attach()
642 if (AC97_IS_FIXED_RATE(sc->codec_if)) { in auich_attach()
718 if (sc->codec_if != NULL) in auich_detach()
719 sc->codec_if->vtbl->detach(sc->codec_if); in auich_detach()
767 if (!AC97_IS_FIXED_RATE(sc->codec_if)) in auich_finish_attach()
868 sc->codec_if = cif; in auich_attach_codec()
[all …]
H A Dcs428x.c88 val = sc->codec_if->vtbl->mixer_set_port(sc->codec_if, cp); in cs428x_mixer_set_port()
99 return (sc->codec_if->vtbl->mixer_get_port(sc->codec_if, cp)); in cs428x_mixer_get_port()
108 return (sc->codec_if->vtbl->query_devinfo(sc->codec_if, dip)); in cs428x_query_devinfo()
176 cs428x_attach_codec(void *addr, struct ac97_codec_if *codec_if) in cs428x_attach_codec() argument
182 sc->codec_if = codec_if; in cs428x_attach_codec()
H A Dauacer.c109 struct ac97_codec_if *codec_if; member
328 if (!AC97_IS_4CH(sc->codec_if)) in auacer_attach()
330 if (!AC97_IS_6CH(sc->codec_if)) in auacer_attach()
332 if (AC97_IS_FIXED_RATE(sc->codec_if)) { in auacer_attach()
432 sc->codec_if = cif; in auacer_attach_codec()
506 return sc->codec_if->vtbl->set_rate(sc->codec_if, in auacer_set_rate()
508 ret = sc->codec_if->vtbl->set_rate(sc->codec_if, in auacer_set_rate()
513 ret = sc->codec_if->vtbl->set_rate(sc->codec_if, in auacer_set_rate()
518 ret = sc->codec_if->vtbl->set_rate(sc->codec_if, in auacer_set_rate()
627 return sc->codec_if->vtbl->mixer_set_port(sc->codec_if, cp); in auacer_set_port()
[all …]
H A Dauvia.c299 if (sc->codec_if != NULL) in auvia_detach()
300 sc->codec_if->vtbl->detach(sc->codec_if); in auvia_detach()
467 if (sc->sc_play.sc_base != VIA8233_MP_BASE || !AC97_IS_4CH(sc->codec_if)) { in auvia_attach()
470 if (sc->sc_play.sc_base != VIA8233_MP_BASE || !AC97_IS_6CH(sc->codec_if)) { in auvia_attach()
473 if (AC97_IS_FIXED_RATE(sc->codec_if)) { in auvia_attach()
486 sc->codec_if->vtbl->unlock(sc->codec_if); in auvia_attach()
497 sc->codec_if = cif; in auvia_attach_codec()
617 sc->codec_if->vtbl->lock(sc->codec_if); in auvia_open()
627 sc->codec_if->vtbl->unlock(sc->codec_if); in auvia_close()
698 codec = sc->codec_if; in auvia_set_format()
[all …]
H A Dauixp.c267 ret = co->codec_if->vtbl->set_rate(co->codec_if, in auixp_set_rate()
273 ret = co->codec_if->vtbl->set_rate(co->codec_if, in auixp_set_rate()
279 ret = co->codec_if->vtbl->set_rate(co->codec_if, in auixp_set_rate()
285 ret = co->codec_if->vtbl->set_rate(co->codec_if, in auixp_set_rate()
513 return co->codec_if->vtbl->mixer_set_port(co->codec_if, mc); in auixp_set_port()
524 return co->codec_if->vtbl->mixer_get_port(co->codec_if, mc); in auixp_get_port()
534 return co->codec_if->vtbl->query_devinfo(co->codec_if, di); in auixp_query_devinfo()
1181 sc->has_4ch = AC97_IS_4CH(codec->codec_if); in auixp_post_config()
1182 sc->has_6ch = AC97_IS_6CH(codec->codec_if); in auixp_post_config()
1183 sc->is_fixed = AC97_IS_FIXED_RATE(codec->codec_if); in auixp_post_config()
[all …]
H A Dneo.c160 struct ac97_codec_if *codec_if; member
543 sc->codec_if->vtbl->restore_ports(sc->codec_if); in neo_resume()
679 neo_attach_codec(void *v, struct ac97_codec_if *codec_if) in neo_attach_codec() argument
684 sc->codec_if = codec_if; in neo_attach_codec()
877 return sc->codec_if->vtbl->mixer_set_port(sc->codec_if, cp); in neo_mixer_set_port()
886 return sc->codec_if->vtbl->mixer_get_port(sc->codec_if, cp); in neo_mixer_get_port()
895 return sc->codec_if->vtbl->query_devinfo(sc->codec_if, dip); in neo_query_devinfo()
H A Dfms.c405 sc->codec_if = cif; in fms_attach_codec()
576 return sc->codec_if->vtbl->mixer_set_port(sc->codec_if, cp); in fms_set_port()
585 return sc->codec_if->vtbl->mixer_get_port(sc->codec_if, cp); in fms_get_port()
680 return sc->codec_if->vtbl->query_devinfo(sc->codec_if, dip); in fms_query_devinfo()
H A Dautri.c223 autri_attach_codec(void *sc_, struct ac97_codec_if *codec_if) in autri_attach_codec() argument
229 sc->codec_if = codec_if; in autri_attach_codec()
598 (sc->sc_codec.codec_if->vtbl->restore_ports)(sc->sc_codec.codec_if); in autri_resume()
977 return sc->sc_codec.codec_if->vtbl->mixer_set_port( in autri_mixer_set_port()
978 sc->sc_codec.codec_if, cp); in autri_mixer_set_port()
987 return sc->sc_codec.codec_if->vtbl->mixer_get_port( in autri_mixer_get_port()
988 sc->sc_codec.codec_if, cp); in autri_mixer_get_port()
997 return sc->sc_codec.codec_if->vtbl->query_devinfo( in autri_query_devinfo()
998 sc->sc_codec.codec_if, dip); in autri_query_devinfo()
H A Desm.c512 esm_attach_codec(void *sc, struct ac97_codec_if *codec_if) in esm_attach_codec() argument
517 ess->codec_if = codec_if; in esm_attach_codec()
1230 return ess->codec_if->vtbl->mixer_set_port(ess->codec_if, cp); in esm_set_port()
1239 return ess->codec_if->vtbl->mixer_get_port(ess->codec_if, cp); in esm_get_port()
1248 return ess->codec_if->vtbl->query_devinfo(ess->codec_if, dip); in esm_query_devinfo()
1675 if (ess->codec_if != NULL) { in esm_detach()
1677 ess->codec_if->vtbl->detach(ess->codec_if); in esm_detach()
1735 ess->codec_if->vtbl->restore_ports(ess->codec_if); in esm_resume()
H A Dyds.c730 sc->sc_codec[0].codec_if->vtbl->restore_ports(sc->sc_codec[0].codec_if); in yds_resume()
945 yds_attach_codec(void *sc_, struct ac97_codec_if *codec_if) in yds_attach_codec() argument
950 sc->codec_if = codec_if; in yds_attach_codec()
1645 return sc->sc_codec[0].codec_if->vtbl->mixer_set_port( in yds_mixer_set_port()
1646 sc->sc_codec[0].codec_if, cp); in yds_mixer_set_port()
1655 return sc->sc_codec[0].codec_if->vtbl->mixer_get_port( in yds_mixer_get_port()
1656 sc->sc_codec[0].codec_if, cp); in yds_mixer_get_port()
1665 return sc->sc_codec[0].codec_if->vtbl->query_devinfo( in yds_query_devinfo()
1666 sc->sc_codec[0].codec_if, dip); in yds_query_devinfo()
H A Desa.c449 return sc->codec_if->vtbl->mixer_set_port(sc->codec_if, mc); in esa_set_port()
460 return sc->codec_if->vtbl->mixer_get_port(sc->codec_if, mc); in esa_get_port()
471 return sc->codec_if->vtbl->query_devinfo(sc->codec_if, di); in esa_query_devinfo()
1171 esa_attach_codec(void *aux, struct ac97_codec_if *codec_if) in esa_attach_codec() argument
1176 sc->codec_if = codec_if; in esa_attach_codec()
1680 sc->codec_if->vtbl->restore_ports(sc->codec_if); in esa_resume()
H A Dfmsvar.h53 struct ac97_codec_if *codec_if; member
H A Dauviavar.h67 struct ac97_codec_if *codec_if; member
H A Dauixpvar.h74 struct ac97_codec_if *codec_if; member
H A Dautrivar.h49 struct ac97_codec_if *codec_if; member
H A Deap.c795 eap1371_attach_codec(void *sc_, struct ac97_codec_if *codec_if) in eap1371_attach_codec() argument
800 sc->codec_if = codec_if; in eap1371_attach_codec()
1263 return sc->codec_if->vtbl->mixer_set_port(sc->codec_if, cp); in eap1371_mixer_set_port()
1274 return sc->codec_if->vtbl->mixer_get_port(sc->codec_if, cp); in eap1371_mixer_get_port()
1285 return sc->codec_if->vtbl->query_devinfo(sc->codec_if, dip); in eap1371_query_devinfo()
H A Deapvar.h78 struct ac97_codec_if *codec_if; member
H A Dydsvar.h53 struct ac97_codec_if *codec_if; member
H A Desavar.h115 struct ac97_codec_if *codec_if; member
H A Desmvar.h168 struct ac97_codec_if *codec_if; member
H A Dcs428x.h139 struct ac97_codec_if *codec_if; member
H A Dcs4281.c655 (*sc->codec_if->vtbl->restore_ports)(sc->codec_if); in cs4281_resume()
H A Dcs4280.c799 (*sc->codec_if->vtbl->restore_ports)(sc->codec_if); in cs4280_resume()
/netbsd-src/sys/dev/ic/
H A Dac97.c500 struct ac97_codec_if codec_if; member
997 ac97_restore_shadow(struct ac97_codec_if *codec_if) in ac97_restore_shadow() argument
1004 as = (struct ac97_softc *)codec_if; in ac97_restore_shadow()
1252 as->codec_if.vtbl = &ac97civ; in ac97_attach_type()
1257 if ((error = host_if->attach(host_if->arg, &as->codec_if))) { in ac97_attach_type()
1590 ctl.dev = ac97_get_portnum_by_name(&as->codec_if, in ac97_attach_type()
1592 ac97_mixer_set_port(&as->codec_if, &ctl); in ac97_attach_type()
1596 ctl.dev = ac97_get_portnum_by_name(&as->codec_if, AudioCrecord, in ac97_attach_type()
1598 ac97_mixer_set_port(&as->codec_if, &ctl); in ac97_attach_type()
1605 ctl.dev = ac97_get_portnum_by_name(&as->codec_if, AudioCoutputs, in ac97_attach_type()
[all …]