snd_card_proc_new(9)

snd_card_proc_new9

Create an info entry for the given card

Usage

int snd_card_proc_new(struct snd_card * card, const char * name, struct snd_info_entry ** entryp);

Arguments

card

the card instance

name

the file name

entryp

the pointer to store the new info entry

Overview

Creates a new info entry and assigns it to the given card. Unlike snd_info_create_card_entry, this function registers the info entry as an ALSA device component, so that it can be unregistered/released without explicit call. Also, you don't have to register this entry via snd_info_register, since this will be registered by snd_card_register automatically.

The parent is assumed as card->proc_root.

For releasing this entry, use snd_device_free instead of snd_info_free_entry.

Return

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

Releases

5 releases since Debian 4.0 (Etch); the text changed 4 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.