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