From nobody Tue Nov 16 09:48:57 2021 X-Original-To: freebsd-current@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 D1C0518A28C8 for ; Tue, 16 Nov 2021 09:49:02 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Hth8t56knz3pZS for ; Tue, 16 Nov 2021 09:49:02 +0000 (UTC) (envelope-from hps@selasky.org) Received: from [10.36.2.165] (unknown [178.17.145.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 2901226017B; Tue, 16 Nov 2021 10:49:00 +0100 (CET) Message-ID: <8e946cd7-6380-87cc-9f9d-f624717a0954@selasky.org> Date: Tue, 16 Nov 2021 10:48:57 +0100 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: sound on FreeBSD 14.0-CURRENT Content-Language: en-US To: Ludovit Koren , freebsd-current@freebsd.org References: <86h7cc5tgq.fsf@gmail.com> From: Hans Petter Selasky In-Reply-To: <86h7cc5tgq.fsf@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Hth8t56knz3pZS X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; TAGGED_RCPT(0.00)[]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On 11/16/21 10:40, Ludovit Koren wrote: > > Hi, > > I am running FreeBSD 14.0-CURRENT #0 main-n250646-c0525ab1d1c-dirty: Sat Nov 13 16:42:44 CET 2021 > Here is the output from: > cat /dev/sndstat > Installed devices: > pcm0: (play/rec) default > pcm1: (play) > pcm2: (play) > Installed devices from userspace: > dsp: (play/rec) > vdsp: (play/rec) > > I am running: > /usr/local/sbin/virtual_oss -B -D /var/run/virtual_oss/dsp.pid -T /dev/sndstat -S -i 8 -C 18 -c 18 -r 48000 -b 32 -s 512 -f /dev/dsp0 -c 2 -d dsp -c 18 -d vdsp -t vdsp.ctl > > I am not able to redirect to different output even if I try for example: > > sysctl hw.snd.default_unit=1 > > > Please see the attached output from: sysctl dev.pcm, sysctl hw.snd and > dmesg. > > I did not find any hint how to redirect the sound output to the different > device except hw.snd.default_unit. The output remains in the default > output. Am I missing something or doing something wrong? > Hi, When you are using virtual_oss , hw.snd.default_unit is not used. man virtual_oss_cmd Try this instead: virtual_oss_cmd /dev/vdsp.ctl -f /dev/dsp1 --HPS