From owner-freebsd-current@freebsd.org Mon Mar 30 19:13:15 2020 Return-Path: Delivered-To: freebsd-current@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 135BA2646B9; Mon, 30 Mar 2020 19:13:15 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48rhtl4KMMz4PGM; Mon, 30 Mar 2020 19:13:02 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: by mail-wm1-x329.google.com with SMTP id c81so30153wmd.4; Mon, 30 Mar 2020 12:13:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=FB0Z+21rbbdj5XDz5q56I7WJNK+Y+6zmzRqgyBonKfg=; b=Bz5RtOMqfx514pVEg0DaggtsCkTCIe4o4xXIvxKGcGCh1mWC+z3jcW8izqk+npR7/1 KWjWi1rH4oGHXaUrpqaYxZBFzU4gx+GW29ykWHefZN4Ha/sBECQI535KpWib+tT1z2Gl JLtGJii3CvodWmygyG5aeOjPGLU1oh0MAdNDXrwUbLjY8DF96zOQKjQEqCutPDtQNPIU ZzOGarlHOPKLUGB9KA1S6hswm+ahDxo3W2hgbTgsfM7+z1mqGaTGUi/7YrT8R8Dr3ynH uZDrRZU+zUkRgqH59u13k3O0EC69OWoX3owr/65opohnGGbTcMzRNh/8k0v57clPM6+l XQQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=FB0Z+21rbbdj5XDz5q56I7WJNK+Y+6zmzRqgyBonKfg=; b=GVl8iW87FThzAOZJCpqkggQxxN8NvVK49UtF2jFIrteyBRlHiU3d+uPT8Tx/+DcXli EhbU1d+Z/NPCVq3RAhYO3nBjPLiWqnOtkinaEe3jtsl2IE7l8DrVCc77wGe15lmpXzLg RziDK/YAkMP1qKOP4eof04vkYxT74Ss32N4KFF04oxmnU8vaYbN85EcZIcdPgTav7Mu9 +El/6+C06JuFSYwQjmylPQzP+HCyeKzAnqdud0wZB7Uk0vgxVf1P5LkKQdikhdXnkXpo xSEiixydvLc+pjEGj22cFvoFn1luCNYg6npV0JwDs7m+ipI0r/q53ymJAIIw1RS9lqQp NWRQ== X-Gm-Message-State: ANhLgQ3AzFyWS9w6sC7rnaHrU/Dd8Xzm3BYotQaREphCMwrbjq/5ehml At5AdYKn7SSsmqJFgsOGZW7TvHMAGF95Ag== X-Google-Smtp-Source: ADFU+vuP+TXCmwkUdm+rxM7mwXLN78wg0Wnw9lDDD777v9L0x26uSn9S1DrxjUTece3o8a+tgZcInA== X-Received: by 2002:a1c:7d88:: with SMTP id y130mr762873wmc.5.1585595176871; Mon, 30 Mar 2020 12:06:16 -0700 (PDT) Received: from [192.168.1.7] (79-66-147-78.dynamic.dsl.as9105.com. [79.66.147.78]) by smtp.gmail.com with ESMTPSA id b199sm631127wme.23.2020.03.30.12.06.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Mar 2020 12:06:16 -0700 (PDT) Subject: Re: USB microphones with FreeBSD-CURRENT To: Jan Beich Cc: freebsd-current@freebsd.org, FreeBSD questions References: <5c93c4d2-897b-0671-b29a-9fde6031adf5@gmail.com> From: Graham Perrin Message-ID: <6467df72-92de-64b5-5a2c-f23b415543b1@gmail.com> Date: Mon, 30 Mar 2020 20:06:15 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Rspamd-Queue-Id: 48rhtl4KMMz4PGM X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Bz5RtOMq; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of grahamperrin@gmail.com designates 2a00:1450:4864:20::329 as permitted sender) smtp.mailfrom=grahamperrin@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; IP_SCORE(0.00)[ip: (-9.39), ipnet: 2a00:1450::/32(-2.37), asn: 15169(-0.45), country: US(-0.05)]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[9.2.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; IP_SCORE_FREEMAIL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Mar 2020 19:13:15 -0000 On 28/03/2020 12:45, Jan Beich wrote: > Graham Perrin writes: > >> I can't get web browsers to recognise USB microphones. >> >> USB output (e.g. to my headphones) is OK. >> >> USB input (e.g. from the microphone part of the headphones) is not. >> >> Any suggestions? > Firefox uses "pulse-rust" cubeb backend *by default* if "pulseaudio" > package is installed. getUserMedia is supposed to preset a dropdown menu > to select a microphone. Make sure pulseaudio actually recognizes the > desired microphone e.g., debug via "pactl list" and "parec". > > I don't have a mic but, looking at the code, only pulse-rust or pulse > backends on Linux/FreeBSD support selecting non-default audio device. > It maybe possible to use other backends but if audio device used for > output and input are different that'd require routing defaults which can > be done via config file (e.g., ~/.asoundrc) or externally via virtual_oss. > >> pcm3: (play/rec) default >> pcm4: (rec) > Are these distinct physical devices? Yes. > >> hw.snd.default_unit: 3 > Have you tried using 4? I did, but decided that the device previously at 4 (Alctron USB700 ) probably has a hardware fault. Worth noting: if I attempt to suspend the system whilst the device at 3 (SteelSeries Siberia 350 headphones with integral microphone ) is physically connected, suspend sometimes fails; it becomes necessary to force off the computer. If I start the system with the headphones connected, then the microphone at 3 is usable at e.g. and (see ) but not in Microsoft Teams. If I disconnect the headphones (to minimise the risk of failure to suspend), then reconnect, the system seems unable to reuse the headphones (see ); a restart is required. In Microsoft Teams, neither 2 nor 3 is detected; there's only 1 (see ) and after allowing use of /dev/dsp1 it 'disappears', leaving only the camera in use (head of ).