alsa: Clarify potentially confusing device port data field

The meaning of the code is unchanged here, but it is clearer that the
PA_DEVICE_PORT_DATA field is a struct ucm_port pointer.
This commit is contained in:
Arun Raghavan 2015-08-25 21:12:05 +05:30
parent 5071960bf3
commit f506203fcd

View file

@ -769,7 +769,7 @@ static void ucm_add_port_combination(
pa_device_port_new_data_set_description(&port_data, desc);
pa_device_port_new_data_set_direction(&port_data, is_sink ? PA_DIRECTION_OUTPUT : PA_DIRECTION_INPUT);
port = pa_device_port_new(core, &port_data, sizeof(ucm_port));
port = pa_device_port_new(core, &port_data, sizeof(struct ucm_port *));
pa_device_port_new_data_done(&port_data);
ucm_port = ucm_port_new(context->ucm, port, pdevices, num);