unused but intended to be used to correlate audio and wskbd devices.
ok ratchov@
-/* $OpenBSD: harmony.c,v 1.35 2020/05/29 04:42:23 deraadt Exp $ */
+/* $OpenBSD: harmony.c,v 1.36 2022/02/16 06:21:18 anton Exp $ */
/*
* Copyright (c) 2003 Jason L. Wright (jason@thought.net)
if ((rev & CS4215_REV_VER) >= CS4215_REV_VER_E)
sc->sc_hasulinear8 = 1;
- audio_attach_mi(&harmony_sa_hw_if, sc, &sc->sc_dv);
+ audio_attach_mi(&harmony_sa_hw_if, sc, NULL, &sc->sc_dv);
timeout_set(&sc->sc_acc_tmo, harmony_acc_tmo, sc);
sc->sc_acc_num = 0xa5a5a5a5;
-/* $OpenBSD: nec86.c,v 1.3 2016/09/19 06:46:43 ratchov Exp $ */
+/* $OpenBSD: nec86.c,v 1.4 2022/02/16 06:21:18 anton Exp $ */
/* $NecBSD: nec86.c,v 1.11 1999/07/23 11:04:39 honda Exp $ */
/* $NetBSD$ */
if (sc->sc_attached == 0) {
printf(": %s\n", boardname[ysc->model]);
- audio_attach_mi(&nec86_hw_if, ysc, &ysc->sc_dev);
+ audio_attach_mi(&nec86_hw_if, ysc, NULL, &ysc->sc_dev);
sc->sc_attached = 1;
}
}
-/* $OpenBSD: aoa.c,v 1.11 2020/08/26 03:29:06 visa Exp $ */
+/* $OpenBSD: aoa.c,v 1.12 2022/02/16 06:21:18 anton Exp $ */
/*-
* Copyright (c) 2005 Tsubai Masanari. All rights reserved.
{
struct aoa_softc *sc = (struct aoa_softc *)dev;
- audio_attach_mi(&aoa_hw_if, sc, &sc->sc_dev);
+ audio_attach_mi(&aoa_hw_if, sc, NULL, &sc->sc_dev);
deq_reset(sc);
}
-/* $OpenBSD: awacs.c,v 1.34 2016/09/19 06:46:43 ratchov Exp $ */
+/* $OpenBSD: awacs.c,v 1.35 2022/02/16 06:21:18 anton Exp $ */
/* $NetBSD: awacs.c,v 1.4 2001/02/26 21:07:51 wiz Exp $ */
/*-
awacs_halt_input(sc);
printf("\n");
- audio_attach_mi(&awacs_hw_if, sc, &sc->sc_dev);
+ audio_attach_mi(&awacs_hw_if, sc, NULL, &sc->sc_dev);
}
u_int
-/* $OpenBSD: daca.c,v 1.10 2016/09/19 06:46:43 ratchov Exp $ */
+/* $OpenBSD: daca.c,v 1.11 2022/02/16 06:21:18 anton Exp $ */
/*-
* Copyright (c) 2002,2003 Tsubai Masanari. All rights reserved.
/* XXX If i2c has failed to attach, what should we do? */
- audio_attach_mi(&daca_hw_if, sc, &sc->sc_dev);
+ audio_attach_mi(&daca_hw_if, sc, NULL, &sc->sc_dev);
daca_init(sc);
}
-/* $OpenBSD: onyx.c,v 1.12 2016/09/19 06:46:43 ratchov Exp $ */
+/* $OpenBSD: onyx.c,v 1.13 2022/02/16 06:21:18 anton Exp $ */
/*-
* Copyright (c) 2005 Tsubai Masanari. All rights reserved.
/* XXX If i2c has failed to attach, what should we do? */
- audio_attach_mi(&onyx_hw_if, sc, &sc->sc_dev);
+ audio_attach_mi(&onyx_hw_if, sc, NULL, &sc->sc_dev);
deq_reset(sc);
onyx_set_volume(sc, 192, 192);
-/* $OpenBSD: snapper.c,v 1.39 2020/08/26 03:29:06 visa Exp $ */
+/* $OpenBSD: snapper.c,v 1.40 2022/02/16 06:21:18 anton Exp $ */
/* $NetBSD: snapper.c,v 1.1 2003/12/27 02:19:34 grant Exp $ */
/*-
/* XXX If i2c has failed to attach, what should we do? */
- audio_attach_mi(&snapper_hw_if, sc, &sc->sc_dev);
+ audio_attach_mi(&snapper_hw_if, sc, NULL, &sc->sc_dev);
/* kiic_setmode(sc->sc_i2c, I2C_STDSUBMODE); */
snapper_init(sc);
-/* $OpenBSD: tumbler.c,v 1.9 2016/09/19 06:46:43 ratchov Exp $ */
+/* $OpenBSD: tumbler.c,v 1.10 2022/02/16 06:21:18 anton Exp $ */
/*-
* Copyright (c) 2001,2003 Tsubai Masanari. All rights reserved.
/* XXX If i2c has failed to attach, what should we do? */
- audio_attach_mi(&tumbler_hw_if, sc, &sc->sc_dev);
+ audio_attach_mi(&tumbler_hw_if, sc, NULL, &sc->sc_dev);
tumbler_init(sc);
}
-/* $OpenBSD: ce4231.c,v 1.37 2021/10/24 17:05:03 mpi Exp $ */
+/* $OpenBSD: ce4231.c,v 1.38 2022/02/16 06:21:18 anton Exp $ */
/*
* Copyright (c) 1999 Jason L. Wright (jason@thought.net)
printf(": nvaddrs %d\n", ea->ea_nvaddrs);
- audio_attach_mi(&ce4231_sa_hw_if, sc, &sc->sc_dev);
+ audio_attach_mi(&ce4231_sa_hw_if, sc, NULL, &sc->sc_dev);
/* Enable mode 2. */
ce4231_write(sc, SP_MISC_INFO, ce4231_read(sc, SP_MISC_INFO) | MODE2);
-/* $OpenBSD: audio.c,v 1.194 2022/01/09 05:42:36 jsg Exp $ */
+/* $OpenBSD: audio.c,v 1.195 2022/02/16 06:21:18 anton Exp $ */
/*
* Copyright (c) 2015 Alexandre Ratchov <alex@caoua.org>
*
struct audio_softc {
struct device dev;
struct audio_hw_if *ops; /* driver funcs */
+ void *cookie; /* wskbd cookie */
void *arg; /* first arg to driver funcs */
int mode; /* bitmask of AUMODE_* */
int quiesce; /* device suspended */
}
#endif
sc->ops = ops;
+ sc->cookie = sa->cookie;
sc->arg = arg;
#if NWSKBD > 0
}
struct device *
-audio_attach_mi(struct audio_hw_if *ops, void *arg, struct device *dev)
+audio_attach_mi(struct audio_hw_if *ops, void *arg, void *cookie, struct device *dev)
{
struct audio_attach_args aa;
aa.type = AUDIODEV_TYPE_AUDIO;
aa.hwif = ops;
aa.hdl = arg;
+ aa.cookie = cookie;
/*
* attach this driver to the caller (hardware driver), this
-/* $OpenBSD: audio_if.h,v 1.36 2019/09/05 05:33:57 ratchov Exp $ */
+/* $OpenBSD: audio_if.h,v 1.37 2022/02/16 06:21:18 anton Exp $ */
/* $NetBSD: audio_if.h,v 1.24 1998/01/10 14:07:25 tv Exp $ */
/*
int type;
void *hwif; /* either audio_hw_if * or midi_hw_if * */
void *hdl;
+ void *cookie;
};
#define AUDIODEV_TYPE_AUDIO 0
#define AUDIODEV_TYPE_MIDI 1
#define AUDIODEV_TYPE_RADIO 4
/* Attach the MI driver(s) to the MD driver. */
-struct device *audio_attach_mi(struct audio_hw_if *, void *, struct device *);
+struct device *audio_attach_mi(struct audio_hw_if *, void *, void *, struct device *);
int audioprint(void *, const char *);
int audio_blksz_bytes(int,
struct audio_params *, struct audio_params *, int);
-/* $OpenBSD: graphaudio.c,v 1.1 2021/04/07 17:12:22 kettenis Exp $ */
+/* $OpenBSD: graphaudio.c,v 1.2 2022/02/16 06:21:18 anton Exp $ */
/*
* Copyright (c) 2020 Patrick Wildt <patrick@blueri.se>
* Copyright (c) 2021 Mark Kettenis <kettenis@openbsd.org>
graphaudio_set_format(sc, fmt, pol, clk);
- audio_attach_mi(&graphaudio_hw_if, sc, &sc->sc_dev);
+ audio_attach_mi(&graphaudio_hw_if, sc, NULL, &sc->sc_dev);
}
void
-/* $OpenBSD: simpleaudio.c,v 1.2 2021/04/05 14:36:18 kn Exp $ */
+/* $OpenBSD: simpleaudio.c,v 1.3 2022/02/16 06:21:18 anton Exp $ */
/*
* Copyright (c) 2020 Patrick Wildt <patrick@blueri.se>
*
simpleaudio_set_format(sc, fmt, pol, clk);
- audio_attach_mi(&simpleaudio_hw_if, sc, &sc->sc_dev);
+ audio_attach_mi(&simpleaudio_hw_if, sc, NULL, &sc->sc_dev);
}
void
-/* $OpenBSD: arcofi.c,v 1.17 2016/09/19 22:21:09 kettenis Exp $ */
+/* $OpenBSD: arcofi.c,v 1.18 2022/02/16 06:21:18 anton Exp $ */
/*
* Copyright (c) 2011 Miodrag Vallat.
arcofi_write(sc, ARCOFI_FIFO_IR, 0);
arcofi_write(sc, ARCOFI_CSR, CSR_INTR_ENABLE);
- audio_attach_mi(&arcofi_hw_if, sc, &sc->sc_dev);
+ audio_attach_mi(&arcofi_hw_if, sc, NULL, &sc->sc_dev);
return;
error:
-/* $OpenBSD: ess.c,v 1.26 2022/01/09 05:42:42 jsg Exp $ */
+/* $OpenBSD: ess.c,v 1.27 2022/02/16 06:21:18 anton Exp $ */
/* $NetBSD: ess.c,v 1.44.4.1 1999/06/21 01:18:00 thorpej Exp $ */
/*
sc->spkr_state = SPKR_OFF;
if (ESS_USE_AUDIO1(sc->sc_model))
- audio_attach_mi(&ess_1788_hw_if, sc, &sc->sc_dev);
+ audio_attach_mi(&ess_1788_hw_if, sc, NULL, &sc->sc_dev);
else
- audio_attach_mi(&ess_1888_hw_if, sc, &sc->sc_dev);
+ audio_attach_mi(&ess_1888_hw_if, sc, NULL, &sc->sc_dev);
arg.type = AUDIODEV_TYPE_OPL;
arg.hwif = 0;
-/* $OpenBSD: gus.c,v 1.48 2021/03/07 06:17:03 jsg Exp $ */
+/* $OpenBSD: gus.c,v 1.49 2022/02/16 06:21:18 anton Exp $ */
/* $NetBSD: gus.c,v 1.51 1998/01/25 23:48:06 mycroft Exp $ */
/*-
*/
audio_attach_mi(&gus_hw_if, HAS_CODEC(sc) ? (void *)&sc->sc_codec :
- (void *)sc, &sc->sc_dev);
+ (void *)sc, NULL, &sc->sc_dev);
}
/*
-/* $OpenBSD: pas.c,v 1.30 2021/03/07 06:17:04 jsg Exp $ */
+/* $OpenBSD: pas.c,v 1.31 2022/02/16 06:21:18 anton Exp $ */
/* $NetBSD: pas.c,v 1.37 1998/01/12 09:43:43 thorpej Exp $ */
/*
sbdsp_attach(&sc->sc_sbdsp);
- audio_attach_mi(&pas_hw_if, &sc->sc_sbdsp, &sc->sc_sbdsp.sc_dev);
+ audio_attach_mi(&pas_hw_if, &sc->sc_sbdsp, NULL, &sc->sc_sbdsp.sc_dev);
}
-/* $OpenBSD: sb.c,v 1.30 2021/03/07 06:17:04 jsg Exp $ */
+/* $OpenBSD: sb.c,v 1.31 2022/02/16 06:21:18 anton Exp $ */
/* $NetBSD: sb.c,v 1.57 1998/01/12 09:43:46 thorpej Exp $ */
/*
midi_attach_mi(mhw, sc, &sc->sc_dev);
#endif
- audio_attach_mi(&sb_hw_if, sc, &sc->sc_dev);
+ audio_attach_mi(&sb_hw_if, sc, NULL, &sc->sc_dev);
arg.type = AUDIODEV_TYPE_OPL;
arg.hwif = 0;
-/* $OpenBSD: auacer.c,v 1.22 2019/12/14 12:35:19 fcambus Exp $ */
+/* $OpenBSD: auacer.c,v 1.23 2022/02/16 06:21:18 anton Exp $ */
/* $NetBSD: auacer.c,v 1.3 2004/11/10 04:20:26 kent Exp $ */
/*-
if (ac97_attach(&sc->host_if) != 0)
return;
- audio_attach_mi(&auacer_hw_if, sc, &sc->sc_dev);
+ audio_attach_mi(&auacer_hw_if, sc, NULL, &sc->sc_dev);
auacer_reset(sc);
}
-/* $OpenBSD: auglx.c,v 1.17 2019/12/14 12:37:05 fcambus Exp $ */
+/* $OpenBSD: auglx.c,v 1.18 2022/02/16 06:21:18 anton Exp $ */
/*
* Copyright (c) 2008 Marc Balmer <mbalmer@openbsd.org>
bus_space_unmap(sc->sc_iot, sc->sc_ioh, bar_size);
return;
}
- audio_attach_mi(&auglx_hw_if, sc, &sc->sc_dev);
+ audio_attach_mi(&auglx_hw_if, sc, NULL, &sc->sc_dev);
}
/* Functions to communicate with the AC97 Codec via the ACC */
-/* $OpenBSD: auich.c,v 1.113 2022/01/09 05:42:45 jsg Exp $ */
+/* $OpenBSD: auich.c,v 1.114 2022/02/16 06:21:18 anton Exp $ */
/*
* Copyright (c) 2000,2001 Michael Shalayeff
goto fail_disestablish_intr;
sc->codec_if->vtbl->unlock(sc->codec_if);
- audio_attach_mi(&auich_hw_if, sc, &sc->sc_dev);
+ audio_attach_mi(&auich_hw_if, sc, NULL, &sc->sc_dev);
/* Watch for power changes */
sc->suspend = DVACT_RESUME;
-/* $OpenBSD: auixp.c,v 1.44 2022/01/09 05:42:45 jsg Exp $ */
+/* $OpenBSD: auixp.c,v 1.45 2022/02/16 06:21:18 anton Exp $ */
/* $NetBSD: auixp.c,v 1.9 2005/06/27 21:13:09 thorpej Exp $ */
/*
return;
}
- audio_attach_mi(&auixp_hw_if, &sc->sc_codec, &sc->sc_dev);
+ audio_attach_mi(&auixp_hw_if, &sc->sc_codec, NULL, &sc->sc_dev);
if (sc->has_spdif)
sc->has_spdif = 0;
-/* $OpenBSD: autri.c,v 1.44 2020/01/11 09:08:39 cheloha Exp $ */
+/* $OpenBSD: autri.c,v 1.45 2022/02/16 06:21:18 anton Exp $ */
/*
* Copyright (c) 2001 SOMEYA Yoshihiko and KUROSAWA Takahiro.
ctl.dev = autri_get_portnum_by_name(sc,AudioCoutputs,AudioNmaster,NULL);
autri_mixer_set_port(sc, &ctl);
- audio_attach_mi(&autri_hw_if, sc, &sc->sc_dev);
+ audio_attach_mi(&autri_hw_if, sc, NULL, &sc->sc_dev);
#if NMIDI > 0
midi_attach_mi(&autri_midi_hw_if, sc, &sc->sc_dev);
-/* $OpenBSD: auvia.c,v 1.60 2019/12/01 21:14:13 fcambus Exp $ */
+/* $OpenBSD: auvia.c,v 1.61 2022/02/16 06:21:18 anton Exp $ */
/* $NetBSD: auvia.c,v 1.28 2002/11/04 16:38:49 kent Exp $ */
/*-
AudioCoutputs, AudioNmaster, NULL);
auvia_set_port(sc, &ctl);
- audio_attach_mi(&auvia_hw_if, sc, &sc->sc_dev);
+ audio_attach_mi(&auvia_hw_if, sc, NULL, &sc->sc_dev);
sc->codec_if->vtbl->unlock(sc->codec_if);
}
-/* $OpenBSD: azalia.c,v 1.268 2022/01/11 00:37:23 jsg Exp $ */
+/* $OpenBSD: azalia.c,v 1.269 2022/02/16 06:21:18 anton Exp $ */
/* $NetBSD: azalia.c,v 1.20 2006/05/07 08:31:44 kent Exp $ */
/*-
if (azalia_init_streams(sc))
goto err_exit;
- audio_attach_mi(&azalia_hw_if, sc, &sc->dev);
+ audio_attach_mi(&azalia_hw_if, sc, NULL, &sc->dev);
return;
-/* $OpenBSD: cmpci.c,v 1.46 2022/01/09 05:42:45 jsg Exp $ */
+/* $OpenBSD: cmpci.c,v 1.47 2022/02/16 06:21:18 anton Exp $ */
/* $NetBSD: cmpci.c,v 1.25 2004/10/26 06:32:20 xtraeme Exp $ */
/*
sc->sc_dmat = pa->pa_dmat;
- audio_attach_mi(&cmpci_hw_if, sc, &sc->sc_dev);
+ audio_attach_mi(&cmpci_hw_if, sc, NULL, &sc->sc_dev);
/* attach OPL device */
aa.type = AUDIODEV_TYPE_OPL;
-/* $OpenBSD: cs4280.c,v 1.54 2022/01/09 05:42:45 jsg Exp $ */
+/* $OpenBSD: cs4280.c,v 1.55 2022/02/16 06:21:19 anton Exp $ */
/* $NetBSD: cs4280.c,v 1.5 2000/06/26 04:56:23 simonb Exp $ */
/*
AudioNcd, AudioNmute);
cs4280_mixer_set_port(sc, &ctl);
- audio_attach_mi(&cs4280_hw_if, sc, &sc->sc_dev);
+ audio_attach_mi(&cs4280_hw_if, sc, NULL, &sc->sc_dev);
#if NMIDI > 0
midi_attach_mi(&cs4280_midi_hw_if, sc, &sc->sc_dev);
-/* $OpenBSD: cs4281.c,v 1.39 2022/01/09 05:42:45 jsg Exp $ */
+/* $OpenBSD: cs4281.c,v 1.40 2022/02/16 06:21:19 anton Exp $ */
/* $Tera: cs4281.c,v 1.18 2000/12/27 14:24:45 tacha Exp $ */
/*
printf("%s: ac97_attach failed\n", sc->sc_dev.dv_xname);
return;
}
- audio_attach_mi(&cs4281_hw_if, sc, &sc->sc_dev);
+ audio_attach_mi(&cs4281_hw_if, sc, NULL, &sc->sc_dev);
#if NMIDI > 0
midi_attach_mi(&cs4281_midi_hw_if, sc, &sc->sc_dev);
-/* $OpenBSD: eap.c,v 1.58 2020/01/11 09:09:09 cheloha Exp $ */
+/* $OpenBSD: eap.c,v 1.59 2022/02/16 06:21:19 anton Exp $ */
/* $NetBSD: eap.c,v 1.46 2001/09/03 15:07:37 reinoud Exp $ */
/*
eap_hw_if = &eap1371_hw_if;
}
- audio_attach_mi(eap_hw_if, sc, &sc->sc_dev);
+ audio_attach_mi(eap_hw_if, sc, NULL, &sc->sc_dev);
#if NMIDI > 0
sc->sc_mididev = midi_attach_mi(&eap_midi_hw_if, sc, &sc->sc_dev);
#endif
-/* $OpenBSD: emuxki.c,v 1.55 2022/01/09 05:42:45 jsg Exp $ */
+/* $OpenBSD: emuxki.c,v 1.56 2022/02/16 06:21:19 anton Exp $ */
/* $NetBSD: emuxki.c,v 1.1 2001/10/17 18:39:41 jdolecek Exp $ */
/*-
if (emuxki_scinit(sc, 0) ||
/* APS has no ac97 XXX */
(sc->sc_flags & EMUXKI_APS || emuxki_ac97_init(sc)) ||
- (sc->sc_audev = audio_attach_mi(&emuxki_hw_if, sc, self)) == NULL) {
+ (sc->sc_audev = audio_attach_mi(&emuxki_hw_if, sc, NULL, self)) == NULL) {
emuxki_pci_shutdown(sc);
return;
}
-/* $OpenBSD: envy.c,v 1.81 2020/01/05 01:07:58 jsg Exp $ */
+/* $OpenBSD: envy.c,v 1.82 2022/02/16 06:21:19 anton Exp $ */
/*
* Copyright (c) 2007 Alexandre Ratchov <alex@caoua.org>
*
printf("%s: %s, %u inputs, %u outputs\n", DEVNAME(sc),
sc->card->name, sc->card->nich, sc->card->noch);
envy_reset(sc);
- sc->audio = audio_attach_mi(&envy_hw_if, sc, &sc->dev);
+ sc->audio = audio_attach_mi(&envy_hw_if, sc, NULL, &sc->dev);
#if NMIDI > 0
if (sc->card->nmidi > 0 && (!sc->isht ||
sc->eeprom[ENVY_EEPROM_CONF] & ENVY_CONF_MIDI)) {
-/* $OpenBSD: esa.c,v 1.35 2018/09/14 08:37:34 miko Exp $ */
+/* $OpenBSD: esa.c,v 1.36 2022/02/16 06:21:19 anton Exp $ */
/* $NetBSD: esa.c,v 1.12 2002/03/24 14:17:35 jmcneill Exp $ */
/*
sc->voice[i].parent = (struct device *)sc;
sc->voice[i].index = i;
sc->sc_audiodev[i] =
- audio_attach_mi(&esa_hw_if, &sc->voice[i], &sc->sc_dev);
+ audio_attach_mi(&esa_hw_if, &sc->voice[i], NULL, &sc->sc_dev);
}
}
-/* $OpenBSD: eso.c,v 1.47 2020/01/19 00:18:34 cheloha Exp $ */
+/* $OpenBSD: eso.c,v 1.48 2022/02/16 06:21:19 anton Exp $ */
/* $NetBSD: eso.c,v 1.48 2006/12/18 23:13:39 kleink Exp $ */
/*
config_defer((struct device *)sc, eso_defer);
}
- audio_attach_mi(&eso_hw_if, sc, &sc->sc_dev);
+ audio_attach_mi(&eso_hw_if, sc, NULL, &sc->sc_dev);
aa.type = AUDIODEV_TYPE_OPL;
aa.hwif = NULL;
-/* $OpenBSD: fms.c,v 1.30 2016/12/20 15:31:00 ratchov Exp $ */
+/* $OpenBSD: fms.c,v 1.31 2022/02/16 06:21:19 anton Exp $ */
/* $NetBSD: fms.c,v 1.5.4.1 2000/06/30 16:27:50 simonb Exp $ */
/*-
fms_set_port(sc, &ctl);
}
- audio_attach_mi(&fms_hw_if, sc, &sc->sc_dev);
+ audio_attach_mi(&fms_hw_if, sc, NULL, &sc->sc_dev);
aa.type = AUDIODEV_TYPE_OPL;
aa.hwif = NULL;
-/* $OpenBSD: maestro.c,v 1.43 2018/04/11 04:48:31 ratchov Exp $ */
+/* $OpenBSD: maestro.c,v 1.44 2022/02/16 06:21:19 anton Exp $ */
/* $FreeBSD: /c/ncvs/src/sys/dev/sound/pci/maestro.c,v 1.3 2000/11/21 12:22:11 julian Exp $ */
/*
* FreeBSD's ESS Agogo/Maestro driver
sc->record.mode = 0;
/* Attach audio */
- audio_attach_mi(&maestro_hw_if, sc, &sc->dev);
+ audio_attach_mi(&maestro_hw_if, sc, NULL, &sc->dev);
return;
bad:
-/* $OpenBSD: neo.c,v 1.34 2022/01/09 05:42:58 jsg Exp $ */
+/* $OpenBSD: neo.c,v 1.35 2022/02/16 06:21:19 anton Exp $ */
/*
* Copyright (c) 1999 Cameron Grant <gandalf@vilnya.demon.co.uk>
if ((error = ac97_attach(&sc->host_if)) != 0)
return;
- audio_attach_mi(&neo_hw_if, sc, &sc->dev);
+ audio_attach_mi(&neo_hw_if, sc, NULL, &sc->dev);
return;
}
-/* $OpenBSD: sv.c,v 1.37 2022/02/02 03:55:29 jsg Exp $ */
+/* $OpenBSD: sv.c,v 1.38 2022/02/16 06:21:19 anton Exp $ */
/*
* Copyright (c) 1998 Constantine Paul Sapuntzakis
sv_init_mixer(sc);
- audio_attach_mi(&sv_hw_if, sc, &sc->sc_dev);
+ audio_attach_mi(&sv_hw_if, sc, NULL, &sc->sc_dev);
}
#ifdef AUDIO_DEBUG
-/* $OpenBSD: yds.c,v 1.56 2022/01/09 05:42:58 jsg Exp $ */
+/* $OpenBSD: yds.c,v 1.57 2022/02/16 06:21:19 anton Exp $ */
/* $NetBSD: yds.c,v 1.5 2001/05/21 23:55:04 minoura Exp $ */
/*
sc->sc_codec[0].codec_if, AudioCoutputs, AudioNmaster, NULL);
yds_mixer_set_port(sc, &ctl);
- audio_attach_mi(&yds_hw_if, sc, &sc->sc_dev);
+ audio_attach_mi(&yds_hw_if, sc, NULL, &sc->sc_dev);
/* Watch for power changes */
sc->suspend = DVACT_RESUME;
-/* $OpenBSD: cs4231.c,v 1.38 2017/01/04 07:33:14 ratchov Exp $ */
+/* $OpenBSD: cs4231.c,v 1.39 2022/02/16 06:21:19 anton Exp $ */
/*
* Copyright (c) 1999 Jason L. Wright (jason@thought.net)
printf("\n");
- audio_attach_mi(&cs4231_sa_hw_if, sc, &sc->sc_dev);
+ audio_attach_mi(&cs4231_sa_hw_if, sc, NULL, &sc->sc_dev);
/* Default to speaker, unmuted, reasonable volume */
sc->sc_out_port = CSPORT_SPEAKER;
-/* $OpenBSD: bba.c,v 1.7 2016/09/19 06:46:44 ratchov Exp $ */
+/* $OpenBSD: bba.c,v 1.8 2022/02/16 06:21:19 anton Exp $ */
/* $NetBSD: bba.c,v 1.38 2011/06/04 01:27:57 tsutsui Exp $ */
/*
* Copyright (c) 2011 Miodrag Vallat.
ioasic_intr_establish(parent, ia->iada_cookie, IPL_AUDIO,
bba_intr, sc, self->dv_xname);
- audio_attach_mi(&bba_hw_if, sc, self);
+ audio_attach_mi(&bba_hw_if, sc, NULL, self);
}
void
-/* $OpenBSD: uaudio.c,v 1.165 2022/01/28 07:11:14 guenther Exp $ */
+/* $OpenBSD: uaudio.c,v 1.166 2022/02/16 06:21:19 anton Exp $ */
/*
* Copyright (c) 2018 Alexandre Ratchov <alex@caoua.org>
*
/* print a nice uaudio attach line */
uaudio_print(sc);
- audio_attach_mi(&uaudio_hw_if, sc, &sc->dev);
+ audio_attach_mi(&uaudio_hw_if, sc, NULL, &sc->dev);
}
int
-/* $OpenBSD: utvfu.c,v 1.15 2021/11/28 14:10:32 mglocker Exp $ */
+/* $OpenBSD: utvfu.c,v 1.16 2022/02/16 06:21:19 anton Exp $ */
/*
* Copyright (c) 2013 Lubomir Rintel
* Copyright (c) 2013 Federico Simoncelli
rw_init(&sc->sc_audio.rwlock, "audiorwl");
- sc->sc_audiodev = audio_attach_mi(&utvfu_au_hw_if, sc, &sc->sc_dev);
+ sc->sc_audiodev = audio_attach_mi(&utvfu_au_hw_if, sc, NULL, &sc->sc_dev);
sc->sc_videodev = video_attach_mi(&utvfu_vid_hw_if, sc, &sc->sc_dev);
}