Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp6462917rwb; Wed, 18 Jan 2023 05:37:16 -0800 (PST) X-Google-Smtp-Source: AMrXdXsJHrcrU+Tk+mjXDMoeklroguN7fIqZHrbVIu7aGjl/kvPQW8ot8rCPPWVtw3Vf8hfyQKBj X-Received: by 2002:aa7:cc8f:0:b0:492:8207:f2ba with SMTP id p15-20020aa7cc8f000000b004928207f2bamr17251058edt.1.1674049036224; Wed, 18 Jan 2023 05:37:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674049036; cv=none; d=google.com; s=arc-20160816; b=RL55dvRDcgpotiWmGC0IEs6MaTbVAyKpzDGhSTxU5R68/Tcerlco5F97Taikl+2HOE ckTiVA7klWS+iZg1yiIpLSjShoMbEkYe5qI7gmtMCKYTeH0FNuqPhDk+/+s9Vt40Jasa ViN3Gk2mMiMDK/zhDU4hqN8LXR7xCUJvebAdoUqR0SNjzI+Qbk5eltaLZxVMU0vTDdCz xWA0WfsSTdVHytmttcpDn6zfrmPlah0kkzemzjw/xv+xIiUFWh9Y184lGXdfcIp1za5y nMs8pNpLaNZaEYa+SjhXrjxbXF92tO9mqsdIJSbkzb362qFuyq7WHXzi7Q8jconJMnHF p2aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=o0DfuEULqUsAV5hFmVD5dpXwoVgIGc6OdHCzJL9RknI=; b=00S5Q5iAxa5qSnxG/jSO6VaFFROjSYrkV28EUtLYDvT+KeMyD24QF1SA85Gmp+/yN9 WJwl3/pAdblgPZqw5EejVkg0qtmr9dnNek00z4J60BPbtwebUWsP97StRY4JxnqkCb8x ULgIlj6nen8vIam+OzRbwAb70aFH/UBXv+uWxt3lbIuxfXgUCMwZ3O6NXpawmMtydfNT 5YXTnxeGgbcJgWZ7R2pq5gFKoxSXzUo8GYaoy0jnEZfoNgqJDCRiFcvyM/505bW/N37o PWqKfgpHjodtrMDF64h+UWL3S2ay4p5OWJzq3ty4RN7LJj3al/cvgTO/y9kSWR9xt8eX cMEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=UXoYcsPl; 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=axis.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v17-20020a056402349100b0049e1b840be0si11486526edc.9.2023.01.18.05.37.05; Wed, 18 Jan 2023 05:37:16 -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 (test mode) header.i=@axis.com header.s=axis-central1 header.b=UXoYcsPl; 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=axis.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230362AbjARNZv (ORCPT + 45 others); Wed, 18 Jan 2023 08:25:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231571AbjARNZU (ORCPT ); Wed, 18 Jan 2023 08:25:20 -0500 Received: from smtp1.axis.com (smtp1.axis.com [195.60.68.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC4F545BF5 for ; Wed, 18 Jan 2023 04:52:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1674046351; x=1705582351; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=o0DfuEULqUsAV5hFmVD5dpXwoVgIGc6OdHCzJL9RknI=; b=UXoYcsPlEGN2z2AARacNQlXTY6CoZb7nKj9mVD3/UWkHhOnL7v65YUWL G9a9fYq05gkz4bLKkQHLYo5whI9ldoP1fUWJE7/ckwsEQDNfy+IDD1pUs 98a91Fxo23hco7O6zQ9Q0AbB/Tcfa2jVdDe9Q1devN84anugYMxFUI0is Ce65GFyaOEB0QCtzFUahaWb4UB5bXpl4eIRiG6KUapBHndHFhoVpdiBtx o1R/mh1fCA3/fJTfi1I/kOKorIJISe0oYqaSHDvn5DH1uFQ/IQVr/J3Z7 hS95HmAQgemW++IeiZa/Wg82p/Eg3dPno704H8HFuxBWZQHojbJ5U54Af A==; From: Astrid Rost To: Mark Brown , Liam Girdwood , Krzysztof Kozlowski CC: , , , Astrid Rost Subject: [PATCH v1 0/4] ASoC: simple-card-utils: jack for aux_devs Date: Wed, 18 Jan 2023 13:52:22 +0100 Message-ID: <20230118125226.333214-1-astrid.rost@axis.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, 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 Add a generic way to create jack inputs for auxiliary jack detection drivers (e.g. via i2c, spi), which are not part of any real codec. The simple-card can be used as combining card driver to add the jacks, no new one is required. Create a jack (for input-events) for jack devices in the auxiliary device list (aux_devs). A device which has the functions set_jack and get_jack_supported_type counts as jack device. Add a devicetree entry, in case not all input types are required. simple-card,aux-jack-types: Array of snd_jack_type to create jack-input-event for jack devices in aux-devs. If the setting is 0, the supported type of the device is used. Astrid Rost (4): [PATCH v1 1/4] ASoC: soc-component: add get_jack_supported_type [PATCH v1 2/4] ASoC: simple-card-utils: create jack inputs for aux_devs [PATCH v1 3/4] ASoC: ts3a227e: add set_jack and get_jack_supported_type [PATCH v1 4/4] ASoC: dt-bindings: simple-card: create jack for aux_devs .../bindings/sound/simple-card.yaml | 35 +++++++++++ include/sound/simple_card_utils.h | 3 + include/sound/soc-component.h | 2 + sound/soc/codecs/ts3a227e.c | 17 ++++- sound/soc/generic/simple-card-utils.c | 63 +++++++++++++++++++ sound/soc/generic/simple-card.c | 4 ++ sound/soc/soc-component.c | 18 ++++++ 7 files changed, 141 insertions(+), 1 deletion(-) -- 2.30.2