Lines Matching refs:dai
949 static int cpcap_set_sysclk(struct cpcap_audio *cpcap, enum cpcap_dai dai,
958 switch (dai) {
972 dev_err(cpcap->component->dev, "invalid DAI: %d", dai);
987 if (dai == CPCAP_DAI_VOICE) {
1027 if (dai == CPCAP_DAI_VOICE) {
1035 static int cpcap_set_samprate(struct cpcap_audio *cpcap, enum cpcap_dai dai,
1042 switch (dai) {
1056 dev_err(component->dev, "invalid DAI: %d", dai);
1116 struct snd_soc_dai *dai)
1118 struct snd_soc_component *component = dai->component;
1158 dev_dbg(dev, "HiFi setup dai format (%08x)", fmt);
1170 dev_err(dev, "HiFi dai fmt failed: CPCAP should be master");
1192 dev_err(dev, "HiFi dai fmt failed: unsupported clock invert mode");
1215 dev_dbg(dev, "HiFi dai format: val=%04x", val);
1219 static int cpcap_hifi_set_mute(struct snd_soc_dai *dai, int mute, int direction)
1221 struct snd_soc_component *component = dai->component;
1246 struct snd_soc_dai *dai)
1248 struct snd_soc_component *component = dai->component;
1308 dev_dbg(component->dev, "Voice setup dai format (%08x)", fmt);
1320 dev_err(component->dev, "Voice dai fmt failed: CPCAP should be the master");
1343 dev_err(component->dev, "Voice dai fmt failed: unsupported clock invert mode");
1365 dev_dbg(component->dev, "Voice dai format: val=%04x", val);
1374 static int cpcap_voice_set_mute(struct snd_soc_dai *dai,
1377 struct snd_soc_component *component = dai->component;