ALSA: fireworks: Use safer way to arrange ring buffer pointer
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Wed, 4 Jun 2014 06:25:33 +0000 (15:25 +0900)
committerTakashi Iwai <tiwai@suse.de>
Wed, 4 Jun 2014 12:35:40 +0000 (14:35 +0200)
commitcf44a136c062098b099a44698291e50c5bfdce2e
treec293a465d18322aa106997be84a2ccfe0b8403ec
parentc6e5e741c6dc8e13a47721f419e26e6ac19ecaf4
ALSA: fireworks: Use safer way to arrange ring buffer pointer

To reverse a pointer for the ring buffer, subtraction by buffer
size is better than assignment to the beginning of the buffer.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/fireworks/fireworks_hwdep.c
sound/firewire/fireworks/fireworks_transaction.c