Name

snd_ctl_rename_id — replace the id of a control on the card

Synopsis

int snd_ctl_rename_id (snd_card_t *  card,
 snd_ctl_elem_id_t *  src_id,
 snd_ctl_elem_id_t *  dst_id);

Arguments

card

the card instance

src_id

the old id

dst_id

the new id

Description

Finds the control with the old id from the card, and replaces the id with the new one.

Returns zero if successful, or a negative error code on failure.