From owner-freebsd-stable@freebsd.org Sat Apr 11 04:58:54 2020 Return-Path: Delivered-To: freebsd-stable@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 485142AE7BF for ; Sat, 11 Apr 2020 04:58:54 +0000 (UTC) (envelope-from darius@dons.net.au) Received: from midget.dons.net.au (midget.dons.net.au [IPv6:2403:5800:5101:0:ea:1cff:fefa:f00]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "dons.net.au", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48zjMZ4PG5z47gn for ; Sat, 11 Apr 2020 04:58:49 +0000 (UTC) (envelope-from darius@dons.net.au) Received: from midget.dons.net.au (localhost [127.0.0.1]) by midget.dons.net.au (8.15.2/8.15.2) with ESMTPS id 03B4wPBQ071063 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Sat, 11 Apr 2020 14:28:33 +0930 (ACST) (envelope-from darius@dons.net.au) Received: (from mailnull@localhost) by midget.dons.net.au (8.15.2/8.15.2/Submit) id 03B4vuUQ071051 for ; Sat, 11 Apr 2020 14:27:56 +0930 (ACST) (envelope-from darius@dons.net.au) X-MIMEDefang-Relay-be813b1f1da6d6b27d681222cb70cc4f5b642383: 2403:5800:5101:0:d4fb:7b0d:13aa:ca2b Received: from [IPv6:2403:5800:5101::d4fb:7b0d:13aa:ca2b] ([IPv6:2403:5800:5101:0:d4fb:7b0d:13aa:ca2b] [2403:5800:5101:0:d4fb:7b0d:13aa:ca2b]) by midget.dons.net.au (envelope-sender ) (MIMEDefang) with ESMTP id 03B4vuvY071049; Sat, 11 Apr 2020 14:27:56 +0930 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: Audio mixer and mixer control From: "O'Connor, Daniel" In-Reply-To: <426353fd-bb39-5bba-5ca1-af00a8b8ff4e@omnilan.de> Date: Sat, 11 Apr 2020 14:27:55 +0930 Cc: freebsd-stable@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <426353fd-bb39-5bba-5ca1-af00a8b8ff4e@omnilan.de> To: Harry Schmalzbauer X-Mailer: Apple Mail (2.3445.104.11) X-Spam-Score: 0.3 () No, score=0.3 required=5.0 tests=HELO_NO_DOMAIN, KHOP_HELO_FCRDNS, T_SPF_PERMERROR autolearn=no autolearn_force=no version=3.4.2 X-Scanned-By: MIMEDefang 2.83 on 10.0.2.1 X-Rspamd-Queue-Id: 48zjMZ4PG5z47gn X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.50 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(-0.20)[dons.net.au:s=default]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[dons.net.au:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[dons.net.au,quarantine]; IP_SCORE(-0.00)[asn: 4764(-0.02), country: AU(0.01)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:4764, ipnet:2403:5800:5000::/36, country:AU]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Apr 2020 04:58:54 -0000 > On 11 Apr 2020, at 03:55, Harry Schmalzbauer = wrote: > today I wanted to utilize my optical S/PDIF out with an external D/A = converter to empower my garden radio. > Unfortunately, it seems mixer(8) isn't really doing what I understand = a mixer's job is. >=20 > As far as I understood, mixer(8) is just controlling/pushing settings = to the dsp's specific hardware mixer (if that's true, mixctl(8) was more = clear e.g.). mixer is purely to control mixer devices which the hardware provides, = you can set various levels in the final input and output mix. In the old days there were actually a number of things it could = meaningfully do (eg control CD volume level or line in) but these days = everything is digital so it's pretty vestigial IMO. > So if I have dsp0 with line-in and line-out, and dsp3 with a S/PDIF = out, there's no way to get the dsp0-"mix" over to dsp3? You can't use mixer to do what you want, but you can probably do = something with a sox pipe line that would read from one input and feed = to another if that is indeed what you need. > What I'm looking for is a mixer which processes various input sources = and sends them to arbitrary output devices. > Does anybody know if there's such kind of mixer available? >=20 > Or is it possible to interconnect different dsp channels? (ugh, I = don't really know anything about contemporary audio hardware :-( ) >=20 > I also have problems understanding the mixer(8) channels. Hard to = find the corresponding dsp channel... The relation of "speaker", "mix", = the invible "monitor" and "rec" is completely unclear to me, likewise = the difference of "vol" and "pcm". >=20 > Is it common that S/PDIF out is a separate dsp? I never had to = investigate on other OS, where I get the same signal on analog and = digital outputs simultaniously. I don't think it's very uncommon, although I haven't used FreeBSD on a = desktop for quite a while.. What does this output? cat /dev/sndstat If you just want to play some audio out to the S/PDIF you can tell your = audio program to use that particular device (eg /dev/dsp1 or whatever it = is) -- Daniel O'Connor "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum