Skip to content

Commit

Permalink
Print current buffer latency in dmesg for the USB audio driver and no…
Browse files Browse the repository at this point in the history
…t just

the maximum.

MFC after:	1 week
Sponsored by:	Mellanox Technologies
  • Loading branch information
hselasky committed Aug 19, 2020
1 parent 5a6c112 commit fbe74c8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions sys/dev/sound/usb/uaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1031,10 +1031,11 @@ uaudio_attach(device_t dev)
}
for (x = 0; x != sc->sc_play_chan[i].num_alt; x++) {
device_printf(dev, "Play[%u]: %d Hz, %d ch, %s format, "
"2x8ms buffer.\n", i,
"2x%dms buffer.\n", i,
sc->sc_play_chan[i].usb_alt[x].sample_rate,
sc->sc_play_chan[i].usb_alt[x].channels,
sc->sc_play_chan[i].usb_alt[x].p_fmt->description);
sc->sc_play_chan[i].usb_alt[x].p_fmt->description,
uaudio_buffer_ms);
}
}
if (i == 0)
Expand All @@ -1060,10 +1061,11 @@ uaudio_attach(device_t dev)
}
for (x = 0; x != sc->sc_rec_chan[i].num_alt; x++) {
device_printf(dev, "Record[%u]: %d Hz, %d ch, %s format, "
"2x8ms buffer.\n", i,
"2x%dms buffer.\n", i,
sc->sc_rec_chan[i].usb_alt[x].sample_rate,
sc->sc_rec_chan[i].usb_alt[x].channels,
sc->sc_rec_chan[i].usb_alt[x].p_fmt->description);
sc->sc_rec_chan[i].usb_alt[x].p_fmt->description,
uaudio_buffer_ms);
}
}
if (i == 0)
Expand Down

0 comments on commit fbe74c8

Please sign in to comment.