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/pcm.c b/pcm.c
index 6d4dbd5..4e9133a 100644
--- a/pcm.c
+++ b/pcm.c
@@ -415,7 +415,10 @@
for (;;) {
if (!pcm->running) {
- pcm_start(pcm);
+ if (pcm_start(pcm) < 0) {
+ fprintf(stderr, "start error");
+ return -errno;
+ }
}
if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_READI_FRAMES, &x)) {
pcm->running = 0;