mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
make untabify
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1472 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
590ae20d4d
commit
69115687ad
11 changed files with 241 additions and 241 deletions
|
|
@ -326,7 +326,7 @@ int pa_alsa_set_hw_params(snd_pcm_t *pcm_handle, pa_sample_spec *ss, uint32_t *p
|
|||
if ((ret = snd_pcm_hw_params_malloc(&hwparams)) < 0 ||
|
||||
(ret = snd_pcm_hw_params_any(pcm_handle, hwparams)) < 0 ||
|
||||
(ret = snd_pcm_hw_params_set_rate_resample(pcm_handle, hwparams, 0)) < 0 ||
|
||||
(ret = snd_pcm_hw_params_set_access(pcm_handle, hwparams, SND_PCM_ACCESS_RW_INTERLEAVED)) < 0)
|
||||
(ret = snd_pcm_hw_params_set_access(pcm_handle, hwparams, SND_PCM_ACCESS_RW_INTERLEAVED)) < 0)
|
||||
goto finish;
|
||||
|
||||
if ((ret = set_format(pcm_handle, hwparams, &f)) < 0)
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ static int detect_oss(pa_core *c, int just_one) {
|
|||
line[strcspn(line, "\r\n")] = 0;
|
||||
|
||||
if (!b) {
|
||||
b = strcmp(line, "Audio devices:") == 0 || strcmp(line, "Installed devices:") == 0;
|
||||
b = strcmp(line, "Audio devices:") == 0 || strcmp(line, "Installed devices:") == 0;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
@ -155,13 +155,13 @@ static int detect_oss(pa_core *c, int just_one) {
|
|||
if (!pa_module_load(c, "module-oss", args))
|
||||
continue;
|
||||
|
||||
} else if (sscanf(line, "pcm%u: ", &device) == 1) {
|
||||
} else if (sscanf(line, "pcm%u: ", &device) == 1) {
|
||||
/* FreeBSD support, the devices are named /dev/dsp0.0, dsp0.1 and so on */
|
||||
snprintf(args, sizeof(args), "device=/dev/dsp%u.0", device);
|
||||
|
||||
if (!pa_module_load(c, "module-oss", args))
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
n++;
|
||||
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ success:
|
|||
#ifdef DSP_CAP_BIND
|
||||
*pcaps & DSP_CAP_BIND ? " BIND" : "",
|
||||
#else
|
||||
"",
|
||||
"",
|
||||
#endif
|
||||
*pcaps & DSP_CAP_COPROC ? " COPROC" : "",
|
||||
*pcaps & DSP_CAP_DUPLEX ? " DUPLEX" : "",
|
||||
|
|
@ -122,7 +122,7 @@ success:
|
|||
#ifdef DSP_CAP_MULTI
|
||||
*pcaps & DSP_CAP_MULTI ? " MULTI" : "",
|
||||
#else
|
||||
"",
|
||||
"",
|
||||
#endif
|
||||
#ifdef DSP_CAP_OUTPUT
|
||||
*pcaps & DSP_CAP_OUTPUT ? " OUTPUT" : "",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue