diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2020-03-17 11:33:22 -0500 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-03-19 12:43:04 +0530 |
commit | 1dd6a17f35d7abd604214fddd8f1a102a3504b9a (patch) | |
tree | 9e1e6f96363caa7b8616ccd3177d1236c6057dd7 /drivers/soundwire/cadence_master.h | |
parent | 0cdcdedc15b4fc340c0e1c9c57e6bd3d92cac9d3 (diff) | |
download | lwn-1dd6a17f35d7abd604214fddd8f1a102a3504b9a.tar.gz lwn-1dd6a17f35d7abd604214fddd8f1a102a3504b9a.zip |
soundwire: cadence: make SSP interval programmable
In multi-master mode, the IP will only accept SSP intervals with
integer relationships between the frame rate and the gsync frequency.
E.g for a 48kHz frame rate and 4 kHz gsync signal, the SSP interval
can only be 1, 2, 3, 4, 6, 12.
To simplify we only allow one SSP per gsync interval.
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200317163329.25501-11-pierre-louis.bossart@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/soundwire/cadence_master.h')
-rw-r--r-- | drivers/soundwire/cadence_master.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/soundwire/cadence_master.h b/drivers/soundwire/cadence_master.h index e8fa5c7e09f4..b410656f8194 100644 --- a/drivers/soundwire/cadence_master.h +++ b/drivers/soundwire/cadence_master.h @@ -5,6 +5,9 @@ #ifndef __SDW_CADENCE_H #define __SDW_CADENCE_H +#define SDW_CADENCE_GSYNC_KHZ 4 /* 4 kHz */ +#define SDW_CADENCE_GSYNC_HZ (SDW_CADENCE_GSYNC_KHZ * 1000) + /** * struct sdw_cdns_pdi: PDI (Physical Data Interface) instance * |