Get user data of a registered device
void * snd_lookup_minor_data(unsigned int minor, int type);
minor
the minor number
type
device type (SNDRV_DEVICE_TYPE_XXX)
Checks that a minor device with the specified type is registered, and returns its user data pointer.
This function increments the reference counter of the card instance if an associated instance with the given minor number and type is found. The caller must call snd_card_unref appropriately later.
The user data pointer if the specified device is found. NULL otherwise.