Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144739442
D49390.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D49390.diff
View Options
Index: rc.d/virtual_oss.in
===================================================================
--- rc.d/virtual_oss.in
+++ rc.d/virtual_oss.in
@@ -16,7 +16,6 @@
# Default is "dsp"
# virtual_oss_dsp (string): Arguments passed to virtual_oss config named dsp
# Default is
-# -T /dev/sndstat # register vdsp in sndstat
# -C 2 -c 2 # use two channels
# -S # resample if needed
# -i 8 # real-time priority
@@ -39,7 +38,6 @@
# required_modules="cuse"
virtual_oss_default_args="\
- -T /dev/sndstat \
-S \
-i 8 \
-C 2 -c 2 \
Index: virtual_int.h
===================================================================
--- virtual_int.h
+++ virtual_int.h
@@ -225,7 +225,6 @@
extern char voss_dsp_rx_device[VMAX_STRING];
extern char voss_dsp_tx_device[VMAX_STRING];
extern char voss_ctl_device[VMAX_STRING];
-extern char voss_sta_device[VMAX_STRING];
extern void atomic_lock(void);
extern void atomic_unlock(void);
Index: virtual_main.c
===================================================================
--- virtual_main.c
+++ virtual_main.c
@@ -1639,7 +1639,6 @@
char voss_dsp_rx_device[VMAX_STRING];
char voss_dsp_tx_device[VMAX_STRING];
char voss_ctl_device[VMAX_STRING];
-char voss_sta_device[VMAX_STRING];
uint32_t voss_jitter_up;
uint32_t voss_jitter_down;
@@ -1694,7 +1693,6 @@
"\t" "-C 2 -c 2 -r 48000 -b 16 -s 100.0ms -f /dev/dsp3 \\\n"
"\t" "-P /dev/dsp3 -R /dev/dsp1 \\\n"
"\t" "-O /dev/dsp3 -R /dev/null \\\n"
- "\t" "-T /dev/sndstat \\\n"
"\t" "-c 1 -m 0,0 [-w wav.0] -d dsp100.0 \\\n"
"\t" "-c 1 -m 0,0 [-w wav.0] -d vdsp.0 \\\n"
"\t" "-c 2 -m 0,0,1,1 [-w wav.1] -d vdsp.1 \\\n"
@@ -1908,14 +1906,12 @@
return ("Could not create CUSE DSP device");
}
- /* register sndstat, if any */
- if (voss_sta_device[0] != 0) {
- ptr->fd_sta = open(voss_sta_device, O_WRONLY);
- if (ptr->fd_sta < 0) {
- warn("Could not open '%s'", voss_sta_device);
- } else {
- init_sndstat(ptr);
- }
+ /* register to sndstat */
+ ptr->fd_sta = open("/dev/sndstat", O_WRONLY);
+ if (ptr->fd_sta < 0) {
+ warn("Could not open /dev/sndstat");
+ } else {
+ init_sndstat(ptr);
}
}
/* create WAV device */
@@ -2017,7 +2013,7 @@
float samples_ms;
if (is_main)
- optstr = "N:J:k:H:o:F:G:w:e:p:a:C:c:r:b:f:g:x:i:m:M:d:l:L:s:t:h?O:P:Q:R:ST:BD:E:";
+ optstr = "N:J:k:H:o:F:G:w:e:p:a:C:c:r:b:f:g:x:i:m:M:d:l:L:s:t:h?O:P:Q:R:SBD:E:";
else
optstr = "F:G:w:e:p:a:c:b:f:m:M:d:l:L:s:O:P:R:E:";
@@ -2286,12 +2282,6 @@
if (voss_dsp_samples >= (1U << 24))
return ("-s option requires a non-zero positive value");
break;
- case 'T':
- if (voss_sta_device[0])
- return ("-T parameter may only be used once");
-
- strncpy(voss_sta_device, optarg, sizeof(voss_sta_device));
- break;
case 't':
if (voss_ctl_device[0])
return ("-t parameter may only be used once");
Index: virtual_oss.8
===================================================================
--- virtual_oss.8
+++ virtual_oss.8
@@ -155,8 +155,6 @@
Specifying /dev/null is magic and means no recording device.
.It Fl f Ar devname
Set both playback and recording DSP device
-.It Fl T Ar devname
-Install entry in /dev/sndstat.
.It Fl w Ar name
Create a WAV file format compatible companion device by given name.
This option should be specified before the -d and -l options.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Feb 12, 11:00 PM (4 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28671225
Default Alt Text
D49390.diff (3 KB)
Attached To
Mode
D49390: virtual_oss: Retire -T option
Attached
Detach File
Event Timeline
Log In to Comment