Page MenuHomeFreeBSD

D55913.diff
No OneTemporary

D55913.diff

diff --git a/sys/dev/sound/usb/uaudio.c b/sys/dev/sound/usb/uaudio.c
--- a/sys/dev/sound/usb/uaudio.c
+++ b/sys/dev/sound/usb/uaudio.c
@@ -368,7 +368,6 @@
};
struct uaudio_softc {
- struct sndcard_func sc_sndcard_func;
struct uaudio_chan sc_rec_chan[UAUDIO_MAX_CHILD];
struct uaudio_chan sc_play_chan[UAUDIO_MAX_CHILD];
struct umidi_chan sc_midi_chan;
@@ -1100,8 +1099,6 @@
/* attach the children */
- sc->sc_sndcard_func.func = SCF_PCM;
-
/*
* Only attach a PCM device if we have a playback, recording
* or mixer device present:
@@ -1118,8 +1115,6 @@
DPRINTF("out of memory\n");
goto detach;
}
- device_set_ivars(sc->sc_child[i].pcm_device,
- &sc->sc_sndcard_func);
}
bus_attach_children(dev);
diff --git a/sys/dev/sound/usb/uaudio_pcm.c b/sys/dev/sound/usb/uaudio_pcm.c
--- a/sys/dev/sound/usb/uaudio_pcm.c
+++ b/sys/dev/sound/usb/uaudio_pcm.c
@@ -187,23 +187,6 @@
MIXER_DECLARE(ua_mixer);
/************************************************************/
-static int
-ua_probe(device_t dev)
-{
- struct sndcard_func *func;
-
- /* the parent device has already been probed */
-
- func = device_get_ivars(dev);
-
- if ((func == NULL) ||
- (func->func != SCF_PCM)) {
- return (ENXIO);
- }
-
- return (BUS_PROBE_DEFAULT);
-}
-
static int
ua_attach(device_t dev)
{
@@ -220,7 +203,6 @@
static device_method_t ua_pcm_methods[] = {
/* Device interface */
- DEVMETHOD(device_probe, ua_probe),
DEVMETHOD(device_attach, ua_attach),
DEVMETHOD(device_detach, ua_detach),

File Metadata

Mime Type
text/plain
Expires
Wed, Mar 25, 2:08 PM (8 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30209928
Default Alt Text
D55913.diff (1 KB)

Event Timeline