Fix for arecord recording ghost data

GitHub pull_request - opened github at alsa-project.org
Tue May 24 13:47:47 CEST 2022


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


More information about the Alsa-devel mailing list