pcm_plug.c:67: snd_pcm_plug_close: Assertion `plug->gen.slave == plug->req_slave' failed

474 Views Asked by At

I'm using ALSA for the first time and am seeing the error:

pcm_plug.c:67: snd_pcm_plug_close: Assertion `plug->gen.slave == plug->req_slave' failed.

This occurs when I attempt to close the PCM:

snd_pcm_close(pcm);

What could be causing this error?

1

There are 1 best solutions below

0
On

It turned out that I was inadvertently calling snd_pcm_close twice. Removing the second call fixed the failure.