From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 45F90448391 for ; Mon, 7 Sep 2026 08:38:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788770322; cv=none; b=SxBK8FG5CE7jWwljf/1B4yAate1DQljzA3n47OUH7qoO7EUsdM04lM9oRXQW/HlyJDF3BRerMl79ey7wYSQOkXujJxdd9DTmwTrgJ5sKUPNfCJzmLBoH0UmiQSjl2nnQKHRz1QguOcJS+hcG0Zh2JcqaLmTE3S/vcVELFIy/PIM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788770322; c=relaxed/simple; bh=KSMNo8g9EzvzwyGzuw9rT37GzWc3bg5wEFNUMeWd3m4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Wrf/VORuFyPRJiqKiTLt7fmw/qraD9TCEVVDv3fQK6oo0mSV8+XIVEoLpee6nqxdyRMXm/c6EzeRFAwOoLenKxwD9UM3C2RQwDi7nYI/RTmcXftUXIxd9gmHSJJdab5cix6WY4hdoHLiUWOexNIkX7SYhhA9AcX2uF8pMGEc4wM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=V5Xu8pKf; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=gKjnsxOp; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="V5Xu8pKf"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="gKjnsxOp" Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68777Y6W2724190 for ; Mon, 7 Sep 2026 08:38:37 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=Ip+eqAI2Rmw ja7TOAXqTLr12NGGvPjVQ2o1ftxzlnKw=; b=V5Xu8pKfscCanne5RdqZbZbv202 ETrilp+J6RiBrhsE6t8prwrm9uPVAUL5WMoGIcsPXThNk0zh1xoFpbXldBW1wJNt wrOR0PORIlees9NixTlZ7jOT6DFkOjGkxB8Zi9+mZViE80XZHVucKyalIrQ7i0S7 HDBF2BhbAb3gqqciPNfbD5qhIei/ZSXoErEZO/0HpPifloasjh5kY+B2szIlLrJd HIuZn4nZ+lMLfo/NYTudOA548nRtIqUYQoX6HYSxT2OB3tej2Tgw7AsbzoEVj87y 3HPm6S1+biQww5SOcUV8kyPnp9b8KkU0bcOEHiZeSzvHo/q0zTPVLmz8ZkA== Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ghfxksrqk-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 07 Sep 2026 08:38:37 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-93494cce712so596532485a.3 for ; Mon, 07 Sep 2026 01:38:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1788770317; x=1789375117; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Ip+eqAI2Rmwja7TOAXqTLr12NGGvPjVQ2o1ftxzlnKw=; b=gKjnsxOpiHXM5tUTgXzj3U5s1N7LS2oPP/SUZgUuEzhyzG7p56PJcEMsRsmR83ChQ+ hOkXhxxmEYJL9NARhvRtrQDdY3KgJ3cHi7iuRC8O3SRor0tQbCi+cjE4H6wubfeUqLG5 m/0QWW+MhsAwNtgy8Nb00+jNZTN3FvVETigT+SH0K0dqkT+Vs8YLfEj1ZUAqJ68yKDnR IEHkhFQEdNXgGhcS+6d6+OI4LiCZpGCVxi1cwiMEhw3w7gXTtvlzpco10VQheUzjFq9x eMgjIhObOROa0lO3WRSpPjZGi1GJF9am/4zHsl4KRDYXP4rskFBm0PrIv1pNgBubsYCh PtCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788770317; x=1789375117; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=Ip+eqAI2Rmwja7TOAXqTLr12NGGvPjVQ2o1ftxzlnKw=; b=exdQQBfTf7zxdTJXspiU05kZQ7NXq02d/0xg9oTPXskCwC6wpETzRnmRDz1kFOAYlc rtIbEtgOtHWIIZQmIS1knDMQiXLstPmkSBuD69Eu/3ILv7nA0SWKKpmOThmdlcFATV+X o3fd3kQ6ObMMHRGDNnTZ3Iy2Aedvl2N0QaMSe+wlrZR8VUlYtmvGhK0DIuKcOsLvgPIi SfQp+gBSPylTWnuajiwFZuXvYrN/MUEJDkdp/Z4PGQBoqRf1T94mp0Len2SZ8FfvkB5b GTlqCeisx/yxtnO2gEfZXMh93fi4/3ILcR9gJdfWmhRck5pkDQ+aMLEVA1B80kiKvmCL f1eA== X-Forwarded-Encrypted: i=1; AKwUvBwHI06t/kcQFC5QAxAgDcaVhdZpJYhzSedZlmIrHebCQ+xKR8/pM1DYUJW3nR2UJlwTrVD5fLhBA6DB@vger.kernel.org X-Gm-Message-State: AFuF++kviXv1iuem6H5S9UHq0rt+Q5chMizzXA7QzOl9MDD4V2PRNM2t CHVHfixnLnrvewlctt5T9Z8dSw5YUKdgu+vsW9GIpRBieCzNpWfFTG/IJvp7RSFgDEDCyZkHwfo qaLqmZz70uaS+Y/puriwZW//One14JI3ZuzPLISFWqEcVOdBOv5h8KlEot8jTrhjW X-Gm-Gg: AYBFou1NczqrTLc1gLc7PzZ+7NksFp7um6dlQxJhk+EoUFqjB7wjOoyLQKIYoghYwSB v4BKHqD9zF7iL+TP4h9uJjICTYnPZdV9Jg56MSCAoE1YKqOPa6LuMIEAGfEvjvd2UAQMwAlgyPx xSV/NL1Ki5cBTynFunvrs94nkI/dUAgRWfTZbK5mNK5GYdMPS4+XQJPkgYiLM3ezhJHvri+bA7E PLYyop7qMxT3ZP2yK5uK3UVA7NmIHfOtnwH08W0wVAs8y3X1vUkJZUudOt5MJkuNOa7udOltINV +rHii2Wgi525z/tnsFyaH/rEaTxVl+gCTaLCC+OQ1xkOzTTsvQ+hQ5KHaGg/gee9BH368xDczrh l5tJi8ScWkKKySw== X-Received: by 2002:a05:620a:3d02:b0:936:ea3d:9313 with SMTP id af79cd13be357-9398037be5dmr1382138985a.20.1788770316945; Mon, 07 Sep 2026 01:38:36 -0700 (PDT) X-Received: by 2002:a05:620a:3d02:b0:936:ea3d:9313 with SMTP id af79cd13be357-9398037be5dmr1382134685a.20.1788770316450; Mon, 07 Sep 2026 01:38:36 -0700 (PDT) Received: from debian ([5.133.47.210]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-485883c6ba4sm30852179f8f.25.2026.09.07.01.38.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Sep 2026 01:38:35 -0700 (PDT) From: Srinivas Kandagatla To: Mark Brown , Rob Herring , Charles Keepax Cc: Krzysztof Kozlowski , Conor Dooley , Bard Liao , Jaroslav Kysela , Liam Girdwood , Maciej Strozek , Pierre-Louis Bossart , Takashi Iwai , Faiz Nabi Kuchay , Jorijn van der Graaf , patches@opensource.cirrus.com, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH v2 07/11] ASoC: SDCA: register SDCA_FUNCTION_TYPE_SIMPLE_JACK in class function driver Date: Mon, 7 Sep 2026 09:37:21 +0100 Message-ID: <20260907083727.733705-8-srinivas.kandagatla@oss.qualcomm.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260907083727.733705-1-srinivas.kandagatla@oss.qualcomm.com> References: <20260907083727.733705-1-srinivas.kandagatla@oss.qualcomm.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTA3MDA5MyBTYWx0ZWRfX71jfXA/V1PBx Fd7Zax1hYeLG4Pu+fSANnpyJLRmBoirLtNutkaGaqkHwdq6yNVLbQD7xoIvh1DnD7UmOjockR0h /R55L1h/c6JcBEa9x4q8vBUzP39SpLF7qTRUrcDrBc0XSGHetI/ord5Gb6/OYhUZdnzOiPMHDNG tsVCuwB7/zVTp+TWERQcVQBAn0CdRJk38jkREmzb7z3WHMUi1Io/IWjMU7RnYrePHHMECT5oYDa Ic/BM/3AfuG9CMqzzkvFGIk7rw+QM1DEXWloVBvgvRjRL5kchWc8OfQGsvEhSfA6CSIJvgrS8wZ BGqVBy4st7P/wJDOf2bzQCSe9sb3Ko5wNnOxyMtaKGaYDYvBihak12+2o7fGXtRvj0urb/oXXrz /w+eJQIwBtjAGl3I6wyRZrL0keA1i2fUkZ03mv8TnCTJQHec15nbkkFNfK1H4JNqDQrBbCBkkgM tZT38ztQLkx98LYtmfQ== X-Proofpoint-GUID: 22Q3L1fU6gIJT4Ol2BsK8gbI1Vc9JkBY X-Proofpoint-Spam-Info: AW1haW4tMjYwOTA3MDA5MyBTYWx0ZWRfX+QnYFB45asFV exTBsTrm593w94DuHaDBpD++6yGu7032Fx5j/DhYaNVgUnObou2E6BJPJYqRWFbwLZFWJIRiyan CNbphG+IkG4R9LMhEt5f07T/fxcE3As= X-Authority-Analysis: v=2.4 cv=daOwG3Xe c=1 sm=1 tr=0 ts=6a9e780d cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=ZsC4DHZuhs/kKio7QBcDoQ==:17 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=EUspDBNiAAAA:8 a=w1d2syhTAAAA:8 a=IEwj7ntJ1M3WgPGe5dsA:9 a=NFOGd7dJGGMPyQGDc5-O:22 X-Proofpoint-ORIG-GUID: 22Q3L1fU6gIJT4Ol2BsK8gbI1Vc9JkBY X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-07_02,2026-09-03_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 priorityscore=1501 bulkscore=0 spamscore=0 phishscore=0 lowpriorityscore=0 adultscore=0 malwarescore=0 impostorscore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2609070093 Add SDCA_FUNCTION_TYPE_SIMPLE_JACK to the class function driver's auxiliary id table so a SimpleJack auxdev is bound and enumerated as an ASoC component. Wire set_jack for this function type so the machine driver can register an ASoC jack against it. Signed-off-by: Srinivas Kandagatla Reviewed-by: Charles Keepax --- sound/soc/sdca/sdca_class_function.c | 5 +++++ sound/soc/sdca/sdca_functions.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/sound/soc/sdca/sdca_class_function.c b/sound/soc/sdca/sdca_class_function.c index ab043e23878e..713a34d5954a 100644 --- a/sound/soc/sdca/sdca_class_function.c +++ b/sound/soc/sdca/sdca_class_function.c @@ -408,6 +408,7 @@ static int class_function_probe(struct auxiliary_device *auxdev, switch (drv->function->desc->type) { case SDCA_FUNCTION_TYPE_UAJ: case SDCA_FUNCTION_TYPE_RJ: + case SDCA_FUNCTION_TYPE_SIMPLE_JACK: cmp_drv->set_jack = class_function_set_jack; break; default: @@ -593,6 +594,10 @@ static const struct auxiliary_device_id class_function_id_table[] = { .name = "snd_soc_sdca." SDCA_FUNCTION_TYPE_RJ_NAME, .driver_data = SDCA_FUNCTION_TYPE_RJ, }, + { + .name = "snd_soc_sdca." SDCA_FUNCTION_TYPE_SIMPLE_NAME, + .driver_data = SDCA_FUNCTION_TYPE_SIMPLE_JACK, + }, {}, }; MODULE_DEVICE_TABLE(auxiliary, class_function_id_table); diff --git a/sound/soc/sdca/sdca_functions.c b/sound/soc/sdca/sdca_functions.c index 47dedb62c24c..25f95575c731 100644 --- a/sound/soc/sdca/sdca_functions.c +++ b/sound/soc/sdca/sdca_functions.c @@ -79,6 +79,8 @@ static const char *get_sdca_function_name(u32 function_type) return SDCA_FUNCTION_TYPE_SPEAKER_MIC_NAME; case SDCA_FUNCTION_TYPE_RJ: return SDCA_FUNCTION_TYPE_RJ_NAME; + case SDCA_FUNCTION_TYPE_SIMPLE_JACK: + return SDCA_FUNCTION_TYPE_SIMPLE_NAME; case SDCA_FUNCTION_TYPE_COMPANION_AMP: return SDCA_FUNCTION_TYPE_COMPANION_AMP_NAME; case SDCA_FUNCTION_TYPE_IMP_DEF: -- 2.53.0