From owner-freebsd-multimedia@freebsd.org Mon Mar 29 08:12:31 2021 Return-Path: Delivered-To: freebsd-multimedia@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 431685C0672 for ; Mon, 29 Mar 2021 08:12:31 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (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 4F850Z42xHz4lvc for ; Mon, 29 Mar 2021 08:12:30 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (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)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 1AB4726024C; Mon, 29 Mar 2021 10:12:28 +0200 (CEST) Subject: Re: Distorted sound with external usb-device and bitperfect To: Softwafe Engineer Cc: freebsd-multimedia@freebsd.org References: From: Hans Petter Selasky Message-ID: <4938264f-686a-af1a-cb28-f39585b1375a@selasky.org> Date: Mon, 29 Mar 2021 10:11:22 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4F850Z42xHz4lvc X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 88.99.82.50 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-3.30 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; ARC_NA(0.00)[]; SPAMHAUS_ZRD(0.00)[88.99.82.50:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[88.99.82.50:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:88.99.0.0/16, country:DE]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-multimedia] X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Mar 2021 08:12:31 -0000 On 3/29/21 6:59 AM, Softwafe Engineer wrote: > Here is dmesg after motu m2 was plugged: > > https://pastebin.com/1mcQNn1H > > (is pastebin ok?) > > I've tried it in few music players which are could be find in ports > - deadbeef > - audacious > > Both sound distorted when I enable bitperfect and disable vchans. If > not then sounds ok. > > I never try virtual_oss. I just would to send bitperfect sound from > freebsd to motu m2 to listen music. > Hi, I suspect the applications you are trying to use don't support 32-bit mode via OSS. That's why you hear noise. They've configured something else, like 16-bit or 24-bit mode. You could ktrace the application possibly to figure this out. It will show all IOCTL's. Try to configure virtual_oss in bitperfect mode instead for a test. Beware that many applications that output 16-bit audio, don't properly fill the lower bytes with noise when they resampling to 32-bit. That's another reason to use virtual_oss :-) --HPS