diff options
author | Arun Raghavan <git@arunraghavan.net> | 2015-08-25 21:12:05 +0530 |
---|---|---|
committer | Arun Raghavan <git@arunraghavan.net> | 2015-08-25 21:12:05 +0530 |
commit | f506203fcdf3949fb8caaab8830370093644d66e (patch) | |
tree | 396fce537660482265eb24b77066e86606894377 | |
parent | 5071960bf33efe4889ed920593386c12821d3a11 (diff) | |
download | pulseaudio-f506203fcdf3949fb8caaab8830370093644d66e.tar.gz |
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.
-rw-r--r-- | src/modules/alsa/alsa-ucm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/alsa/alsa-ucm.c b/src/modules/alsa/alsa-ucm.c index c231bb436..ff5693d96 100644 --- a/src/modules/alsa/alsa-ucm.c +++ b/src/modules/alsa/alsa-ucm.c @@ -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); |