Remove widgets from struct alsa_elem and add data to callbacks
Rather than having widget/widget2/widget_callback fields in the struct alsa_elem, have a list of callbacks and allow private data to be passed to callbacks.
This commit is contained in:
@@ -258,7 +258,7 @@ static void get_snk_center(
|
||||
double *x,
|
||||
double *y
|
||||
) {
|
||||
get_widget_center(r_snk->elem->widget2, parent, x, y);
|
||||
get_widget_center(r_snk->socket_widget, parent, x, y);
|
||||
if (IS_MIXER(r_snk->port_category))
|
||||
(*y)++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user