From patchwork Tue Oct 1 06:17:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bard Liao X-Patchwork-Id: 13817499 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) (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 762631BC062 for ; Tue, 1 Oct 2024 06:17:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.12 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727763475; cv=none; b=TAWOCf0eb8p9i0yV7TjSv1WvTxyoICAJH0J5IhWd3WGasv2jtfVFjsVysZFhJn2MJIG3tQ3oi0KFgg48Hrt7F/owWcsZKeh+arOOu2cJSv501gspzu6l+4KTH2MpD4iKksfJV7nchLsNiMsRsDWT25LL5pISAt5usmBq3rO5qqU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727763475; c=relaxed/simple; bh=/vvxG2YZ060PWqdmjDjmFRWeluG8w2wXG/qW43atsMk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=jCVBeyH43bjsgWAIR+wCfj/dn7ASeRk+URAWZSfEBkrotJAfZ+3/prv3VcUZJ+Qqm8Ur5Fvp3qGynVwTaPTFdaxwiSHXyKhTofs3eVOI09gCHoJoR/HHAVplUZgriK1K2Qm0+E9DxQhPxsCHHX4Dx5iF6qgSgBa1HCkEzTKHuT0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=j2uuJK3T; arc=none smtp.client-ip=192.198.163.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="j2uuJK3T" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1727763473; x=1759299473; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/vvxG2YZ060PWqdmjDjmFRWeluG8w2wXG/qW43atsMk=; b=j2uuJK3TgcWOcNgEOl+niQDURZCYjd9WpW6MQHcuHgLLJvIbjpMRolmX FUn+lc3X0VYTRZxz2YPt+oJjhQgTt7w2oQPGApMWYzW6NUZwf9ukJ7WM3 O7rTNpEbJHqaLD/dKxQSYYiy7jt6jBp/2DoAnioqHk0QLKoFzJFfW+V6M tGcAW//rQqdaGZAdlP/6cBwx/dlcT99RnfK7Eme6P/j9md49Ch9BinSM7 vIK5AabyfswrUO5a7qGeKHesqUmEi1NHge/ool9yGtyAy9Vp1QuwcgSGu lYkV6lgyoj3SZSFBuDGoNk0vUby0vWChUSVQKC3UMQbTbOwQF5kHdmCIU w==; X-CSE-ConnectionGUID: 0F0KEhXySP634G/8rhGEpw== X-CSE-MsgGUID: WwJXWqfoRJCm8XS1fi+L4A== X-IronPort-AV: E=McAfee;i="6700,10204,11211"; a="30762014" X-IronPort-AV: E=Sophos;i="6.11,167,1725346800"; d="scan'208";a="30762014" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Sep 2024 23:17:53 -0700 X-CSE-ConnectionGUID: fjHUC8Q9TliBAy31MDCL0g== X-CSE-MsgGUID: bnSlixAYTmW4SLHIk8Msbw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,167,1725346800"; d="scan'208";a="73509312" Received: from anmitta2-mobl4.gar.corp.intel.com (HELO yungchua-desk.intel.com) ([10.247.119.243]) by fmviesa009-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Sep 2024 23:17:51 -0700 From: Bard Liao To: broonie@kernel.org, tiwai@suse.de Cc: linux-sound@vger.kernel.org, pierre-louis.bossart@linux.dev, bard.liao@intel.com, peter.ujfalusi@linux.intel.com Subject: [PATCH 1/2] ASoC: Intel: soc-acpi-intel-rpl-match: add missing empty item Date: Tue, 1 Oct 2024 14:17:37 +0800 Message-ID: <20241001061738.34854-2-yung-chuan.liao@linux.intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241001061738.34854-1-yung-chuan.liao@linux.intel.com> References: <20241001061738.34854-1-yung-chuan.liao@linux.intel.com> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 There is no links_num in struct snd_soc_acpi_mach {}, and we test !link->num_adr as a condition to end the loop in hda_sdw_machine_select(). So an empty item in struct snd_soc_acpi_link_adr array is required. Fixes: 65ab45b90656 ("ASoC: Intel: soc-acpi: Add match entries for some cs42l43 laptops") Signed-off-by: Bard Liao Reviewed-by: Péter Ujfalusi Reviewed-by: Charles Keepax --- sound/soc/intel/common/soc-acpi-intel-rpl-match.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/intel/common/soc-acpi-intel-rpl-match.c b/sound/soc/intel/common/soc-acpi-intel-rpl-match.c index bc8817633b81..b83ac2e6337c 100644 --- a/sound/soc/intel/common/soc-acpi-intel-rpl-match.c +++ b/sound/soc/intel/common/soc-acpi-intel-rpl-match.c @@ -198,6 +198,7 @@ static const struct snd_soc_acpi_link_adr rpl_cs42l43_l0[] = { .num_adr = ARRAY_SIZE(cs42l43_0_adr), .adr_d = cs42l43_0_adr, }, + {} }; static const struct snd_soc_acpi_link_adr rpl_sdca_3_in_1[] = { From patchwork Tue Oct 1 06:17:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bard Liao X-Patchwork-Id: 13817500 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) (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 B6655198E9B for ; Tue, 1 Oct 2024 06:17:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.12 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727763478; cv=none; b=NtRYm7OoCCFI8pxUH1wxcLr0SK/iwanJB7iea6L3psQ6DJWlD1Rq7b0d7p6lic0rL4VNucYYHVBOK2YaCVxBf2/eDA61L6Q3pqCCa6gbi7YPg/juNMV4N7GjVhnrqqepTp1vL7AS34T7LZ+oKL5VKmjpV31vrAmfXMivHm1X9h4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727763478; c=relaxed/simple; bh=b5vS8oWRW0m7VRLtAFZqrzRHhEhK2mSIEuv0/Q3g0Z4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cfzvve7jq+LUeeZhTZoqVMnb6OV1p2iWg1h8/SmJJDWChsCapsLcO1ok6HPVVeCe5WDf1H19sDAw2LV3ASuoiNPP0BgKOkFquI/ayHI1gs9fPsbVLLm7KJsqctbKshXaGuu2PoIXS2xbGHxUv6090Ybz7/WIUTqpr9w++MfdzxM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=kgEd8w/h; arc=none smtp.client-ip=192.198.163.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="kgEd8w/h" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1727763476; x=1759299476; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=b5vS8oWRW0m7VRLtAFZqrzRHhEhK2mSIEuv0/Q3g0Z4=; b=kgEd8w/hU4vBo4TL5DRT7vOrDJRAADjDc1JhtUmAd1z7bR7Oz66Ru2L3 Dp6MT3J/esVZo8JlnGqdfuhgOdyPEch+8LddtU5TQXfM14I+WkWWIQtxv NJtmPeiNAWMIccbAx1lOhApIE5efvsCIt3JgEIMANfH6h7NpFmta2+k80 RH9WqNiJ1i/9/ZlPfGEkqe//9FnmmITE7GMsvOKqLfr6fVnAsdnKxtQYB Sap++rW6AWweG95sfesB5qYVgulxC6bCJBfHCH4QLY/moME3ySWzE7m00 Xg8DTB3Tvu4SLPNcS4h893GbJY8MWhT8awrfhAx+3MTGQkrMNU9m2/9TZ g==; X-CSE-ConnectionGUID: plivgHAZSkSRpiJx5CPqGg== X-CSE-MsgGUID: OJ/ysPMaSgu7vO9vO6KTOQ== X-IronPort-AV: E=McAfee;i="6700,10204,11211"; a="30762019" X-IronPort-AV: E=Sophos;i="6.11,167,1725346800"; d="scan'208";a="30762019" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Sep 2024 23:17:56 -0700 X-CSE-ConnectionGUID: TZ9tW9etQ92oq4nrGtZx5g== X-CSE-MsgGUID: kw+JxdNhRjuUp8Jg8rH6Iw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,167,1725346800"; d="scan'208";a="73509320" Received: from anmitta2-mobl4.gar.corp.intel.com (HELO yungchua-desk.intel.com) ([10.247.119.243]) by fmviesa009-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Sep 2024 23:17:53 -0700 From: Bard Liao To: broonie@kernel.org, tiwai@suse.de Cc: linux-sound@vger.kernel.org, pierre-louis.bossart@linux.dev, bard.liao@intel.com, peter.ujfalusi@linux.intel.com Subject: [PATCH 2/2] ASoC: Intel: soc-acpi: arl: Fix some missing empty terminators Date: Tue, 1 Oct 2024 14:17:38 +0800 Message-ID: <20241001061738.34854-3-yung-chuan.liao@linux.intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241001061738.34854-1-yung-chuan.liao@linux.intel.com> References: <20241001061738.34854-1-yung-chuan.liao@linux.intel.com> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Charles Keepax Fixes: c0524067653d ("ASoC: Intel: soc-acpi: arl: Add match entries for new cs42l43 laptops") Signed-off-by: Charles Keepax Signed-off-by: Bard Liao --- sound/soc/intel/common/soc-acpi-intel-arl-match.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/intel/common/soc-acpi-intel-arl-match.c b/sound/soc/intel/common/soc-acpi-intel-arl-match.c index c97c961187dd..072b8486d072 100644 --- a/sound/soc/intel/common/soc-acpi-intel-arl-match.c +++ b/sound/soc/intel/common/soc-acpi-intel-arl-match.c @@ -191,6 +191,7 @@ static const struct snd_soc_acpi_link_adr arl_cs42l43_l0[] = { .num_adr = ARRAY_SIZE(cs42l43_0_adr), .adr_d = cs42l43_0_adr, }, + {} }; static const struct snd_soc_acpi_link_adr arl_cs42l43_l2[] = { @@ -199,6 +200,7 @@ static const struct snd_soc_acpi_link_adr arl_cs42l43_l2[] = { .num_adr = ARRAY_SIZE(cs42l43_2_adr), .adr_d = cs42l43_2_adr, }, + {} }; static const struct snd_soc_acpi_link_adr arl_cs42l43_l2_cs35l56_l3[] = {