[pulseaudio-commits] 4 commits - src/modules src/pulsecore

Arun Raghavan arun at kemper.freedesktop.org
Wed Jan 11 09:32:37 PST 2012


 src/modules/alsa/alsa-util.c |    4 ++--
 src/pulsecore/cpu-arm.c      |    4 ++--
 src/pulsecore/sconv_sse.c    |    2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

New commits:
commit c6e6d682ed480c8c792f490e78d4bfff66bf53b7
Author: Peter Meerwald <p.meerwald at bct-electronic.com>
Date:   Mon Jan 9 13:51:27 2012 +0100

    sconv: Fix generation of floats in SSE test code
    
    the random floats x should be zero-mean with -(1+eps)<x<(1+eps) for some
    small epsilon; previously only negative x were generated

diff --git a/src/pulsecore/sconv_sse.c b/src/pulsecore/sconv_sse.c
index 22aaf6c..3c9a809 100644
--- a/src/pulsecore/sconv_sse.c
+++ b/src/pulsecore/sconv_sse.c
@@ -182,7 +182,7 @@ static void run_test(void) {
     memset(samples, 0, sizeof(samples));
 
     for (i = 0; i < SAMPLES; i++) {
-        floats[i] = (rand()/(RAND_MAX+2.2)) - 1.1;
+        floats[i] = 2.1f * (rand()/(float) RAND_MAX - 0.5f);
     }
 
     func = pa_get_convert_from_float32ne_function(PA_SAMPLE_S16LE);

commit 66d2f15f9080b0230fa52ad28ca2b7e3ee196571
Author: Peter Meerwald <p.meerwald at bct-electronic.com>
Date:   Wed Jan 11 22:11:00 2012 +0530

    core: Fix log message about ARM feature detection

diff --git a/src/pulsecore/cpu-arm.c b/src/pulsecore/cpu-arm.c
index 9208e45..9c654a3 100644
--- a/src/pulsecore/cpu-arm.c
+++ b/src/pulsecore/cpu-arm.c
@@ -138,7 +138,7 @@ pa_bool_t pa_cpu_init_arm(pa_cpu_arm_flag_t *flags) {
     return TRUE;
 
 #else /* defined (__linux__) */
-    pa_log ("ARM cpu features not yet supported on this OS");
+    pa_log("Reading ARM CPU features not yet supported on this OS");
 #endif /* defined (__linux__) */
 
 #else /* defined (__arm__) */

commit 505a015695440b9da745743d8c516e09c26d555b
Author: Peter Meerwald <p.meerwald at bct-electronic.com>
Date:   Fri Dec 30 22:28:31 2011 +0100

    core: Fix return of pa_cpu_init_arm()

diff --git a/src/pulsecore/cpu-arm.c b/src/pulsecore/cpu-arm.c
index 078fb04..9208e45 100644
--- a/src/pulsecore/cpu-arm.c
+++ b/src/pulsecore/cpu-arm.c
@@ -89,7 +89,7 @@ pa_bool_t pa_cpu_init_arm(pa_cpu_arm_flag_t *flags) {
      * space support to get the CPU features. This only works on linux AFAIK. */
     if (!(cpuinfo = get_cpuinfo())) {
         pa_log("Can't read cpuinfo");
-        return;
+        return FALSE;
     }
 
     *flags = 0;

commit 7ea740b2c827312d8917e3ff4d8de5df21a93075
Author: Peter Meerwald <p.meerwald at bct-electronic.com>
Date:   Fri Dec 30 22:28:30 2011 +0100

    alsa: Mention correct ALSA function in debug log

diff --git a/src/modules/alsa/alsa-util.c b/src/modules/alsa/alsa-util.c
index e5275b1..4460be3 100644
--- a/src/modules/alsa/alsa-util.c
+++ b/src/modules/alsa/alsa-util.c
@@ -819,12 +819,12 @@ void pa_alsa_dump_status(snd_pcm_t *pcm) {
     }
 
     if ((err = snd_pcm_status_dump(status, out)) < 0) {
-        pa_log_debug("snd_pcm_dump(): %s", pa_alsa_strerror(err));
+        pa_log_debug("snd_pcm_status_dump(): %s", pa_alsa_strerror(err));
         goto finish;
     }
 
     snd_output_buffer_string(out, &s);
-    pa_log_debug("snd_pcm_dump():\n%s", pa_strnull(s));
+    pa_log_debug("snd_pcm_status_dump():\n%s", pa_strnull(s));
 
 finish:
 



More information about the pulseaudio-commits mailing list