Page MenuHomeFreeBSD

D55671.1796522967.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D55671.1796522967.diff

diff --git a/usr.sbin/virtual_oss/virtual_oss/main.c b/usr.sbin/virtual_oss/virtual_oss/main.c
--- a/usr.sbin/virtual_oss/virtual_oss/main.c
+++ b/usr.sbin/virtual_oss/virtual_oss/main.c
@@ -2252,28 +2252,13 @@
if (val <= 0 || val >= (1024 * 1024))
return ("-s option value is too big");
- ptr = dup_profile(&profile, opt_amp, opt_pol,
- opt_mute[0], opt_mute[1], 0, 1);
- if (ptr != NULL)
- return (ptr);
- break;
- case 'L':
- case 'l':
- if (strlen(optarg) > VMAX_STRING - 1)
- return ("Device name too long");
- strncpy(profile.oss_name, optarg, sizeof(profile.oss_name));
-
- if (profile.bits == 0 || voss_dsp_sample_rate == 0 ||
- profile.channels == 0 || voss_dsp_samples == 0)
- return ("Missing -b, -r, -r or -s parameters");
-
- val = (voss_dsp_samples *
- profile.bits * profile.channels) / 8;
- if (val <= 0 || val >= (1024 * 1024))
- return ("-s option value is too big");
-
- ptr = dup_profile(&profile, opt_amp, opt_pol,
- opt_mute[0], opt_mute[1], c == 'L', 0);
+ if (c == 'd') {
+ ptr = dup_profile(&profile, opt_amp, opt_pol,
+ opt_mute[0], opt_mute[1], 0, 1);
+ } else {
+ ptr = dup_profile(&profile, opt_amp, opt_pol,
+ opt_mute[0], opt_mute[1], c == 'L', 0);
+ }
if (ptr != NULL)
return (ptr);
break;

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 6, 2:09 AM (23 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42245959
Default Alt Text
D55671.1796522967.diff (1 KB)

Event Timeline