linux_dsm_epyc7002/sound/usb
Takashi Iwai 1213a205f9 ALSA: usb-audio: Fix bogus error messages for delay accounting
The recent fix for the missing fine delayed time adjustment gives
strange error messages at each start of the playback stream, such as
  delay: estimated 0, actual 352
  delay: estimated 353, actual 705

These come from the sanity check in retire_playback_urb().  Before the
stream is activated via start_endpoints(), a few silent packets have
been already sent.  And at this point the delay account is still in
the state as if the new packets are just queued, so the driver gets
confused and spews the bogus error messages.

For fixing the issue, we just need to check whether the received
packet is valid, whether it's zero sized or not.

Reported-by: Markus Trippelsdorf <markus@trippelsdorf.de>
Cc: <stable@vger.kernel.org> [v3.5+]
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2012-09-06 15:00:15 +02:00
..
6fire
caiaq
misc
usx2y
card.c ALSA: snd-usb: use list_for_each_safe for endpoint resources 2012-08-31 18:17:45 +02:00
card.h
clock.c
clock.h
debug.h
endpoint.c ALSA: snd-usb: fix calls to next_packet_size 2012-08-31 21:03:48 +02:00
endpoint.h ALSA: snd-usb: fix calls to next_packet_size 2012-08-31 21:03:48 +02:00
format.c
format.h
helper.c
helper.h
Kconfig
Makefile
midi.c
midi.h
mixer_maps.c
mixer_quirks.c
mixer_quirks.h
mixer.c
mixer.h
pcm.c ALSA: usb-audio: Fix bogus error messages for delay accounting 2012-09-06 15:00:15 +02:00
pcm.h
power.h
proc.c
proc.h
quirks-table.h
quirks.c
quirks.h
stream.c
stream.h
usbaudio.h