ALSA: usb-audio: Pre-calculate buffer byte size
authorTakashi Iwai <tiwai@suse.de>
Tue, 1 Jun 2021 16:24:54 +0000 (18:24 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 2 Jun 2021 07:01:30 +0000 (09:01 +0200)
commitd303c5d38b37eed066c0f704c5a76353bce27284
tree35d8605a4a386798bbf562920d74db789eb8cd18
parentcdebd5530360cfd6240b1692a4c60212a2e39c8a
ALSA: usb-audio: Pre-calculate buffer byte size

There are a bunch of lines calculating the buffer size in bytes at
each time.  Keep the value in subs->buffer_bytes and use it
consistently for the code simplicity.

Link: https://lore.kernel.org/r/20210601162457.4877-3-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/card.h
sound/usb/pcm.c