WAV header construction in tinyalsa
authorShivam Garg <garg.shivam@samsung.com>
Fri, 8 Sep 2017 11:48:34 +0000 (20:48 +0900)
committerShivam Garg <garg.shivam@samsung.com>
Mon, 18 Sep 2017 14:03:32 +0000 (23:03 +0900)
commit1c0d989aa4cf29e0460ee5bdc9dd5e7794f2f4cf
tree89a951adf129e1e510e2e4a33de31142f640d52b
parent1a01c817383ab14d4c68c26bec3547e7cacdb33b
WAV header construction in tinyalsa

In pcm_open , while opening pcm device with PCM_IN flag, the wav header is written to the first buffer which is enqueued for getting captured data.

Moved definitions little->big endian and vice versa converting functions to pcm.h so that there is no need for reimplementing those in tinyalsa.c
framework/src/tinyalsa/tinyalsa.c
os/audio/pcm_decode.c
os/include/tinyara/audio/pcm.h