Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp680704rwb; Fri, 23 Sep 2022 02:37:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5C7mthNyr4vCwEVhJNhdJA38XdLq4vu4BmLIXilZXo1Z0WFedBQujgRrttHhqf07QgN1E0 X-Received: by 2002:a05:6a00:1808:b0:542:f4f2:86aa with SMTP id y8-20020a056a00180800b00542f4f286aamr8068421pfa.28.1663925837322; Fri, 23 Sep 2022 02:37:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663925837; cv=none; d=google.com; s=arc-20160816; b=Zfa5Xs4jaHrzGZvXxVuS3z2zx3xVMwpATP5x/k1pFtkI+d76ggkFKPk9Kny98wrMAF OGKcPQSAaIwdl9wvmvb12/a/Gbp9kqBggodWjeZUfgnJPEpEex/Si3ca8yVeLukVqKPC fmfHfmts48eo8N4X0mo07+2y8skTe2qp+qvVyAGGsTJ0MHJtpuxGGXAPGJpdFyy4YcJl T/UqG/kBL+uSllu2VZ0iVwqu9vyBXn3BX7MlSDYCcjn7Db11OowPuLIEHiktOaOr3KRx AFuGX5CrkqjEyqxIhSVrzSSwT5JqcnnC7UcSi2cQqRk+QkJiGZMmDhkIOFjRlcKM7/xl Q9hg== 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:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=WjaQMvp4NYNXLmKC07XPePf5E52xIBgsOm+nSEUb1tI=; b=0apl2is33P9akKNz3kuw5B8tGn+9GrxQyCzYhQQVmIqOYCPWjzrGjrOenXEb/ajvPk 9cRboFjeblyp/wLTSRfz+4LwSTM0sN0GnjYUAdX5Lv/96vG1LZ4bVj7wyJtsdY1OjJeV LIlONvIHqJ9Ix3Y6Ey+uK15gsIsgbs8V/TorKg/NtvnP3JM7qbwZ/8RLTIuMrn3tih/5 78Xmb4SLE6dZa1a2Xn2p8VCM13S6OA9Vhd75C10zVFaUcjtzsYzkbWQN+kQZF/LQh9d0 B6bxDSXsRI1mCehg60M67emu6k/ENcCkwyMd9tIvyqEPr22mrCDyyFbKZMMaqLBzFBJe qtnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=f+MuX2YF; 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=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b1-20020a056a000cc100b005281e5606b2si9587185pfv.32.2022.09.23.02.37.05; Fri, 23 Sep 2022 02:37:17 -0700 (PDT) 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=@collabora.com header.s=mail header.b=f+MuX2YF; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231514AbiIWI6X (ORCPT + 99 others); Fri, 23 Sep 2022 04:58:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230383AbiIWI6L (ORCPT ); Fri, 23 Sep 2022 04:58:11 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0771B12C687 for ; Fri, 23 Sep 2022 01:58:11 -0700 (PDT) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 50789660223D; Fri, 23 Sep 2022 09:58:09 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1663923489; bh=8bO5EiEizz+7P8tBXn9XnCbdhabQw8P9DY/Ybtu5Zb8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=f+MuX2YF0nczTug0TPbQ42ZOADH0YsYO2eS7e7OV1VDnoyN1n770BwfqCqGaGpSNM 1oP9k62EgXnkO1mEV5zCEFOW5ZHWo1DPulvZHN2Wr5jftfvp96xn9wUm4NFfnaRSUS CQiBpVke+vvcQKTJkFEZKXMEm1M8VLtLpNjgkxs4p+B3KIYhHLvELPMayQXnywlYs9 YdeE4yPDIvi0AWeT0KRelVPOEj8RM6aKVt8PgysjA1fKfH0UYnk7oSPMZUklQZklIi 2donUeVIy0VTBm1cWDfocDWgrj51X+6MkqClAgSJaQDnKcqL2qW7dIUmaU+Xe6Zlsl C+A+gyYzX0Y8g== Message-ID: <09f02f77-2360-6215-6f57-96c9d5135d6a@collabora.com> Date: Fri, 23 Sep 2022 10:58:06 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: Re: [PATCH 4/6] ASoC: mediatek: mt8186-da7219: Expose individual headset jack pins Content-Language: en-US To: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Mark Brown Cc: kernel@collabora.com, Jaroslav Kysela , Jiaxin Yu , Liam Girdwood , Matthias Brugger , Takashi Iwai , alsa-devel@alsa-project.org, "chunxu.li" , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org References: <20220922235951.252532-1-nfraprado@collabora.com> <20220922235951.252532-5-nfraprado@collabora.com> From: AngeloGioacchino Del Regno In-Reply-To: <20220922235951.252532-5-nfraprado@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 Il 23/09/22 01:59, NĂ­colas F. R. A. Prado ha scritto: > The da7219 codec is able to distinguish between two event types: > headphone insertion/removal and headset microphone insertion/removal. > However, currently, the mt8186-da7219 driver exposes a single kcontrol > for the headset jack, so userspace isn't able to differentiate between > the two events. > > Add a definition for the headset jack pins, so that a separate jack > kcontrol is created for each one, allowing userspace to track and handle > them individually. > > Signed-off-by: NĂ­colas F. R. A. Prado Reviewed-by: AngeloGioacchino Del Regno