mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
Merge branch 'master' of ssh://rootserver/home/lennart/git/public/pulseaudio
This commit is contained in:
commit
9708ecd648
6 changed files with 86 additions and 70 deletions
|
|
@ -117,6 +117,7 @@
|
|||
#include <pulsecore/strbuf.h>
|
||||
#include <pulsecore/usergroup.h>
|
||||
#include <pulsecore/strlist.h>
|
||||
#include <pulsecore/cpu-x86.h>
|
||||
|
||||
#include "core-util.h"
|
||||
|
||||
|
|
@ -3085,10 +3086,13 @@ pa_bool_t pa_running_in_vm(void) {
|
|||
pa_zero(sig);
|
||||
|
||||
__asm__ __volatile__ (
|
||||
" xor %%ebx, %%ebx \n\t"
|
||||
/* ebx/rbx is being used for PIC! */
|
||||
" push %%"PA_REG_b" \n\t"
|
||||
" cpuid \n\t"
|
||||
" mov %%ebx, %1 \n\t"
|
||||
" pop %%"PA_REG_b" \n\t"
|
||||
|
||||
: "=a" (eax), "=b" (sig.sig32[0]), "=c" (sig.sig32[1]), "=d" (sig.sig32[2])
|
||||
: "=a" (eax), "=r" (sig.sig32[0]), "=c" (sig.sig32[1]), "=d" (sig.sig32[2])
|
||||
: "0" (eax)
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -2631,7 +2631,7 @@ static void command_get_record_latency(pa_pdispatch *pd, uint32_t command, uint3
|
|||
pa_tagstruct_put_usec(reply, s->current_monitor_latency);
|
||||
pa_tagstruct_put_usec(reply,
|
||||
s->current_source_latency +
|
||||
pa_bytes_to_usec(s->on_the_fly_snapshot, &s->source_output->sample_spec));
|
||||
pa_bytes_to_usec(s->on_the_fly_snapshot, &s->source_output->source->sample_spec));
|
||||
pa_tagstruct_put_boolean(reply,
|
||||
pa_source_get_state(s->source_output->source) == PA_SOURCE_RUNNING &&
|
||||
pa_source_output_get_state(s->source_output) == PA_SOURCE_OUTPUT_RUNNING);
|
||||
|
|
|
|||
|
|
@ -740,14 +740,15 @@ void pa_sink_input_peek(pa_sink_input *i, size_t slength /* in sink frames */, p
|
|||
pa_memchunk rchunk;
|
||||
pa_resampler_run(i->thread_info.resampler, &wchunk, &rchunk);
|
||||
|
||||
if (nvfs) {
|
||||
pa_memchunk_make_writable(&rchunk, 0);
|
||||
pa_volume_memchunk(&rchunk, &i->sink->sample_spec, &i->volume_factor_sink);
|
||||
}
|
||||
|
||||
/* pa_log_debug("pushing %lu", (unsigned long) rchunk.length); */
|
||||
|
||||
if (rchunk.memblock) {
|
||||
|
||||
if (nvfs) {
|
||||
pa_memchunk_make_writable(&rchunk, 0);
|
||||
pa_volume_memchunk(&rchunk, &i->sink->sample_spec, &i->volume_factor_sink);
|
||||
}
|
||||
|
||||
pa_memblockq_push_align(i->thread_info.render_memblockq, &rchunk);
|
||||
pa_memblock_unref(rchunk.memblock);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue