From patchwork Fri Aug 9 08:33:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 820637 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 879FAC3DA7F for ; Thu, 15 Aug 2024 08:26:21 +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 C6A4722AF; Thu, 15 Aug 2024 10:26:09 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz C6A4722AF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1723710379; bh=6QJ2T7K5t8dnL1cUxpMGwsGVpEL0ZBUMr9mtcKTcoUQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=lqNKm6pxBUTf8RcabUlVNmnERWFM/64tyJ31QGgf8BrI1KWQ62W9qVRLbYvW2hUbz cj3DJ7QSF1wvzdH4k68qFNWzrBmUHEmoayICOBDA8QUW8XEegfBZV/aL0ZYhzVK1ky E6fj+W29752+JIdQ9MRnPCYUT9i3gKeHZz+V+Al4= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 6EFD8F806FC; Thu, 15 Aug 2024 10:23:54 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 922C4F806D6; Thu, 15 Aug 2024 10:23:54 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id AECB8F8047C; Fri, 9 Aug 2024 10:34:41 +0200 (CEST) Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) (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) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id B5C07F800E3 for ; Fri, 9 Aug 2024 10:34:13 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz B5C07F800E3 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=fairphone.com header.i=@fairphone.com header.a=rsa-sha256 header.s=fair header.b=d2Vyc0wj Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-5b7b6a30454so2228316a12.2 for ; Fri, 09 Aug 2024 01:34:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1723192452; x=1723797252; darn=alsa-project.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=bTOapbhsSh2iPDvdrkY7GqTcvxUdYMzOhi4gx0LwDTs=; b=d2Vyc0wjQm6C8IDqedr3G18saAn0lFOr82DB5tLEPYhNtUCSPz4w6+ZmFfL13Wj7qs O2xFnZRDUKUZ7aMtEhgpz8XW9lPFSIFftEPtR41dFeRr527YjZl70ZJ9M5JE3UdTJz2i i/5/RI3qsYI0sUXs4tXxwpo75IGY9NiALy/ozFDfONlIHb9XvDXLdL/p6PgShsLcjhXn 7VcVFBZslUxrlx7MXBR3AzPqGMjuQTrfMc9dQdOj+vEOzliCwQpMjOT0UpM+FmchqjfY bwaMUOv40g2SgqxEKmi8B7P7mtJOrPjyZENmqHlEBXnfANorloTfvRpmhnpaST6+PWtg koIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723192452; x=1723797252; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bTOapbhsSh2iPDvdrkY7GqTcvxUdYMzOhi4gx0LwDTs=; b=EvMHKVkVLXZ0D75ujHN5Oll1zNC7JzP3nbCL8qV9xyPOpvO4w4+AD4OS+TnoOKcyTl AOmX5YCQky1Mw7+/C4Eyfexn7syN3oNawckd+kDkl3UkSVb5wneTDjXbj8UBp184vgpL yinV3tBdepkx6iM/jun069OytxnRm5cvgpyOWOuZxMxIvq1rgSDHM+IUZnwWcUw2GqTk RmFaas79wyBMezx7Gn/Ez7ez2dHmJtqQKPpLuRe7FT6EE/Bs2uDbSfAPEcH7vu8iarrE zWqHDynp1H+SSqDcJe8CPmxxYB+muJHSka99Zi9Tcak8lc7vtdRycbzdWM8CVel9SnnE Oplw== X-Forwarded-Encrypted: i=1; AJvYcCVE+Rk3kAA+/4ijpaHWByhedUUNzYKfByTJN9mJ7516cxk6hpsMc4V0gskGFyBjbvE032E4GiM3Ll96XJxQEFaQ9BzTBTS33XCpIe8= X-Gm-Message-State: AOJu0YxPFhg95NvGW3bRhDmd9qjXYLvZ+yIKHTwaGCAUOhPpGQQTo95Q J5hndIA29XIvyIQS/WkOaPucZpmBsZ9jIMcYDrvRQHPMKFEr1YYiopOFRY7h/nc= X-Google-Smtp-Source: AGHT+IFiDy9k54HEGxK1zO78LfIscSKahK5f+32thKpNVMqGdYYVC41qcymWbEmBTFDakPWayhpGMQ== X-Received: by 2002:a05:6402:34d6:b0:5a2:9683:2bb6 with SMTP id 4fb4d7f45d1cf-5bd0a50df2dmr535009a12.1.1723192451945; Fri, 09 Aug 2024 01:34:11 -0700 (PDT) Received: from [100.64.0.4] (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bbb2c41916sm1336288a12.41.2024.08.09.01.34.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Aug 2024 01:34:10 -0700 (PDT) From: Luca Weiss Date: Fri, 09 Aug 2024 10:33:57 +0200 Subject: [PATCH 1/3] ASoC: dt-bindings: qcom,sm8250: Add generic QCM6490 sound card MIME-Version: 1.0 Message-Id: <20240809-fp5-dp-sound-v1-1-d7ba2c24f6b9@fairphone.com> References: <20240809-fp5-dp-sound-v1-0-d7ba2c24f6b9@fairphone.com> In-Reply-To: <20240809-fp5-dp-sound-v1-0-d7ba2c24f6b9@fairphone.com> To: Srinivas Kandagatla , Banajit Goswami , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai , Bjorn Andersson , Konrad Dybcio Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.14.1 X-MailFrom: luca.weiss@fairphone.com X-Mailman-Rule-Hits: nonmember-moderation 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 Message-ID-Hash: 7Y43U6Y57KUEJLTKZ6MGT2C6XHYM4EEK X-Message-ID-Hash: 7Y43U6Y57KUEJLTKZ6MGT2C6XHYM4EEK X-Mailman-Approved-At: Thu, 15 Aug 2024 08:23:16 +0000 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: Document the bindings for the Qualcomm QCM6490 sound card. Signed-off-by: Luca Weiss --- Documentation/devicetree/bindings/sound/qcom,sm8250.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml index c9076dcd44c1..0a31be6d917f 100644 --- a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml +++ b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml @@ -31,6 +31,7 @@ properties: - qcom,apq8096-sndcard - qcom,msm8916-qdsp6-sndcard - qcom,qcm6490-idp-sndcard + - qcom,qcm6490-sndcard - qcom,qcs6490-rb3gen2-sndcard - qcom,qrb5165-rb5-sndcard - qcom,sc7180-qdsp6-sndcard From patchwork Fri Aug 9 08:33:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 819442 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 8732AC52D7D for ; Thu, 15 Aug 2024 08:26:35 +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 9C6FF2392; Thu, 15 Aug 2024 10:26:23 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 9C6FF2392 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1723710393; bh=iQCCZNb15xA7YzIyMpV93MbfBBT7xhwt8+pmmQPh75s=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=U23X+wnpeDYE4PqB2O1HTb94f0tUfoGjfOGa+1sTG1etERKarjaebHP6RATN/SSL6 4cStx8BSSw2b0Y79vU/gH8QTDc+tJvO/ThYEmmdtiNZhLMpCJS/Wf47Iy66irBJqK4 b9/+kUhjmNr7+r+y1YN4bPkb9xI1bmzIVsUyfOpY= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 7052AF80720; Thu, 15 Aug 2024 10:23:58 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 3F5B7F8072A; Thu, 15 Aug 2024 10:23:57 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 0BC1AF80448; Fri, 9 Aug 2024 10:34:42 +0200 (CEST) Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) (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) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id CE262F8023A for ; Fri, 9 Aug 2024 10:34:14 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz CE262F8023A Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=fairphone.com header.i=@fairphone.com header.a=rsa-sha256 header.s=fair header.b=vBran/mx Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-5a1c49632deso1954216a12.2 for ; Fri, 09 Aug 2024 01:34:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1723192453; x=1723797253; darn=alsa-project.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=pM2zQn5p3FDpIYaXA2RbE1R8wZYvgZjYLsbkdX740GY=; b=vBran/mxoZdJUZjb8DIE+B+rhZNBzjap0CWr+fH2Jfzd6dkW44Q3nLImHm8HAbNjky 0Awfq2go2zIKfH893370RN2syF5v7CAtp5nsvCd14oqSo4XYiBO7LUWwxPkMFHxMbT7p XJqmgWQJPuavh+NxfGSADw5uN4X+0dS+hc5M2S5ApLzz5cgR0cHTEiELn4FpFx/jycM8 0+NWN+tyDigK/seCmCM5Hb3t62Pk2LixV8nZLnyGGPjL99MtT9/BwPFn+46S3GdeNe9d fQ4zUxGgVRV32h1HKpxgLNGTNLPfLTJwISK2Hwfgu8UYkriqbbtekayhW+QLkyGSzMV2 YhIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723192453; x=1723797253; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pM2zQn5p3FDpIYaXA2RbE1R8wZYvgZjYLsbkdX740GY=; b=eSyV0pAW7Bb1vciKu95168LFixF4bKbs/KXxTwhxdiYl7n4SzHYUbj9c31ihJjSwkg XjAL2+QAfBnIMUMBZn9gTBU6GMenbBRZUM5EhenUds7opRXuZsmr4KF7QgE2CMwNT5vW IlHcSBv1OgBOmE9S//1oeY62Hahz9NupZZYU812j5Atx9sAbng3xEUgsxkrIyw20p2Sm FmEYAusX3acYJx73IE74D879mWRnlEKMbwlHDuCXzzQZBb05pjnKvS69IdE4kGYaGVQs OHSVp1XdxDhsRu+5g6cRfgZaqfJLNgR6lxhdEOQOkDPph+Rp+V0Wgbys5JSXdsU2sHNR HeVA== X-Forwarded-Encrypted: i=1; AJvYcCWb5DszXK41JPfR3Tg0q+KvfFEFPFD4DVFKWVOZpTYMxOufMsAw6ucmpJYucEFSjhL4lZi+P3xXY1+d@alsa-project.org X-Gm-Message-State: AOJu0YzAP2v8GLJf/Chwjfn6k6n77UgjQ55TqEqgkC6m33HGLBuN3WLz edcyZh8P7a2yaN/8rC4uvBDQHKYcsgalyxGgXrzr1/H/NiC8kzMugJ+Zy3dzUZfCYZWqP7xQX7V D X-Google-Smtp-Source: AGHT+IFCpnNxr3OIcmfuo39c+nNlT21/T85VjYH0R0lGnoZyeMzkVNE10LVLArSs5TAUEYYxuW88qw== X-Received: by 2002:a05:6402:3548:b0:5a3:b64:3b98 with SMTP id 4fb4d7f45d1cf-5bd0a5a5d44mr558924a12.19.1723192453020; Fri, 09 Aug 2024 01:34:13 -0700 (PDT) Received: from [100.64.0.4] (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bbb2c41916sm1336288a12.41.2024.08.09.01.34.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Aug 2024 01:34:12 -0700 (PDT) From: Luca Weiss Date: Fri, 09 Aug 2024 10:33:58 +0200 Subject: [PATCH 2/3] ASoC: qcom: sc8280xp: Add support for generic QCM6490 MIME-Version: 1.0 Message-Id: <20240809-fp5-dp-sound-v1-2-d7ba2c24f6b9@fairphone.com> References: <20240809-fp5-dp-sound-v1-0-d7ba2c24f6b9@fairphone.com> In-Reply-To: <20240809-fp5-dp-sound-v1-0-d7ba2c24f6b9@fairphone.com> To: Srinivas Kandagatla , Banajit Goswami , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai , Bjorn Andersson , Konrad Dybcio Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.14.1 X-MailFrom: luca.weiss@fairphone.com X-Mailman-Rule-Hits: nonmember-moderation 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 Message-ID-Hash: NJ2CEXXAVQEGIONJJ5IZ6UETIOYIDD7V X-Message-ID-Hash: NJ2CEXXAVQEGIONJJ5IZ6UETIOYIDD7V X-Mailman-Approved-At: Thu, 15 Aug 2024 08:23:16 +0000 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: Add compatibles for sound card on Qualcomm QCM6490 boards, e.g. Fairphone 5 smartphone. Signed-off-by: Luca Weiss --- sound/soc/qcom/sc8280xp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/qcom/sc8280xp.c b/sound/soc/qcom/sc8280xp.c index 922ecada1cd8..385e902944b3 100644 --- a/sound/soc/qcom/sc8280xp.c +++ b/sound/soc/qcom/sc8280xp.c @@ -185,6 +185,7 @@ static int sc8280xp_platform_probe(struct platform_device *pdev) static const struct of_device_id snd_sc8280xp_dt_match[] = { {.compatible = "qcom,qcm6490-idp-sndcard", "qcm6490"}, + {.compatible = "qcom,qcm6490-sndcard", "qcm6490"}, {.compatible = "qcom,qcs6490-rb3gen2-sndcard", "qcs6490"}, {.compatible = "qcom,sc8280xp-sndcard", "sc8280xp"}, {.compatible = "qcom,sm8450-sndcard", "sm8450"}, From patchwork Fri Aug 9 08:33:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 820636 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 62235C52D7D for ; Thu, 15 Aug 2024 08:26:51 +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 754742BC7; Thu, 15 Aug 2024 10:26:39 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 754742BC7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1723710409; bh=OI0BTlanZ3ouih1Oc8Ys+Q4/CwcrtvqnlxKkb99HXII=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=Y2jerR/xQblgClsVl9ym1lI/3/H1sXMNO4Epy6D42Gm8KltvMzcqwSGmYaDR1kWZe gkendI/kydUz/NQTWd9clruViEDWLyZp39vTz90OQZvOSmEqhxSyu5SfGv89Lk/xUU g1F0sOA9qBeIccMZHOnCHl42Lgq+cdSyAvDSI0mc= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 5136AF80764; Thu, 15 Aug 2024 10:24:00 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 16B24F805AB; Thu, 15 Aug 2024 10:24:00 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id BB09FF8023A; Fri, 9 Aug 2024 10:39:14 +0200 (CEST) Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) (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) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id A545BF802DB for ; Fri, 9 Aug 2024 10:34:15 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz A545BF802DB Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=fairphone.com header.i=@fairphone.com header.a=rsa-sha256 header.s=fair header.b=ralt7BOQ Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-5ba43b433beso2056177a12.1 for ; Fri, 09 Aug 2024 01:34:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1723192454; x=1723797254; darn=alsa-project.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=SY4fryrxNkvZgli9BRICsfInr4nHVNsC/F28oVigWAk=; b=ralt7BOQiZd7J9S7smASUBg+mQO9lnmiQvPhsFGfJtQQ/NTZr81IgzW8Px9yQ5GmOy ezKSp6fJLwW9zdMMOr4wp2St1swPvljdCqHIgB4z/EUzXpSNmMN0IuUgVNZSwgP/tRMc tay6TVXkauZ/Xd+wn8TkucxsCOadOwXXUJN8UgTlolfVAFwerAZQ5XiaH/p4rFfJwY+7 3Cb8QYLydOEihCaGzJCjMO7R8bEk6VBsnD3aFpIpQVkrZJ1Trd4ctgz9q6KgNfiZTc1h 2uC1guSPMlQKDHjxtJzx4xqHkTvcRswM/db8kwUWUeizJQ5TbjJFQs/2ntRh6JgTnd+W PNfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723192454; x=1723797254; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SY4fryrxNkvZgli9BRICsfInr4nHVNsC/F28oVigWAk=; b=jxciaMDdVZguvL622UM8mPNxMteUqHCZ6GY4Xb3kFEXKfqeLPALDsFt4aC0KDTDLwu bPmEd8wcccMLyiU7gxiwrFOZifTdFMsjX/MjOyMTwcdd4leWFvig3Zv9bBEALdEj4I27 2O36q0LZUcE905PFofbzBKPLeP7thFEAhYYanwSvngXUHst2fo63ncb6ZTTDaWRA065I zmcXTRKf92rH9kYWWuillWDjWNVS2H/0GXCOn6jdy3YkzpmsZ5a6D01Bl0AZ7Xc9Gq4K RlfJhjcBCz7+swniPmKw76acePrqcKp0EwnzIst2lPFut63pLPdWylgliwBv2F7IdZ40 qiSg== X-Forwarded-Encrypted: i=1; AJvYcCUIZVdgK1D4eAFv4q0CbtucZL0R2as+RFEo7rHls9ph3/asO2k1AK6vk/jQdlCmTSHmRiGPVtNcLg0BO7WCp9CpWGA36lwgx8ZJ9RU= X-Gm-Message-State: AOJu0Yx37pcS3xr91Dr1h8RiZC/Mds3xB2zaa0muSI5WYA8KliRbvE7l DmPhjJmbGv0TGWhkwo2KH5Zo64clCwyo0RwM8XyHu7nN73mZDNYY3Ff1Z95x7VI= X-Google-Smtp-Source: AGHT+IFR/fUi2PxofvVcuUfiPXGSTvHp8HjNo2okFizvskVBpDGatZfaIDw3fHAvXy9BNCnQOZOyKg== X-Received: by 2002:a05:6402:4309:b0:5a1:b42f:c93 with SMTP id 4fb4d7f45d1cf-5bd0a588be6mr680639a12.13.1723192454170; Fri, 09 Aug 2024 01:34:14 -0700 (PDT) Received: from [100.64.0.4] (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bbb2c41916sm1336288a12.41.2024.08.09.01.34.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Aug 2024 01:34:13 -0700 (PDT) From: Luca Weiss Date: Fri, 09 Aug 2024 10:33:59 +0200 Subject: [PATCH 3/3] arm64: dts: qcom: qcm6490-fairphone-fp5: Add DisplayPort sound support MIME-Version: 1.0 Message-Id: <20240809-fp5-dp-sound-v1-3-d7ba2c24f6b9@fairphone.com> References: <20240809-fp5-dp-sound-v1-0-d7ba2c24f6b9@fairphone.com> In-Reply-To: <20240809-fp5-dp-sound-v1-0-d7ba2c24f6b9@fairphone.com> To: Srinivas Kandagatla , Banajit Goswami , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai , Bjorn Andersson , Konrad Dybcio Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.14.1 X-MailFrom: luca.weiss@fairphone.com X-Mailman-Rule-Hits: nonmember-moderation 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 Message-ID-Hash: WXVREVOLCVE6DYW5GUMT7KJZFXRQG4VK X-Message-ID-Hash: WXVREVOLCVE6DYW5GUMT7KJZFXRQG4VK X-Mailman-Approved-At: Thu, 15 Aug 2024 08:23:16 +0000 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: Add the required nodes for sound playback via a connected external display (DisplayPort over USB-C). In user space just the following route needs to be set (e.g. using ALSA UCM): amixer -c0 cset name='DISPLAY_PORT_RX Audio Mixer MultiMedia1' 1 Afterwards one can play audio on the MultiMedia1 sound device, e.g.: aplay -D plughw:0,0 test.wav Signed-off-by: Luca Weiss --- (from cover letter) Unfortunately DisplayPort enablement itself for Fairphone 5 is not upstream yet. This is blocked by DSI display bringup upstream which is blocked by DSC 1:1:1 not being supported upstream yet and just working with a hacky patch. Nevertheless, DisplayPort audio was validated working with no additional sound-related changes so once DisplayPort gets enabled, sound should also just work upstream. --- arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts b/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts index 8ab30c01712e..45d4512546fe 100644 --- a/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts +++ b/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts @@ -14,6 +14,8 @@ #include #include #include +#include +#include #include "sc7280.dtsi" #include "pm7250b.dtsi" #include "pm7325.dtsi" @@ -841,6 +843,12 @@ &pon_resin { status = "okay"; }; +&q6afedai { + dai@104 { + reg = ; + }; +}; + &qup_spi13_cs { drive-strength = <6>; bias-disable; @@ -914,6 +922,35 @@ &sdhc_2 { status = "okay"; }; +&sound { + compatible = "qcom,qcm6490-sndcard"; + model = "Fairphone 5"; + + mm1-dai-link { + link-name = "MultiMedia1"; + + cpu { + sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>; + }; + }; + + displayport-rx-dai-link { + link-name = "DisplayPort Playback"; + + cpu { + sound-dai = <&q6afedai DISPLAY_PORT_RX>; + }; + + platform { + sound-dai = <&q6routing>; + }; + + codec { + sound-dai = <&mdss_dp>; + }; + }; +}; + &spi13 { status = "okay";