FreeBSD Bugzilla – Attachment 173479 Details for
Bug 211684
audio/pulseaudio: Respect hw.snd.default_unit
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch (since 419133 revision) for v8.0
pulseaudio_8.0.diff (text/plain), 935 bytes, created by
lightside
on 2016-08-09 23:14:50 UTC
(
hide
)
Description:
Proposed patch (since 419133 revision) for v8.0
Filename:
MIME Type:
Creator:
lightside
Created:
2016-08-09 23:14:50 UTC
Size:
935 bytes
patch
obsolete
>--- pulseaudio.orig/files/patch-src_modules_module-detect.c 2016-07-26 16:51:15 UTC >+++ pulseaudio/files/patch-src_modules_module-detect.c >@@ -10,12 +10,19 @@ > > static const char* const valid_modargs[] = { > "just-one", >-@@ -157,8 +159,7 @@ static int detect_oss(pa_core *c, int ju >+@@ -157,8 +159,14 @@ static int detect_oss(pa_core *c, int ju > continue; > > } else if (sscanf(line, "pcm%u: ", &device) == 1) { > - /* FreeBSD support, the devices are named /dev/dsp0.0, dsp0.1 and so on */ > - pa_snprintf(args, sizeof(args), "device=/dev/dsp%u.0", device); >++ size_t len = strlen(line); >++ if (len < 7) >++ continue; >++ >++ if (!pa_streq(line + len - 7, "default")) >++ continue; >++ > + pa_snprintf(args, sizeof(args), "device=/dev/dsp%u", device); > > if (!pa_module_load(c, "module-oss", args))
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 211684
:
173433
|
173479
|
173511
|
173513
|
173514
|
173515
|
173625
|
173626
|
173915
|
175354
|
176133
|
176143
|
176830
|
176833