aplay: fix for aborted capture streams

GitHub pull_request - opened github at alsa-project.org
Fri Aug 7 21:39:08 CEST 2020


alsa-project/alsa-utils pull request #51 was opened from mrajwa:

This patch set fixes the issue with capture streams which were aborted by external signal like ctrl+c. Currently functions pcm_read() and pcm_readv() when aborted (in_aborting flag set) return the amount of requested frames instead of those actually read prior to interrupt. The consequence of this is repetition of recent X frames where X stands for amount of frames in one period. This problem is barely visible or rather *audible* when the period is small like few milliseconds because repetition of 1 [ms] of data is not-noticeable however if we use buffer and period sizes in seconds then the problem becomes apparent. 


Example issue -> https://github.com/thesofproject/sof/issues/3189

Request URL   : https://github.com/alsa-project/alsa-utils/pull/51
Patch URL     : https://github.com/alsa-project/alsa-utils/pull/51.patch
Repository URL: https://github.com/alsa-project/alsa-utils


More information about the Alsa-devel mailing list