SND_CTL_FIND_ID

Section: Control/Mixer API (9)
Updated: February 2011
Index Return to Main Contents
 

NAME

snd_ctl_find_id - find the control instance with the given id  

SYNOPSIS

struct snd_kcontrol * snd_ctl_find_id(struct snd_card * card, struct snd_ctl_elem_id * id);
 

ARGUMENTS

card

the card instance

id

the id to search
 

DESCRIPTION

Finds the control instance with the given id from the card.

Returns the pointer of the instance if found, or NULL if not.

The caller must down card->controls_rwsem before calling this function (if the race condition can happen).  

COPYRIGHT