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
This commit is contained in:
Lennart Poettering 2006-07-16 17:28:41 +00:00
parent 494fa68327
commit b91dd2381b
6 changed files with 10 additions and 0 deletions

View file

@ -383,6 +383,7 @@ int pa__init(pa_core *c, pa_module*m) {
goto fail; goto fail;
} }
u->sink->is_hardware = 1;
u->sink->get_latency = sink_get_latency_cb; u->sink->get_latency = sink_get_latency_cb;
if (u->mixer_handle) { if (u->mixer_handle) {
assert(u->mixer_elem); assert(u->mixer_elem);

View file

@ -376,6 +376,7 @@ int pa__init(pa_core *c, pa_module*m) {
goto fail; goto fail;
} }
u->source->is_hardware = 1;
u->source->userdata = u; u->source->userdata = u;
u->source->get_latency = source_get_latency_cb; u->source->get_latency = source_get_latency_cb;
if (u->mixer_handle) { if (u->mixer_handle) {

View file

@ -444,6 +444,7 @@ int pa__init(pa_core *c, pa_module*m) {
hwdesc[0] ? " (" : "", hwdesc[0] ? " (" : "",
hwdesc[0] ? hwdesc : "", hwdesc[0] ? hwdesc : "",
hwdesc[0] ? ")" : ""); hwdesc[0] ? ")" : "");
u->source->is_hardware = 1;
u->in_memblocks = pa_xnew0(pa_memblock*, u->in_fragments); 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] ? hwdesc : "",
hwdesc[0] ? ")" : ""); hwdesc[0] ? ")" : "");
u->sink->is_hardware = 1;
u->out_memblocks = pa_xmalloc0(sizeof(struct memblock *)*u->out_fragments); u->out_memblocks = pa_xmalloc0(sizeof(struct memblock *)*u->out_fragments);
enable_bits |= PCM_ENABLE_OUTPUT; enable_bits |= PCM_ENABLE_OUTPUT;

View file

@ -418,6 +418,7 @@ int pa__init(pa_core *c, pa_module*m) {
hwdesc[0] ? " (" : "", hwdesc[0] ? " (" : "",
hwdesc[0] ? hwdesc : "", hwdesc[0] ? hwdesc : "",
hwdesc[0] ? ")" : ""); hwdesc[0] ? ")" : "");
u->source->is_hardware = 1;
} else } else
u->source = NULL; u->source = NULL;
@ -435,6 +436,7 @@ int pa__init(pa_core *c, pa_module*m) {
hwdesc[0] ? " (" : "", hwdesc[0] ? " (" : "",
hwdesc[0] ? hwdesc : "", hwdesc[0] ? hwdesc : "",
hwdesc[0] ? ")" : ""); hwdesc[0] ? ")" : "");
u->sink->is_hardware = 1;
} else } else
u->sink = NULL; u->sink = NULL;

View file

@ -555,6 +555,7 @@ int pa__init(pa_core *c, pa_module*m) {
u->source->set_hw_volume = source_set_hw_volume_cb; u->source->set_hw_volume = source_set_hw_volume_cb;
pa_source_set_owner(u->source, m); pa_source_set_owner(u->source, m);
u->source->description = pa_sprintf_malloc("Solaris PCM on '%s'", p); u->source->description = pa_sprintf_malloc("Solaris PCM on '%s'", p);
u->source->is_hardware = 1;
} else } else
u->source = NULL; u->source = NULL;
@ -569,6 +570,7 @@ int pa__init(pa_core *c, pa_module*m) {
u->sink->userdata = u; u->sink->userdata = u;
pa_sink_set_owner(u->sink, m); pa_sink_set_owner(u->sink, m);
u->sink->description = pa_sprintf_malloc("Solaris PCM on '%s'", p); u->sink->description = pa_sprintf_malloc("Solaris PCM on '%s'", p);
u->sink->is_hardware = 1;
} else } else
u->sink = NULL; u->sink = NULL;

View file

@ -504,6 +504,7 @@ int pa__init(pa_core *c, pa_module*m) {
u->source->get_latency = source_get_latency_cb; u->source->get_latency = source_get_latency_cb;
pa_source_set_owner(u->source, m); pa_source_set_owner(u->source, m);
u->source->description = pa_sprintf_malloc("Windows waveIn PCM"); u->source->description = pa_sprintf_malloc("Windows waveIn PCM");
u->source->is_hardware = 1;
} else } else
u->source = NULL; u->source = NULL;
@ -517,6 +518,7 @@ int pa__init(pa_core *c, pa_module*m) {
u->sink->userdata = u; u->sink->userdata = u;
pa_sink_set_owner(u->sink, m); pa_sink_set_owner(u->sink, m);
u->sink->description = pa_sprintf_malloc("Windows waveOut PCM"); u->sink->description = pa_sprintf_malloc("Windows waveOut PCM");
u->sink->is_hardware = 1;
} else } else
u->sink = NULL; u->sink = NULL;