mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
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:
parent
ed3606c884
commit
270a409bf5
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue