use PA_CHANNEL_MAP_OSS in module-oss, module-oss-mmap

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@896 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2006-05-17 13:09:46 +00:00
parent ed3606c884
commit 270a409bf5
2 changed files with 2 additions and 2 deletions

View file

@ -383,7 +383,7 @@ int pa__init(pa_core *c, pa_module*m) {
} }
u->sample_spec = c->default_sample_spec; u->sample_spec = c->default_sample_spec;
if (pa_modargs_get_sample_spec_and_channel_map(ma, &u->sample_spec, &map, PA_CHANNEL_MAP_ALSA) < 0) { if (pa_modargs_get_sample_spec_and_channel_map(ma, &u->sample_spec, &map, PA_CHANNEL_MAP_OSS) < 0) {
pa_log(__FILE__": failed to parse sample specification or channel map"); pa_log(__FILE__": failed to parse sample specification or channel map");
goto fail; goto fail;
} }

View file

@ -347,7 +347,7 @@ int pa__init(pa_core *c, pa_module*m) {
mode = (playback&&record) ? O_RDWR : (playback ? O_WRONLY : (record ? O_RDONLY : 0)); mode = (playback&&record) ? O_RDWR : (playback ? O_WRONLY : (record ? O_RDONLY : 0));
ss = c->default_sample_spec; ss = c->default_sample_spec;
if (pa_modargs_get_sample_spec_and_channel_map(ma, &ss, &map, PA_CHANNEL_MAP_ALSA) < 0) { if (pa_modargs_get_sample_spec_and_channel_map(ma, &ss, &map, PA_CHANNEL_MAP_OSS) < 0) {
pa_log(__FILE__": failed to parse sample specification or channel map"); pa_log(__FILE__": failed to parse sample specification or channel map");
goto fail; goto fail;
} }