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