From patchwork Tue Nov 29 18:07:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Cezary Rojewski X-Patchwork-Id: 13058950 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 9544EC433FE for ; Tue, 29 Nov 2022 17:58:22 +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 C9A3E168F; Tue, 29 Nov 2022 18:57:29 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz C9A3E168F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1669744699; bh=zts54bfa/kBfj5Q9LHaIlFdBIPur5Oqwg8YwMz4znVI=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=dU1/94yGnDU2M10z0m0cWi96prER853Mmg/OMjjBmQqADvXrSgj/pZmdjUEf6CCHo lZbwOpURC49Ad22+n8vEtq1U3J21z8q/3rt0BuZlyet0qlOc3LAAM29bHLczQUOqs6 gFJJrJ6kb7uYgGtBT1z31FHgKwhJHwHrEXMBG+n0= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 43430F801F7; Tue, 29 Nov 2022 18:57:29 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 2B34FF80212; Tue, 29 Nov 2022 18:57:27 +0100 (CET) Received: from mga06.intel.com (mga06b.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 94317F80137 for ; Tue, 29 Nov 2022 18:57:22 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 94317F80137 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="CN54sh2A" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669744644; x=1701280644; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=zts54bfa/kBfj5Q9LHaIlFdBIPur5Oqwg8YwMz4znVI=; b=CN54sh2A4N3M+4/8CnbwmW3vvoCmh5GA9LUa5bcxNtaLZY+b8PyBSHVN Z9RKCnK3B+PbML1HXfU5idNGWlQMB9eoLPuD8KiDfBlw3Z2TqGM4XKUCM Tctp9sOWnocbt6oUKpbHWyqKtgA4NbgjixqogPBIFeEDuKPSNhWxUAi0n LdripJbEYpz58kvlwnWL8OjupB2x8seQW4WYcEzx/leCGUD+Re/y/aBQf nScJrL0+Nq0gjRvr2QTCmAu7OEZNgyRr3gu1R0ZAki4QesJXUx21d8MAC UX2hSbtCcpILWGFwuAzA4s/naDDyjJWg1oxmznq7J7cPFtQotkQkDx8gx Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10546"; a="377343601" X-IronPort-AV: E=Sophos;i="5.96,204,1665471600"; d="scan'208";a="377343601" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2022 09:50:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10546"; a="645996028" X-IronPort-AV: E=Sophos;i="5.96,204,1665471600"; d="scan'208";a="645996028" Received: from crojewsk-ctrl.igk.intel.com ([10.102.9.28]) by fmsmga007.fm.intel.com with ESMTP; 29 Nov 2022 09:50:34 -0800 From: Cezary Rojewski To: alsa-devel@alsa-project.org, broonie@kernel.org Subject: [PATCH v2 0/2] ASoC: Intel: avs: rt5682: Refactor jack handling Date: Tue, 29 Nov 2022 19:07:36 +0100 Message-Id: <20221129180738.2866290-1-cezary.rojewski@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Cc: Cezary Rojewski , pierre-louis.bossart@linux.intel.com, tiwai@suse.com, hdegoede@redhat.com, amadeuszx.slawinski@linux.intel.com 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" Leftover from recent series [1]. Following changes are proposed for the rt5682 sound card driver: 1) Move jack unassignment from platform_device->remove() to dai_link->exit(). This is done to make jack init and deinit flows symmetric 2) Remove platform_device->remove() function 3) Simplify card->suspend_pre() and card->resume_post() by making use of snd_soc_card_get_codec_dai() helper Changes in v2: - fixed compilation of the first patch in the series by moving offending pieces to the second patch [1]: https://lore.kernel.org/alsa-devel/20221125184032.2565979-1-cezary.rojewski@intel.com/ Amadeusz Sławiński (2): ASoC: Intel: avs: rt5682: Add define for codec DAI name ASoC: Intel: avs: rt5682: Refactor jack handling sound/soc/intel/avs/boards/rt5682.c | 31 ++++++++++++----------------- 1 file changed, 13 insertions(+), 18 deletions(-)