Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c07acb97 authored by Michael Zoran's avatar Michael Zoran Committed by Greg Kroah-Hartman
Browse files

staging: bcm2835-audio: Replace call to vchi_msg_queue with vchi_queue_kernel_message



The function vchi_msg_queue was made static in vc04_services
and replaced with vchi_queue_kernel_message.

Change the call to vchi_msg_queue to vchi_queue_kernel_message

Signed-off-by: default avatarMichael Zoran <mzoran@crowfest.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fa6a8adf
Loading
Loading
Loading
Loading
+3 −12
Original line number Diff line number Diff line
@@ -81,21 +81,12 @@ static int bcm2835_audio_write_worker(struct bcm2835_alsa_stream *alsa_stream,

// Routine to send a message across a service

static ssize_t
bcm2835_vchi_msg_queue_callback(void *context, void *dest,
				size_t offset, size_t maxsize)
{
	memcpy(dest, context + offset, maxsize);
	return maxsize;
}

static int
bcm2835_vchi_msg_queue(VCHI_SERVICE_HANDLE_T handle,
		       void *data,
		       unsigned int size)
{
	return vchi_msg_queue(handle,
			      bcm2835_vchi_msg_queue_callback,
	return vchi_queue_kernel_message(handle,
					 data,
					 size);
}