Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 43018C54E66 for ; Tue, 12 Mar 2024 08:59:16 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id C179ADF8; Tue, 12 Mar 2024 09:58:59 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz C179ADF8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1710233949; bh=hCuAECMxyUMz1hZTguq6+lQ0cqK698NyJVkF+okRlBU=; h=From:To:In-Reply-To:References:Subject:Date:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From; b=WvzH8Aiw+5kyQd+ZQomIldtmtqNnkxHxmk0O++ZWKC5JSXkTXhRa3mmjSjmMENqUy uM+RcQY2EZPa3e2+Op4RGzJRRXnFE5M1YTTbXjeywgt2oSVQ+ecQ3KoXk7pMOfBa6K qXC07a8z4zsEhJxUN9SVon2AhlXs0M48ZR1eW8Gw= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 9278CF805A1; Tue, 12 Mar 2024 09:58:37 +0100 (CET) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id F07FAF805A8; Tue, 12 Mar 2024 09:58:35 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 5A3F3F8028D; Tue, 12 Mar 2024 09:55:36 +0100 (CET) Received: from webhooks-bot.alsa-project.org (vmi242170.contaboserver.net [207.180.221.201]) by alsa1.perex.cz (Postfix) with ESMTP id A8175F80088 for ; Tue, 12 Mar 2024 09:55:29 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz A8175F80088 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit From: GitHub issues - opened To: alsa-devel@alsa-project.org In-Reply-To: <1710233728147776365-webhooks-bot@alsa-project.org> References: <1710233728147776365-webhooks-bot@alsa-project.org> Subject: Focusrite USB UCM2 profile forcing 48kHz Message-Id: <20240312085536.5A3F3F8028D@alsa1.perex.cz> Date: Tue, 12 Mar 2024 09:55:36 +0100 (CET) Message-ID-Hash: MWR4V7WNBU25VSU7OUWPV45AULZ4CRZL X-Message-ID-Hash: MWR4V7WNBU25VSU7OUWPV45AULZ4CRZL X-MailFrom: github@alsa-project.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: alsa-project/alsa-lib issue #388 was opened from geoffreybennett: I'm creating UCM2 profiles for the Focusrite USB interfaces. They support: ``` $ cat /proc/asound/Gen/stream0 Focusrite Scarlett 4i4 4th Gen at usb-0000:00:14.0-6.4.1, high speed : USB Audio Playback: Status: Running Interface = 1 Altset = 1 Packet Size = 216 Momentary freq = 48000 Hz (0x6.0000) Interface 1 Altset 1 Format: S32_LE Channels: 6 Endpoint: 0x01 (1 OUT) (SYNC) Rates: 44100, 48000, 88200, 96000, 176400, 192000 Data packet interval: 125 us Bits: 24 Channel map: FL FR FC LFE RL RR Capture: Status: Running Interface = 2 Altset = 1 Packet Size = 216 Momentary freq = 48000 Hz (0x6.0000) Interface 2 Altset 1 Format: S32_LE Channels: 6 Endpoint: 0x81 (1 IN) (SYNC) Rates: 44100, 48000, 88200, 96000, 176400, 192000 Data packet interval: 125 us Bits: 24 Channel map: FL FR FC LFE RL RR ``` When I use my UCM2 profile that splits the inputs and outputs up, PipeWire will only select 48kHz. The Pro Audio and Direct profiles can use all the sample rates. To me it sounded like https://github.com/alsa-project/alsa-ucm-conf/issues/313 but @perexg advised https://github.com/alsa-project/alsa-ucm-conf/issues/313#issuecomment-1989386017: > For configurations using split macros, the default rate is hardcoded to 48kHz in the alsa-lib direct plugins. It would be better to create a bug in alsa-lib issue tracker. Issue URL : https://github.com/alsa-project/alsa-lib/issues/388 Repository URL: https://github.com/alsa-project/alsa-lib