From nobody Sun Jul 30 11:13:46 2023 X-Original-To: freebsd-stable@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 4RDJff1VCmz4q9tC for ; Sun, 30 Jul 2023 11:14:05 +0000 (UTC) (envelope-from haramrae@gmail.com) Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RDJfK2VWBz426Z for ; Sun, 30 Jul 2023 11:14:01 +0000 (UTC) (envelope-from haramrae@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20221208 header.b=izvWMYBG; spf=pass (mx1.freebsd.org: domain of haramrae@gmail.com designates 2a00:1450:4864:20::62d as permitted sender) smtp.mailfrom=haramrae@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-99bf1f632b8so319477266b.1 for ; Sun, 30 Jul 2023 04:14:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690715638; x=1691320438; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=KHjWm0N0hbAUlgNCknq0IQtAexBH5vaGkG5dMR4CiME=; b=izvWMYBGF0rC7s1hbm3PEQsamhi6pzgS6blYqPY35yJBrL4Qp0VeuADd9u2iB29GZq m8cKg58yDGQCS3Qj3nsjCKTdrkqfbO96qbFhCkHihgvflbxQFEj+4GSIioNldhOB6syC Ukk+Y64qKjpKAi1fa+wuR+3F9LAyiT0A6IyL3T8+F55qieNe/4L72vGnQ/VeY/0wK+mY o7j2JsACOW+PLIgqjXqnJeAZAZOXajx8SYzZ9Fs1X0xiDZbAWyKxCu6SwaQcwlmxNK7S lYvIQWDuo9F3pFgWbiyGWqRQrfIFpFQ7TDIEbYndTthRadDGTeTVE4nX+0BnLrzCA9an hwCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690715638; x=1691320438; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KHjWm0N0hbAUlgNCknq0IQtAexBH5vaGkG5dMR4CiME=; b=b9XqHCmEVZfqVv3iYlFXFgELYnhOduKrxOGWaXbmUtZoasoSv7x6G8sxitYi8tD9BU 7d6p5CRN/KdrPsSKfw2uH5MPvNhyYmKYXDXv4IzxLRYqaqpViSMDZSirXHj7BhZAXgy1 RlxQ13L/xzb2Ha9xYAHYgj4lEVAzR/ymD5T9Z2uh+EiLfmSuYlGfvkJt9zHvsc5IC+eH oBHVsNImbLMuX99HXMJNq0YKOba70o/IS7uJRCePZ6SA8jpg0XxFc6PnaYoC8JRZmp88 62W6eVHdZ3SG806yAuK974m0x3dLUcYJwDv7zGZduzVNYuWpc6ETeHLxhxB5oZZHX2Oa 1PZg== X-Gm-Message-State: ABy/qLazrXbkjdLE8QWF79f5Q0VaRs4s5pV2O0LkYTBO7BxqNc7NOlH3 WFjFe5pIJjG8AVViHz60TalZh+QmC5M= X-Google-Smtp-Source: APBJJlG+rp3nAVb0C9q0o2rlNyBMzNNqFT8npZQJibF7Gz0g8XsEKeQz/WsTFBoSCEt9oGveU65B+w== X-Received: by 2002:a17:907:a04f:b0:96f:a891:36cb with SMTP id gz15-20020a170907a04f00b0096fa89136cbmr4718389ejc.0.1690715638180; Sun, 30 Jul 2023 04:13:58 -0700 (PDT) Received: from smtpclient.apple (217-19-30-105.dsl.cambrium.nl. [217.19.30.105]) by smtp.gmail.com with ESMTPSA id v5-20020a170906564500b00992e4d8cc89sm4538928ejr.57.2023.07.30.04.13.57 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Jul 2023 04:13:57 -0700 (PDT) From: Alban Hertroys Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.500.231\)) Subject: Re: USB audio stopped working between p7 and p8 Date: Sun, 30 Jul 2023 13:13:46 +0200 References: <545BC192-8060-4172-A825-618DDB9E8722@gmail.com> To: freebsd-stable@freebsd.org In-Reply-To: <545BC192-8060-4172-A825-618DDB9E8722@gmail.com> Message-Id: X-Mailer: Apple Mail (2.3731.500.231) X-Spamd-Result: default: False [0.32 / 15.00]; NEURAL_HAM_SHORT(-0.94)[-0.938]; NEURAL_SPAM_MEDIUM(0.89)[0.888]; NEURAL_SPAM_LONG(0.87)[0.871]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20221208]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::62d:from]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MLMMJ_DEST(0.00)[freebsd-stable@freebsd.org] X-Rspamd-Queue-Id: 4RDJfK2VWBz426Z X-Spamd-Bar: / > On 25 Jul 2023, at 13:19, Alban Hertroys wrote: >=20 > Hi list, >=20 > I recently upgraded my home server with musicpd from 13.1-RELEASE-p7 = to 13.1-RELEASE-p8, and now USB audio stopped working. (=E2=80=A6) > For the upgrade, I used: > freebsd-update fetch > freebsd-update install >=20 > Before the upgrade, the USB DAC registered as pcm0 while now it = registers as pcm2, so the sysctl=E2=80=99s applied to the device now = obviously go to another device (namely one of the HDMI outputs), but = even then I should get audio from it. (=E2=80=A6) I got this working again. I had entirely forgotten that I had a custom kernel in place (and also = that freebsd-update updates the sources too, so that you can compile a = custom kernel based on updated sources).=20 That kernel conf contains this bit: # Sound support nodevice sound # Generic sound driver = (required) nodevice snd_cmi # CMedia CMI8338/CMI8738 nodevice snd_csa # Crystal Semiconductor = CS461x/428x nodevice snd_emu10kx # Creative SoundBlaster Live! = and Audigy nodevice snd_es137x # Ensoniq AudioPCI ES137x nodevice snd_hda # Intel High Definition Audio nodevice snd_ich # Intel, NVidia and other ICH = AC'97 Audio nodevice snd_via8233 # VIA VT8233x Audio That in turn causes only the necessary Audio subsystem kernel modules to = be loaded, probably from the USB uaudio device detection: > kldstat Id Refs Address Size Name 1 66 0xffffffff80200000 1487e60 kernel (=E2=80=A6) 7 1 0xffffffff82214000 6730 cuse.ko 8 1 0xffffffff8221b000 3378 acpi_wmi.ko 9 1 0xffffffff8221f000 3218 intpm.ko 10 1 0xffffffff82223000 2180 smbus.ko 11 1 0xffffffff82226000 2280 uhid.ko 12 1 0xffffffff82229000 3320 usbhid.ko 13 1 0xffffffff8222d000 31f8 hidbus.ko 14 1 0xffffffff82231000 32c0 wmt.ko 15 1 0xffffffff82235000 3268 ums.ko 16 1 0xffffffff82239000 c4d0 snd_uaudio.ko 17 2 0xffffffff82246000 43488 sound.ko (=E2=80=A6) And now the only PCM device is: > cat /dev/sndstat=20 Installed devices: pcm0: (play) default No devices installed from userspace. And everything falls into place again. It=E2=80=99s still unclear to me why it didn=E2=80=99t work with sound = and snd_hda included in the GENERIC kernel, or is it perhaps because = uaudio isn=E2=80=99t in that kernel and instead gets loaded on demand = after the other drivers? If so, was this the expected result? Regards, Alban Hertroys -- There is always an exception to always.