mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
Split OSS support in output and wrapper.
Since Fedora does not enable OSS output support at all, but still uses padsp, and in Gentoo we could also make use of padsp without OSS output support, split the two things in two parameters, although they both check for sys/soundcard.h once.
This commit is contained in:
parent
9ade13604e
commit
4c15115007
5 changed files with 40 additions and 24 deletions
|
|
@ -119,7 +119,7 @@ static int detect_alsa(pa_core *c, int just_one) {
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_OSS
|
||||
#ifdef HAVE_OSS_OUTPUT
|
||||
static int detect_oss(pa_core *c, int just_one) {
|
||||
FILE *f;
|
||||
int n = 0, b = 0;
|
||||
|
|
@ -240,7 +240,7 @@ int pa__init(pa_module*m) {
|
|||
#ifdef HAVE_ALSA
|
||||
if ((n = detect_alsa(m->core, just_one)) <= 0)
|
||||
#endif
|
||||
#ifdef HAVE_OSS
|
||||
#ifdef HAVE_OSS_OUTPUT
|
||||
if ((n = detect_oss(m->core, just_one)) <= 0)
|
||||
#endif
|
||||
#ifdef HAVE_SOLARIS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue