Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Dec 2020 00:34:35 +0000
From:      Graham Perrin <grahamperrin@gmail.com>
To:        Hans Petter Selasky <hps@selasky.org>
Cc:        FreeBSD questions <freebsd-questions@freebsd.org>
Subject:   =?UTF-8?B?dmlydHVhbF9vc3MsIGN1c2UsIHdlYmNhbWQg4oCm?=
Message-ID:  <bab05206-f76f-1a64-2719-2089252ba381@gmail.com>
In-Reply-To: <8a030de2-86ef-c3f5-5f50-929f7a842892@selasky.org>
References:  <96ce7276-6ec1-c87c-ca08-4a24b671a5d7@gmail.com> <3da4613d-fdf7-6fbe-baae-1f998724e31f@gmail.com> <729b7d39-659f-1fde-b34f-bc882ec45bc9@selasky.org> <11b501b5-95a5-cada-174f-94950e57a192@gmail.com> <8a030de2-86ef-c3f5-5f50-929f7a842892@selasky.org>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On 12/12/2020 19:46, Hans Petter Selasky wrote:
> On 12/12/20 6:40 PM, Graham Perrin wrote:
>> …
>
> Right.
>
> Maybe some application didn't close down. Then you can't unload 
> virtual_oss.
>
> procstat -akk | grep cuse
>
> may give you some clues.
>
> --HPS


Thanks


grahamperrin@mowa219-gjp4-8570p:~ % sudo service virtual_oss status
grahamperrin's password:
virtual_oss is running as pid 14585.
grahamperrin@mowa219-gjp4-8570p:~ % sudo service virtual_oss stop
Stopping Virtual OSS config dsp ... done
grahamperrin@mowa219-gjp4-8570p:~ % procstat -akk | grep cuse
grahamperrin@mowa219-gjp4-8570p:~ % sudo service virtual_oss status
virtual_oss is not running.
grahamperrin@mowa219-gjp4-8570p:~ % time sudo virtual_oss -C 2 -c 2 -r 
48000 -b 24 -s 8.0ms -f /dev/dsp3 -d dsp
hw.snd.basename_clone: 0 -> 0
load: 4.47  cmd: virtual_oss 38000 [cuse-server-cv] 113.63r 0.33u 0.45s 
0% 4964k
mi_switch+0xc1 sleepq_catch_signals+0x82 sleepq_wait_sig+0x9 
_cv_wait_sig+0xe4 cuse_server_ioctl+0x9db devfs_ioctl+0xc7 
vn_ioctl+0x1a1 devfs_ioctl_f+0x1e kern_ioctl+0x26d sys_ioctl+0xf6 
amd64_syscall+0x10c fast_syscall_common+0xf8
^C0.345u 0.496s 2:00.44 0.6%    120+375k 0+0io 0pf+0w
grahamperrin@mowa219-gjp4-8570p:~ % sudo procstat -akk | grep cuse
  1157 100586 webcamd             - mi_switch+0xc1 
sleepq_catch_signals+0x82 sleepq_wait_sig+0x9 _cv_wait_sig+0xe4 
cuse_server_ioctl+0x9db devfs_ioctl+0xc7 vn_ioctl+0x1a1 
devfs_ioctl_f+0x1e kern_ioctl+0x26d sys_ioctl+0xf6 amd64_syscall+0x10c 
fast_syscall_common+0xf8
  1157 100700 webcamd             - mi_switch+0xc1 
sleepq_catch_signals+0x82 sleepq_wait_sig+0x9 _cv_wait_sig+0xe4 
cuse_server_ioctl+0x9db devfs_ioctl+0xc7 vn_ioctl+0x1a1 
devfs_ioctl_f+0x1e kern_ioctl+0x26d sys_ioctl+0xf6 amd64_syscall+0x10c 
fast_syscall_common+0xf8
  1157 100701 webcamd             - mi_switch+0xc1 
sleepq_catch_signals+0x82 sleepq_wait_sig+0x9 _cv_wait_sig+0xe4 
cuse_server_ioctl+0x9db devfs_ioctl+0xc7 vn_ioctl+0x1a1 
devfs_ioctl_f+0x1e kern_ioctl+0x26d sys_ioctl+0xf6 amd64_syscall+0x10c 
fast_syscall_common+0xf8
  1157 100702 webcamd             - mi_switch+0xc1 
sleepq_catch_signals+0x82 sleepq_wait_sig+0x9 _cv_wait_sig+0xe4 
cuse_server_ioctl+0x9db devfs_ioctl+0xc7 vn_ioctl+0x1a1 
devfs_ioctl_f+0x1e kern_ioctl+0x26d sys_ioctl+0xf6 amd64_syscall+0x10c 
fast_syscall_common+0xf8
  1157 100703 webcamd             - mi_switch+0xc1 
sleepq_catch_signals+0x82 sleepq_wait_sig+0x9 _cv_wait_sig+0xe4 
cuse_server_ioctl+0x9db devfs_ioctl+0xc7 vn_ioctl+0x1a1 
devfs_ioctl_f+0x1e kern_ioctl+0x26d sys_ioctl+0xf6 amd64_syscall+0x10c 
fast_syscall_common+0xf8
  1157 100704 webcamd             - mi_switch+0xc1 
sleepq_catch_signals+0x82 sleepq_wait_sig+0x9 _cv_wait_sig+0xe4 
cuse_server_ioctl+0x9db devfs_ioctl+0xc7 vn_ioctl+0x1a1 
devfs_ioctl_f+0x1e kern_ioctl+0x26d sys_ioctl+0xf6 amd64_syscall+0x10c 
fast_syscall_common+0xf8
  1157 100705 webcamd             - mi_switch+0xc1 
sleepq_catch_signals+0x82 sleepq_wait_sig+0x9 _cv_wait_sig+0xe4 
cuse_server_ioctl+0x9db devfs_ioctl+0xc7 vn_ioctl+0x1a1 
devfs_ioctl_f+0x1e kern_ioctl+0x26d sys_ioctl+0xf6 amd64_syscall+0x10c 
fast_syscall_common+0xf8
  1157 100706 webcamd             - mi_switch+0xc1 
sleepq_catch_signals+0x82 sleepq_wait_sig+0x9 _cv_wait_sig+0xe4 
cuse_server_ioctl+0x9db devfs_ioctl+0xc7 vn_ioctl+0x1a1 
devfs_ioctl_f+0x1e kern_ioctl+0x26d sys_ioctl+0xf6 amd64_syscall+0x10c 
fast_syscall_common+0xf8
  1157 100707 webcamd             - mi_switch+0xc1 
sleepq_catch_signals+0x82 sleepq_wait_sig+0x9 _cv_wait_sig+0xe4 
cuse_server_ioctl+0x9db devfs_ioctl+0xc7 vn_ioctl+0x1a1 
devfs_ioctl_f+0x1e kern_ioctl+0x26d sys_ioctl+0xf6 amd64_syscall+0x10c 
fast_syscall_common+0xf8
grahamperrin@mowa219-gjp4-8570p:~ % grep -A 1 webcamd /etc/rc.conf
webcamd_enable="YES"
# <https://www.freshports.org/net-im/zoom/>;
webcamd_flags="-H"

grahamperrin@mowa219-gjp4-8570p:~ %

----


Later:


----

grahamperrin@mowa219-gjp4-8570p:~ % sudo service virtual_oss stop && 
sudo service webcamd stop && sudo virtual_oss -C 2 -c 2 -r 48000 -b 24 
-s 8.0ms -f /dev/dsp3 -d dsp && sudo service webcamd start
webcamd is not running.
grahamperrin@mowa219-gjp4-8570p:~ % cat /dev/sndstat
Installed devices:
pcm0: <ATI R6xx (HDMI)> (play)
pcm1: <IDT 92HD81B1X (Analog 2.0+HP/2.0)> (play/rec) default
pcm2: <IDT 92HD81B1X (Analog)> (play/rec)
pcm3: <USB audio> (play/rec)
No devices installed from userspace.
grahamperrin@mowa219-gjp4-8570p:~ % sudo service webcamd status
webcamd is not running.
grahamperrin@mowa219-gjp4-8570p:~ % sudo service virtual_oss stop ; sudo 
service webcamd stop ; sudo virtual_oss -C 2 -c 2 -r 48000 -b 24 -s 
8.0ms -f /dev/dsp3 -d dsp && sudo service webcamd start
webcamd is not running.
hw.snd.basename_clone: 0 -> 0
load: 6.15  cmd: virtual_oss 54255 [cuse-server-cv] 34.84r 0.16u 0.08s 
0% 4404k
mi_switch+0xc1 sleepq_catch_signals+0x82 sleepq_wait_sig+0x9 
_cv_wait_sig+0xe4 cuse_server_ioctl+0x9db devfs_ioctl+0xc7 
vn_ioctl+0x1a1 devfs_ioctl_f+0x1e kern_ioctl+0x26d sys_ioctl+0xf6 
amd64_syscall+0x10c fast_syscall_common+0xf8
^C
grahamperrin@mowa219-gjp4-8570p:~ % sudo procstat -akk | grep cuse
grahamperrin@mowa219-gjp4-8570p:~ %




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?bab05206-f76f-1a64-2719-2089252ba381>