]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: dmix: resume workaround for buggy driver
authorTakashi Iwai <tiwai@suse.de>
Wed, 25 May 2016 13:03:51 +0000 (15:03 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 31 May 2016 10:45:26 +0000 (12:45 +0200)
commit6d1d620eadf32c6d963468ce56ff52cc3a2f32e2
tree5bdfc7066c96cd442d0052b1411c376912aada2c
parent2fa36eb03c000560128f7abce701536546b4a618
pcm: dmix: resume workaround for buggy driver

The previous commit removed the whole handling of resume in dmix, but
this seems causing another regression; some buggy drivers assume that
the device-resume needs to be triggered before transitioning to
PREPARED state.  As an ugly workaround, in this patch, when the slave
PCM supports resume, snd_pcm_direct_resume() does resume of the slave
PCM but immediately drop the stream after that.  In that way, the
device is brought to the sane active state, then the apps can prepare
and restart the stream properly.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_direct.c