Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp643194rwb; Fri, 23 Sep 2022 02:03:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM497Z4UVR47HV7XLfFGD3yssdmUGDxEGCscMH/sncPZqHHORw2FvHoXAgRHCqiWK/Zx3ihs X-Received: by 2002:a17:907:1629:b0:782:9b8a:c8b9 with SMTP id hb41-20020a170907162900b007829b8ac8b9mr1942480ejc.673.1663923785350; Fri, 23 Sep 2022 02:03:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663923785; cv=none; d=google.com; s=arc-20160816; b=cDrvCSQpQzHaJbm2EpjQ30q9y+6d7uf6e0VVyr96DR1/LG0yXUlGSgM3Z3tTmqNmez D/mczvhe9hPsKrPgsxWrHNq+A40MklnvIYOxc8mtZmZ44feqHH/WQFKHLbZh/LO/7fzO fx71f7Ht+NB2sSM1LcB1V0jipG+aNBCyl2bwW3cZ1Z/EhUAYUsKU9woClHMqRSz1l/bt fxnHgOGpiujaRhqs0NfZ8Yr8mPdOWyIVHjTAi4m9UbLBjCqPFwaZLol2YKVi5MQNgWCY On4FWMHV6mvY/XvFwAuqroZSLsozKDTM0BgD8KZuEGXyl/tqkC/bBpXm/xhGYyWmSFEX PDGg== 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=ZW4HlaJq+sS6ldmAgFUsfe0+IAprYDiRvYYc4dMHfY0=; b=LDyr6mWFHAMxadrXSKETP4d4kFATl1AnPr28zj2CDT5mFhB5VDkw+8rMTQjA+8xkah zKepyUUcQqSfqvOPM0HoLMXFfLcUF95gIVJHJzpagPjYver33SEXEZpfnFCKW126GmFf FQtNAOWRvP/BpVRgYdheKya5q4mVJqUMkXKU91MH01T/+oghzf+WaRY/3hADiO1/6NKo eDOV82p8JCQHhrF73ENCn58nw1nS5WY2ccn6J3e+lzViOik0OZZ1ftJ1b9kCIEvXhVGY sTzRG24ZAeFdBjfd48yF35PGGcqTnEFo6Yrxxdqa0sPkkudOHK2ePNwrUZzpBldlwrvy IcTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=HQW5S2m5; 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 sh38-20020a1709076ea600b0073d7ad9607bsi8544581ejc.551.2022.09.23.02.02.38; Fri, 23 Sep 2022 02:03:05 -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=HQW5S2m5; 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 S231504AbiIWI61 (ORCPT + 99 others); Fri, 23 Sep 2022 04:58:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231478AbiIWI6S (ORCPT ); Fri, 23 Sep 2022 04:58:18 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7286212CCA6 for ; Fri, 23 Sep 2022 01:58:17 -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 327CF660223C; Fri, 23 Sep 2022 09:58:15 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1663923496; bh=fuqDTgj8aGeCVVCERoOqsketaTXL7x9L7oDYcKO5Kas=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=HQW5S2m5CuWeUACCNWwwXnsmPXSLHbtrAibfrVjT5uSt8FgRemJ3QHaG4J3/M6xar DZCh6ckfcK7cV0mcELEM3XC+FufRYEKqoKJYa2F8I0SIdl1v27K0MnVCIs9id5PW7L SLRo9kUgvTb72oALQioRpST22ge7cdMO/pHtTtBTX4DVJXZsF1Tj04EBQzJfb3nSa6 fwKWp70tItEA9FybuHyefC+l5QK9aAYxa/1roAxbRFkwWDQMxYlGBZnvDeNC4pvRbe epP5DFFpmL+azixuKvMdvGA8PQEQw6g3/4IwOyJprC5xlUxdlUm7IQIrKTOqq4Tv5q QxES9mCCdegiA== Message-ID: Date: Fri, 23 Sep 2022 10:58:12 +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 1/6] ASoC: mediatek: mt8192-mt6359: Expose individual headset jack pins Content-Language: en-US To: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Mark Brown Cc: kernel@collabora.com, Akihiko Odaki , Jaroslav Kysela , Jiaxin Yu , Liam Girdwood , Matthias Brugger , Miaoqian Lin , Takashi Iwai , Tzung-Bi Shih , alsa-devel@alsa-project.org, 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-2-nfraprado@collabora.com> From: AngeloGioacchino Del Regno In-Reply-To: <20220922235951.252532-2-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 rt5682 codec is able to distinguish between two event types: > headphone insertion/removal and headset microphone insertion/removal. > However, currently, the mt8192-mt6359 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 [On MT8192 Asurada Spherion Chromebook] Tested-by: AngeloGioacchino Del Regno