Lines Matching refs:devfmt
635 struct catpt_ssp_device_format devfmt; in catpt_dai_pcm_new() local
639 devfmt.iface = dai->driver->id; in catpt_dai_pcm_new()
640 devfmt.channels = codec_dai->driver->capture.channels_max; in catpt_dai_pcm_new()
642 switch (devfmt.iface) { in catpt_dai_pcm_new()
644 devfmt.mclk = CATPT_MCLK_FREQ_24_MHZ; in catpt_dai_pcm_new()
646 switch (devfmt.channels) { in catpt_dai_pcm_new()
648 devfmt.mode = CATPT_SSP_MODE_TDM_PROVIDER; in catpt_dai_pcm_new()
649 devfmt.clock_divider = 4; in catpt_dai_pcm_new()
653 devfmt.mode = CATPT_SSP_MODE_I2S_PROVIDER; in catpt_dai_pcm_new()
654 devfmt.clock_divider = 9; in catpt_dai_pcm_new()
660 devfmt.mclk = CATPT_MCLK_OFF; in catpt_dai_pcm_new()
661 devfmt.mode = CATPT_SSP_MODE_I2S_CONSUMER; in catpt_dai_pcm_new()
662 devfmt.clock_divider = 0; in catpt_dai_pcm_new()
667 if (!memcmp(&cdev->devfmt[devfmt.iface], &devfmt, sizeof(devfmt))) in catpt_dai_pcm_new()
674 ret = catpt_ipc_set_device_format(cdev, &devfmt); in catpt_dai_pcm_new()
683 memcpy(&cdev->devfmt[devfmt.iface], &devfmt, sizeof(devfmt)); in catpt_dai_pcm_new()