From nobody Sat Mar 02 02:58:11 2024 X-Original-To: freebsd-usb@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TmqQY28Xcz5BnVR for ; Sat, 2 Mar 2024 02:58:13 +0000 (UTC) (envelope-from leres@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TmqQY1TpQz4gnR for ; Sat, 2 Mar 2024 02:58:13 +0000 (UTC) (envelope-from leres@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709348293; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gNaP/VX/D+aKfofGgZnOCHjsVQ52NFFO1BIwHCfLe18=; b=l2yRykjohfbh+jCHBThOav0+whXw6oJfKeZDdrUyWJn6UGpRySez1p2pWZRoSDdKIVIMlH PXiRvbfXJhqMtuKA4gUiAoRapaL9M9i+vgZtdrg3QENXeskqzviTudcROmvgmL+2lslepf 9BAvul2FYM9nrXGV1lQ5DDVzmuc9Fud8FZJcpFf9XDfqKrSMEjLfFBYGJX9vVOKj6NF5fK amZIR46vE9+q0EKitebjL6slwYQ3mlksSRsk+MXI8iRg+3IFbnOKX3OU+cglhu12VlZ9Dk oODANWI6t8iSeDIIcUpFCQWDhxDs89qDHAwjfl7LWmb6N/w5uf8eyGoVMnLXIQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709348293; a=rsa-sha256; cv=none; b=NdBAI7LU3CVRgoMaSJr+jf4YXYYSa1LAwJZv/AyYNJ6ogxw2is9jdqANbEPWevbbWR9Q7e w5hVbYkj9+5UTghmlpob3EiI6kqA1L2HzMvPPRdFKYCeH6/KdWgPn4uZkYFf0/4oqX4kRi vSQ+LMMYgHgoD8TKkZnnyFawCvOShAwtVIMVBw0ZnO+Wi28viiFydCSg76TTaKjt3gvt69 +gDX04V7F1wO9YxXPF7FzbcE/QLtje4AU5HcuDUUszn+P+lX/WZimL0VSfwq7Qj8U7v8h7 sZVL3BNFhK5VsCuyh6BQTOTuSHlgzHUS9NYGLnp0VrSuSZe1wUTPozzWrsl9Rg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709348293; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gNaP/VX/D+aKfofGgZnOCHjsVQ52NFFO1BIwHCfLe18=; b=iGQCDTpMBPj8zMfzLcFbIRgHvRvXqeCZuaNVCrjqQY8CO6QY9bEDd7KhnnvL+YIBrjqug9 WXEjXxPWLBWynxQp0F7tD86jszwg83L2NLlX0KO0I+dWh3dTuU3983KCKNN9z3WRg6mCfZ oJAer5e5kv7TQiqOWwEgaRU+ohk3IFZ6lTiWfTnyNeDdcTxy19g2FRQ/XHne2eCj9cFLWy J+Myp5JumeJRnKNSdpqT3A2jPw4z3tUmmfviwglGp64qpili03IQqQqSejmz9vw51pLGI1 H9Bs+8EzWPAGUl3PzO6heGYGhEFurSk0PcygsGeUOtED2Nz4oR+ZTP/O0XabJw== Received: from [IPV6:fd:1965::2] (unknown [IPv6:2600:1700:ab1b:6800:2e0:edff:fece:8f27]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: leres) by smtp.freebsd.org (Postfix) with ESMTPSA id 4TmqQX6yS1z1Pn7 for ; Sat, 2 Mar 2024 02:58:12 +0000 (UTC) (envelope-from leres@freebsd.org) Message-ID: Date: Fri, 1 Mar 2024 18:58:11 -0800 List-Id: FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-usb List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: How to configure a U24XL adc/dac for digital input Content-Language: en-US From: Craig Leres To: freebsd-usb@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 3/1/24 13:50, Craig Leres wrote: > I've been using an ESI U24XL for about 8 years to simultaneously record > and play back S/PDIF (using in-house C programs under FreeBSD). Recently > recording stopped working (playback is still fine) and I believe the > cause is that the device has somehow switched to using its analog input. I figured out how to fix this; some how I clobbered/reset my mixer config for the U24XL. Appended shows how I fixed it... Sorry for the noise. Craig // starting point tiny 25 # mixer -f /dev/mixer2 Mixer vol is currently set to 75:75 Mixer pcm is currently set to 75:75 Mixer line is currently set to 75:75 Mixer pcm2 is currently set to 100:100 Recording source: line // change default input tiny 27 # mixer -f /dev/mixer2 =rec pcm2 Recording source: pcm2 // verifiy tiny 28 # mixer -f /dev/mixer2 Mixer vol is currently set to 75:75 Mixer pcm is currently set to 75:75 Mixer line is currently set to 75:75 Mixer pcm2 is currently set to 100:100 Recording source: pcm2 // view saved mixer state tiny 29 # cat /var/db/mixer2-state ; echo '' vol 75:75 pcm 75:75 line 75:75 pcm2 100:100 =rec line // update tiny 30 # mixer -f /dev/mixer2 -s > /var/db/mixer2-state // view new mixer state tiny 29 # cat /var/db/mixer2-state ; echo '' vol 75:75 pcm 75:75 line 75:75 pcm2 100:100 =rec pcm2