Commit cb6e96bc authored by Timo Wischer's avatar Timo Wischer Committed by Takashi Iwai
Browse files

pcm:plugin: Fix sound capture via MMAP access



Distorted sound is heard if the capture device of an ioplug plugin is used,
which is accessed through any ALSA plugin (like copy, linear, ...) via MMAP access.
E.g. aplay -> loop -> copy -> arecord -M -> aplay -> hw:0
As mentioned in the ALSA API (see pcm/pcm.c:942):
The function #snd_pcm_avail_update() have to be called
before any mmap begin+commit operation.

Signed-off-by: default avatarTimo Wischer <twischer@de.adit-jv.com>
Signed-off-by: default avatarMounesh Sutar <sutar.mounesh@gmail.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent ad6957c6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment