Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143850228
D45771.id140344.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D45771.id140344.diff
View Options
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 sbuf sc_sndstat;
struct sndcard_func sc_sndcard_func;
struct uaudio_chan sc_rec_chan[UAUDIO_MAX_CHILD];
struct uaudio_chan sc_play_chan[UAUDIO_MAX_CHILD];
@@ -391,7 +390,6 @@
uint8_t sc_mixer_iface_index;
uint8_t sc_mixer_iface_no;
uint8_t sc_mixer_chan;
- uint8_t sc_sndstat_valid:1;
uint8_t sc_uq_audio_swap_lr:1;
uint8_t sc_uq_au_inp_async:1;
uint8_t sc_uq_au_no_xu:1;
@@ -1293,8 +1291,6 @@
if (bus_generic_detach(dev) != 0) {
DPRINTF("detach failed!\n");
}
- sbuf_delete(&sc->sc_sndstat);
- sc->sc_sndstat_valid = 0;
umidi_detach(dev);
@@ -2149,15 +2145,6 @@
if (rate > chan->pcm_cap.maxspeed || chan->pcm_cap.maxspeed == 0)
chan->pcm_cap.maxspeed = rate;
- if (sc->sc_sndstat_valid != 0) {
- sbuf_printf(&sc->sc_sndstat, "\n\t"
- "mode %d.%d:(%s) %dch, %dbit, %s, %dHz",
- curidx, alt_index,
- (ep_dir == UE_DIR_IN) ? "input" : "output",
- channels, p_fmt->bPrecision,
- p_fmt->description, rate);
- }
-
next_ep:
sed.v1 = NULL;
ed1 = NULL;
@@ -2230,9 +2217,6 @@
if (channels == 0)
channels = channels_max;
- if (sbuf_new(&sc->sc_sndstat, NULL, 4096, SBUF_AUTOEXTEND))
- sc->sc_sndstat_valid = 1;
-
/* try to search for a valid config */
for (x = channels; x; x--) {
@@ -2263,8 +2247,6 @@
if (x == (channels + 1))
x--;
}
- if (sc->sc_sndstat_valid)
- sbuf_finish(&sc->sc_sndstat);
}
static void
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 2, 12:13 AM (11 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28408276
Default Alt Text
D45771.id140344.diff (1 KB)
Attached To
Mode
D45771: snd_uaudio: Remove unused sc_sndstat sbuf
Attached
Detach File
Event Timeline
Log In to Comment