Drew Noakes
Drew Noakes

Reputation: 310907

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

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?

Upvotes: 1

Views: 486

Answers (1)

Drew Noakes
Drew Noakes

Reputation: 310907

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

Upvotes: 2

Related Questions