On Thu, 2018-05-24 at 10:50 +0300, Seppo Ingalsuo wrote:
On 24.05.2018 05:47, Ranjani Sridharan wrote:
Add support for adding DMIC config for DMIC DAI type.
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com
topology/test/test-capture.m4 | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-)
diff --git a/topology/test/test-capture.m4 b/topology/test/test- capture.m4 index a1f283f..ae52991 100644 --- a/topology/test/test-capture.m4 +++ b/topology/test/test-capture.m4 @@ -69,10 +69,19 @@ PCM_CAPTURE_ADD(Passthrough, 3, 0, 0, PIPELINE_PCM_2) # TEST_SSP_DATA_BITS bit I2S using TEST_SSP_PHY_BITS bit sample conatiner on SSP TEST_DAI_PORT # DAI_CONFIG(TEST_DAI_TYPE, TEST_DAI_PORT, TEST_DAI_LINK_NAME,
SSP_CONFIG(TEST_SSP_MODE,
DAI_CLOCK(mclk, TEST_SSP_MCLK,
codec_mclk_in),
DAI_CLOCK(bclk, TEST_SSP_BCLK, codec_slave),
DAI_CLOCK(fsync, 48000, codec_slave),
DAI_TDM(2, TEST_SSP_PHY_BITS, 3, 3),
SSP_SAMPLE_BITS(TEST_DAI_TYPE,
TEST_DAI_PORT,
TEST_SSP_DATA_BITS)))
ifelse(TEST_DAI_TYPE, `SSP',
SSP_CONFIG(TEST_SSP_MODE,
DAI_CLOCK(mclk, TEST_SSP_MCLK,
codec_mclk_in),
DAI_CLOCK(bclk, TEST_SSP_BCLK,
codec_slave),
DAI_CLOCK(fsync, 48000, codec_slave),
Does this hardwire SSP (I2S) sample rate to 48 kHz? It's not critical now but I'd imagine that there might be need for other sample rates in some special applications (save power or have some IC in the system without 48k support).
No this is just a test m4 file. We can change the sample rate as needed.
DAI_TDM(2, TEST_SSP_PHY_BITS, 3, 3),
SSP_SAMPLE_BITS(TEST_DAI_TYPE,
TEST_DAI_PORT,
TEST_SSP_DATA_BITS)),
TEST_DAI_TYPE, `DMIC',
DMIC_CONFIG(TEST_DMIC_DRIVER_VERSION,TEST_DMIC_C
LK_MIN,
TEST_DMIC_CLK_MAX,
TEST_DMIC_DUTY_MIN,
TEST_DMIC_DUTY_MAX,
TEST_DMIC_REQUESTED_PDM_COUNT,
TEST_DMIC_PDM_0_ENABLE,
TEST_DMIC_PDM_1_ENABLE,
TEST_DMIC_SAMPLE_RATE,
DMIC_WORD_LENGTH(TEST_DAI_FORMAT),
TEST_DAI_TYPE, TEST_DAI_PORT),
`'))
Sound-open-firmware mailing list Sound-open-firmware@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/sound-open-firmware