diff options
author | Lennart Poettering <lennart@poettering.net> | 2006-07-16 17:28:41 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2006-07-16 17:28:41 +0000 |
commit | b91dd2381bffeb0a4b5450ef4ce1f0031909f79a (patch) | |
tree | 82fe17222e1adf1affa369a45764d946c43ed0d0 | |
parent | 494fa68327fb52276d68437e8467886ce81de297 (diff) |
set is_hardware flag for a few hw plugins
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1092 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r-- | src/modules/module-alsa-sink.c | 1 | ||||
-rw-r--r-- | src/modules/module-alsa-source.c | 1 | ||||
-rw-r--r-- | src/modules/module-oss-mmap.c | 2 | ||||
-rw-r--r-- | src/modules/module-oss.c | 2 | ||||
-rw-r--r-- | src/modules/module-solaris.c | 2 | ||||
-rw-r--r-- | src/modules/module-waveout.c | 2 |
6 files changed, 10 insertions, 0 deletions
diff --git a/src/modules/module-alsa-sink.c b/src/modules/module-alsa-sink.c index 9238072b..d5abdc28 100644 --- a/src/modules/module-alsa-sink.c +++ b/src/modules/module-alsa-sink.c @@ -383,6 +383,7 @@ int pa__init(pa_core *c, pa_module*m) { goto fail; } + u->sink->is_hardware = 1; u->sink->get_latency = sink_get_latency_cb; if (u->mixer_handle) { assert(u->mixer_elem); diff --git a/src/modules/module-alsa-source.c b/src/modules/module-alsa-source.c index 68c61be9..ca4ac9d0 100644 --- a/src/modules/module-alsa-source.c +++ b/src/modules/module-alsa-source.c @@ -376,6 +376,7 @@ int pa__init(pa_core *c, pa_module*m) { goto fail; } + u->source->is_hardware = 1; u->source->userdata = u; u->source->get_latency = source_get_latency_cb; if (u->mixer_handle) { diff --git a/src/modules/module-oss-mmap.c b/src/modules/module-oss-mmap.c index fcc89c84..d6f37633 100644 --- a/src/modules/module-oss-mmap.c +++ b/src/modules/module-oss-mmap.c @@ -444,6 +444,7 @@ int pa__init(pa_core *c, pa_module*m) { 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 @@ int pa__init(pa_core *c, pa_module*m) { 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; diff --git a/src/modules/module-oss.c b/src/modules/module-oss.c index a3ea2c1f..cde7f311 100644 --- a/src/modules/module-oss.c +++ b/src/modules/module-oss.c @@ -418,6 +418,7 @@ int pa__init(pa_core *c, pa_module*m) { hwdesc[0] ? " (" : "", hwdesc[0] ? hwdesc : "", hwdesc[0] ? ")" : ""); + u->source->is_hardware = 1; } else u->source = NULL; @@ -435,6 +436,7 @@ int pa__init(pa_core *c, pa_module*m) { hwdesc[0] ? " (" : "", hwdesc[0] ? hwdesc : "", hwdesc[0] ? ")" : ""); + u->sink->is_hardware = 1; } else u->sink = NULL; diff --git a/src/modules/module-solaris.c b/src/modules/module-solaris.c index 12c4a3ff..02ef4bc4 100644 --- a/src/modules/module-solaris.c +++ b/src/modules/module-solaris.c @@ -555,6 +555,7 @@ int pa__init(pa_core *c, pa_module*m) { 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 @@ int pa__init(pa_core *c, pa_module*m) { 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; diff --git a/src/modules/module-waveout.c b/src/modules/module-waveout.c index 2bd4905a..8fd60b6a 100644 --- a/src/modules/module-waveout.c +++ b/src/modules/module-waveout.c @@ -504,6 +504,7 @@ int pa__init(pa_core *c, pa_module*m) { 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 @@ int pa__init(pa_core *c, pa_module*m) { 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; |