Name

snd_ctl_find_numid — find the control instance with the given number-id

Synopsis

snd_kcontrol_t * snd_ctl_find_numid (snd_card_t * card, unsigned int numid);

Arguments

card

the card instance

numid

the number-id to search

Description

Finds the control instance with the given number-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).