Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp656976rwb; Fri, 23 Sep 2022 02:15:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6uoEWb/Vu8gaTS5vDgyVftKNTZrcYMF/d28yDadyqlWuVnWQYTopEFZkmhs8YDslx6bv0m X-Received: by 2002:a17:907:782:b0:740:7120:c6e7 with SMTP id xd2-20020a170907078200b007407120c6e7mr6031219ejb.313.1663924543730; Fri, 23 Sep 2022 02:15:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663924543; cv=none; d=google.com; s=arc-20160816; b=HOxt/g/A8KNnBoSoBuqr+4shOpWi3V4+MOe7L8b4zB9N6O1gaubef18g8Ki3kYcGbC JYf6oC7n9KwDWJfBwuTiLL6PHGWmpoztpasIjdonZjNjgD0y49LCHTHMG3pD7DgvinKP mOioZzMpUpo1BlrBONEF5h3P2VWjFij8uWaWTYdAPp9418ml8VLoUIVCRKzgVetbSLpT UY47XJ6gDINZ786gafAFEZsOAznZS7vMLpI2d/QduKPDCZTtxGgyt9bHeOglL1YnmVoO VDYxS9NsP8nQK3zji5a/LFV/otifKrxQ6zNOGv5sKwX6QvkWk/iBPxNpesTx6s1rZtfQ UgaA== 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=6Lu51fual+umcflh98oaVL3GuaBNujH/GNY+Xr4o3LY=; b=YT3wd3VQd0fnbhCMsdudTEgkkIIUTAOrltJEfREebbf+T0nMGpdTHWtk5r8qbYdguM cEsIJRYJ1CsaoguHk+Wgs3atH68Z621zthqRhOmowhC7J3S+Vea/blVz1EaO000WhoFX AGk2YFdnfB6IbDzmTgVMyIwn33XtJzSXdA3nUeVj6UozpRd9k27iq7kcd3xqQ5IcAtje B4qqVEgPTQqoshAdSSqy54fLZ0ghhwJ1D0QuOfMrCuH583nFMaa1Vu7jORX0qW2C0ta/ 2EpVoo3msaNpwuxxK0UvHUMIuqk/l92EoPtt29NmzWFE/l8QXGO/57KHmcUgU8dhuI0P 984Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=iD16nnr+; 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 cw17-20020a170906479100b007803f5af214si7867150ejc.436.2022.09.23.02.15.16; Fri, 23 Sep 2022 02:15:43 -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=iD16nnr+; 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 S231462AbiIWI6M (ORCPT + 99 others); Fri, 23 Sep 2022 04:58:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231433AbiIWI6K (ORCPT ); Fri, 23 Sep 2022 04:58:10 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E612412CC8F for ; Fri, 23 Sep 2022 01:58:05 -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 B8481660223B; Fri, 23 Sep 2022 09:58:03 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1663923484; bh=HojcwP0javbKhpGvdwYvvMIBYQZE3Xeo/wFOgWUndY8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=iD16nnr+RBRce4iSEjLfgXsSPpjxVUhKVYNDIXj/tboj1LMFvkL2WS4pBlSJH/Wj3 JIzxEDdPjGy0cQxcs/wWIQwfxLLn3KpQ3DWI0EHTSJ+DM0sgJuYpQQTTooQjBC5ync V+jtcIxZWGSJwPBpRmWLzSCC4EIFR7EigEopN26wCAZxAsUsMzqMCZnaL3Of4+yfIL 45wDe9NSPnTFsVNdDOHEOlgT1imX6pPELEQPQKDUpdbv4sMj5gyYgGAbbGYGgpq7TR 5dL9kwI+BZSq/5PU8wd7MWc66JnIOTlQzF7TIe/EEZF+jA4FfCNKU5arfF2gZL95jb RMyhMhX7rjMiA== Message-ID: Date: Fri, 23 Sep 2022 10:58:01 +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 6/6] ASoC: mediatek: mt8186-rt5682: 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-7-nfraprado@collabora.com> From: AngeloGioacchino Del Regno In-Reply-To: <20220922235951.252532-7-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 mt8186-rt5682 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