From patchwork Wed Aug 17 13:11:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= X-Patchwork-Id: 12945858 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 AADF9C25B08 for ; Wed, 17 Aug 2022 13:12:13 +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 7FA91857; Wed, 17 Aug 2022 15:11:21 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 7FA91857 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1660741931; bh=nF9a1ygfaxp2mCx1j2qib7Mrnc7Es43ARNyD+iFbnpk=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=gCr4bR8+fY/HLQfrJ1WIspEPdeAmRaM30tiWpQmaexcpp80DFL8Gem2bscv5KsF3I CUbllVbvz1neNqUymUBsnr7Fy+5reaHTb8gVyKurE9a/XmQer2vOBaPdPG01cpgw2L kYOo1bSntInm4AfKDgUm2NL/3z/wMA5OvoYK1ox8= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 1BDD2F8051A; Wed, 17 Aug 2022 15:11:21 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 4D94AF80534; Wed, 17 Aug 2022 15:11:19 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (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 7DA30F80082 for ; Wed, 17 Aug 2022 15:11:11 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 7DA30F80082 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="OjWiCNVy" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660741873; x=1692277873; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=nF9a1ygfaxp2mCx1j2qib7Mrnc7Es43ARNyD+iFbnpk=; b=OjWiCNVy6/3i6M2c/O+EHg2/RsgnIJsYRVlEYxRaQqjtbtzGvgPG7VwQ XYkrPJVLK5iJ3wRjwKesExc/WHN23FE+1BB25NtqSBYOEp/xkpWMnB4Hn Y/mrczZwU7UfWjHYUijQjCBQafA4R23WAqozGNNP/1jXwVziCJNy4zApl Cw+auCLhQkO8fZopnZuS28zp5bIMaqgOELQSEcXnv83cl3y/4rXtMczbc 4sy7HtGHS014YO1dpErVW0or38zeRULfyVQbl6CPAPJt5zWaQFPF9aam9 f3pkxiJ0FqXOjHh8N3BAVgTMMzuYC9fY8QUzQlgYRtUZLE3s/hcFaznBj w==; X-IronPort-AV: E=McAfee;i="6500,9779,10442"; a="318496064" X-IronPort-AV: E=Sophos;i="5.93,243,1654585200"; d="scan'208";a="318496064" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Aug 2022 06:11:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,243,1654585200"; d="scan'208";a="667609938" Received: from dev2 (HELO DEV2.igk.intel.com) ([10.237.148.94]) by fmsmga008.fm.intel.com with ESMTP; 17 Aug 2022 06:11:08 -0700 From: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= To: Takashi Iwai , alsa-devel@alsa-project.org Subject: [PATCH 0/4] ALSA: hda: Minor cleanups Date: Wed, 17 Aug 2022 15:11:33 +0200 Message-Id: <20220817131137.3978523-1-amadeuszx.slawinski@linux.intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Cc: Cezary Rojewski , =?utf-8?q?Amadeusz_S=C5=82a?= =?utf-8?q?wi=C5=84ski?= , linux-kernel@vger.kernel.org, Pierre-Louis Bossart 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" First two patches are small refactoring of code to use poll macros instead of open coding register checks. Following two patches remove unused defines from code. Amadeusz Sławiński (4): ALSA: hda: Move stream-register polling macros ALSA: hda: Rework snd_hdac_stream_reset() to use macros ALSA: hda: Remove unused MAX_PIN_CONFIGS constant ALSA: hda: Remove unused defines include/sound/hdaudio.h | 6 ++++++ include/sound/hdaudio_ext.h | 6 ------ sound/hda/hdac_stream.c | 27 +++++++-------------------- sound/pci/hda/hda_intel.c | 7 ------- sound/pci/hda/hda_sysfs.c | 2 -- 5 files changed, 13 insertions(+), 35 deletions(-)