summaryrefslogtreecommitdiff
path: root/sys/dev/pci/auich.c
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2016-09-19 06:46:45 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2016-09-19 06:46:45 +0000
commitfcb46c4365c40831220993f10e09b4acccea5eec (patch)
treea429e44b79bc7a9c6395dd47c78f7a1d729f1d14 /sys/dev/pci/auich.c
parent6baeb374a4d5982a962bf603c1fd84a2d3481a4a (diff)
Remove unused getdev() audio driver functions.
Diffstat (limited to 'sys/dev/pci/auich.c')
-rw-r--r--sys/dev/pci/auich.c23
1 files changed, 2 insertions, 21 deletions
diff --git a/sys/dev/pci/auich.c b/sys/dev/pci/auich.c
index 0c56fb66c4b..498615e53bd 100644
--- a/sys/dev/pci/auich.c
+++ b/sys/dev/pci/auich.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auich.c,v 1.105 2016/09/14 06:12:19 ratchov Exp $ */
+/* $OpenBSD: auich.c,v 1.106 2016/09/19 06:46:44 ratchov Exp $ */
/*
* Copyright (c) 2000,2001 Michael Shalayeff
@@ -170,8 +170,6 @@ struct auich_softc {
struct device sc_dev;
void *sc_ih;
- audio_device_t sc_audev;
-
pcireg_t pci_id;
bus_space_tag_t iot;
bus_space_tag_t iot_mix;
@@ -298,7 +296,6 @@ int auich_round_blocksize(void *, int);
void auich_halt_pipe(struct auich_softc *, int, struct auich_ring *);
int auich_halt_output(void *);
int auich_halt_input(void *);
-int auich_getdev(void *, struct audio_device *);
int auich_set_port(void *, mixer_ctrl_t *);
int auich_get_port(void *, mixer_ctrl_t *);
int auich_query_devinfo(void *, mixer_devinfo_t *);
@@ -331,7 +328,6 @@ struct audio_hw_if auich_hw_if = {
auich_halt_output,
auich_halt_input,
NULL, /* speaker_ctl */
- auich_getdev,
NULL, /* getfd */
auich_set_port,
auich_get_port,
@@ -451,14 +447,7 @@ auich_attach(struct device *parent, struct device *self, void *aux)
if (PCI_PRODUCT(pa->pa_id) == auich_devices[i].product)
break;
- snprintf(sc->sc_audev.name, sizeof sc->sc_audev.name, "%s AC97",
- auich_devices[i].name);
- snprintf(sc->sc_audev.version, sizeof sc->sc_audev.version, "0x%02x",
- PCI_REVISION(pa->pa_class));
- strlcpy(sc->sc_audev.config, sc->sc_dev.dv_xname,
- sizeof sc->sc_audev.config);
-
- printf(": %s, %s\n", intrstr, sc->sc_audev.name);
+ printf(": %s, %s\n", intrstr, auich_devices[i].name);
/* SiS 7012 needs special handling */
if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_SIS &&
@@ -855,14 +844,6 @@ auich_halt_input(void *v)
}
int
-auich_getdev(void *v, struct audio_device *adp)
-{
- struct auich_softc *sc = v;
- *adp = sc->sc_audev;
- return 0;
-}
-
-int
auich_set_port(void *v, mixer_ctrl_t *cp)
{
struct auich_softc *sc = v;