[pulseaudio-commits] r1092 - in /trunk/src/modules: module-alsa-sink.c module-alsa-source.c module-oss-mmap.c module-oss.c module-solaris.c module-waveout.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Sun Jul 16 10:28:43 PDT 2006


Author: lennart
Date: Sun Jul 16 19:28:41 2006
New Revision: 1092

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1092&root=pulseaudio&view=rev
Log:
set is_hardware flag for a few hw plugins

Modified:
    trunk/src/modules/module-alsa-sink.c
    trunk/src/modules/module-alsa-source.c
    trunk/src/modules/module-oss-mmap.c
    trunk/src/modules/module-oss.c
    trunk/src/modules/module-solaris.c
    trunk/src/modules/module-waveout.c

Modified: trunk/src/modules/module-alsa-sink.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/module-alsa-sink.c?rev=1092&root=pulseaudio&r1=1091&r2=1092&view=diff
==============================================================================
--- trunk/src/modules/module-alsa-sink.c (original)
+++ trunk/src/modules/module-alsa-sink.c Sun Jul 16 19:28:41 2006
@@ -383,6 +383,7 @@
         goto fail;
     }
 
+    u->sink->is_hardware = 1;
     u->sink->get_latency = sink_get_latency_cb;
     if (u->mixer_handle) {
         assert(u->mixer_elem);

Modified: trunk/src/modules/module-alsa-source.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/module-alsa-source.c?rev=1092&root=pulseaudio&r1=1091&r2=1092&view=diff
==============================================================================
--- trunk/src/modules/module-alsa-source.c (original)
+++ trunk/src/modules/module-alsa-source.c Sun Jul 16 19:28:41 2006
@@ -376,6 +376,7 @@
         goto fail;
     }
 
+    u->source->is_hardware = 1;
     u->source->userdata = u;
     u->source->get_latency = source_get_latency_cb;
     if (u->mixer_handle) {

Modified: trunk/src/modules/module-oss-mmap.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/module-oss-mmap.c?rev=1092&root=pulseaudio&r1=1091&r2=1092&view=diff
==============================================================================
--- trunk/src/modules/module-oss-mmap.c (original)
+++ trunk/src/modules/module-oss-mmap.c Sun Jul 16 19:28:41 2006
@@ -444,6 +444,7 @@
                                                        hwdesc[0] ? " (" : "",
                                                        hwdesc[0] ? hwdesc : "",
                                                        hwdesc[0] ? ")" : "");
+            u->source->is_hardware = 1;
             
             u->in_memblocks = pa_xnew0(pa_memblock*, u->in_fragments);
             
@@ -485,6 +486,7 @@
                                                      hwdesc[0] ? hwdesc : "",
                                                      hwdesc[0] ? ")" : "");
             
+            u->sink->is_hardware = 1;
             u->out_memblocks = pa_xmalloc0(sizeof(struct memblock *)*u->out_fragments);
             
             enable_bits |= PCM_ENABLE_OUTPUT;

Modified: trunk/src/modules/module-oss.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/module-oss.c?rev=1092&root=pulseaudio&r1=1091&r2=1092&view=diff
==============================================================================
--- trunk/src/modules/module-oss.c (original)
+++ trunk/src/modules/module-oss.c Sun Jul 16 19:28:41 2006
@@ -418,6 +418,7 @@
                                                    hwdesc[0] ? " (" : "",
                                                    hwdesc[0] ? hwdesc : "",
                                                    hwdesc[0] ? ")" : "");
+        u->source->is_hardware = 1;
     } else
         u->source = NULL;
 
@@ -435,6 +436,7 @@
                                                  hwdesc[0] ? " (" : "",
                                                  hwdesc[0] ? hwdesc : "",
                                                  hwdesc[0] ? ")" : "");
+        u->sink->is_hardware = 1;
     } else
         u->sink = NULL;
 

Modified: trunk/src/modules/module-solaris.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/module-solaris.c?rev=1092&root=pulseaudio&r1=1091&r2=1092&view=diff
==============================================================================
--- trunk/src/modules/module-solaris.c (original)
+++ trunk/src/modules/module-solaris.c Sun Jul 16 19:28:41 2006
@@ -555,6 +555,7 @@
         u->source->set_hw_volume = source_set_hw_volume_cb;
         pa_source_set_owner(u->source, m);
         u->source->description = pa_sprintf_malloc("Solaris PCM on '%s'", p);
+        u->source->is_hardware = 1;
     } else
         u->source = NULL;
 
@@ -569,6 +570,7 @@
         u->sink->userdata = u;
         pa_sink_set_owner(u->sink, m);
         u->sink->description = pa_sprintf_malloc("Solaris PCM on '%s'", p);
+        u->sink->is_hardware = 1;
     } else
         u->sink = NULL;
 

Modified: trunk/src/modules/module-waveout.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/module-waveout.c?rev=1092&root=pulseaudio&r1=1091&r2=1092&view=diff
==============================================================================
--- trunk/src/modules/module-waveout.c (original)
+++ trunk/src/modules/module-waveout.c Sun Jul 16 19:28:41 2006
@@ -504,6 +504,7 @@
         u->source->get_latency = source_get_latency_cb;
         pa_source_set_owner(u->source, m);
         u->source->description = pa_sprintf_malloc("Windows waveIn PCM");
+        u->source->is_hardware = 1;
     } else
         u->source = NULL;
 
@@ -517,6 +518,7 @@
         u->sink->userdata = u;
         pa_sink_set_owner(u->sink, m);
         u->sink->description = pa_sprintf_malloc("Windows waveOut PCM");
+        u->sink->is_hardware = 1;
     } else
         u->sink = NULL;
 




More information about the pulseaudio-commits mailing list