Update to latest tinyalsa
2581a1e add error check for pcm_start
6a52f2c mixer: add missing include for sys/ioctl.h
9eba533 tinyplay: add multichannel support
fba29e6 tinycap: Fix byte_rate and block_align values
Change-Id: Icbee0a8c1e101234ac55ba8494c74b442f215576
diff --git a/tinycap.c b/tinycap.c
index dcc238c..d563309 100644
--- a/tinycap.c
+++ b/tinycap.c
@@ -136,9 +136,9 @@
header.audio_format = FORMAT_PCM;
header.num_channels = channels;
header.sample_rate = rate;
+ header.bits_per_sample = bits;
header.byte_rate = (header.bits_per_sample / 8) * channels * rate;
header.block_align = channels * (header.bits_per_sample / 8);
- header.bits_per_sample = bits;
header.data_id = ID_DATA;
/* leave enough room for header */