alsa-project/alsa-utils pull request #150 was opened from amadeuszslawinski-intel: We noticed the issue in our tests, when using arecord would produce files with glitches at recording end. Apparently it was caused by writing full buffer to output file instead of the data read, when stopping recording. Following commit adjust the code to only write the amount of data that was read and making sure that file size matches internal format data. Request URL : https://github.com/alsa-project/alsa-utils/pull/150 Patch URL : https://github.com/alsa-project/alsa-utils/pull/150.patch Repository URL: https://github.com/alsa-project/alsa-utils