---
name: "snd_device_disconnect"
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_device_disconnect"
---

# snd\_device\_disconnect(9)

disconnect the device

## NAME

snd\_device\_disconnect - disconnect the device

## SYNOPSIS

**void snd\_device\_disconnect(struct snd\_card \*** *card***, void \*** *device\_data***);**

## ARGUMENTS

*card*

the card instance

*device\_data*

the data pointer to disconnect

## DESCRIPTION

Turns the device into the disconnection state, invoking dev\_disconnect callback, if the device was already registered.

Usually called from **snd\_card\_disconnect**.

## RETURN

Zero if successful, or a negative error code on failure or if the device not found.

## COPYRIGHT
