-/* $OpenBSD: harmony.c,v 1.39 2022/10/19 19:14:16 kn Exp $ */
+/* $OpenBSD: harmony.c,v 1.40 2022/10/26 20:19:06 kn Exp $ */
/*
* Copyright (c) 2003 Jason L. Wright (jason@thought.net)
void * harmony_allocm(void *, int, size_t, int, int);
void harmony_freem(void *, void *, int);
size_t harmony_round_buffersize(void *, int, size_t);
-int harmony_get_props(void *);
int harmony_trigger_output(void *, void *, void *, int,
void (*intr)(void *), void *, struct audio_params *);
int harmony_trigger_input(void *, void *, void *, int,
.allocm = harmony_allocm,
.freem = harmony_freem,
.round_buffersize = harmony_round_buffersize,
- .get_props = harmony_get_props,
.trigger_output = harmony_trigger_output,
.trigger_input = harmony_trigger_input,
};
return ((size + HARMONY_BUFSIZE - 1) & (size_t)(-HARMONY_BUFSIZE));
}
-int
-harmony_get_props(void *vsc)
-{
- return (AUDIO_PROP_FULLDUPLEX);
-}
-
int
harmony_trigger_output(void *vsc, void *start, void *end, int blksize,
void (*intr)(void *), void *intrarg, struct audio_params *param)
-/* $OpenBSD: aoa.c,v 1.15 2022/10/19 19:14:16 kn Exp $ */
+/* $OpenBSD: aoa.c,v 1.16 2022/10/26 20:19:07 kn Exp $ */
/*-
* Copyright (c) 2005 Tsubai Masanari. All rights reserved.
.query_devinfo = i2s_query_devinfo,
.allocm = i2s_allocm,
.round_buffersize = i2s_round_buffersize,
- .get_props = i2s_get_props,
.trigger_output = i2s_trigger_output,
.trigger_input = i2s_trigger_input,
};
-/* $OpenBSD: awacs.c,v 1.39 2022/10/19 19:14:16 kn Exp $ */
+/* $OpenBSD: awacs.c,v 1.40 2022/10/26 20:19:07 kn Exp $ */
/* $NetBSD: awacs.c,v 1.4 2001/02/26 21:07:51 wiz Exp $ */
/*-
int awacs_get_port(void *, mixer_ctrl_t *);
int awacs_query_devinfo(void *, mixer_devinfo_t *);
size_t awacs_round_buffersize(void *, int, size_t);
-int awacs_get_props(void *);
void *awacs_allocm(void *, int, size_t, int, int);
static inline u_int awacs_read_reg(struct awacs_softc *, int);
.query_devinfo = awacs_query_devinfo,
.allocm = awacs_allocm,
.round_buffersize = awacs_round_buffersize,
- .get_props = awacs_get_props,
.trigger_output = awacs_trigger_output,
.trigger_input = awacs_trigger_input,
};
return p->addr;
}
-int
-awacs_get_props(void *h)
-{
- return AUDIO_PROP_FULLDUPLEX;
-}
-
int
awacs_trigger_output(void *h, void *start, void *end, int bsize,
void (*intr)(void *), void *arg, struct audio_params *param)
-/* $OpenBSD: daca.c,v 1.14 2022/10/19 19:14:16 kn Exp $ */
+/* $OpenBSD: daca.c,v 1.15 2022/10/26 20:19:07 kn Exp $ */
/*-
* Copyright (c) 2002,2003 Tsubai Masanari. All rights reserved.
.query_devinfo = i2s_query_devinfo,
.allocm = i2s_allocm,
.round_buffersize = i2s_round_buffersize,
- .get_props = i2s_get_props,
.trigger_output = i2s_trigger_output,
.trigger_input = i2s_trigger_input,
};
-/* $OpenBSD: i2s.c,v 1.36 2022/10/18 08:22:18 kn Exp $ */
+/* $OpenBSD: i2s.c,v 1.37 2022/10/26 20:19:07 kn Exp $ */
/* $NetBSD: i2s.c,v 1.1 2003/12/27 02:19:34 grant Exp $ */
/*-
return size;
}
-int
-i2s_get_props(void *h)
-{
- return AUDIO_PROP_FULLDUPLEX;
-}
-
int
i2s_trigger_output(void *h, void *start, void *end, int bsize,
void (*intr)(void *), void *arg, struct audio_params *param)
-/* $OpenBSD: i2svar.h,v 1.9 2016/09/14 06:12:19 ratchov Exp $ */
+/* $OpenBSD: i2svar.h,v 1.10 2022/10/26 20:19:07 kn Exp $ */
/*-
* Copyright (c) 2001,2003 Tsubai Masanari. All rights reserved.
int i2s_get_port(void *, mixer_ctrl_t *);
int i2s_query_devinfo(void *, mixer_devinfo_t *);
size_t i2s_round_buffersize(void *, int, size_t);
-int i2s_get_props(void *);
int i2s_trigger_output(void *, void *, void *, int, void (*)(void *),
void *, struct audio_params *);
int i2s_trigger_input(void *, void *, void *, int, void (*)(void *),
-/* $OpenBSD: onyx.c,v 1.16 2022/10/19 19:14:16 kn Exp $ */
+/* $OpenBSD: onyx.c,v 1.17 2022/10/26 20:19:07 kn Exp $ */
/*-
* Copyright (c) 2005 Tsubai Masanari. All rights reserved.
.query_devinfo = i2s_query_devinfo,
.allocm = i2s_allocm,
.round_buffersize = i2s_round_buffersize,
- .get_props = i2s_get_props,
.trigger_output = i2s_trigger_output,
.trigger_input = i2s_trigger_input,
};
-/* $OpenBSD: snapper.c,v 1.43 2022/10/19 19:14:16 kn Exp $ */
+/* $OpenBSD: snapper.c,v 1.44 2022/10/26 20:19:07 kn Exp $ */
/* $NetBSD: snapper.c,v 1.1 2003/12/27 02:19:34 grant Exp $ */
/*-
.query_devinfo = i2s_query_devinfo,
.allocm = i2s_allocm,
.round_buffersize = i2s_round_buffersize,
- .get_props = i2s_get_props,
.trigger_output = i2s_trigger_output,
.trigger_input = i2s_trigger_input,
};
-/* $OpenBSD: tumbler.c,v 1.13 2022/10/19 19:14:16 kn Exp $ */
+/* $OpenBSD: tumbler.c,v 1.14 2022/10/26 20:19:07 kn Exp $ */
/*-
* Copyright (c) 2001,2003 Tsubai Masanari. All rights reserved.
.query_devinfo = i2s_query_devinfo,
.allocm = i2s_allocm,
.round_buffersize = i2s_round_buffersize,
- .get_props = i2s_get_props,
.trigger_output = i2s_trigger_output,
.trigger_input = i2s_trigger_input,
};
-/* $OpenBSD: ce4231.c,v 1.40 2022/10/19 19:14:16 kn Exp $ */
+/* $OpenBSD: ce4231.c,v 1.41 2022/10/26 20:19:07 kn Exp $ */
/*
* Copyright (c) 1999 Jason L. Wright (jason@thought.net)
int ce4231_query_devinfo(void *addr, mixer_devinfo_t *);
void * ce4231_alloc(void *, int, size_t, int, int);
void ce4231_free(void *, void *, int);
-int ce4231_get_props(void *);
int ce4231_trigger_output(void *, void *, void *, int,
void (*intr)(void *), void *arg, struct audio_params *);
int ce4231_trigger_input(void *, void *, void *, int,
.query_devinfo = ce4231_query_devinfo,
.allocm = ce4231_alloc,
.freem = ce4231_free,
- .get_props = ce4231_get_props,
.trigger_output = ce4231_trigger_output,
.trigger_input = ce4231_trigger_input,
};
return (err);
}
-int
-ce4231_get_props(void *addr)
-{
- return (AUDIO_PROP_FULLDUPLEX);
-}
-
/*
* Hardware interrupt handler
*/
-/* $OpenBSD: audio.c,v 1.201 2022/10/19 19:59:06 kn Exp $ */
+/* $OpenBSD: audio.c,v 1.202 2022/10/26 20:19:07 kn Exp $ */
/*
* Copyright (c) 2015 Alexandre Ratchov <alex@caoua.org>
*
ops->halt_input == 0 ||
ops->set_port == 0 ||
ops->get_port == 0 ||
- ops->query_devinfo == 0 ||
- ops->get_props == 0) {
+ ops->query_devinfo == 0) {
printf("%s: missing method\n", DEVNAME(sc));
sc->ops = 0;
return;
audio_open(struct audio_softc *sc, int flags)
{
int error;
- int props;
if (sc->mode)
return EBUSY;
sc->mode |= AUMODE_PLAY;
if (flags & FREAD)
sc->mode |= AUMODE_RECORD;
- props = sc->ops->get_props(sc->arg);
- if (sc->mode == (AUMODE_PLAY | AUMODE_RECORD)) {
- if (!(props & AUDIO_PROP_FULLDUPLEX)) {
- error = ENOTTY;
- goto bad;
+ if (sc->ops->get_props) {
+ int props = sc->ops->get_props(sc->arg);
+ if (sc->mode == (AUMODE_PLAY | AUMODE_RECORD)) {
+ if (!(props & AUDIO_PROP_FULLDUPLEX)) {
+ error = ENOTTY;
+ goto bad;
+ }
}
}
-/* $OpenBSD: am7930.c,v 1.7 2016/09/14 06:12:19 ratchov Exp $ */
+/* $OpenBSD: am7930.c,v 1.8 2022/10/26 20:19:07 kn Exp $ */
/* $NetBSD: am7930.c,v 1.44 2001/11/13 13:14:34 lukem Exp $ */
/*
}
}
+/*
+ * XXX chip is full-duplex, but really attach-dependent.
+ * For now we know of no half-duplex attachments.
+ */
int
am7930_open(void *addr, int flags)
{
return 0;
}
-/*
- * XXX chip is full-duplex, but really attach-dependent.
- * For now we know of no half-duplex attachments.
- */
-int
-am7930_get_props(void *addr)
-{
- return AUDIO_PROP_FULLDUPLEX;
-}
-
/*
* Attach-dependent channel set/query
*/
-/* $OpenBSD: am7930var.h,v 1.5 2016/09/19 06:46:44 ratchov Exp $ */
+/* $OpenBSD: am7930var.h,v 1.6 2022/10/26 20:19:07 kn Exp $ */
/* $NetBSD: am7930var.h,v 1.10 2005/01/15 15:19:52 kent Exp $ */
/*
int am7930_round_blocksize(void *, int);
int am7930_halt_output(void *);
int am7930_halt_input(void *);
-int am7930_get_props(void *);
int am7930_set_port(void *, mixer_ctrl_t *);
int am7930_get_port(void *, mixer_ctrl_t *);
int am7930_query_devinfo(void *, mixer_devinfo_t *);
-/* $OpenBSD: auacer.c,v 1.27 2022/10/19 19:14:16 kn Exp $ */
+/* $OpenBSD: auacer.c,v 1.28 2022/10/26 20:19:07 kn Exp $ */
/* $NetBSD: auacer.c,v 1.3 2004/11/10 04:20:26 kent Exp $ */
/*-
void *auacer_allocm(void *, int, size_t, int, int);
void auacer_freem(void *, void *, int);
size_t auacer_round_buffersize(void *, int, size_t);
-int auacer_get_props(void *);
int auacer_trigger_output(void *, void *, void *, int, void (*)(void *),
void *, struct audio_params *);
int auacer_trigger_input(void *, void *, void *, int, void (*)(void *),
.allocm = auacer_allocm,
.freem = auacer_freem,
.round_buffersize = auacer_round_buffersize,
- .get_props = auacer_get_props,
.trigger_output = auacer_trigger_output,
.trigger_input = auacer_trigger_input,
};
return size;
}
-int
-auacer_get_props(void *v)
-{
- return (AUDIO_PROP_FULLDUPLEX);
-}
-
static void
auacer_add_entry(struct auacer_chan *chan)
{
-/* $OpenBSD: auglx.c,v 1.22 2022/10/19 19:14:16 kn Exp $ */
+/* $OpenBSD: auglx.c,v 1.23 2022/10/26 20:19:08 kn Exp $ */
/*
* Copyright (c) 2008 Marc Balmer <mbalmer@openbsd.org>
void *auglx_allocm(void *, int, size_t, int, int);
void auglx_freem(void *, void *, int);
size_t auglx_round_buffersize(void *, int, size_t);
-int auglx_get_props(void *);
int auglx_trigger_output(void *, void *, void *, int, void (*)(void *),
void *, struct audio_params *);
int auglx_trigger_input(void *, void *, void *, int, void (*)(void *),
.allocm = auglx_allocm,
.freem = auglx_freem,
.round_buffersize = auglx_round_buffersize,
- .get_props = auglx_get_props,
.trigger_output = auglx_trigger_output,
.trigger_input = auglx_trigger_input,
};
return size;
}
-int
-auglx_get_props(void *v)
-{
- return AUDIO_PROP_FULLDUPLEX;
-}
-
int
auglx_intr(void *v)
{
-/* $OpenBSD: auich.c,v 1.118 2022/10/19 19:14:16 kn Exp $ */
+/* $OpenBSD: auich.c,v 1.119 2022/10/26 20:19:08 kn Exp $ */
/*
* Copyright (c) 2000,2001 Michael Shalayeff
void *auich_allocm(void *, int, size_t, int, int);
void auich_freem(void *, void *, int);
size_t auich_round_buffersize(void *, int, size_t);
-int auich_get_props(void *);
void auich_trigger_pipe(struct auich_softc *, int, struct auich_ring *);
void auich_intr_pipe(struct auich_softc *, int, struct auich_ring *);
int auich_trigger_output(void *, void *, void *, int, void (*)(void *),
.allocm = auich_allocm,
.freem = auich_freem,
.round_buffersize = auich_round_buffersize,
- .get_props = auich_get_props,
.trigger_output = auich_trigger_output,
.trigger_input = auich_trigger_input,
};
return size;
}
-int
-auich_get_props(void *v)
-{
- return AUDIO_PROP_FULLDUPLEX;
-}
-
int
auich_intr(void *v)
{
-/* $OpenBSD: auixp.c,v 1.50 2022/10/19 19:14:16 kn Exp $ */
+/* $OpenBSD: auixp.c,v 1.51 2022/10/26 20:19:08 kn Exp $ */
/* $NetBSD: auixp.c,v 1.9 2005/06/27 21:13:09 thorpej Exp $ */
/*
int auixp_query_devinfo(void *, mixer_devinfo_t *);
void * auixp_malloc(void *, int, size_t, int, int);
void auixp_free(void *, void *, int);
-int auixp_get_props(void *);
int auixp_intr(void *);
int auixp_allocmem(struct auixp_softc *, size_t, size_t,
struct auixp_dma *);
.query_devinfo = auixp_query_devinfo,
.allocm = auixp_malloc,
.freem = auixp_free,
- .get_props = auixp_get_props,
.trigger_output = auixp_trigger_output,
.trigger_input = auixp_trigger_input,
};
return co->codec_if->vtbl->query_devinfo(co->codec_if, di);
}
-int
-auixp_get_props(void *hdl)
-{
-
- return AUDIO_PROP_FULLDUPLEX;
-}
-
/*
* A dma descriptor has dma->nsegs segments defined in dma->segs set up when
-/* $OpenBSD: autri.c,v 1.49 2022/10/19 19:14:16 kn Exp $ */
+/* $OpenBSD: autri.c,v 1.50 2022/10/26 20:19:08 kn Exp $ */
/*
* Copyright (c) 2001 SOMEYA Yoshihiko and KUROSAWA Takahiro.
int autri_mixer_get_port(void *, mixer_ctrl_t *);
void *autri_malloc(void *, int, size_t, int, int);
void autri_free(void *, void *, int);
-int autri_get_props(void *);
int autri_query_devinfo(void *addr, mixer_devinfo_t *dip);
int autri_get_portnum_by_name(struct autri_softc *, char *, char *, char *);
.query_devinfo = autri_query_devinfo,
.allocm = autri_malloc,
.freem = autri_free,
- .get_props = autri_get_props,
.trigger_output = autri_trigger_output,
.trigger_input = autri_trigger_input,
};
return p;
}
-int
-autri_get_props(void *addr)
-{
- return (AUDIO_PROP_FULLDUPLEX);
-}
-
void
autri_setup_channel(struct autri_softc *sc, int mode, struct audio_params *param)
{
-/* $OpenBSD: auvia.c,v 1.65 2022/10/19 19:14:16 kn Exp $ */
+/* $OpenBSD: auvia.c,v 1.66 2022/10/26 20:19:08 kn Exp $ */
/* $NetBSD: auvia.c,v 1.28 2002/11/04 16:38:49 kent Exp $ */
/*-
void * auvia_malloc(void *, int, size_t, int, int);
void auvia_free(void *, void *, int);
size_t auvia_round_buffersize(void *, int, size_t);
-int auvia_get_props(void *);
int auvia_build_dma_ops(struct auvia_softc *, struct auvia_softc_chan *,
struct auvia_dma *, void *, void *, int);
int auvia_trigger_output(void *, void *, void *, int, void (*)(void *),
.allocm = auvia_malloc,
.freem = auvia_free,
.round_buffersize = auvia_round_buffersize,
- .get_props = auvia_get_props,
.trigger_output = auvia_trigger_output,
.trigger_input = auvia_trigger_input,
};
return bufsize;
}
-int
-auvia_get_props(void *addr)
-{
- return AUDIO_PROP_FULLDUPLEX;
-}
-
int
auvia_build_dma_ops(struct auvia_softc *sc, struct auvia_softc_chan *ch,
-/* $OpenBSD: azalia.c,v 1.279 2022/10/24 05:59:17 jsg Exp $ */
+/* $OpenBSD: azalia.c,v 1.280 2022/10/26 20:19:08 kn Exp $ */
/* $NetBSD: azalia.c,v 1.20 2006/05/07 08:31:44 kent Exp $ */
/*-
void *azalia_allocm(void *, int, size_t, int, int);
void azalia_freem(void *, void *, int);
size_t azalia_round_buffersize(void *, int, size_t);
-int azalia_get_props(void *);
int azalia_trigger_output(void *, void *, void *, int,
void (*)(void *), void *, audio_params_t *);
int azalia_trigger_input(void *, void *, void *, int,
.allocm = azalia_allocm,
.freem = azalia_freem,
.round_buffersize = azalia_round_buffersize,
- .get_props = azalia_get_props,
.trigger_output = azalia_trigger_output,
.trigger_input = azalia_trigger_input,
.set_blksz = azalia_set_blksz,
return size;
}
-int
-azalia_get_props(void *v)
-{
- return AUDIO_PROP_FULLDUPLEX;
-}
-
int
azalia_trigger_output(void *v, void *start, void *end, int blk,
void (*intr)(void *), void *arg, audio_params_t *param)
-/* $OpenBSD: cmpci.c,v 1.51 2022/10/19 19:14:16 kn Exp $ */
+/* $OpenBSD: cmpci.c,v 1.52 2022/10/26 20:19:08 kn Exp $ */
/* $NetBSD: cmpci.c,v 1.25 2004/10/26 06:32:20 xtraeme Exp $ */
/*
void *cmpci_malloc(void *, int, size_t, int, int);
void cmpci_free(void *, void *, int);
size_t cmpci_round_buffersize(void *, int, size_t);
-int cmpci_get_props(void *);
int cmpci_trigger_output(void *, void *, void *, int,
void (*)(void *), void *,
struct audio_params *);
.allocm = cmpci_malloc,
.freem = cmpci_free,
.round_buffersize = cmpci_round_buffersize,
- .get_props = cmpci_get_props,
.trigger_output = cmpci_trigger_output,
.trigger_input = cmpci_trigger_input,
};
return bufsize;
}
-/* ARGSUSED */
-int
-cmpci_get_props(void *handle)
-{
- return AUDIO_PROP_FULLDUPLEX;
-}
-
int
cmpci_trigger_output(void *handle, void *start, void *end, int blksize,
void (*intr)(void *), void *arg, struct audio_params *param)
-/* $OpenBSD: cs4280.c,v 1.59 2022/10/19 19:14:16 kn Exp $ */
+/* $OpenBSD: cs4280.c,v 1.60 2022/10/26 20:19:08 kn Exp $ */
/* $NetBSD: cs4280.c,v 1.5 2000/06/26 04:56:23 simonb Exp $ */
/*
int cs4280_query_devinfo(void *addr, mixer_devinfo_t *dip);
void *cs4280_malloc(void *, int, size_t, int, int);
void cs4280_free(void *, void *, int);
-int cs4280_get_props(void *);
int cs4280_trigger_output(void *, void *, void *, int, void (*)(void *),
void *, struct audio_params *);
int cs4280_trigger_input(void *, void *, void *, int, void (*)(void *),
.query_devinfo = cs4280_query_devinfo,
.allocm = cs4280_malloc,
.freem = cs4280_free,
- .get_props = cs4280_get_props,
.trigger_output = cs4280_trigger_output,
.trigger_input = cs4280_trigger_input,
};
return (blk < CS4280_ICHUNK ? CS4280_ICHUNK : blk & -CS4280_ICHUNK);
}
-int
-cs4280_get_props(void *hdl)
-{
- return (AUDIO_PROP_FULLDUPLEX);
-}
-
int
cs4280_mixer_get_port(void *addr, mixer_ctrl_t *cp)
{
-/* $OpenBSD: cs4281.c,v 1.44 2022/10/19 19:14:16 kn Exp $ */
+/* $OpenBSD: cs4281.c,v 1.45 2022/10/26 20:19:08 kn Exp $ */
/* $Tera: cs4281.c,v 1.18 2000/12/27 14:24:45 tacha Exp $ */
/*
int cs4281_open(void *, int);
void cs4281_close(void *);
int cs4281_round_blocksize(void *, int);
-int cs4281_get_props(void *);
int cs4281_attach_codec(void *, struct ac97_codec_if *);
int cs4281_read_codec(void *, u_int8_t , u_int16_t *);
int cs4281_write_codec(void *, u_int8_t, u_int16_t);
.allocm = cs4281_malloc,
.freem = cs4281_free,
.round_buffersize = cs4281_round_buffersize,
- .get_props = cs4281_get_props,
.trigger_output = cs4281_trigger_output,
.trigger_input = cs4281_trigger_input,
};
return (DMA_SIZE);
}
-int
-cs4281_get_props(void *addr)
-{
- return (AUDIO_PROP_FULLDUPLEX);
-}
-
/* AC97 */
int
cs4281_attach_codec(void *addr, struct ac97_codec_if *codec_if)
-/* $OpenBSD: eap.c,v 1.63 2022/10/19 19:14:16 kn Exp $ */
+/* $OpenBSD: eap.c,v 1.64 2022/10/26 20:19:08 kn Exp $ */
/* $NetBSD: eap.c,v 1.46 2001/09/03 15:07:37 reinoud Exp $ */
/*
int eap1370_query_devinfo(void *, mixer_devinfo_t *);
void *eap_malloc(void *, int, size_t, int, int);
void eap_free(void *, void *, int);
-int eap_get_props(void *);
void eap1370_set_mixer(struct eap_softc *sc, int a, int d);
u_int32_t eap1371_src_wait(struct eap_softc *sc);
void eap1371_src_write(struct eap_softc *sc, int a, int d);
.query_devinfo = eap1370_query_devinfo,
.allocm = eap_malloc,
.freem = eap_free,
- .get_props = eap_get_props,
.trigger_output = eap_trigger_output,
.trigger_input = eap_trigger_input,
};
.query_devinfo = eap1371_query_devinfo,
.allocm = eap_malloc,
.freem = eap_free,
- .get_props = eap_get_props,
.trigger_output = eap_trigger_output,
.trigger_input = eap_trigger_input,
};
}
}
-int
-eap_get_props(void *addr)
-{
- return (AUDIO_PROP_FULLDUPLEX);
-}
-
enum ac97_host_flags
eap_flags_codec(void *v)
{
-/* $OpenBSD: emuxki.c,v 1.60 2022/10/19 19:14:16 kn Exp $ */
+/* $OpenBSD: emuxki.c,v 1.61 2022/10/26 20:19:08 kn Exp $ */
/* $NetBSD: emuxki.c,v 1.1 2001/10/17 18:39:41 jdolecek Exp $ */
/*-
void *emuxki_allocm(void *, int, size_t, int, int);
void emuxki_freem(void *, void *, int);
-int emuxki_get_props(void *);
-
/* Interrupt handler */
int emuxki_intr(void *);
.allocm = emuxki_allocm,
.freem = emuxki_freem,
.round_buffersize = emuxki_round_buffersize,
- .get_props = emuxki_get_props,
.trigger_output = emuxki_trigger_output,
.trigger_input = emuxki_trigger_input,
};
return (bsize);
}
-int
-emuxki_get_props(void *addr)
-{
- return (AUDIO_PROP_FULLDUPLEX);
-}
-
int
emuxki_trigger_output(void *addr, void *start, void *end, int blksize,
void (*inth) (void *), void *inthparam,
-/* $OpenBSD: envy.c,v 1.86 2022/10/19 19:14:16 kn Exp $ */
+/* $OpenBSD: envy.c,v 1.87 2022/10/26 20:19:08 kn Exp $ */
/*
* Copyright (c) 2007 Alexandre Ratchov <alex@caoua.org>
*
int envy_query_devinfo(void *, struct mixer_devinfo *);
int envy_get_port(void *, struct mixer_ctrl *);
int envy_set_port(void *, struct mixer_ctrl *);
-int envy_get_props(void *);
#if NMIDI > 0
int envy_midi_open(void *, int, void (*)(void *, int),
void (*)(void *), void *);
.query_devinfo = envy_query_devinfo,
.allocm = envy_allocm,
.freem = envy_freem,
- .get_props = envy_get_props,
.trigger_output = envy_trigger_output,
.trigger_input = envy_trigger_input,
};
return ENXIO;
}
-int
-envy_get_props(void *self)
-{
- return AUDIO_PROP_FULLDUPLEX;
-}
-
#if NMIDI > 0
int
envy_midi_open(void *self, int flags,
-/* $OpenBSD: esa.c,v 1.40 2022/10/19 19:14:16 kn Exp $ */
+/* $OpenBSD: esa.c,v 1.41 2022/10/26 20:19:08 kn Exp $ */
/* $NetBSD: esa.c,v 1.12 2002/03/24 14:17:35 jmcneill Exp $ */
/*
void * esa_malloc(void *, int, size_t, int, int);
void esa_free(void *, void *, int);
size_t esa_round_buffersize(void *, int, size_t);
-int esa_get_props(void *);
int esa_trigger_output(void *, void *, void *, int,
void (*)(void *), void *,
struct audio_params *);
.allocm = esa_malloc,
.freem = esa_free,
.round_buffersize = esa_round_buffersize,
- .get_props = esa_get_props,
.trigger_output = esa_trigger_output,
.trigger_input = esa_trigger_input,
};
return (vc->play.bufsize);
}
-int
-esa_get_props(void *hdl)
-{
- return (AUDIO_PROP_FULLDUPLEX);
-}
-
int
esa_trigger_output(void *hdl, void *start, void *end, int blksize,
void (*intr)(void *), void *intrarg,
-/* $OpenBSD: eso.c,v 1.52 2022/10/19 19:14:17 kn Exp $ */
+/* $OpenBSD: eso.c,v 1.53 2022/10/26 20:19:08 kn Exp $ */
/* $NetBSD: eso.c,v 1.48 2006/12/18 23:13:39 kleink Exp $ */
/*
void * eso_allocm(void *, int, size_t, int, int);
void eso_freem(void *, void *, int);
size_t eso_round_buffersize(void *, int, size_t);
-int eso_get_props(void *);
int eso_trigger_output(void *, void *, void *, int,
void (*)(void *), void *, struct audio_params *);
int eso_trigger_input(void *, void *, void *, int,
.allocm = eso_allocm,
.freem = eso_freem,
.round_buffersize = eso_round_buffersize,
- .get_props = eso_get_props,
.trigger_output = eso_trigger_output,
.trigger_input = eso_trigger_input,
};
return (bufsize);
}
-/* ARGSUSED */
-int
-eso_get_props(void *hdl)
-{
- return (AUDIO_PROP_FULLDUPLEX);
-}
-
int
eso_trigger_output(void *hdl, void *start, void *end, int blksize,
void (*intr)(void *), void *arg, struct audio_params *param)
-/* $OpenBSD: fms.c,v 1.35 2022/10/19 19:14:17 kn Exp $ */
+/* $OpenBSD: fms.c,v 1.36 2022/10/26 20:19:08 kn Exp $ */
/* $NetBSD: fms.c,v 1.5.4.1 2000/06/30 16:27:50 simonb Exp $ */
/*-
int fms_query_devinfo(void *, mixer_devinfo_t *);
void *fms_malloc(void *, int, size_t, int, int);
void fms_free(void *, void *, int);
-int fms_get_props(void *);
int fms_trigger_output(void *, void *, void *, int, void (*)(void *),
void *, struct audio_params *);
int fms_trigger_input(void *, void *, void *, int, void (*)(void *),
.query_devinfo = fms_query_devinfo,
.allocm = fms_malloc,
.freem = fms_free,
- .get_props = fms_get_props,
.trigger_output = fms_trigger_output,
.trigger_input = fms_trigger_input,
};
panic("fms_free: trying to free unallocated memory");
}
-int
-fms_get_props(void *addr)
-{
- return AUDIO_PROP_FULLDUPLEX;
-}
-
int
fms_query_devinfo(void *addr, mixer_devinfo_t *dip)
{
-/* $OpenBSD: neo.c,v 1.39 2022/10/19 19:14:17 kn Exp $ */
+/* $OpenBSD: neo.c,v 1.40 2022/10/26 20:19:08 kn Exp $ */
/*
* Copyright (c) 1999 Cameron Grant <gandalf@vilnya.demon.co.uk>
void *neo_malloc(void *, int, size_t, int, int);
void neo_free(void *, void *, int);
size_t neo_round_buffersize(void *, int, size_t);
-int neo_get_props(void *);
void neo_set_mixer(struct neo_softc *sc, int a, int d);
struct cfdriver neo_cd = {
.allocm = neo_malloc,
.freem = neo_free,
.round_buffersize = neo_round_buffersize,
- .get_props = neo_get_props,
.trigger_output = neo_trigger_output,
.trigger_input = neo_trigger_input,
{
return (NM_BUFFSIZE);
}
-
-
-int
-neo_get_props(void *addr)
-{
- return (AUDIO_PROP_FULLDUPLEX);
-}
-/* $OpenBSD: sv.c,v 1.42 2022/10/19 19:14:17 kn Exp $ */
+/* $OpenBSD: sv.c,v 1.43 2022/10/26 20:19:08 kn Exp $ */
/*
* Copyright (c) 1998 Constantine Paul Sapuntzakis
int sv_query_devinfo(void *, mixer_devinfo_t *);
void *sv_malloc(void *, int, size_t, int, int);
void sv_free(void *, void *, int);
-int sv_get_props(void *);
void sv_dumpregs(struct sv_softc *sc);
.query_devinfo = sv_query_devinfo,
.allocm = sv_malloc,
.freem = sv_free,
- .get_props = sv_get_props,
};
}
}
}
-
-int
-sv_get_props(void *addr)
-{
- return (AUDIO_PROP_FULLDUPLEX);
-}
-/* $OpenBSD: yds.c,v 1.62 2022/10/19 19:14:17 kn Exp $ */
+/* $OpenBSD: yds.c,v 1.63 2022/10/26 20:19:08 kn Exp $ */
/* $NetBSD: yds.c,v 1.5 2001/05/21 23:55:04 minoura Exp $ */
/*
void *yds_malloc(void *, int, size_t, int, int);
void yds_free(void *, void *, int);
size_t yds_round_buffersize(void *, int, size_t);
-int yds_get_props(void *);
int yds_query_devinfo(void *addr, mixer_devinfo_t *dip);
int yds_attach_codec(void *sc, struct ac97_codec_if *);
.allocm = yds_malloc,
.freem = yds_free,
.round_buffersize = yds_round_buffersize,
- .get_props = yds_get_props,
.trigger_output = yds_trigger_output,
.trigger_input = yds_trigger_input,
};
return (size);
}
-int
-yds_get_props(void *addr)
-{
- return (AUDIO_PROP_FULLDUPLEX);
-}
-
int
yds_activate(struct device *self, int act)
{
-/* $OpenBSD: cs4231.c,v 1.43 2022/10/19 19:14:17 kn Exp $ */
+/* $OpenBSD: cs4231.c,v 1.44 2022/10/26 20:19:09 kn Exp $ */
/*
* Copyright (c) 1999 Jason L. Wright (jason@thought.net)
int cs4231_query_devinfo(void *, mixer_devinfo_t *);
void * cs4231_alloc(void *, int, size_t, int, int);
void cs4231_free(void *, void *, int);
-int cs4231_get_props(void *);
int cs4231_trigger_output(void *, void *, void *, int,
void (*)(void *), void *, struct audio_params *);
int cs4231_trigger_input(void *, void *, void *, int,
.query_devinfo = cs4231_query_devinfo,
.allocm = cs4231_alloc,
.freem = cs4231_free,
- .get_props = cs4231_get_props,
.trigger_output = cs4231_trigger_output,
.trigger_input = cs4231_trigger_input,
};
return (err);
}
-int
-cs4231_get_props(void *vsc)
-{
- return (AUDIO_PROP_FULLDUPLEX);
-}
-
/*
* Hardware interrupt handler
*/
-/* $OpenBSD: bba.c,v 1.11 2022/10/19 19:14:17 kn Exp $ */
+/* $OpenBSD: bba.c,v 1.12 2022/10/26 20:19:09 kn Exp $ */
/* $NetBSD: bba.c,v 1.38 2011/06/04 01:27:57 tsutsui Exp $ */
/*
* Copyright (c) 2011 Miodrag Vallat.
void *bba_allocm(void *, int, size_t, int, int);
void bba_freem(void *, void *, int);
size_t bba_round_buffersize(void *, int, size_t);
-int bba_get_props(void *);
int bba_trigger_output(void *, void *, void *, int,
void (*)(void *), void *, struct audio_params *);
int bba_trigger_input(void *, void *, void *, int,
.allocm = bba_allocm,
.freem = bba_freem,
.round_buffersize = bba_round_buffersize,
- .get_props = bba_get_props,
.trigger_output = bba_trigger_output,
.trigger_input = bba_trigger_input,
};
return 0;
}
-int
-bba_get_props(void *v)
-{
- return am7930_get_props(v);
-}
-
int
bba_round_blocksize(void *v, int blk)
{
-/* $OpenBSD: uaudio.c,v 1.171 2022/10/19 19:14:17 kn Exp $ */
+/* $OpenBSD: uaudio.c,v 1.172 2022/10/26 20:19:09 kn Exp $ */
/*
* Copyright (c) 2018 Alexandre Ratchov <alex@caoua.org>
*
int uaudio_query_devinfo(void *, struct mixer_devinfo *);
int uaudio_get_port(void *, struct mixer_ctrl *);
int uaudio_set_port(void *, struct mixer_ctrl *);
-int uaudio_get_props(void *);
int uaudio_process_unit(struct uaudio_softc *,
struct uaudio_unit *, int,
.set_port = uaudio_set_port,
.get_port = uaudio_get_port,
.query_devinfo = uaudio_query_devinfo,
- .get_props = uaudio_get_props,
.trigger_output = uaudio_trigger_output,
.trigger_input = uaudio_trigger_input,
.copy_output = uaudio_copy_output,
return 0;
}
-int
-uaudio_get_props(void *self)
-{
- return AUDIO_PROP_FULLDUPLEX;
-}
-
int
uaudio_get_port_do(struct uaudio_softc *sc, struct mixer_ctrl *ctl)
{