Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3198513lqp; Tue, 26 Mar 2024 02:27:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVre75pozWZDZDaU7zIoI7Yi0POOqT5vgCGIa4XsGoNpIsPzVwiAUG8VV/5u2ewmQ6AtUu5Q1MKiu4rN8aIq9RltEcz6CkC+igYDHUhBg== X-Google-Smtp-Source: AGHT+IEIpmOCJA/fQ1hCK/jqu7P4IBR0QQqU0YzYXjGFPZE3EowR+paUr+TdgK7zt4uez55jWuWH X-Received: by 2002:a4a:ee82:0:b0:5a5:1dd8:e627 with SMTP id dk2-20020a4aee82000000b005a51dd8e627mr8941816oob.0.1711445255857; Tue, 26 Mar 2024 02:27:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711445255; cv=pass; d=google.com; s=arc-20160816; b=JJ4vjyXhGHi5f2DjLVNHBmoWxXPyNHb0vjux6zSlil+AT1eFXVQpVpEJDN//ELrpu9 7BfyyhqDGR0c+LNvzVLQlmj1V+ZmJ7h2jvv+JPyXqD8KxZzaCYbcBA/dupIBcvkgg1ya ovhgMSQIwmF/mCZiD49FZk9p1OJ45eVxVUweoDHLY4TTwsOaJY1AbPoooQNQCuvhW1xI Oa85KetwqVqey7Sx/IVgBznsj6RFeN3B7AmvwSQm72lsn8MhWM+ImuH6VrtxH8g+rzn7 eGHlvECqjSgsp1qlr4RunFk1eSwc6vvZC09R2nk+bk9VxL7cBpAi+2SpGfton8SavynZ 0LxA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=9NlnM8ZsxCbwZ5edw60hHWyNeQuXoM/S6xWG7vrMXwk=; fh=DQfWcJ7a6lABpgAjlslbt+lALChD4jPOSQFW0XC7h54=; b=c4ciRoRW7tt21hE5bpLxy/BzOKdjIaDMRhZKtAdYIq4MOwGwjbL9XLm4+Ixt0lQr+M 5yoKH9MvQbnTRbT2GL3s/V0RRiv5y+ozUWG1GVv0Hk69WVMcRqvpbhnHkUzvcj0w7tsM y1tl49bN05OlPA3hR0C69wMjQVKFbmwLSCTg0lU89uDa628pG3pTPZ0lSpCtwSBiw68T +P0a/g1bEA6Ph6EF14djdRc2rojTXrriHVqJXivop4YGUgMROM1AQuLCMxxWtcAJh2ya JNs/U1IHKHM8o5FICnfbGkEwZVmficvsHUWXVjt88lUkebfi93SjW22qr9rKXYG9kwak AgbA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QjVknL2b; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-118652-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118652-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v22-20020a05622a015600b004316074ea76si2640408qtw.331.2024.03.26.02.27.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 02:27:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118652-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QjVknL2b; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-118652-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118652-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E39991C39542 for ; Tue, 26 Mar 2024 09:27:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 718F312883B; Tue, 26 Mar 2024 09:20:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="QjVknL2b" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (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 0DE2B524BA; Tue, 26 Mar 2024 09:20:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711444842; cv=none; b=TqL+/5Ic5yuxbzuHjAOoYyao0CMxWUyVu/trst+RH6m0nyzkZ2mQBVdPqqdyPPsZUrebTftdIzJXPdzNmiOB+z23/9hcWEnBQguT/o1aR8LkaN9clYXJNJKvFrMrjFQKKYVm7D08AuF/Lm3jiKm/4WUGa5OFC/4ylXcW9ITPzZg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711444842; c=relaxed/simple; bh=IMs8UHVx4/A40f0KUrXcDBw0aT02Q0zAJAjjhOWtVWA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Sa9aScXVyWRAp7htJYuJ1XMmIVWjTmq3fQIbWRAB9UzGaCAGXOCIr1g3WBb08VSLinVYolGUNAJRefEIEaDl23YFPzCS61VNPE99gHzBg1j3aNQBZzpXtj3zLBf/P5BoIRWDrdyN24XoakPWVi56kQ/0Henq8m5qEd0omi0HLh0= 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=QjVknL2b; arc=none smtp.client-ip=192.198.163.17 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711444841; x=1742980841; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=IMs8UHVx4/A40f0KUrXcDBw0aT02Q0zAJAjjhOWtVWA=; b=QjVknL2bLx4RAwj1+i08/lLqCTeFHCCh9IUQlaArDtJFhxRRb8pjmhfW TyhHCZBJjfr+AN9ZPs0obg10cqqZifhBR07ossGfhDvDxzNXEMMKNGGTj dMncuspSBZlH8ZbjP/3e+8uRjrW/MjvRxvgdz2MnKZXhUOnzGTZ1ACPil DVFUZXXFo1z2WSsDxCrdWMaRCQQW12PAnS5IoyQk7K73x92tSluxfoHtl qdKBnHAJSxFFs74SuWbFMIsw/ExfmFoZrWz8XRG+iEYdSKW2yS/9Vw9dI JuBCrPILoNwmgSOLoxjniNv8D3VLOjtGYsxRTMyqKuoE/JJ7nQFnyM+Yw w==; X-IronPort-AV: E=McAfee;i="6600,9927,11024"; a="6350343" X-IronPort-AV: E=Sophos;i="6.07,155,1708416000"; d="scan'208";a="6350343" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Mar 2024 02:20:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,155,1708416000"; d="scan'208";a="16293266" Received: from yungchua-ws.ostc.intel.com (HELO yungchua-ws.intel.com) ([10.54.69.90]) by orviesa007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Mar 2024 02:20:36 -0700 From: Bard Liao To: linux-sound@vger.kernel.org, vkoul@kernel.org Cc: vinod.koul@linaro.org, linux-kernel@vger.kernel.org, pierre-louis.bossart@linux.intel.com, bard.liao@intel.com Subject: [PATCH 3/7] soundwire: intel: add more values for SYNCPRD Date: Tue, 26 Mar 2024 09:20:26 +0000 Message-Id: <20240326092030.1062802-4-yung-chuan.liao@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240326092030.1062802-1-yung-chuan.liao@linux.intel.com> References: <20240326092030.1062802-1-yung-chuan.liao@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Pierre-Louis Bossart Starting with MeteorLake, the input to the SoundWire IP can be 24.576 MHz (aka Audio Cardinal Clock) or 96 MHz (Audio PLL). Signed-off-by: Pierre-Louis Bossart Reviewed-by: Rander Wang Signed-off-by: Bard Liao --- include/linux/soundwire/sdw_intel.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/linux/soundwire/sdw_intel.h b/include/linux/soundwire/sdw_intel.h index 00bb22d96ae5..fa40b85d5019 100644 --- a/include/linux/soundwire/sdw_intel.h +++ b/include/linux/soundwire/sdw_intel.h @@ -34,8 +34,10 @@ /* SYNC */ #define SDW_SHIM_SYNC 0xC -#define SDW_SHIM_SYNC_SYNCPRD_VAL_24 (24000 / SDW_CADENCE_GSYNC_KHZ - 1) -#define SDW_SHIM_SYNC_SYNCPRD_VAL_38_4 (38400 / SDW_CADENCE_GSYNC_KHZ - 1) +#define SDW_SHIM_SYNC_SYNCPRD_VAL_24 (24000 / SDW_CADENCE_GSYNC_KHZ - 1) +#define SDW_SHIM_SYNC_SYNCPRD_VAL_24_576 (24576 / SDW_CADENCE_GSYNC_KHZ - 1) +#define SDW_SHIM_SYNC_SYNCPRD_VAL_38_4 (38400 / SDW_CADENCE_GSYNC_KHZ - 1) +#define SDW_SHIM_SYNC_SYNCPRD_VAL_96 (96000 / SDW_CADENCE_GSYNC_KHZ - 1) #define SDW_SHIM_SYNC_SYNCPRD GENMASK(14, 0) #define SDW_SHIM_SYNC_SYNCCPU BIT(15) #define SDW_SHIM_SYNC_CMDSYNC_MASK GENMASK(19, 16) -- 2.34.1