From owner-freebsd-stable@freebsd.org Sat Apr 11 08:21:14 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 A74B72B308E for ; Sat, 11 Apr 2020 08:21:14 +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 48zns33sJcz4Ks0 for ; Sat, 11 Apr 2020 08:21:10 +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 03B8Ktbu017569 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Sat, 11 Apr 2020 17:50:59 +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 03B8KQOp017102 for ; Sat, 11 Apr 2020 17:50:26 +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 03B8KPJ6017100; Sat, 11 Apr 2020 17:50:26 +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: Date: Sat, 11 Apr 2020 17:50:25 +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: 48zns33sJcz4Ks0 X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.61 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,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.11)[asn: 4764(-0.58), 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 08:21:14 -0000 > On 11 Apr 2020, at 17:28, Harry Schmalzbauer = wrote: > Hello and thanks for your help. Main issue is to playback = simultaniously on more than one dsp (musicpd(1) is providing that = feature out of the box, but I was looking for a more general way, = covering mixed line-in (DAB+ radio)). I am not sure there is a general solution in the kernel. > Here's my sndstat: > FreeBSD Audio Driver (64bit 2009061500/amd64) > Installed devices: > pcm0: on hdaa0 (1p:2v/1r:2v) = default > pcm1: on hdaa0 (1p:2v/1r:1v) > pcm2: on hdaa0 (1p:1v/0r:0v) > pcm3: on hdaa0 (1p:1v/0r:0v) > pcm4: at ? kld snd_uaudio (0p:0v/1r:1v) > No devices installed from userspace. OK, looks fairly normal.. BTW you can get more information with.. sudo sysctl hw.snd.verbose=3D2 cat /dev/sndstat > To my surprise, today there's dsp0_line-in/mix signal on = dsp1_line-out. No idea if it was a layer 8 error yesterday (pretty sure = it was not) or if some smart chip on the mainboard decided to = interconnect over night (no reboot)?!? In fact, adjusting "mix" on dsp0 = controls the output volume on dsp1 (analog line-in on dsp0 get's somehow = routed to analog out on dsp1 (killed pulseaudio, nothing else is = running, so it must be done in hardware)). That sounds pretty peculiar, I guess it could be an result of the fact = your 4 PCM devices are really 1 piece of hardware.. > I'd like to share what I discovered while browsing = freshports.org/audio: > rawrec(1) might be the leanest way to pipe signals, like you mentioned = using sox(1). Yep, looks like it. > virtual_oss(8) seems to do exactly what I was looking for regarding = "mixing". No idea how cuse(3) comes into play, seems to be not as native = as I prefer things. Yes, it does - I haven't used it but it looks like what you want. cuse is for allowing device drivers in user land, I don't think it's = required for virtual_oss, just that the same author wrote both :) > Unfortunately, I don't have time to play with at the moment. But once = I come back to it, I'll find it here for reference ;-) Good find, best of luck! -- Daniel O'Connor "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum