Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C3B10C2BA1A for ; Mon, 6 Apr 2020 20:34:46 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 524242072A for ; Mon, 6 Apr 2020 20:34:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="a0vUFRDb" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 524242072A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 9D637822; Mon, 6 Apr 2020 22:33:54 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 9D637822 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1586205284; bh=Pya7f/qPgktTcBOGR+heSksHGZeLv2K+MTTmwaDJ86g=; h=Subject:To:References:From:Date:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=a0vUFRDburiU1VmiypsUobj7cs8kipOHroUVBVan+Xr4gmS/ArtfN1HI/mtezjeg7 rM4ZlQY+EvByQRwh2d3eP+Xh8xK0LlRRePMLnqSx6lRYHi/HjIlMO+gt4t/aAa2PAj NfMnR4iUI8k9gr2pkyVF1dXOj4oQLhYFFKWwnIxk= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 0A080F80142; Mon, 6 Apr 2020 22:33:54 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id CA833F80143; Mon, 6 Apr 2020 22:33:45 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 0F00EF800CC for ; Mon, 6 Apr 2020 22:33:41 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 0F00EF800CC IronPort-SDR: r1xqGpFlIQFJwh1D57LsTmIbVrjS51FvvpRhvBKWbOce+hswt57FVwqkvxLp5qQ7tE5lOUmXFK 7C0PQwoN98ig== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Apr 2020 13:33:38 -0700 IronPort-SDR: 52clbgKqT2S4Kp/3T53Awfp9PSUN4t1ngCbZpKtZ731wgosgpS+kqES0TK1i0nKEtyei624pCH BXKEC1/AyUxg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,352,1580803200"; d="scan'208";a="424488414" Received: from stuartca-mobl.amr.corp.intel.com (HELO [10.134.36.144]) ([10.134.36.144]) by orsmga005.jf.intel.com with ESMTP; 06 Apr 2020 13:33:36 -0700 Subject: Re: [PATCH 4/5] chtrt5645: Remove bogus JackHWMute settings To: Jaroslav Kysela , Hans de Goede References: <20200405183454.34515-1-hdegoede@redhat.com> <20200405183454.34515-4-hdegoede@redhat.com> <3198cbfb-f498-2c82-88cd-c8b7d0b53574@linux.intel.com> <2ba90327-6a23-7c5f-5b4e-f01e51b59ace@redhat.com> From: Pierre-Louis Bossart Message-ID: Date: Mon, 6 Apr 2020 13:36:36 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Cc: alsa-devel@alsa-project.org, Mateusz Gorski X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" >>> If I follow the logic, I guess we should also remove the JackHWMute >>> for sof-bdw-rt5677, hda-dsp and HDA-Intel. I can't think of a >>> hardware limitation preventing the headset mic from being used while >>> the speakers are used for playback. Likewise the rt5650 is a cheaper >>> version of rt5645 so the same applies. >> >> Right AFAIK: >> >> JackHWMute "foo" >> >> Means that the JackControl listed in the same section does >> something at the hardware level which makes it impossible >> for the "foo" input / output to function until the jack >> is removed. Typically this would be something like actually >> disconnecting the speakers at the electrical level. >> >> So almost always using it is wrong. > > I agree. The description is really straight (use-case.h): > > "Note that JackHWMute should be used only when the hardware enforces the > automatic muting." > > Pierre, it seems that hds-dsp uses JackHWMute for Speaker and > Headphones, I think that it should be removed. Otherwise PA thinks that > those devices cannot be used simultaneously when user wants to.. Right, that hda-dsp UCM config probably needs more work between the JackHWMute and only supporting 2 HDMI paths, but that's not maintained by me or anyone on the SOF team. Adding Mateusz Gorski in Cc: