Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2255495rwb; Thu, 19 Jan 2023 23:56:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXsCpcuc2RpMm/byPz0NhJI9t/NH/vCANsRbOQa7qB6SbPliEHnDLBYl5wPRJ6HqLuMHhEJz X-Received: by 2002:aa7:804a:0:b0:586:6e0d:2aca with SMTP id y10-20020aa7804a000000b005866e0d2acamr13887615pfm.7.1674201396961; Thu, 19 Jan 2023 23:56:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674201396; cv=none; d=google.com; s=arc-20160816; b=ro+zscnlgDHzCTFamqWEHo2aJ5BTOv36Kuu0qvoBGtWyc9jI0LgI9aGF0tBsb1TG5w 8VTvPW0ym/lpdilvG4lP2qNoOvgGoTrZXZE5PpP08NWRWL9MkR2622McyEVbrVXnJiW0 dWQ8eBXW7In+4/eyA75hy8QWj9jZkxJP4Tf/LVlZ9E/eXkZ46SeXBnIYTiU6xmDAoEkk 0bH54eac91t+LvaTm7AoHFCFIqt4CaYeJUP7J/8hAv2XBChbrNZ+NA/GbVWzYygUcB2U wwswyw/cOFhrUD4oM3aaHT/Kk0YbyVMTfqdeqgMfKm2oWAJFmj6DZhvNLSkbUW3igWZx EsIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=UmqGa1Qj6D/e9e1ov4dTk2Q4eRwYBsgwn9EnteIfffA=; b=ZzAuK7vz0RT4gf942LncOU5iwt5km7/skrv5tf8SMqpLx5ShB7cwXx7iUoy59XxlfB AFByMPGKjj+Df4LgmwD4vhHAHf7cuh7naMAjmGIdk9LWBiM9+0pTyO6x2SfkwSIHtzJB Eklv21jbgRqUlJW7uUAw5R3dP8MkpIQBP662vT61aKFUzOBUnnE2u+roPMbbbFzhoqDc uo/CilkUt5L4kQmBPmDMD6s8y9hMnd7TRpeFtV6cR0+W78Jxb8cQikygEFRZh5wbW/cO tcebetZ6h3lLJLUKANyUJQRt2ixxEqagHiMrlKXxL3KyIVOz7Vl7XKEf8MJqomb9fbky igog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lSVSHakE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b22-20020a056a000a9600b00547d55a4d3bsi42794109pfl.285.2023.01.19.23.56.29; Thu, 19 Jan 2023 23:56:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lSVSHakE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230095AbjATHmP (ORCPT + 50 others); Fri, 20 Jan 2023 02:42:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbjATHmN (ORCPT ); Fri, 20 Jan 2023 02:42:13 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CBC179E8B for ; Thu, 19 Jan 2023 23:42:12 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id c10-20020a05600c0a4a00b003db0636ff84so3020654wmq.0 for ; Thu, 19 Jan 2023 23:42:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=UmqGa1Qj6D/e9e1ov4dTk2Q4eRwYBsgwn9EnteIfffA=; b=lSVSHakEyMy8miejxoMOivQAdLRndirkBxlQRwNMwUS9+AaabszZi1wslfnxTbNwj4 w4dq0LMC04mABQh2aalyAO/g6xXC3CrqMPPmvgu/JtYt+I7y3jdM3WHSVNEKHT6UkHt6 JlFPfnDeCf0Hxm1MvF4ap6X5YDKvblSw6MmsNewKK/gzhktRPMevWYv2xO/Ffpb542E6 2SI93/kUEupMdm/RXE4spD+DA8at0G9/8APUmMDrI4h/pewFkXggGR2Mx72h3/y4W3x/ f8WPl5Ik8Gh6potgTSLLrRRrGpubPX1qIKtvdzBBg/uV95fXQxIISLAG0eyC2+FAsaxZ tRnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=UmqGa1Qj6D/e9e1ov4dTk2Q4eRwYBsgwn9EnteIfffA=; b=S7RboJl2tPY5XCtPFER7lVd+bDam6CBABzoKZorpGnwffZJBWU3aW2IJzHOVRQlx4l YXqyP5I3gm8rFJjg4pjgdADZa3Q2455N6cm1kNCJ8Xz3AjOcj9uoKXU7ItcTTjcEW/tj epXuvw+F8JrTA4PJumyqUEhQ9j7bQWcyBnquvhjmjDga3vfJNBYZAq5ycp1U+L01FmqS fsWtxgYyljU7KBmPuH4U+00Vl+9BScQxHgHf/bSbMnj6aq1I6EhVwpoaVMVLeOYGB956 t4qUfzFN+B928QJse/AwTW3VVdp9djFOd1m9qYrTQm2ocVfDGJVbl6t13BHaYL6v+OkO OWjA== X-Gm-Message-State: AFqh2kr6Aq/E4nz31XjRuiDxmLVr3+RelAZZxkU0zrHtPZi8tgbWEU9Q j17AQ7YhVnAs1vWADYNsAr+Ing== X-Received: by 2002:a05:600c:3514:b0:3db:80c:8ed9 with SMTP id h20-20020a05600c351400b003db080c8ed9mr11872073wmq.22.1674200530840; Thu, 19 Jan 2023 23:42:10 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id k21-20020a05600c1c9500b003db30be4a54sm1120935wms.38.2023.01.19.23.42.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Jan 2023 23:42:10 -0800 (PST) Message-ID: <1711636c-8aa1-eccc-eded-14a64baf7bec@linaro.org> Date: Fri, 20 Jan 2023 08:42:08 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.0 Subject: Re: [RFT PATCH v2 4/6] arm64: dts: qcom: sdm845: move audio to separate file Content-Language: en-US To: Caleb Connolly , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla References: <20230118103458.107434-1-krzysztof.kozlowski@linaro.org> <20230118103458.107434-4-krzysztof.kozlowski@linaro.org> <46acf2f4-3272-c33d-887f-05d4f4aad4d7@linaro.org> From: Krzysztof Kozlowski In-Reply-To: <46acf2f4-3272-c33d-887f-05d4f4aad4d7@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20/01/2023 00:24, Caleb Connolly wrote: > > > On 18/01/2023 10:34, Krzysztof Kozlowski wrote: >> Re-organize SDM845 sound components into separate, audio DTSI which >> should be included and customized by the SDM845 boards wanting audio. >> The DTSI includes: >> 1. WCD9340 codec node because it is not a property of the SoC, but board. >> 2. Common sound DAI links, shared with all sound cards. > > Hi Krzysztof, > > I know I already reported this on IRC, I thought I'd duplicate the info > here for completeness sake. > > Due to how the sound node is parsed the device numbers in alsa are > derived from the index of the sound/mmX-dai-link child nodes. > > For boards which use more than 3 FE's this causes breaking changes in > userspace, as the slim-dai-link and slimcap-dai-link nodes now come > before the other mmX-dai-link nodes, for example with my OnePlus 6 > patches "aplay -l" shows: > > card 0: O6 [OnePlus 6], device 0: MultiMedia1 (*) [] > Subdevices: 1/1 > Subdevice #0: subdevice #0 > card 0: O6 [OnePlus 6], device 1: MultiMedia2 (*) [] > Subdevices: 1/1 > Subdevice #0: subdevice #0 > card 0: O6 [OnePlus 6], device 2: MultiMedia3 (*) [] > Subdevices: 1/1 > Subdevice #0: subdevice #0 > card 0: O6 [OnePlus 6], device 5: MultiMedia4 (*) [] <-- 5 instead of 3 > Subdevices: 1/1 > Subdevice #0: subdevice #0 > card 0: O6 [OnePlus 6], device 6: MultiMedia5 (*) [] > Subdevices: 1/1 > Subdevice #0: subdevice #0 > card 0: O6 [OnePlus 6], device 7: MultiMedia6 (*) [] > Subdevices: 1/1 > Subdevice #0: subdevice #0 > > This breaks the UCM configs shipped by postmarketOS and Mobian - though > none of it is "upstream". Thanks for the report. > > Would it be reasonable to add all 6 FE DAI's and then disable the unused > ones on a per-board basis? Or just drop the sound node from the audio DTSI, not sure if there are benefits in such case... > >> >> The Xiaomi Polaris, although includes WCD9340 codec, it lacks sound >> node, so it stays disabled. >> >> On all others boards not using audio, keep the Slimbus node disabled as >> it is empty. Please trim your replies - there is a lot of unrelated content here and I don't know if I should keep scrolling to look for something or not. Best regards, Krzysztof