From nobody Thu Feb 22 17:47:26 2024 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 4TggZm2dBhz5B4cp for ; Thu, 22 Feb 2024 17:47:28 +0000 (UTC) (envelope-from lexi@le-fay.org) Received: from thyme.eden.le-Fay.ORG (THYME.EDEN.LE-FAY.ORG [81.187.47.194]) by mx1.freebsd.org (Postfix) with ESMTP id 4TggZm067tz4Xcp; Thu, 22 Feb 2024 17:47:28 +0000 (UTC) (envelope-from lexi@le-fay.org) Authentication-Results: mx1.freebsd.org; none Received: from iris.eden.le-Fay.ORG (IRIS.EDEN.LE-FAY.ORG [IPv6:2001:8b0:aab5:106:3::6]) by thyme.eden.le-Fay.ORG (Postfix) with ESMTP id 8CB9297; Thu, 22 Feb 2024 17:47:24 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=le-fay.org; s=thyme; t=1708624044; bh=/Dvsc046RY0SRI4Zil/NZHzZP8Cx5xHOcm/XulICw7w=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=p7YX2si/9SDlWrAHZrPJwkavZfDegXbeYQB1obGmLK1MhldP7o54Fu1BqYZbSHoTp cgIo9k2JYOHnu5RuVZ0q30ey0MNknswOqnAJxR9KWeWN2frlISTmMd+0V/g0suLXbS mNQDRQfKO4U9iF0tmx0KOzNNLos9kuGnB9R88Pgs= Received: from ilythia.eden.le-fay.org (ILYTHIA.EDEN.LE-FAY.ORG [IPv6:2001:8b0:aab5:106:3::10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by iris.eden.le-Fay.ORG (Postfix) with ESMTPSA id 790EF2C041F; Thu, 22 Feb 2024 17:47:26 +0000 (GMT) Date: Thu, 22 Feb 2024 17:47:26 +0000 From: Lexi Winter To: Florian Walpen Cc: freebsd-current@freebsd.org, Christos Margiolis Subject: Re: 42fdcd9fd917 broke my snd_uaudio(4) Message-ID: Mail-Followup-To: Florian Walpen , freebsd-current@freebsd.org, Christos Margiolis References: <4884231.Cjmsv3J8Qz@z800> 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 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="eRW+dZETxNLtoxVk" Content-Disposition: inline In-Reply-To: <4884231.Cjmsv3J8Qz@z800> X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4TggZm067tz4Xcp X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:20712, ipnet:81.187.0.0/16, country:GB] --eRW+dZETxNLtoxVk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable hi Florian, Florian Walpen: > I have a Scarlett 18i20 myself, but maybe a different generation - it has= 18=20 > recording channels as its name suggests. Is 20 recording channels correct= for=20 > your device? =20 this is a 3rd generation 18i20; as well the usual physical inputs it has a stereo loopback channel that can be configured in the built-in mixer and which appears as an additional two recording channels. i think (although i'm not certain) that loopback functionality is new in the 3rd generation model. this is (very briefly) documented in the manual, which doesn't really add anything to what i just said but does show a screenshot of Ableton with 20 channels on p.16, which matches how the interface appeared in Logic when i used it there: https://fael-downloads-prod.focusrite.com/customer/prod/downloads/scarlett_= 18i20_3rd_gen_user_guide_v3_english_en.pdf > > FreeBSD Audio Driver (64bit 2009061500/amd64) > > Installed devices: > > pcm0: on uaudio0 (1p:0v/1r:0v) default > > snddev > > flags=3D0x3e6 > > [pcm0:play:dsp0.p0]: spd 48000, fmt 0x01401000, flags 0x2000110c, > > 0x00000001, pid 22326 (virtual_oss) interrupts 115908, underruns 0, feed > > 115907, ready 123440 [b:30720/15360/2|bs:131040/65520/2] channel > > flags=3D0x2000110c {userlan= d} -> > > feeder_root(0x01401000) -> {hardware} > > [pcm0:record:dsp0.r0]: spd 48000, fmt 0x01401000, flags 0x2000112c, > > 0x00000001, pid 22326 (virtual_oss) interrupts 115930, overruns 97, feed > > 229796, hfree 30720, sfree 65440 [b:30720/15360/2|bs:65440/32720/2] cha= nnel > > flags=3D0x2000112c > > {hardware} -> feeder_root(0x01401000) -> {userland} > > Installed devices from userspace: > > dsp.full: (play/rec) > > dsp.record: (play/rec) > > dsp: (play/rec) >=20 > I see that there's a lot of recording overruns and the recording software= side=20 > buffer of the pcm device is unusually small. Does recording work well for= you? =20 i haven't had a chance to test recording yet beyond a single work conference call, as i've only just got playback working well (that required a lot of fiddling with various options until i settled on virtual_oss). if you can suggset any obvious changes i'd appreciate that - maybe it's just a case of increasing the virtual_oss buffer? i did have to increase the playback buffer a bit as the virtual_oss default is rather small. > Apart from that, I'd be interested in the exact circumstances this proble= m=20 > occurs. Could you provide the dmesg and sndstat output as above, but with= the=20 > settings in loader.conf applied and playback hanging? =20 > Since you're using virtual_oss, I suppose it produces an error log somewh= ere?=20 > And then maybe the output of the following commands, also while playback = is=20 > hanging: >=20 > sysctl hw.snd > sysctl dev.pcm.0 i'll open a bug with this and the other details once i get a chance to reboot again to test, probably later today. thanks, lexi. --eRW+dZETxNLtoxVk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCAAdFiEEuwt6MaPcv/+Mo+ftDHqbqZ41x5kFAmXXiKsACgkQDHqbqZ41 x5no8Qv+Jx2oZ4tA87p7ngM2TWYqsN9K5+8AN1fOqcvrhekQ/Un74CjNE6PZdlWF ILA0/BtyGNk0UzkotEWfqYqsQCRsKx6Ca0NG5wsXPbfj76w+gl3IxWSBmGFuLIZi QdNdUARgOjIJ01SFvkWpvxob83iDDSFk7ime76q34dECaCxaKcsnFA7ZNWwAlU1L eZ/iim+zqd7qMtDgbK+ODRztzYl94dNMadnHy1mJRD5m147+spGBb7Ne2hEaJRvE 3bL/xyN5o6mWGClWbN9SBlqhBHIrKVTyOwl5TXWDr0rVrrKn7NPGUmvR8j1TVwsk StJfTFhsVm8e2CvmY/WERNT63HcRdAbmnatiotW4thWo04qu8P88yiBZu57XhGqs LJnIAHsdQuUkv25TAJENXpGtnViBir4sfFgvUzqfsQybM9D3TyChojtXpjzLmkJH PqUdkyEIQHP5tZi01nJ+K4iZq9FQX1y7x9rPX3CHyl5KrepJE96ysduPkiAmYxR8 O1SzDRRy =vCsd -----END PGP SIGNATURE----- --eRW+dZETxNLtoxVk--