---
name: "snd_card_free_when_closed"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/snd_card_free_when_closed"
---

# snd\_card\_free\_when\_closed(9)

Disconnect the card, free it later eventually

## NAME

snd\_card\_free\_when\_closed - Disconnect the card, free it later eventually

## SYNOPSIS

**int snd\_card\_free\_when\_closed(struct snd\_card \*** *card***);**

## ARGUMENTS

*card*

soundcard structure

## DESCRIPTION

Unlike **snd\_card\_free**, this function doesn't try to release the card resource immediately, but tries to disconnect at first. When the card is still in use, the function returns before freeing the resources. The card resources will be freed when the refcount gets to zero.

## COPYRIGHT
