diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2012-05-13 13:07:22 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-05-14 04:43:43 -0400 |
commit | 92b862c7d685f5971a954e6ded51891d4adc412b (patch) | |
tree | 2843d2093df1ad58fac3274e67b208b2827546cd /sound/firewire/amdtp.h | |
parent | e9148dddc3c7b6121300319c3e31f9380d459be8 (diff) |
ALSA: firewire-lib: optimize packet flushing
Trying to flush completed packets is pointless when the pointer
callback was called from the packet completion callback; avoid it.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/amdtp.h')
-rw-r--r-- | sound/firewire/amdtp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/firewire/amdtp.h b/sound/firewire/amdtp.h index 3f13ff63c5d2..b680c5ef01d6 100644 --- a/sound/firewire/amdtp.h +++ b/sound/firewire/amdtp.h | |||
@@ -68,6 +68,7 @@ struct amdtp_out_stream { | |||
68 | 68 | ||
69 | unsigned int pcm_buffer_pointer; | 69 | unsigned int pcm_buffer_pointer; |
70 | unsigned int pcm_period_pointer; | 70 | unsigned int pcm_period_pointer; |
71 | bool pointer_flush; | ||
71 | }; | 72 | }; |
72 | 73 | ||
73 | int amdtp_out_stream_init(struct amdtp_out_stream *s, struct fw_unit *unit, | 74 | int amdtp_out_stream_init(struct amdtp_out_stream *s, struct fw_unit *unit, |