From patchwork Mon Feb 26 12:44:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cezary Rojewski X-Patchwork-Id: 13572070 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D8A2F60860 for ; Mon, 26 Feb 2024 12:43:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708951395; cv=none; b=rSeiu4Y3mRLF27iv+7VQKyNvFmGqzkZdTppC2rZyikREgt1oNfxmUSrLe6KtIM5SBjfS3RlWFGilR5dPeIlUeGQbx4ENi85rU9hH8C79VaSfnznclqv2JHRtYAo4XAf9zQ7mliiSnfG0YDQ1ysrnWdH+v2z56PhqOqgAQKU3fvs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708951395; c=relaxed/simple; bh=cewHMOUP9XE8f1iBRQp0XY/AtymJk2wyw8t26geqAWQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=hfKDVjCM9h207dnMUjqmy/XYAHXu88BhqA1k77RoY8NyIEtKL+OzxkEQ6kyeRth7uaXiZxzIdM1E9CP7PRRQqTcf6iQCSM8iC+nMMSpDtWm6CVoqQfOBCj4UsqNHFerXzjvYjkjhIfTx/x9fwkYWVruWjemVumgVs2CB1PwQ+/8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=GlzSYhCu; arc=none smtp.client-ip=192.198.163.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="GlzSYhCu" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708951394; x=1740487394; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=cewHMOUP9XE8f1iBRQp0XY/AtymJk2wyw8t26geqAWQ=; b=GlzSYhCu0LydwGzjPYcoLRYOl38RHO+hRGrVoS0bRJyu9Zu4pOvuwvXl MMc/yK1JZOBEGO5PN4UKJ52ahv09bOwSa4COB3U7OC8k/lK7qoFeMPnEs iIpVKS5wd0qU1U1RZBIAizQl58vxKmxnejfuo+oDiv9ir4NPTA5w+0wU6 hxyOvQmwEl80REho6rZy04aPoBPyHMoV/BqinwaXOvO6cNDHrCfh5IHKo Q1ddWOIg2tY93yWtM8QxSH/AgKrblG//ds3AFsQZQ9cW+48Byg24+XIsi z5LMqkGSSRHMvXZew5ogRyVX/5hcxCPl2SXqzNHbpRHxhKL1UZPEG0Eip w==; X-IronPort-AV: E=McAfee;i="6600,9927,10995"; a="28658272" X-IronPort-AV: E=Sophos;i="6.06,185,1705392000"; d="scan'208";a="28658272" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Feb 2024 04:43:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,185,1705392000"; d="scan'208";a="6688625" Received: from crojewsk-ctrl.igk.intel.com ([10.102.9.28]) by orviesa009.jf.intel.com with ESMTP; 26 Feb 2024 04:43:11 -0800 From: Cezary Rojewski To: broonie@kernel.org Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, tiwai@suse.com, perex@perex.cz, jani.nikula@linux.intel.com, joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com, tvrtko.ursulin@linux.intel.com, intel-gfx@lists.freedesktop.org, amadeuszx.slawinski@linux.intel.com, pierre-louis.bossart@linux.intel.com, hdegoede@redhat.com, Cezary Rojewski Subject: [PATCH v3 5/5] ALSA: hda: Reuse for_each_pcm_streams() Date: Mon, 26 Feb 2024 13:44:32 +0100 Message-Id: <20240226124432.1203798-6-cezary.rojewski@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240226124432.1203798-1-cezary.rojewski@intel.com> References: <20240226124432.1203798-1-cezary.rojewski@intel.com> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Use the macro to improve readability. Signed-off-by: Cezary Rojewski --- sound/pci/hda/hda_codec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index 12f02cdc9659..2cac337f5263 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c @@ -3313,7 +3313,7 @@ int snd_hda_codec_parse_pcms(struct hda_codec *codec) list_for_each_entry(cpcm, &codec->pcm_list_head, list) { int stream; - for (stream = 0; stream < 2; stream++) { + for_each_pcm_streams(stream) { struct hda_pcm_stream *info = &cpcm->stream[stream]; if (!info->substreams)