acp: clean up card object

Fixes #369
This commit is contained in:
Wim Taymans 2020-11-09 15:01:07 +01:00
parent 779579b349
commit 42dd52c7fe
8 changed files with 69 additions and 11 deletions

View file

@ -704,6 +704,10 @@ static int impl_get_interface(struct spa_handle *handle, const char *type, void
static int impl_clear(struct spa_handle *handle)
{
struct state *this;
spa_return_val_if_fail(handle != NULL, -EINVAL);
this = (struct state *) handle;
spa_alsa_close(this);
return 0;
}