From patchwork Thu Jan 6 11:01:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans de Goede X-Patchwork-Id: 530363 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 6D013C433F5 for ; Thu, 6 Jan 2022 11:03:18 +0000 (UTC) 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 495711853; Thu, 6 Jan 2022 12:02:26 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 495711853 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1641466996; bh=uhxIsfbgIKn8/IGo/+ldQ4u9+5aNAuUcESg7h08AJ24=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=U2+lwLosVOugf+7r+xQtDmZXHufapQ4ZSA8V6TonXo6/uBKYzo+bKkU+0YbXZcuX3 pBNxSf+B+qJz4h70k7hdwVjOvjHOYZWtTsDHBt0JrinAZC+A/AiLS3keaHUBk2ebMi XuNj4O0Vd27i6kbXRBDYmD5c3EaHSkwUwgKBgQng= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id D4E94F800AE; Thu, 6 Jan 2022 12:01:48 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id BBD1BF80161; Thu, 6 Jan 2022 12:01:46 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 EC367F80155 for ; Thu, 6 Jan 2022 12:01:40 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz EC367F80155 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="fQzz04w8" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1641466898; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KC1OCZZHUf03AEoZ1lwy96hV43haOFe5Zg4IAoX9q1Y=; b=fQzz04w8t+JoTzq5LVA+D7m8n2PQCzQdhpJh8B3jfrxn65q/gKv0sIgHM8dSuMjQN7LoV8 l2vzYrVfmHhUYfg7XtrR10zcChP7jj6iCNWAcGAHtX/wTv69vjvJmw0eNg9Prh/57Nzamd k/8FYb+Uw77FO2HwhnYGO80uULDl3Mw= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-156-4fDIvHk4PHeIUsRS6BT8LQ-1; Thu, 06 Jan 2022 06:01:33 -0500 X-MC-Unique: 4fDIvHk4PHeIUsRS6BT8LQ-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E509D18C8C00; Thu, 6 Jan 2022 11:01:31 +0000 (UTC) Received: from shalem.redhat.com (unknown [10.39.192.137]) by smtp.corp.redhat.com (Postfix) with ESMTP id 814EF7E12C; Thu, 6 Jan 2022 11:01:29 +0000 (UTC) From: Hans de Goede To: Cezary Rojewski , Pierre-Louis Bossart , Liam Girdwood , Jie Yang , Mark Brown Subject: [PATCH v2 0/6] ASoC: rt5640: 1 Bugfix + Add support for external GPIO jack-detect Date: Thu, 6 Jan 2022 12:01:22 +0100 Message-Id: <20220106110128.66049-1-hdegoede@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=hdegoede@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Cc: Hans de Goede , alsa-devel@alsa-project.org, Stephan Gerhold , Bard Liao 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" Hi All, Here is v2 of my series to fix jack-detect not working on some x86 Bay Trail devices. Now rebased on top of the latest broonie/sound.git/for-next. New this version is a bug-fix for an issue which I noticed in the current broonie/sound.git/for-next (patch 1 of the series). Since this fixes a NULL-ptr deref in current for-next patch 1 should be included into a pull-req for 5.17. The rest of the series can go to either 5.17 or 5.18. Regards, Hans Hans de Goede (6): ASoC: rt5640: Fix possible NULL pointer deref on resume ASoC: rt5640: Change jack_work to a delayed_work ASoC: rt5640: Allow snd_soc_component_set_jack() to override the codec IRQ ASoC: rt5640: Add support for boards with an external jack-detect GPIO ASoC: Intel: bytcr_rt5640: Support retrieving the codec IRQ from the AMCR0F28 ACPI dev ASoC: Intel: bytcr_rt5640: Add support for external GPIO jack-detect sound/soc/codecs/rt5640.c | 71 +++++++++++++++++----- sound/soc/codecs/rt5640.h | 11 +++- sound/soc/intel/boards/bytcr_rt5640.c | 86 +++++++++++++++++++++++++-- 3 files changed, 146 insertions(+), 22 deletions(-)