From owner-freebsd-questions@freebsd.org Fri Dec 4 08:18:32 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9ECE6477695 for ; Fri, 4 Dec 2020 08:18:32 +0000 (UTC) (envelope-from peo@nethead.se) Received: from ns1.nethead.se (ns1.nethead.se [5.150.237.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "ns1.nethead.se", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CnQZb2xz2z3wW3 for ; Fri, 4 Dec 2020 08:18:30 +0000 (UTC) (envelope-from peo@nethead.se) X-Virus-Scanned: amavisd-new at Nethead AB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nethead.se; s=NETHEADSE; t=1607069905; bh=z5+h2rO5nqGm06UjbkLUyaSVYKDVWwBYsnC/LQIdEUk=; h=Subject:To:References:From:Date:In-Reply-To; b=uFrs6Sr+HCOe3ezqOkme++ngOg/L6z+vk/6pT0MTeruPE9agSnlX56jrmFlRurexq ZtawAyUsqEFms7qvZM5coawnrkE8FFzsaUEpWw+Y6/VH9hoO+qnyl+XKNQnv5iV0Lk 8U3MeJ4c5AWAacTbCcCZCi+cNoMDwXwJM+Z+bXaI= Subject: Re: Different sound devices for mic and speakers To: freebsd-questions@freebsd.org References: <1fe6a18e-9595-83fe-7edf-e6e8485d6d01@nethead.se> <1615da46-9fe4-d190-5e52-853be1319281@nethead.se> From: Per olof Ljungmark Message-ID: Date: Fri, 4 Dec 2020 09:18:23 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4CnQZb2xz2z3wW3 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=nethead.se header.s=NETHEADSE header.b=uFrs6Sr+; dmarc=pass (policy=none) header.from=nethead.se; spf=pass (mx1.freebsd.org: domain of peo@nethead.se designates 5.150.237.139 as permitted sender) smtp.mailfrom=peo@nethead.se X-Spamd-Result: default: False [-4.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[nethead.se:s=NETHEADSE]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:5.150.237.139]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[5.150.237.139:from:127.0.2.255]; DKIM_TRACE(0.00)[nethead.se:+]; DMARC_POLICY_ALLOW(-0.50)[nethead.se,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[5.150.237.139:from]; ASN(0.00)[asn:8473, ipnet:5.150.192.0/18, country:SE]; MID_RHS_MATCH_FROM(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Dec 2020 08:18:32 -0000 On 12/3/20 6:37 PM, Mario Lobo wrote: > On Thu, Dec 3, 2020 at 2:04 PM Per olof Ljungmark wrote: > >> On 12/3/20 5:01 PM, Per olof Ljungmark wrote: >>> For videoconferencing I have a mic in the camera, /dev/dsp6 but the >>> speakers are on /dev/dsp4. >>> >>> How can I make this work? Tried to read the man page for device.hints >>> but that just made me dizzy. Is it really the only way to do it? >>> >> >> virtual_oss seems to do the job. > > Could you elaborate on how to do that with virtual_oss? > > When I tried it with the default config, Firefox videos and audios froze. > > Here's my sndstat: > > Installed devices: > pcm0: (play) > pcm1: (play) > pcm2: (play/rec) default > pcm3: (play/rec) > pcm4: (play) > pcm5: (play) > pcm6: (rec) <-- camera mic /dev/dsp6.0 > No devices installed from userspace. > > ugen7.2: at usbus7 > ugen3.2: at usbus3 > ugen3.3: at usbus3 > > lsusb > Bus /dev/usb Device /dev/ugen3.3: ID 05af:0806 Jing-Mold Enterprise Co., > Ltd HP SK806A Keyboard > Bus /dev/usb Device /dev/ugen3.2: ID 275d:0ba6 > Bus /dev/usb Device /dev/ugen7.2: ID 1871:0143 Aveo Technology Corp. > Bus /dev/usb Device /dev/ugen0.2: ID 2109:3431 VIA Labs, Inc. Hub > > I did only this and it just worked: virtual_oss -r 48000 -b 16 -c 2 -s 1024 -P /dev/dsp3 -R /dev/dsp4 -d dsp -P for playback and -R for recording device.