Skip to content

Commit d0a69cd

Browse files
plbossartvinodkoul
authored andcommitted
soundwire: intel: add more values for SYNCPRD
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 <pierre-louis.bossart@linux.intel.com> Reviewed-by: Rander Wang <rander.wang@intel.com> Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Link: https://lore.kernel.org/r/20240326092030.1062802-4-yung-chuan.liao@linux.intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 7eca9c7 commit d0a69cd

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

include/linux/soundwire/sdw_intel.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@
3434
/* SYNC */
3535
#define SDW_SHIM_SYNC 0xC
3636

37-
#define SDW_SHIM_SYNC_SYNCPRD_VAL_24 (24000 / SDW_CADENCE_GSYNC_KHZ - 1)
38-
#define SDW_SHIM_SYNC_SYNCPRD_VAL_38_4 (38400 / SDW_CADENCE_GSYNC_KHZ - 1)
37+
#define SDW_SHIM_SYNC_SYNCPRD_VAL_24 (24000 / SDW_CADENCE_GSYNC_KHZ - 1)
38+
#define SDW_SHIM_SYNC_SYNCPRD_VAL_24_576 (24576 / SDW_CADENCE_GSYNC_KHZ - 1)
39+
#define SDW_SHIM_SYNC_SYNCPRD_VAL_38_4 (38400 / SDW_CADENCE_GSYNC_KHZ - 1)
40+
#define SDW_SHIM_SYNC_SYNCPRD_VAL_96 (96000 / SDW_CADENCE_GSYNC_KHZ - 1)
3941
#define SDW_SHIM_SYNC_SYNCPRD GENMASK(14, 0)
4042
#define SDW_SHIM_SYNC_SYNCCPU BIT(15)
4143
#define SDW_SHIM_SYNC_CMDSYNC_MASK GENMASK(19, 16)

0 commit comments

Comments
 (0)