Lines Matching refs:devfmt
639 struct catpt_ssp_device_format devfmt; in catpt_dai_pcm_new() local
642 devfmt.iface = dai->driver->id; in catpt_dai_pcm_new()
643 devfmt.channels = codec_dai->driver->capture.channels_max; in catpt_dai_pcm_new()
645 switch (devfmt.iface) { in catpt_dai_pcm_new()
647 devfmt.mclk = CATPT_MCLK_FREQ_24_MHZ; in catpt_dai_pcm_new()
649 switch (devfmt.channels) { in catpt_dai_pcm_new()
651 devfmt.mode = CATPT_SSP_MODE_TDM_PROVIDER; in catpt_dai_pcm_new()
652 devfmt.clock_divider = 4; in catpt_dai_pcm_new()
656 devfmt.mode = CATPT_SSP_MODE_I2S_PROVIDER; in catpt_dai_pcm_new()
657 devfmt.clock_divider = 9; in catpt_dai_pcm_new()
663 devfmt.mclk = CATPT_MCLK_OFF; in catpt_dai_pcm_new()
664 devfmt.mode = CATPT_SSP_MODE_I2S_CONSUMER; in catpt_dai_pcm_new()
665 devfmt.clock_divider = 0; in catpt_dai_pcm_new()
670 if (!memcmp(&cdev->devfmt[devfmt.iface], &devfmt, sizeof(devfmt))) in catpt_dai_pcm_new()
675 ret = catpt_ipc_set_device_format(cdev, &devfmt); in catpt_dai_pcm_new()
684 memcpy(&cdev->devfmt[devfmt.iface], &devfmt, sizeof(devfmt)); in catpt_dai_pcm_new()