From: Clemens Ladisch Date: Sun, 21 Sep 2014 20:50:57 +0000 (+0200) Subject: ALSA: pcm: fix fifo_size frame calculation X-Git-Tag: v3.2.64~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53412c3f7c9fd3cac2a33195dad87fdc1bc25103;p=pandora-kernel.git ALSA: pcm: fix fifo_size frame calculation commit a9960e6a293e6fc3ed414643bb4e4106272e4d0a upstream. The calculated frame size was wrong because snd_pcm_format_physical_width() actually returns the number of bits, not bytes. Use snd_pcm_format_size() instead, which not only returns bytes, but also simplifies the calculation. Fixes: 8bea869c5e56 ("ALSA: PCM midlevel: improve fifo_size handling") Signed-off-by: Clemens Ladisch Signed-off-by: Takashi Iwai Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed