---
name: "snd_hwdep_new"
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_hwdep_new"
---

# snd\_hwdep\_new(9)

create a new hwdep instance

## NAME

snd\_hwdep\_new - create a new hwdep instance

## SYNOPSIS

**int snd\_hwdep\_new(struct snd\_card \*** *card***, char \*** *id***, int** *device***, struct snd\_hwdep \*\*** *rhwdep***);**

## ARGUMENTS

*card*

the card instance

*id*

the id string

*device*

the device index (zero-based)

*rhwdep*

the pointer to store the new hwdep instance

## DESCRIPTION

Creates a new hwdep instance with the given index on the card. The callbacks (hwdep-\>ops) must be set on the returned instance after this call manually by the caller.

## RETURN

Zero if successful, or a negative error code on failure.

## COPYRIGHT
