From patchwork Fri Apr 25 08:07:24 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 884605 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 245E8232785 for ; Fri, 25 Apr 2025 08:07:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745568455; cv=none; b=CzijQcpDZoVXbMz2Gpj8Xi9LJchl0fs//EomZkf6ASCaRHiUqYqX6X5zekPjMxxDWh1OgV3IocCaxPDlSW+0utgMjPua/9P1yoWqg+4GnawTLqLkC/cVCQ9rbTssWjk1NwSP8BDnaihA5wbElQbC2HXn2m2uzksmEV2WS0cXrEo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745568455; c=relaxed/simple; bh=IG5EYBIkkvxAjFWHA58vQMRAHNLYBMvaI/+axls57V4=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=VB4PIF4fxhGqd7DFSn4+Ozuly8mhR+Tim+7GvQWyCCBuVXhf5/2euSNyMdYiz7zjpv1Vnlc69uxVU9qvqFsOFcZGYnus8V4RpE8FGJs/I7EPLG79Z5fbombC6BUKVWcFXDxysXvsHqkPBMzaFeIMmd7qz6lZZqnI2sKADVwSt0g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com; spf=pass smtp.mailfrom=fairphone.com; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b=cI1iGtz1; arc=none smtp.client-ip=209.85.221.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fairphone.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="cI1iGtz1" Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-39c266c2dd5so2076152f8f.3 for ; Fri, 25 Apr 2025 01:07:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1745568451; x=1746173251; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=hwsfA2vx1w0Hd+MxkBOwMy08bPVFTSGUVL5IKHTSRSw=; b=cI1iGtz1IjGdprJaScSGS8CPYpwm/AHEfdJoZRU/q8qIvHOWz8lM0au8s075QFAYlX 6S3HbVEhZCemaDOfDPwgiov/kQqRf0/z07U7CPIILT+KA+3I1kkuUicIRZeB1J8Hqrbj 23mIgwjCHJD60Dxa+KtgOjDhgWxYScFyoRYGN3IruGS+uH39KfS2h4dw12r2WV6qCYym rjkRYYTnCezc/c/dRYV+922AbdDYszgRDHrW43jbnY8vlxwrVdJ6hL2lPA7BaUpt4v5+ zrr0yLzpn7pPOvCvaV6yXqdBp21dUysARbg8fYoAB6xntpLwn3tuDfeCDiH6C/oQLl4e UkFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745568451; x=1746173251; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=hwsfA2vx1w0Hd+MxkBOwMy08bPVFTSGUVL5IKHTSRSw=; b=H3+4tUX5hrjfHXvCAt3rUmKNgtOqCMzUaOVHRaXAJN0Rt99ElAOAjyEsnSFyFi4wee xqpLjns54E7mkwiJBTVzfDHKafEFrKNEe/L3QB/Rbyt3kU0Pb1pQ+Pd8FQSL+DXntWeN HZaE1hTbbmMtPdpapDnISV/k87aJ6wbr2fByx1ATWPgOOsgi5iAkuM7axlBWTtwkrJYa u+7duFecPDmDvWx0wm7r5cxn5XSgG/yZB00wyI9kio9RRi/2CmcqCf9TX50wXrA/tBar m62fpsB/z8sJ9CAuU9GtU2Whba2llE6PrtuBs3us3WPtP+6diTqdxAlMi9KIWapICk5v TtpA== X-Forwarded-Encrypted: i=1; AJvYcCXdrJ24JbuAMxEVmTo9VhOoM3BT9Mr+eGcuWThrWIacnmmHBzpaqaRWb4BBC+0Bm5s3Vh69zz3bn/nokVGf@vger.kernel.org X-Gm-Message-State: AOJu0YwUT0KM0moYWqTp7A7BtOshb0QpsvjGKeuVYYqQ9iYvHvD4JF5K iYxUAHJQJUOs0HJRtl1P8dSC+KdPm2XPH30hDRksHgfJ7BEqT/q6hLvXoefMv6g= X-Gm-Gg: ASbGncshp/vP7OeE2qyYxQC0UoyUuojYn6AM8HUDrjLwOG04zGH6/sgP7FJUdS55UYZ ZV2upyDQjNglVDNRSauI4Bx+Q0qZBRSgqlLA0yW7QMNjBfFvX5xNlxNrA8RaMYLSE4Ih4h0ciI9 Excl6JBerPCTKaNRFl51fevo/0pCDyRKqMcit/LbookIa567mQAko0DtU18lfUEj6p/LmISdfrd 5UNetcZHytZX0zkxwMERWhw+lwBTNzXXSH2GDBEEyOImAr1oNc36WWihmD46CqFgk6DN7mRbhIz 6ElGzlt+6I07dlnQZHY76isyODjGCdUrwQ3PHv9Aiq7+t0W+MZNlaahuWvQzo5FBRqn6512uyuW Z21QxBBaqYirrdoBEqCsjdzpIxANkwCp3srJYsSoWnZS1zGgRXg8U1vcdUVPIANavfKQ= X-Google-Smtp-Source: AGHT+IED++efpf5n1mpdrpKSqo0nctSBfmgC5H7SE7rg0sC07MwBn9G01Iz8pW4KpUWARaD7Nc47rg== X-Received: by 2002:a05:6000:4203:b0:39c:2669:d7f4 with SMTP id ffacd0b85a97d-3a074f39913mr987084f8f.43.1745568451325; Fri, 25 Apr 2025 01:07:31 -0700 (PDT) Received: from [100.64.0.4] (2a02-8388-6584-6400-d322-7350-96d2-429d.cable.dynamic.v6.surfer.at. [2a02:8388:6584:6400:d322:7350:96d2:429d]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a073e461casm1593513f8f.74.2025.04.25.01.07.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Apr 2025 01:07:31 -0700 (PDT) From: Luca Weiss Subject: [PATCH v3 0/5] Add DisplayPort sound support for Fairphone 5 smartphone Date: Fri, 25 Apr 2025 10:07:24 +0200 Message-Id: <20250425-fp5-dp-sound-v3-0-7cb45180091b@fairphone.com> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIALxCC2gC/3XMsQ7CIBSF4VcxzF5zodBSJ9/DOJQClkEgoETT9 N2lTVyaOP4nOd9MsknOZHI+zCSZ4rILvkZzPJBxGvzdgNO1CUPGUWIPNgrQEXJ4eQ2q6VppG6S 90qReYjLWvTfueqs9ufwM6bPpha7rH6hQQNCdGtjIuG1Vf7GDS3EK3pzG8CArVtgPEMip3AGsA ih0KyxKrlDsgWVZvmKzgnbtAAAA X-Change-ID: 20240809-fp5-dp-sound-b3768f3019bd 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 , Dmitry Baryshkov , Neil Armstrong X-Mailer: b4 0.14.2 Add the necessary sound card bits and some dts additions to enable sound over DisplayPort-over-USB-C, e.g. to a connected TV or monitor. The UCM files can be found here: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/tree/master/device/testing/device-fairphone-fp5/ucm This series - in spirit - depends on the series enabling DisplayPort in the first place, but can land pretty independently, especially the ASoC bits: https://lore.kernel.org/linux-arm-msm/20250312-fp5-pmic-glink-dp-v2-0-a55927749d77@fairphone.com/ Signed-off-by: Luca Weiss Reviewed-by: Dmitry Baryshkov --- Changes in v3: - Simplify return qcom_snd_wcd_jack_setup in machine driver - Pick up tags - Link to v2: https://lore.kernel.org/r/20250418-fp5-dp-sound-v2-0-05d65f084b05@fairphone.com Changes in v2: - Revamp series based on comments on v1, doesn't have much too much in common anymore - Use sm8250 instead of sc8280xp sndcard file, so port other required changes from sc8280xp.c to sm8250.c - This also changes the sound card compatible to from qcom,qcm6490-sndcard to fairphone,fp5-sndcard - Link to v1: https://lore.kernel.org/r/20240809-fp5-dp-sound-v1-0-d7ba2c24f6b9@fairphone.com --- Luca Weiss (5): ASoC: dt-bindings: qcom,sm8250: Add Fairphone 5 sound card ASoC: qcom: sm8250: set card driver name from match data ASoC: qcom: sm8250: add DisplayPort Jack support ASoC: qcom: sm8250: Add Fairphone 5 soundcard compatible arm64: dts: qcom: qcm6490-fairphone-fp5: Add DisplayPort sound support .../devicetree/bindings/sound/qcom,sm8250.yaml | 1 + arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts | 31 ++++++++++++++++++++++ sound/soc/qcom/sm8250.c | 27 ++++++++++--------- 3 files changed, 47 insertions(+), 12 deletions(-) --- base-commit: 7f1dd4e6634d085f3c9652d4e0f1903659fb96f9 change-id: 20240809-fp5-dp-sound-b3768f3019bd Best regards,