X-Git-Url: https://code.delx.au/pulseaudio/blobdiff_plain/cbd274676d510b755e9b670e40228d490707a5b8..6633c1f9ff3b9a1fc8431c50baad2337ccdc8a36:/src/modules/xen/module-xenpv-sink.c diff --git a/src/modules/xen/module-xenpv-sink.c b/src/modules/xen/module-xenpv-sink.c index 66630176..9dbd660f 100644 --- a/src/modules/xen/module-xenpv-sink.c +++ b/src/modules/xen/module-xenpv-sink.c @@ -60,7 +60,7 @@ PA_MODULE_AUTHOR("Giorgos Boutsioukis"); PA_MODULE_DESCRIPTION("Xen PV audio sink"); PA_MODULE_VERSION(PACKAGE_VERSION); -PA_MODULE_LOAD_ONCE(FALSE); +PA_MODULE_LOAD_ONCE(false); PA_MODULE_USAGE( "sink_name= " "sink_properties= " @@ -278,11 +278,9 @@ static int sink_process_msg(pa_msgobject *o, int code, void *data, int64_t offse static int process_render(struct userdata *u) { pa_assert(u); - if (u->memchunk.length <= 0) pa_sink_render(u->sink, ioring->usable_buffer_space, &u->memchunk); - pa_assert(u->memchunk.length > 0); xc_evtchn_notify(xce, xen_evtchn_port); @@ -355,7 +353,7 @@ static void thread_func(void *userdata) { pollfd->events = (short) (u->sink->thread_info.state == PA_SINK_RUNNING ? POLLOUT : 0); - if ((ret = pa_rtpoll_run(u->rtpoll, TRUE)) < 0) + if ((ret = pa_rtpoll_run(u->rtpoll, true)) < 0) goto fail; if (ret == 0) @@ -583,7 +581,6 @@ void pa__done(pa_module*m) { } - static int alloc_gref(struct ioctl_gntalloc_alloc_gref *gref_, void **addr) { int alloc_fd, dev_fd, rv; @@ -701,7 +698,6 @@ static char* read_param(const char *paramname) { return xs_read(xsh, 0, keybuf, &len); } - static int publish_spec(pa_sample_spec *sample_spec) { /* Publish spec and set state to XenbusStateInitWait*/ int ret; @@ -713,7 +709,6 @@ static int publish_spec(pa_sample_spec *sample_spec) { return ret; } - static int read_backend_default_spec(pa_sample_spec *sample_spec) { /* Read spec from backend */ char *out;