Symbol: dai
drivers/dma/txx9dmac.c
334
u32 sai, dai;
drivers/dma/txx9dmac.c
353
dai = 0;
drivers/dma/txx9dmac.c
356
dai = ds->reg_width;
drivers/dma/txx9dmac.c
360
dai = 8;
drivers/dma/txx9dmac.c
363
channel64_writel(dc, DAIR, dai);
drivers/dma/txx9dmac.c
374
dai = 0;
drivers/dma/txx9dmac.c
377
dai = ds->reg_width;
drivers/dma/txx9dmac.c
381
dai = 4;
drivers/dma/txx9dmac.c
384
channel32_writel(dc, DAIR, dai);
drivers/dma/txx9dmac.c
830
u32 sai, dai;
drivers/dma/txx9dmac.c
861
dai = 0;
drivers/dma/txx9dmac.c
864
dai = ds->reg_width;
drivers/dma/txx9dmac.c
866
txx9dmac_desc_set_nosimple(ddev, desc, sai, dai,
drivers/dma/txx9dmac.h
289
u32 sai, u32 dai, u32 ccr)
drivers/dma/txx9dmac.h
293
desc->hwdesc.DAIR = dai;
drivers/dma/txx9dmac.h
297
desc->hwdesc32.DAIR = dai;
drivers/gpu/drm/vc4/vc4_hdmi.c
1952
static inline struct vc4_hdmi *dai_to_hdmi(struct snd_soc_dai *dai)
drivers/gpu/drm/vc4/vc4_hdmi.c
1954
struct snd_soc_card *card = snd_soc_dai_get_drvdata(dai);
drivers/gpu/drm/vc4/vc4_hdmi.c
2234
static int vc4_hdmi_audio_cpu_dai_probe(struct snd_soc_dai *dai)
drivers/gpu/drm/vc4/vc4_hdmi.c
2236
struct vc4_hdmi *vc4_hdmi = dai_to_hdmi(dai);
drivers/gpu/drm/vc4/vc4_hdmi.c
2238
snd_soc_dai_init_dma_data(dai, &vc4_hdmi->audio.dma_data, NULL);
drivers/media/i2c/tda1997x.c
2468
struct snd_soc_dai *dai)
drivers/media/i2c/tda1997x.c
2470
struct v4l2_subdev *sd = snd_soc_dai_get_drvdata(dai);
drivers/media/i2c/tda1997x.c
2472
struct snd_soc_component *component = dai->component;
drivers/soundwire/amd_manager.c
694
struct snd_soc_dai *dai)
drivers/soundwire/amd_manager.c
696
struct amd_sdw_manager *amd_manager = snd_soc_dai_get_drvdata(dai);
drivers/soundwire/amd_manager.c
702
dai_runtime = amd_manager->dai_runtime_array[dai->id];
drivers/soundwire/amd_manager.c
711
dev_dbg(amd_manager->dev, "dir:%d dai->id:0x%x\n", dir, dai->id);
drivers/soundwire/amd_manager.c
725
pconfig->num = dai->id;
drivers/soundwire/amd_manager.c
735
static int amd_sdw_hw_free(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
drivers/soundwire/amd_manager.c
737
struct amd_sdw_manager *amd_manager = snd_soc_dai_get_drvdata(dai);
drivers/soundwire/amd_manager.c
741
dai_runtime = amd_manager->dai_runtime_array[dai->id];
drivers/soundwire/amd_manager.c
747
dev_err(dai->dev, "remove manager from stream %s failed: %d\n",
drivers/soundwire/amd_manager.c
752
static int amd_set_sdw_stream(struct snd_soc_dai *dai, void *stream, int direction)
drivers/soundwire/amd_manager.c
754
struct amd_sdw_manager *amd_manager = snd_soc_dai_get_drvdata(dai);
drivers/soundwire/amd_manager.c
757
dai_runtime = amd_manager->dai_runtime_array[dai->id];
drivers/soundwire/amd_manager.c
761
dev_err(dai->dev, "dai_runtime already allocated for dai %s\n", dai->name);
drivers/soundwire/amd_manager.c
773
amd_manager->dai_runtime_array[dai->id] = dai_runtime;
drivers/soundwire/amd_manager.c
777
dev_err(dai->dev, "dai_runtime not allocated for dai %s\n", dai->name);
drivers/soundwire/amd_manager.c
783
amd_manager->dai_runtime_array[dai->id] = NULL;
drivers/soundwire/amd_manager.c
788
static int amd_pcm_set_sdw_stream(struct snd_soc_dai *dai, void *stream, int direction)
drivers/soundwire/amd_manager.c
790
return amd_set_sdw_stream(dai, stream, direction);
drivers/soundwire/amd_manager.c
793
static void *amd_get_sdw_stream(struct snd_soc_dai *dai, int direction)
drivers/soundwire/amd_manager.c
795
struct amd_sdw_manager *amd_manager = snd_soc_dai_get_drvdata(dai);
drivers/soundwire/amd_manager.c
798
dai_runtime = amd_manager->dai_runtime_array[dai->id];
drivers/soundwire/cadence_master.c
1831
int cdns_set_sdw_stream(struct snd_soc_dai *dai,
drivers/soundwire/cadence_master.c
1834
struct sdw_cdns *cdns = snd_soc_dai_get_drvdata(dai);
drivers/soundwire/cadence_master.c
1837
dai_runtime = cdns->dai_runtime_array[dai->id];
drivers/soundwire/cadence_master.c
1842
dev_err(dai->dev,
drivers/soundwire/cadence_master.c
1844
dai->name);
drivers/soundwire/cadence_master.c
1861
cdns->dai_runtime_array[dai->id] = dai_runtime;
drivers/soundwire/cadence_master.c
1865
dev_err(dai->dev,
drivers/soundwire/cadence_master.c
1867
dai->name);
drivers/soundwire/cadence_master.c
1873
cdns->dai_runtime_array[dai->id] = NULL;
drivers/soundwire/cadence_master.h
203
int cdns_set_sdw_stream(struct snd_soc_dai *dai,
drivers/soundwire/intel.c
679
struct snd_soc_dai *dai,
drivers/soundwire/intel.c
687
params_data.dai = dai;
drivers/soundwire/intel.c
704
struct snd_soc_dai *dai,
drivers/soundwire/intel.c
711
free_data.dai = dai;
drivers/soundwire/intel.c
722
struct snd_soc_dai *dai)
drivers/soundwire/intel.c
724
struct sdw_cdns *cdns = snd_soc_dai_get_drvdata(dai);
drivers/soundwire/intel.c
732
dai_runtime = cdns->dai_runtime_array[dai->id];
drivers/soundwire/intel.c
742
pdi = sdw_cdns_alloc_pdi(cdns, &cdns->pcm, ch, dir, dai->id);
drivers/soundwire/intel.c
758
ret = intel_params_stream(sdw, substream, dai, params,
drivers/soundwire/intel.c
788
struct snd_soc_dai *dai)
drivers/soundwire/intel.c
790
struct sdw_cdns *cdns = snd_soc_dai_get_drvdata(dai);
drivers/soundwire/intel.c
796
dai_runtime = cdns->dai_runtime_array[dai->id];
drivers/soundwire/intel.c
798
dev_err(dai->dev, "failed to get dai runtime in %s\n",
drivers/soundwire/intel.c
831
ret = intel_params_stream(sdw, substream, dai,
drivers/soundwire/intel.c
841
intel_hw_free(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
drivers/soundwire/intel.c
843
struct sdw_cdns *cdns = snd_soc_dai_get_drvdata(dai);
drivers/soundwire/intel.c
848
dai_runtime = cdns->dai_runtime_array[dai->id];
drivers/soundwire/intel.c
860
dev_err(dai->dev, "remove master from stream %s failed: %d\n",
drivers/soundwire/intel.c
865
ret = intel_free_stream(sdw, substream, dai, sdw->instance);
drivers/soundwire/intel.c
867
dev_err(dai->dev, "intel_free_stream: failed %d\n", ret);
drivers/soundwire/intel.c
876
static int intel_pcm_set_sdw_stream(struct snd_soc_dai *dai,
drivers/soundwire/intel.c
879
return cdns_set_sdw_stream(dai, stream, direction);
drivers/soundwire/intel.c
882
static void *intel_get_sdw_stream(struct snd_soc_dai *dai,
drivers/soundwire/intel.c
885
struct sdw_cdns *cdns = snd_soc_dai_get_drvdata(dai);
drivers/soundwire/intel.c
888
dai_runtime = cdns->dai_runtime_array[dai->id];
drivers/soundwire/intel.c
895
static int intel_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai)
drivers/soundwire/intel.c
897
struct sdw_cdns *cdns = snd_soc_dai_get_drvdata(dai);
drivers/soundwire/intel.c
901
dai_runtime = cdns->dai_runtime_array[dai->id];
drivers/soundwire/intel.c
903
dev_err(dai->dev, "failed to get dai runtime in %s\n",
drivers/soundwire/intel.c
955
struct snd_soc_dai *dai;
drivers/soundwire/intel.c
963
for_each_component_dais(component, dai) {
drivers/soundwire/intel.c
964
struct sdw_cdns *cdns = snd_soc_dai_get_drvdata(dai);
drivers/soundwire/intel.c
967
dai_runtime = cdns->dai_runtime_array[dai->id];
drivers/soundwire/intel_ace2x.c
653
struct snd_soc_dai *dai,
drivers/soundwire/intel_ace2x.c
661
params_data.dai = dai;
drivers/soundwire/intel_ace2x.c
674
struct snd_soc_dai *dai,
drivers/soundwire/intel_ace2x.c
682
free_data.dai = dai;
drivers/soundwire/intel_ace2x.c
697
struct snd_soc_dai *dai)
drivers/soundwire/intel_ace2x.c
699
struct sdw_cdns *cdns = snd_soc_dai_get_drvdata(dai);
drivers/soundwire/intel_ace2x.c
707
dai_runtime = cdns->dai_runtime_array[dai->id];
drivers/soundwire/intel_ace2x.c
717
pdi = sdw_cdns_alloc_pdi(cdns, &cdns->pcm, ch, dir, dai->id);
drivers/soundwire/intel_ace2x.c
736
ret = intel_params_stream(sdw, substream, dai, params,
drivers/soundwire/intel_ace2x.c
766
struct snd_soc_dai *dai)
drivers/soundwire/intel_ace2x.c
769
struct sdw_cdns *cdns = snd_soc_dai_get_drvdata(dai);
drivers/soundwire/intel_ace2x.c
775
dai_runtime = cdns->dai_runtime_array[dai->id];
drivers/soundwire/intel_ace2x.c
777
dev_err(dai->dev, "failed to get dai runtime in %s\n",
drivers/soundwire/intel_ace2x.c
807
return intel_params_stream(sdw, substream, dai, hw_params, sdw->instance,
drivers/soundwire/intel_ace2x.c
812
intel_hw_free(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
drivers/soundwire/intel_ace2x.c
814
struct sdw_cdns *cdns = snd_soc_dai_get_drvdata(dai);
drivers/soundwire/intel_ace2x.c
819
dai_runtime = cdns->dai_runtime_array[dai->id];
drivers/soundwire/intel_ace2x.c
831
dev_err(dai->dev, "remove master from stream %s failed: %d\n",
drivers/soundwire/intel_ace2x.c
836
ret = intel_free_stream(sdw, substream, dai, sdw->instance);
drivers/soundwire/intel_ace2x.c
838
dev_err(dai->dev, "intel_free_stream: failed %d\n", ret);
drivers/soundwire/intel_ace2x.c
847
static int intel_pcm_set_sdw_stream(struct snd_soc_dai *dai,
drivers/soundwire/intel_ace2x.c
850
return cdns_set_sdw_stream(dai, stream, direction);
drivers/soundwire/intel_ace2x.c
853
static void *intel_get_sdw_stream(struct snd_soc_dai *dai,
drivers/soundwire/intel_ace2x.c
856
struct sdw_cdns *cdns = snd_soc_dai_get_drvdata(dai);
drivers/soundwire/intel_ace2x.c
859
dai_runtime = cdns->dai_runtime_array[dai->id];
drivers/soundwire/intel_ace2x.c
866
static int intel_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai)
drivers/soundwire/intel_ace2x.c
868
struct sdw_cdns *cdns = snd_soc_dai_get_drvdata(dai);
drivers/soundwire/intel_ace2x.c
879
ret = res->ops->trigger(substream, cmd, dai);
drivers/soundwire/intel_ace2x.c
884
dai_runtime = cdns->dai_runtime_array[dai->id];
drivers/soundwire/intel_ace2x.c
886
dev_err(dai->dev, "failed to get dai runtime in %s\n",
drivers/soundwire/qcom.c
1294
struct snd_soc_dai *dai)
drivers/soundwire/qcom.c
1296
struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(dai->dev);
drivers/soundwire/qcom.c
1297
struct sdw_stream_runtime *sruntime = ctrl->sruntime[dai->id];
drivers/soundwire/qcom.c
1309
struct snd_soc_dai *dai)
drivers/soundwire/qcom.c
1311
struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(dai->dev);
drivers/soundwire/qcom.c
1312
struct sdw_stream_runtime *sruntime = ctrl->sruntime[dai->id];
drivers/soundwire/qcom.c
1320
static int qcom_swrm_set_sdw_stream(struct snd_soc_dai *dai,
drivers/soundwire/qcom.c
1323
struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(dai->dev);
drivers/soundwire/qcom.c
1325
ctrl->sruntime[dai->id] = stream;
drivers/soundwire/qcom.c
1330
static void *qcom_swrm_get_sdw_stream(struct snd_soc_dai *dai, int direction)
drivers/soundwire/qcom.c
1332
struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(dai->dev);
drivers/soundwire/qcom.c
1334
return ctrl->sruntime[dai->id];
drivers/soundwire/qcom.c
1338
struct snd_soc_dai *dai)
drivers/soundwire/qcom.c
1340
struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(dai->dev);
drivers/soundwire/qcom.c
1356
struct snd_soc_dai *dai)
drivers/soundwire/qcom.c
1358
struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(dai->dev);
drivers/soundwire/stream.c
1848
struct snd_soc_dai *dai;
drivers/soundwire/stream.c
1853
for_each_rtd_dais(rtd, i, dai) {
drivers/soundwire/stream.c
1854
ret = snd_soc_dai_set_stream(dai, sdw_stream, substream->stream);
drivers/soundwire/stream.c
1856
dev_err(rtd->dev, "failed to set stream pointer on dai %s\n", dai->name);
drivers/soundwire/stream.c
1948
struct snd_soc_dai *dai;
drivers/soundwire/stream.c
1951
dai = snd_soc_rtd_to_cpu(rtd, 0);
drivers/soundwire/stream.c
1953
sdw_stream = snd_soc_dai_get_stream(dai, substream->stream);
drivers/soundwire/stream.c
1956
dev_err(rtd->dev, "no stream found for DAI %s\n", dai->name);
drivers/staging/greybus/audio_codec.c
1007
struct gbaudio_codec_dai *dai;
drivers/staging/greybus/audio_codec.c
1021
dai = devm_kzalloc(comp->dev, sizeof(*dai), GFP_KERNEL);
drivers/staging/greybus/audio_codec.c
1022
if (!dai)
drivers/staging/greybus/audio_codec.c
1024
dai->id = gbaudio_dai[i].id;
drivers/staging/greybus/audio_codec.c
1025
list_add(&dai->list, &info->dai_list);
drivers/staging/greybus/audio_codec.c
343
struct snd_soc_dai *dai)
drivers/staging/greybus/audio_codec.c
345
struct gbaudio_codec_info *codec = dev_get_drvdata(dai->dev);
drivers/staging/greybus/audio_codec.c
356
params = find_dai_stream_params(codec, dai->id, substream->stream);
drivers/staging/greybus/audio_codec.c
36
struct gbaudio_codec_dai *dai;
drivers/staging/greybus/audio_codec.c
365
pm_stay_awake(dai->dev);
drivers/staging/greybus/audio_codec.c
371
struct snd_soc_dai *dai)
drivers/staging/greybus/audio_codec.c
373
struct gbaudio_codec_info *codec = dev_get_drvdata(dai->dev);
drivers/staging/greybus/audio_codec.c
38
list_for_each_entry(dai, &codec->dai_list, list) {
drivers/staging/greybus/audio_codec.c
381
params = find_dai_stream_params(codec, dai->id, substream->stream);
drivers/staging/greybus/audio_codec.c
389
pm_relax(dai->dev);
drivers/staging/greybus/audio_codec.c
39
if (dai->id == id)
drivers/staging/greybus/audio_codec.c
394
struct snd_soc_dai *dai)
drivers/staging/greybus/audio_codec.c
40
return &dai->params[stream];
drivers/staging/greybus/audio_codec.c
402
struct gbaudio_codec_info *codec = dev_get_drvdata(dai->dev);
drivers/staging/greybus/audio_codec.c
418
dev_err(dai->dev, "Invalid channel count:%d\n",
drivers/staging/greybus/audio_codec.c
426
dev_err(dai->dev, "Invalid sampling rate:%d\n",
drivers/staging/greybus/audio_codec.c
434
dev_err(dai->dev, "Invalid format:%d\n", params_format(hwparams));
drivers/staging/greybus/audio_codec.c
442
data = find_data(module, dai->id);
drivers/staging/greybus/audio_codec.c
448
dev_err(dai->dev, "DATA connection missing\n");
drivers/staging/greybus/audio_codec.c
453
params = find_dai_stream_params(codec, dai->id, substream->stream);
drivers/staging/greybus/audio_codec.c
472
dev_err_ratelimited(dai->dev, "%d: Error during set_config\n",
drivers/staging/greybus/audio_codec.c
482
sig_bits = dai->driver->playback.sig_bits;
drivers/staging/greybus/audio_codec.c
484
sig_bits = dai->driver->capture.sig_bits;
drivers/staging/greybus/audio_codec.c
497
struct snd_soc_dai *dai)
drivers/staging/greybus/audio_codec.c
503
struct gbaudio_codec_info *codec = dev_get_drvdata(dai->dev);
drivers/staging/greybus/audio_codec.c
516
data = find_data(iter, dai->id);
drivers/staging/greybus/audio_codec.c
523
dev_err(dai->dev, "DATA connection missing\n");
drivers/staging/greybus/audio_codec.c
528
params = find_dai_stream_params(codec, dai->id, substream->stream);
drivers/staging/greybus/audio_codec.c
553
dev_err_ratelimited(dai->dev, "set_data_size failed:%d\n", ret);
drivers/staging/greybus/audio_codec.c
564
static int gbcodec_mute_stream(struct snd_soc_dai *dai, int mute, int stream)
drivers/staging/greybus/audio_codec.c
570
struct gbaudio_codec_info *codec = dev_get_drvdata(dai->dev);
drivers/staging/greybus/audio_codec.c
573
dev_dbg(dai->dev, "Mute:%d, Direction:%s\n", mute,
drivers/staging/greybus/audio_codec.c
578
params = find_dai_stream_params(codec, dai->id, stream);
drivers/staging/greybus/audio_codec.c
599
data = find_data(iter, dai->id);
drivers/staging/greybus/audio_codec.c
606
dev_err(dai->dev, "%s DATA connection missing\n",
drivers/staging/greybus/audio_codec.c
607
dai->name);
drivers/staging/greybus/audio_codec.c
644
dev_err_ratelimited(dai->dev,
drivers/staging/greybus/audio_helper.c
20
struct snd_soc_dai *dai = dai_w->priv;
drivers/staging/greybus/audio_helper.c
51
dev_dbg(dai->dev, "%s -> %s\n", src->name, sink->name);
drivers/staging/greybus/audio_module.c
206
struct gbaudio_data_connection *dai;
drivers/staging/greybus/audio_module.c
208
dai = devm_kzalloc(gbmodule->dev, sizeof(*dai), GFP_KERNEL);
drivers/staging/greybus/audio_module.c
209
if (!dai)
drivers/staging/greybus/audio_module.c
216
devm_kfree(gbmodule->dev, dai);
drivers/staging/greybus/audio_module.c
221
dai->id = 0;
drivers/staging/greybus/audio_module.c
222
dai->data_cport = cpu_to_le16(connection->intf_cport_id);
drivers/staging/greybus/audio_module.c
223
dai->connection = connection;
drivers/staging/greybus/audio_module.c
224
list_add(&dai->list, &gbmodule->data_list);
drivers/staging/greybus/audio_module.c
240
struct gbaudio_data_connection *dai, *_dai;
drivers/staging/greybus/audio_module.c
327
list_for_each_entry(dai, &gbmodule->data_list, list) {
drivers/staging/greybus/audio_module.c
328
ret = gb_connection_enable(dai->connection);
drivers/staging/greybus/audio_module.c
332
ret, le16_to_cpu(dai->data_cport));
drivers/staging/greybus/audio_module.c
360
list_for_each_entry_safe(dai, _dai, &gbmodule->data_list, list)
drivers/staging/greybus/audio_module.c
361
gb_connection_disable(dai->connection);
drivers/staging/greybus/audio_module.c
372
list_for_each_entry_safe(dai, _dai, &gbmodule->data_list, list) {
drivers/staging/greybus/audio_module.c
373
gb_connection_destroy(dai->connection);
drivers/staging/greybus/audio_module.c
374
list_del(&dai->list);
drivers/staging/greybus/audio_module.c
375
devm_kfree(dev, dai);
drivers/staging/greybus/audio_module.c
389
struct gbaudio_data_connection *dai, *_dai;
drivers/staging/greybus/audio_module.c
403
list_for_each_entry_safe(dai, _dai, &gbmodule->data_list, list) {
drivers/staging/greybus/audio_module.c
404
gb_connection_disable(dai->connection);
drivers/staging/greybus/audio_module.c
405
gb_connection_destroy(dai->connection);
drivers/staging/greybus/audio_module.c
406
list_del(&dai->list);
drivers/staging/greybus/audio_module.c
407
devm_kfree(gbmodule->dev, dai);
drivers/staging/greybus/audio_module.c
426
struct gbaudio_data_connection *dai;
drivers/staging/greybus/audio_module.c
428
list_for_each_entry(dai, &gbmodule->data_list, list)
drivers/staging/greybus/audio_module.c
429
gb_connection_disable(dai->connection);
drivers/staging/greybus/audio_module.c
440
struct gbaudio_data_connection *dai;
drivers/staging/greybus/audio_module.c
449
list_for_each_entry(dai, &gbmodule->data_list, list) {
drivers/staging/greybus/audio_module.c
450
ret = gb_connection_enable(dai->connection);
drivers/staging/greybus/audio_module.c
454
ret, le16_to_cpu(dai->data_cport));
include/linux/soundwire/sdw_intel.h
202
struct snd_soc_dai *dai;
include/linux/soundwire/sdw_intel.h
215
struct snd_soc_dai *dai;
include/linux/soundwire/sdw_intel.h
228
int (*trigger)(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai);
include/sound/sdca_asoc.h
49
struct snd_soc_dai *dai);
include/sound/sdca_asoc.h
51
struct snd_soc_dai *dai);
include/sound/sdca_asoc.h
54
struct snd_soc_dai *dai);
include/sound/sdca_asoc.h
59
struct snd_soc_dai *dai);
include/sound/simple_card_utils.h
146
struct simple_util_dai *dai);
include/sound/simple_card_utils.h
167
#define simple_util_parse_tdm(np, dai) \
include/sound/simple_card_utils.h
168
snd_soc_of_parse_tdm_slot(np, &(dai)->tx_slot_mask, \
include/sound/simple_card_utils.h
169
&(dai)->rx_slot_mask, \
include/sound/simple_card_utils.h
170
&(dai)->slots, \
include/sound/simple_card_utils.h
171
&(dai)->slot_width);
include/sound/simple_card_utils.h
217
struct simple_util_dai *dai)
include/sound/simple_card_utils.h
222
if (!dai)
include/sound/simple_card_utils.h
225
if (dai->name)
include/sound/simple_card_utils.h
227
name, dai->name);
include/sound/simple_card_utils.h
229
if (dai->slots)
include/sound/simple_card_utils.h
230
dev_dbg(dev, "%s slots = %d\n", name, dai->slots);
include/sound/simple_card_utils.h
231
if (dai->slot_width)
include/sound/simple_card_utils.h
232
dev_dbg(dev, "%s slot width = %d\n", name, dai->slot_width);
include/sound/simple_card_utils.h
233
if (dai->tx_slot_mask)
include/sound/simple_card_utils.h
234
dev_dbg(dev, "%s tx slot mask = %d\n", name, dai->tx_slot_mask);
include/sound/simple_card_utils.h
235
if (dai->rx_slot_mask)
include/sound/simple_card_utils.h
236
dev_dbg(dev, "%s rx slot mask = %d\n", name, dai->rx_slot_mask);
include/sound/simple_card_utils.h
237
if (dai->clk)
include/sound/simple_card_utils.h
238
dev_dbg(dev, "%s clk %luHz\n", name, clk_get_rate(dai->clk));
include/sound/simple_card_utils.h
239
if (dai->sysclk)
include/sound/simple_card_utils.h
241
name, dai->sysclk);
include/sound/simple_card_utils.h
242
if (dai->clk || dai->sysclk)
include/sound/simple_card_utils.h
244
name, dai->clk_direction ? "OUT" : "IN");
include/sound/simple_card_utils.h
260
struct simple_util_dai *dai;
include/sound/simple_card_utils.h
267
for_each_prop_dai_cpu(props, j, dai)
include/sound/simple_card_utils.h
268
simple_util_debug_dai(priv, "cpu", dai);
include/sound/simple_card_utils.h
270
for_each_prop_dai_codec(props, j, dai)
include/sound/simple_card_utils.h
271
simple_util_debug_dai(priv, "codec", dai);
include/sound/soc-component.h
257
#define for_each_component_dais(component, dai)\
include/sound/soc-component.h
258
list_for_each_entry(dai, &(component)->dai_list, list)
include/sound/soc-component.h
259
#define for_each_component_dais_safe(component, dai, _dai)\
include/sound/soc-component.h
260
list_for_each_entry_safe(dai, _dai, &(component)->dai_list, list)
include/sound/soc-dai.h
165
int snd_soc_dai_set_sysclk(struct snd_soc_dai *dai, int clk_id,
include/sound/soc-dai.h
168
int snd_soc_dai_set_clkdiv(struct snd_soc_dai *dai,
include/sound/soc-dai.h
171
int snd_soc_dai_set_pll(struct snd_soc_dai *dai,
include/sound/soc-dai.h
174
int snd_soc_dai_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio);
include/sound/soc-dai.h
178
u64 snd_soc_dai_get_fmt(const struct snd_soc_dai *dai, int priority);
include/sound/soc-dai.h
179
int snd_soc_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt);
include/sound/soc-dai.h
181
int snd_soc_dai_set_tdm_slot(struct snd_soc_dai *dai,
include/sound/soc-dai.h
184
int snd_soc_dai_set_channel_map(struct snd_soc_dai *dai,
include/sound/soc-dai.h
188
int snd_soc_dai_set_tristate(struct snd_soc_dai *dai, int tristate);
include/sound/soc-dai.h
190
int snd_soc_dai_prepare(struct snd_soc_dai *dai,
include/sound/soc-dai.h
194
int snd_soc_dai_digital_mute(struct snd_soc_dai *dai, int mute,
include/sound/soc-dai.h
196
int snd_soc_dai_mute_is_ctrled_at_trigger(struct snd_soc_dai *dai);
include/sound/soc-dai.h
198
int snd_soc_dai_get_channel_map(const struct snd_soc_dai *dai,
include/sound/soc-dai.h
202
int snd_soc_dai_is_dummy(const struct snd_soc_dai *dai);
include/sound/soc-dai.h
204
int snd_soc_dai_hw_params(struct snd_soc_dai *dai,
include/sound/soc-dai.h
207
void snd_soc_dai_hw_free(struct snd_soc_dai *dai,
include/sound/soc-dai.h
210
int snd_soc_dai_startup(struct snd_soc_dai *dai,
include/sound/soc-dai.h
212
void snd_soc_dai_shutdown(struct snd_soc_dai *dai,
include/sound/soc-dai.h
214
void snd_soc_dai_suspend(struct snd_soc_dai *dai);
include/sound/soc-dai.h
215
void snd_soc_dai_resume(struct snd_soc_dai *dai);
include/sound/soc-dai.h
216
int snd_soc_dai_compress_new(struct snd_soc_dai *dai, struct snd_soc_pcm_runtime *rtd);
include/sound/soc-dai.h
217
bool snd_soc_dai_stream_valid(const struct snd_soc_dai *dai, int stream);
include/sound/soc-dai.h
218
void snd_soc_dai_action(struct snd_soc_dai *dai,
include/sound/soc-dai.h
220
static inline void snd_soc_dai_activate(struct snd_soc_dai *dai,
include/sound/soc-dai.h
223
snd_soc_dai_action(dai, stream, 1);
include/sound/soc-dai.h
225
static inline void snd_soc_dai_deactivate(struct snd_soc_dai *dai,
include/sound/soc-dai.h
228
snd_soc_dai_action(dai, stream, -1);
include/sound/soc-dai.h
230
int snd_soc_dai_active(const struct snd_soc_dai *dai);
include/sound/soc-dai.h
241
int snd_soc_dai_compr_startup(struct snd_soc_dai *dai,
include/sound/soc-dai.h
243
void snd_soc_dai_compr_shutdown(struct snd_soc_dai *dai,
include/sound/soc-dai.h
246
int snd_soc_dai_compr_trigger(struct snd_soc_dai *dai,
include/sound/soc-dai.h
248
int snd_soc_dai_compr_set_params(struct snd_soc_dai *dai,
include/sound/soc-dai.h
251
int snd_soc_dai_compr_get_params(struct snd_soc_dai *dai,
include/sound/soc-dai.h
254
int snd_soc_dai_compr_ack(struct snd_soc_dai *dai,
include/sound/soc-dai.h
257
int snd_soc_dai_compr_pointer(struct snd_soc_dai *dai,
include/sound/soc-dai.h
260
int snd_soc_dai_compr_set_metadata(struct snd_soc_dai *dai,
include/sound/soc-dai.h
263
int snd_soc_dai_compr_get_metadata(struct snd_soc_dai *dai,
include/sound/soc-dai.h
267
const char *snd_soc_dai_name_get(const struct snd_soc_dai *dai);
include/sound/soc-dai.h
271
int (*probe)(struct snd_soc_dai *dai);
include/sound/soc-dai.h
272
int (*remove)(struct snd_soc_dai *dai);
include/sound/soc-dai.h
277
struct snd_soc_dai *dai);
include/sound/soc-dai.h
283
int (*set_sysclk)(struct snd_soc_dai *dai,
include/sound/soc-dai.h
285
int (*set_pll)(struct snd_soc_dai *dai, int pll_id, int source,
include/sound/soc-dai.h
287
int (*set_clkdiv)(struct snd_soc_dai *dai, int div_id, int div);
include/sound/soc-dai.h
288
int (*set_bclk_ratio)(struct snd_soc_dai *dai, unsigned int ratio);
include/sound/soc-dai.h
294
int (*set_fmt)(struct snd_soc_dai *dai, unsigned int fmt);
include/sound/soc-dai.h
297
int (*set_tdm_slot)(struct snd_soc_dai *dai,
include/sound/soc-dai.h
300
int (*set_channel_map)(struct snd_soc_dai *dai,
include/sound/soc-dai.h
303
int (*get_channel_map)(const struct snd_soc_dai *dai,
include/sound/soc-dai.h
306
int (*set_tristate)(struct snd_soc_dai *dai, int tristate);
include/sound/soc-dai.h
308
int (*set_stream)(struct snd_soc_dai *dai,
include/sound/soc-dai.h
310
void *(*get_stream)(struct snd_soc_dai *dai, int direction);
include/sound/soc-dai.h
316
int (*mute_stream)(struct snd_soc_dai *dai, int mute, int stream);
include/sound/soc-dai.h
388
struct snd_soc_dai *dai);
include/sound/soc-dai.h
473
snd_soc_dai_get_pcm_stream(const struct snd_soc_dai *dai, int stream)
include/sound/soc-dai.h
476
&dai->driver->playback : &dai->driver->capture;
include/sound/soc-dai.h
479
#define snd_soc_dai_get_widget_playback(dai) snd_soc_dai_get_widget(dai, SNDRV_PCM_STREAM_PLAYBACK)
include/sound/soc-dai.h
480
#define snd_soc_dai_get_widget_capture(dai) snd_soc_dai_get_widget(dai, SNDRV_PCM_STREAM_CAPTURE)
include/sound/soc-dai.h
482
struct snd_soc_dapm_widget *snd_soc_dai_get_widget(struct snd_soc_dai *dai, int stream)
include/sound/soc-dai.h
484
return dai->stream[stream].widget;
include/sound/soc-dai.h
487
#define snd_soc_dai_set_widget_playback(dai, widget) snd_soc_dai_set_widget(dai, SNDRV_PCM_STREAM_PLAYBACK, widget)
include/sound/soc-dai.h
488
#define snd_soc_dai_set_widget_capture(dai, widget) snd_soc_dai_set_widget(dai, SNDRV_PCM_STREAM_CAPTURE, widget)
include/sound/soc-dai.h
490
void snd_soc_dai_set_widget(struct snd_soc_dai *dai, int stream, struct snd_soc_dapm_widget *widget)
include/sound/soc-dai.h
492
dai->stream[stream].widget = widget;
include/sound/soc-dai.h
495
#define snd_soc_dai_dma_data_get_playback(dai) snd_soc_dai_dma_data_get(dai, SNDRV_PCM_STREAM_PLAYBACK)
include/sound/soc-dai.h
496
#define snd_soc_dai_dma_data_get_capture(dai) snd_soc_dai_dma_data_get(dai, SNDRV_PCM_STREAM_CAPTURE)
include/sound/soc-dai.h
497
#define snd_soc_dai_get_dma_data(dai, ss) snd_soc_dai_dma_data_get(dai, ss->stream)
include/sound/soc-dai.h
498
static inline void *snd_soc_dai_dma_data_get(const struct snd_soc_dai *dai, int stream)
include/sound/soc-dai.h
500
return dai->stream[stream].dma_data;
include/sound/soc-dai.h
503
#define snd_soc_dai_dma_data_set_playback(dai, data) snd_soc_dai_dma_data_set(dai, SNDRV_PCM_STREAM_PLAYBACK, data)
include/sound/soc-dai.h
504
#define snd_soc_dai_dma_data_set_capture(dai, data) snd_soc_dai_dma_data_set(dai, SNDRV_PCM_STREAM_CAPTURE, data)
include/sound/soc-dai.h
505
#define snd_soc_dai_set_dma_data(dai, ss, data) snd_soc_dai_dma_data_set(dai, ss->stream, data)
include/sound/soc-dai.h
506
static inline void snd_soc_dai_dma_data_set(struct snd_soc_dai *dai, int stream, void *data)
include/sound/soc-dai.h
508
dai->stream[stream].dma_data = data;
include/sound/soc-dai.h
511
static inline void snd_soc_dai_init_dma_data(struct snd_soc_dai *dai, void *playback, void *capture)
include/sound/soc-dai.h
513
snd_soc_dai_dma_data_set_playback(dai, playback);
include/sound/soc-dai.h
514
snd_soc_dai_dma_data_set_capture(dai, capture);
include/sound/soc-dai.h
517
static inline unsigned int snd_soc_dai_tdm_mask_get(const struct snd_soc_dai *dai,
include/sound/soc-dai.h
520
return dai->stream[stream].tdm_mask;
include/sound/soc-dai.h
523
static inline void snd_soc_dai_tdm_mask_set(struct snd_soc_dai *dai, int stream,
include/sound/soc-dai.h
526
dai->stream[stream].tdm_mask = tdm_mask;
include/sound/soc-dai.h
529
static inline unsigned int snd_soc_dai_stream_active(const struct snd_soc_dai *dai,
include/sound/soc-dai.h
533
return dai->stream[stream].active;
include/sound/soc-dai.h
536
static inline void snd_soc_dai_set_drvdata(struct snd_soc_dai *dai,
include/sound/soc-dai.h
539
dev_set_drvdata(dai->dev, data);
include/sound/soc-dai.h
542
static inline void *snd_soc_dai_get_drvdata(struct snd_soc_dai *dai)
include/sound/soc-dai.h
544
return dev_get_drvdata(dai->dev);
include/sound/soc-dai.h
559
static inline int snd_soc_dai_set_stream(struct snd_soc_dai *dai,
include/sound/soc-dai.h
562
if (dai->driver->ops->set_stream)
include/sound/soc-dai.h
563
return dai->driver->ops->set_stream(dai, stream, direction);
include/sound/soc-dai.h
579
static inline void *snd_soc_dai_get_stream(struct snd_soc_dai *dai,
include/sound/soc-dai.h
582
if (dai->driver->ops->get_stream)
include/sound/soc-dai.h
583
return dai->driver->ops->get_stream(dai, direction);
include/sound/soc-dapm.h
634
int snd_soc_dapm_new_dai_widgets(struct snd_soc_dapm_context *dapm, struct snd_soc_dai *dai);
include/sound/soc-dapm.h
640
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai);
include/sound/soc-dapm.h
690
int snd_soc_dapm_dai_get_connected_widgets(struct snd_soc_dai *dai, int stream,
include/sound/soc-topology.h
135
struct snd_soc_tplg_pcm *pcm, struct snd_soc_dai *dai);
include/sound/soc.h
1209
#define for_each_rtd_cpu_dais(rtd, i, dai) \
include/sound/soc.h
1211
((i) < rtd->dai_link->num_cpus) && ((dai) = snd_soc_rtd_to_cpu(rtd, i)); \
include/sound/soc.h
1213
#define for_each_rtd_codec_dais(rtd, i, dai) \
include/sound/soc.h
1215
((i) < rtd->dai_link->num_codecs) && ((dai) = snd_soc_rtd_to_codec(rtd, i)); \
include/sound/soc.h
1217
#define for_each_rtd_dais(rtd, i, dai) \
include/sound/soc.h
1220
((dai) = (rtd)->dais[i]); \
include/sound/soc.h
1222
#define for_each_rtd_dais_reverse(rtd, i, dai) \
include/sound/soc.h
1224
(i) >= 0 && ((dai) = (rtd)->dais[i]); \
include/sound/soc.h
1408
void snd_soc_unregister_dai(struct snd_soc_dai *dai);
include/sound/soc.h
555
int snd_soc_add_dai_controls(struct snd_soc_dai *dai,
include/sound/soc_sdw_utils.h
239
struct snd_soc_dai *dai);
include/sound/soc_sdw_utils.h
249
int asoc_sdw_rt_dmic_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai);
include/sound/soc_sdw_utils.h
250
int asoc_sdw_rt_sdca_jack_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai);
include/sound/soc_sdw_utils.h
251
int asoc_sdw_rt_amp_spk_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai);
include/sound/soc_sdw_utils.h
252
int asoc_sdw_rt700_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai);
include/sound/soc_sdw_utils.h
253
int asoc_sdw_rt711_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai);
include/sound/soc_sdw_utils.h
254
int asoc_sdw_rt_mf_sdca_spk_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai);
include/sound/soc_sdw_utils.h
255
int asoc_sdw_rt5682_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai);
include/sound/soc_sdw_utils.h
256
int asoc_sdw_cs42l42_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai);
include/sound/soc_sdw_utils.h
257
int asoc_sdw_cs42l43_hs_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai);
include/sound/soc_sdw_utils.h
258
int asoc_sdw_cs42l43_spk_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai);
include/sound/soc_sdw_utils.h
259
int asoc_sdw_cs42l43_dmic_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai);
include/sound/soc_sdw_utils.h
260
int asoc_sdw_cs42l45_hs_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai);
include/sound/soc_sdw_utils.h
261
int asoc_sdw_cs42l45_dmic_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai);
include/sound/soc_sdw_utils.h
262
int asoc_sdw_cs_spk_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai);
include/sound/soc_sdw_utils.h
263
int asoc_sdw_maxim_spk_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai);
include/sound/soc_sdw_utils.h
269
int asoc_sdw_ti_spk_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai);
include/sound/soc_sdw_utils.h
63
int (*rtd_init)(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai);
sound/pci/ctxfi/ctatc.c
1486
atc_connect_dai(struct src_mgr *src_mgr, struct dai *dai,
sound/pci/ctxfi/ctatc.c
1494
rscs[0] = &dai->daio.rscl;
sound/pci/ctxfi/ctatc.c
1495
rscs[1] = &dai->daio.rscr;
sound/pci/ctxfi/ctatc.c
1514
dai->ops->set_srt_srcl(dai, &(srcs[0]->rsc));
sound/pci/ctxfi/ctatc.c
1515
dai->ops->set_srt_srcr(dai, &(srcs[1]->rsc));
sound/pci/ctxfi/ctatc.c
1517
dai->ops->set_enb_src(dai, 1);
sound/pci/ctxfi/ctatc.c
1518
dai->ops->set_enb_srt(dai, 1);
sound/pci/ctxfi/ctatc.c
1519
dai->ops->commit_write(dai);
sound/pci/ctxfi/ctatc.c
1526
struct dai *dai;
sound/pci/ctxfi/ctatc.c
1550
dai = container_of(atc->daios[LINEIM], struct dai, daio);
sound/pci/ctxfi/ctatc.c
1551
atc_connect_dai(atc->rsc_mgrs[SRC], dai,
sound/pci/ctxfi/ctatc.c
1562
dai = container_of(atc->daios[MIC], struct dai, daio);
sound/pci/ctxfi/ctatc.c
1563
atc_connect_dai(atc->rsc_mgrs[SRC], dai,
sound/pci/ctxfi/ctatc.c
1572
dai = container_of(atc->daios[SPDIFIO], struct dai, daio);
sound/pci/ctxfi/ctatc.c
1573
atc_connect_dai(atc->rsc_mgrs[SRC], dai,
sound/pci/ctxfi/ctdaio.c
260
static int dai_set_srt_srcl(struct dai *dai, struct rsc *src)
sound/pci/ctxfi/ctdaio.c
263
dai->hw->dai_srt_set_srcm(dai->ctrl_blk, src->ops->index(src));
sound/pci/ctxfi/ctdaio.c
267
static int dai_set_srt_srcr(struct dai *dai, struct rsc *src)
sound/pci/ctxfi/ctdaio.c
270
dai->hw->dai_srt_set_srco(dai->ctrl_blk, src->ops->index(src));
sound/pci/ctxfi/ctdaio.c
274
static int dai_set_srt_msr(struct dai *dai, unsigned int msr)
sound/pci/ctxfi/ctdaio.c
281
dai->hw->dai_srt_set_rsr(dai->ctrl_blk, rsr);
sound/pci/ctxfi/ctdaio.c
285
static int dai_set_enb_src(struct dai *dai, unsigned int enb)
sound/pci/ctxfi/ctdaio.c
287
dai->hw->dai_srt_set_ec(dai->ctrl_blk, enb);
sound/pci/ctxfi/ctdaio.c
291
static int dai_set_enb_srt(struct dai *dai, unsigned int enb)
sound/pci/ctxfi/ctdaio.c
293
dai->hw->dai_srt_set_et(dai->ctrl_blk, enb);
sound/pci/ctxfi/ctdaio.c
297
static int dai_commit_write(struct dai *dai)
sound/pci/ctxfi/ctdaio.c
299
int idx = daio_device_index(dai->daio.type, dai->hw);
sound/pci/ctxfi/ctdaio.c
303
dai->hw->dai_commit_write(dai->hw, idx, dai->ctrl_blk);
sound/pci/ctxfi/ctdaio.c
457
static int dai_rsc_init(struct dai *dai,
sound/pci/ctxfi/ctdaio.c
465
err = daio_rsc_init(&dai->daio, desc, mgr->mgr.hw);
sound/pci/ctxfi/ctdaio.c
469
dai->ops = &dai_ops;
sound/pci/ctxfi/ctdaio.c
470
dai->hw = mgr->mgr.hw;
sound/pci/ctxfi/ctdaio.c
471
err = hw->dai_get_ctrl_blk(&dai->ctrl_blk);
sound/pci/ctxfi/ctdaio.c
475
idx = daio_device_index(dai->daio.type, dai->hw);
sound/pci/ctxfi/ctdaio.c
484
hw->dai_srt_set_rsr(dai->ctrl_blk, rsr);
sound/pci/ctxfi/ctdaio.c
485
hw->dai_srt_set_drat(dai->ctrl_blk, 0);
sound/pci/ctxfi/ctdaio.c
487
hw->dai_srt_set_ec(dai->ctrl_blk, 0);
sound/pci/ctxfi/ctdaio.c
488
hw->dai_srt_set_et(dai->ctrl_blk, 0); /* default to disabling SRT */
sound/pci/ctxfi/ctdaio.c
489
hw->dai_commit_write(hw, idx, dai->ctrl_blk);
sound/pci/ctxfi/ctdaio.c
494
daio_rsc_uninit(&dai->daio);
sound/pci/ctxfi/ctdaio.c
498
static int dai_rsc_uninit(struct dai *dai)
sound/pci/ctxfi/ctdaio.c
500
dai->hw->dai_put_ctrl_blk(dai->ctrl_blk);
sound/pci/ctxfi/ctdaio.c
501
dai->hw = dai->ctrl_blk = NULL;
sound/pci/ctxfi/ctdaio.c
502
daio_rsc_uninit(&dai->daio);
sound/pci/ctxfi/ctdaio.c
556
struct dai *dai = kzalloc(sizeof(*dai), GFP_KERNEL);
sound/pci/ctxfi/ctdaio.c
557
if (!dai)
sound/pci/ctxfi/ctdaio.c
560
err = dai_rsc_init(dai, desc, mgr);
sound/pci/ctxfi/ctdaio.c
562
kfree(dai);
sound/pci/ctxfi/ctdaio.c
566
*rdaio = &dai->daio;
sound/pci/ctxfi/ctdaio.c
594
dai_rsc_uninit(container_of(daio, struct dai, daio));
sound/pci/ctxfi/ctdaio.c
595
kfree(container_of(daio, struct dai, daio));
sound/pci/ctxfi/ctdaio.h
83
int (*set_srt_srcl)(struct dai *dai, struct rsc *src);
sound/pci/ctxfi/ctdaio.h
84
int (*set_srt_srcr)(struct dai *dai, struct rsc *src);
sound/pci/ctxfi/ctdaio.h
85
int (*set_srt_msr)(struct dai *dai, unsigned int msr);
sound/pci/ctxfi/ctdaio.h
86
int (*set_enb_src)(struct dai *dai, unsigned int enb);
sound/pci/ctxfi/ctdaio.h
87
int (*set_enb_srt)(struct dai *dai, unsigned int enb);
sound/pci/ctxfi/ctdaio.h
88
int (*commit_write)(struct dai *dai);
sound/soc/adi/axi-i2s.c
107
struct snd_soc_dai *dai)
sound/soc/adi/axi-i2s.c
109
struct axi_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/adi/axi-i2s.c
130
struct snd_soc_dai *dai)
sound/soc/adi/axi-i2s.c
132
struct axi_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/adi/axi-i2s.c
137
static int axi_i2s_dai_probe(struct snd_soc_dai *dai)
sound/soc/adi/axi-i2s.c
139
struct axi_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/adi/axi-i2s.c
142
dai,
sound/soc/adi/axi-i2s.c
58
struct snd_soc_dai *dai)
sound/soc/adi/axi-i2s.c
60
struct axi_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/adi/axi-i2s.c
89
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/adi/axi-i2s.c
91
struct axi_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/adi/axi-spdif.c
108
static int axi_spdif_dai_probe(struct snd_soc_dai *dai)
sound/soc/adi/axi-spdif.c
110
struct axi_spdif *spdif = snd_soc_dai_get_drvdata(dai);
sound/soc/adi/axi-spdif.c
112
snd_soc_dai_init_dma_data(dai, &spdif->dma_data, NULL);
sound/soc/adi/axi-spdif.c
118
struct snd_soc_dai *dai)
sound/soc/adi/axi-spdif.c
120
struct axi_spdif *spdif = snd_soc_dai_get_drvdata(dai);
sound/soc/adi/axi-spdif.c
140
struct snd_soc_dai *dai)
sound/soc/adi/axi-spdif.c
142
struct axi_spdif *spdif = snd_soc_dai_get_drvdata(dai);
sound/soc/adi/axi-spdif.c
49
struct snd_soc_dai *dai)
sound/soc/adi/axi-spdif.c
51
struct axi_spdif *spdif = snd_soc_dai_get_drvdata(dai);
sound/soc/adi/axi-spdif.c
76
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/adi/axi-spdif.c
78
struct axi_spdif *spdif = snd_soc_dai_get_drvdata(dai);
sound/soc/amd/acp/acp-i2s.c
160
if (dai->id != stream->dai_id)
sound/soc/amd/acp/acp-i2s.c
194
struct snd_soc_dai *dai)
sound/soc/amd/acp/acp-i2s.c
196
struct device *dev = dai->component->dev;
sound/soc/amd/acp/acp-i2s.c
227
switch (dai->driver->id) {
sound/soc/amd/acp/acp-i2s.c
241
dev_err(dev, "Invalid dai id %x\n", dai->driver->id);
sound/soc/amd/acp/acp-i2s.c
244
chip->xfer_tx_resolution[dai->driver->id - 1] = xfer_resolution;
sound/soc/amd/acp/acp-i2s.c
246
switch (dai->driver->id) {
sound/soc/amd/acp/acp-i2s.c
260
dev_err(dev, "Invalid dai id %x\n", dai->driver->id);
sound/soc/amd/acp/acp-i2s.c
263
chip->xfer_rx_resolution[dai->driver->id - 1] = xfer_resolution;
sound/soc/amd/acp/acp-i2s.c
275
tdm_fmt = chip->tdm_tx_fmt[dai->driver->id - 1];
sound/soc/amd/acp/acp-i2s.c
277
tdm_fmt = chip->tdm_rx_fmt[dai->driver->id - 1];
sound/soc/amd/acp/acp-i2s.c
387
static int acp_i2s_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai)
sound/soc/amd/acp/acp-i2s.c
390
struct device *dev = dai->component->dev;
sound/soc/amd/acp/acp-i2s.c
404
switch (dai->driver->id) {
sound/soc/amd/acp/acp-i2s.c
424
dev_err(dev, "Invalid dai id %x\n", dai->driver->id);
sound/soc/amd/acp/acp-i2s.c
428
switch (dai->driver->id) {
sound/soc/amd/acp/acp-i2s.c
448
dev_err(dev, "Invalid dai id %x\n", dai->driver->id);
sound/soc/amd/acp/acp-i2s.c
456
acp_set_i2s_clk(chip, dai->driver->id);
sound/soc/amd/acp/acp-i2s.c
466
switch (dai->driver->id) {
sound/soc/amd/acp/acp-i2s.c
477
dev_err(dev, "Invalid dai id %x\n", dai->driver->id);
sound/soc/amd/acp/acp-i2s.c
482
switch (dai->driver->id) {
sound/soc/amd/acp/acp-i2s.c
493
dev_err(dev, "Invalid dai id %x\n", dai->driver->id);
sound/soc/amd/acp/acp-i2s.c
518
static int acp_i2s_prepare(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/amd/acp/acp-i2s.c
520
struct device *dev = dai->component->dev;
sound/soc/amd/acp/acp-i2s.c
528
switch (dai->driver->id) {
sound/soc/amd/acp/acp-i2s.c
611
dev_err(dev, "Invalid dai id %x\n", dai->driver->id);
sound/soc/amd/acp/acp-i2s.c
632
static int acp_i2s_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/amd/acp/acp-i2s.c
635
struct device *dev = dai->component->dev;
sound/soc/amd/acp/acp-i2s.c
641
switch (dai->driver->id) {
sound/soc/amd/acp/acp-i2s.c
676
dev_err(dev, "Invalid dai id %x\n", dai->driver->id);
sound/soc/amd/acp/acp-i2s.c
681
stream->id = dai->driver->id + dir;
sound/soc/amd/acp/acp-i2s.c
682
stream->dai_id = dai->driver->id;
sound/soc/amd/acp/acp-i2s.c
93
static int acp_i2s_set_tdm_slot(struct snd_soc_dai *dai, u32 tx_mask, u32 rx_mask,
sound/soc/amd/acp/acp-i2s.c
96
struct device *dev = dai->component->dev;
sound/soc/amd/acp/acp-legacy-common.c
146
struct snd_soc_dai *dai)
sound/soc/amd/acp/acp-legacy-common.c
150
struct device *dev = dai->component->dev;
sound/soc/amd/acp/acp-legacy-common.c
167
struct snd_soc_dai *dai)
sound/soc/amd/acp/acp-legacy-common.c
169
struct device *dev = dai->component->dev;
sound/soc/amd/acp/acp-legacy-common.c
178
set_acp_pdm_ring_buffer(substream, dai);
sound/soc/amd/acp/acp-legacy-common.c
184
struct snd_soc_dai *dai;
sound/soc/amd/acp/acp-legacy-common.c
189
dai = snd_soc_rtd_to_cpu(soc_runtime, 0);
sound/soc/amd/acp/acp-legacy-common.c
199
set_acp_pdm_clk(substream, dai);
sound/soc/amd/acp/acp-legacy-common.c
204
struct snd_soc_dai *dai)
sound/soc/amd/acp/acp-legacy-common.c
206
struct device *dev = dai->component->dev;
sound/soc/amd/acp/acp-legacy-common.c
214
switch (dai->driver->id) {
sound/soc/amd/acp/acp-legacy-common.c
291
dev_err(dev, "Invalid dai id %x\n", dai->driver->id);
sound/soc/amd/acp/acp-legacy-common.c
315
struct snd_soc_dai *dai;
sound/soc/amd/acp/acp-legacy-common.c
320
dai = snd_soc_rtd_to_cpu(soc_runtime, 0);
sound/soc/amd/acp/acp-legacy-common.c
368
return set_acp_i2s_dma_fifo(substream, dai);
sound/soc/amd/acp/acp-pdm.c
108
struct snd_pcm_hw_params *hwparams, struct snd_soc_dai *dai)
sound/soc/amd/acp/acp-pdm.c
110
struct device *dev = dai->component->dev;
sound/soc/amd/acp/acp-pdm.c
132
dev_err(dai->dev, "Invalid format:%d\n", params_format(hwparams));
sound/soc/amd/acp/acp-pdm.c
143
struct snd_soc_dai *dai)
sound/soc/amd/acp/acp-pdm.c
146
struct device *dev = dai->component->dev;
sound/soc/amd/acp/acp-pdm.c
164
struct snd_soc_dai *dai)
sound/soc/amd/acp/acp-pdm.c
166
struct device *dev = dai->component->dev;
sound/soc/amd/acp/acp-pdm.c
29
struct snd_soc_dai *dai)
sound/soc/amd/acp/acp-pdm.c
32
struct device *dev = dai->component->dev;
sound/soc/amd/acp/acp-pdm.c
64
int cmd, struct snd_soc_dai *dai)
sound/soc/amd/acp/acp-pdm.c
66
struct device *dev = dai->component->dev;
sound/soc/amd/ps/ps-pdm-dma.c
290
int cmd, struct snd_soc_dai *dai)
sound/soc/amd/raven/acp3x-i2s.c
149
int cmd, struct snd_soc_dai *dai)
sound/soc/amd/raven/acp3x-i2s.c
73
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/amd/raven/acp3x-i2s.c
86
adata = snd_soc_dai_get_drvdata(dai);
sound/soc/amd/renoir/acp3x-pdm-dma.c
313
int cmd, struct snd_soc_dai *dai)
sound/soc/amd/vangogh/acp5x-i2s.c
101
adata = snd_soc_dai_get_drvdata(dai);
sound/soc/amd/vangogh/acp5x-i2s.c
233
int cmd, struct snd_soc_dai *dai)
sound/soc/amd/vangogh/acp5x-i2s.c
241
adata = snd_soc_dai_get_drvdata(dai);
sound/soc/amd/vangogh/acp5x-i2s.c
84
struct snd_soc_dai *dai)
sound/soc/amd/vangogh/acp5x-mach.c
169
struct snd_soc_dai *dai = snd_soc_card_get_codec_dai(card, ACP5X_NAU8821_DAI_NAME);
sound/soc/amd/vangogh/acp5x-mach.c
172
if (!dai)
sound/soc/amd/vangogh/acp5x-mach.c
175
ret = snd_soc_dai_set_sysclk(dai, NAU8821_CLK_FLL_BLK, 0, SND_SOC_CLOCK_IN);
sound/soc/amd/vangogh/acp5x-mach.c
181
dev_err(dai->dev, "Fail to get BCLK rate: %d\n", bclk);
sound/soc/amd/vangogh/acp5x-mach.c
185
ret = snd_soc_dai_set_pll(dai, 0, 0, bclk, params_rate(params) * 256);
sound/soc/amd/vangogh/acp5x-mach.c
65
struct snd_soc_dai *dai;
sound/soc/amd/vangogh/acp5x-mach.c
68
dai = snd_soc_card_get_codec_dai(card, ACP5X_NAU8821_DAI_NAME);
sound/soc/amd/vangogh/acp5x-mach.c
69
if (!dai) {
sound/soc/amd/vangogh/acp5x-mach.c
75
ret = snd_soc_dai_set_sysclk(dai, NAU8821_CLK_INTERNAL, 0, SND_SOC_CLOCK_IN);
sound/soc/amd/vangogh/acp5x-mach.c
81
ret = snd_soc_dai_set_sysclk(dai, NAU8821_CLK_FLL_BLK, 0, SND_SOC_CLOCK_IN);
sound/soc/amd/vangogh/acp5x-mach.c
83
dev_err(dai->dev, "can't set BLK clock %d\n", ret);
sound/soc/amd/vangogh/acp5x-mach.c
84
ret = snd_soc_dai_set_pll(dai, 0, 0, ACP5X_NAU8821_BCLK, ACP5X_NAU8821_FREQ_OUT);
sound/soc/amd/vangogh/acp5x-mach.c
86
dev_err(dai->dev, "can't set FLL: %d\n", ret);
sound/soc/amd/yc/acp6x-pdm-dma.c
285
int cmd, struct snd_soc_dai *dai)
sound/soc/apple/mca.c
179
static struct mca_cluster *mca_dai_to_cluster(struct snd_soc_dai *dai)
sound/soc/apple/mca.c
181
struct mca_data *mca = snd_soc_dai_get_drvdata(dai);
sound/soc/apple/mca.c
186
int cluster_no = dai->id % mca->nclusters;
sound/soc/apple/mca.c
193
struct snd_soc_dai *dai)
sound/soc/apple/mca.c
195
struct mca_cluster *cl = mca_dai_to_cluster(dai);
sound/soc/apple/mca.c
230
struct snd_soc_dai *dai)
sound/soc/apple/mca.c
232
struct mca_cluster *cl = mca_dai_to_cluster(dai);
sound/soc/apple/mca.c
329
struct snd_soc_dai *dai)
sound/soc/apple/mca.c
331
struct mca_cluster *cl = mca_dai_to_cluster(dai);
sound/soc/apple/mca.c
359
struct snd_soc_dai *dai)
sound/soc/apple/mca.c
361
struct mca_cluster *cl = mca_dai_to_cluster(dai);
sound/soc/apple/mca.c
468
struct snd_soc_dai *dai)
sound/soc/apple/mca.c
470
struct mca_cluster *cl = mca_dai_to_cluster(dai);
sound/soc/apple/mca.c
489
static int mca_fe_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/apple/mca.c
492
struct mca_cluster *cl = mca_dai_to_cluster(dai);
sound/soc/apple/mca.c
502
static int mca_fe_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/apple/mca.c
504
struct mca_cluster *cl = mca_dai_to_cluster(dai);
sound/soc/apple/mca.c
560
static int mca_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio)
sound/soc/apple/mca.c
562
struct mca_cluster *cl = mca_dai_to_cluster(dai);
sound/soc/apple/mca.c
589
struct snd_soc_dai *dai)
sound/soc/apple/mca.c
591
struct mca_cluster *cl = mca_dai_to_cluster(dai);
sound/soc/apple/mca.c
724
struct snd_soc_dai *dai)
sound/soc/apple/mca.c
728
struct mca_cluster *cl = mca_dai_to_cluster(dai);
sound/soc/apple/mca.c
777
struct snd_soc_dai *dai)
sound/soc/apple/mca.c
779
struct mca_cluster *cl = mca_dai_to_cluster(dai);
sound/soc/atmel/atmel-i2s.c
263
static int atmel_i2s_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/atmel/atmel-i2s.c
265
struct atmel_i2s_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/atmel-i2s.c
272
struct snd_soc_dai *dai)
sound/soc/atmel/atmel-i2s.c
274
struct atmel_i2s_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/atmel-i2s.c
324
struct snd_soc_dai *dai)
sound/soc/atmel/atmel-i2s.c
326
struct atmel_i2s_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/atmel-i2s.c
477
struct snd_soc_dai *dai)
sound/soc/atmel/atmel-i2s.c
479
struct atmel_i2s_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/atmel-i2s.c
535
static int atmel_i2s_dai_probe(struct snd_soc_dai *dai)
sound/soc/atmel/atmel-i2s.c
537
struct atmel_i2s_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/atmel-i2s.c
539
snd_soc_dai_init_dma_data(dai, &dev->playback, &dev->capture);
sound/soc/atmel/atmel_ssc_dai.c
270
struct snd_soc_dai *dai)
sound/soc/atmel/atmel_ssc_dai.c
272
struct platform_device *pdev = to_platform_device(dai->dev);
sound/soc/atmel/atmel_ssc_dai.c
308
dev_err(dai->dev, "Failed to specify rate rule: %d\n", ret);
sound/soc/atmel/atmel_ssc_dai.c
318
snd_soc_dai_set_dma_data(dai, substream, dma_params);
sound/soc/atmel/atmel_ssc_dai.c
333
struct snd_soc_dai *dai)
sound/soc/atmel/atmel_ssc_dai.c
335
struct platform_device *pdev = to_platform_device(dai->dev);
sound/soc/atmel/atmel_ssc_dai.c
459
struct snd_soc_dai *dai)
sound/soc/atmel/atmel_ssc_dai.c
461
struct platform_device *pdev = to_platform_device(dai->dev);
sound/soc/atmel/atmel_ssc_dai.c
494
dev_err(dai->dev, "unable to calculate cmr_div: %d\n",
sound/soc/atmel/atmel_ssc_dai.c
512
dev_err(dai->dev,
sound/soc/atmel/atmel_ssc_dai.c
661
dev_err(dai->dev, "sample size %d is too large for SSC device\n",
sound/soc/atmel/atmel_ssc_dai.c
713
struct snd_soc_dai *dai)
sound/soc/atmel/atmel_ssc_dai.c
715
struct platform_device *pdev = to_platform_device(dai->dev);
sound/soc/atmel/atmel_ssc_dai.c
737
int cmd, struct snd_soc_dai *dai)
sound/soc/atmel/atmel_ssc_dai.c
739
struct platform_device *pdev = to_platform_device(dai->dev);
sound/soc/atmel/mchp-i2s-mcc.c
322
static int mchp_i2s_mcc_set_sysclk(struct snd_soc_dai *dai,
sound/soc/atmel/mchp-i2s-mcc.c
325
struct mchp_i2s_mcc_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-i2s-mcc.c
339
static int mchp_i2s_mcc_set_bclk_ratio(struct snd_soc_dai *dai,
sound/soc/atmel/mchp-i2s-mcc.c
342
struct mchp_i2s_mcc_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-i2s-mcc.c
351
static int mchp_i2s_mcc_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/atmel/mchp-i2s-mcc.c
353
struct mchp_i2s_mcc_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-i2s-mcc.c
374
static int mchp_i2s_mcc_set_dai_tdm_slot(struct snd_soc_dai *dai,
sound/soc/atmel/mchp-i2s-mcc.c
379
struct mchp_i2s_mcc_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-i2s-mcc.c
532
struct snd_soc_dai *dai)
sound/soc/atmel/mchp-i2s-mcc.c
535
struct mchp_i2s_mcc_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-i2s-mcc.c
761
struct snd_soc_dai *dai)
sound/soc/atmel/mchp-i2s-mcc.c
763
struct mchp_i2s_mcc_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-i2s-mcc.c
817
struct snd_soc_dai *dai)
sound/soc/atmel/mchp-i2s-mcc.c
819
struct mchp_i2s_mcc_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-i2s-mcc.c
888
struct snd_soc_dai *dai)
sound/soc/atmel/mchp-i2s-mcc.c
890
struct mchp_i2s_mcc_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-i2s-mcc.c
901
static int mchp_i2s_mcc_dai_probe(struct snd_soc_dai *dai)
sound/soc/atmel/mchp-i2s-mcc.c
903
struct mchp_i2s_mcc_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-i2s-mcc.c
910
snd_soc_dai_init_dma_data(dai, &dev->playback, &dev->capture);
sound/soc/atmel/mchp-pdmc.c
424
struct snd_soc_dai *dai)
sound/soc/atmel/mchp-pdmc.c
426
struct mchp_pdmc *dd = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-pdmc.c
436
static int mchp_pdmc_dai_probe(struct snd_soc_dai *dai)
sound/soc/atmel/mchp-pdmc.c
438
struct mchp_pdmc *dd = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-pdmc.c
440
snd_soc_dai_init_dma_data(dai, NULL, &dd->addr);
sound/soc/atmel/mchp-pdmc.c
445
static int mchp_pdmc_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/atmel/mchp-pdmc.c
522
struct snd_soc_dai *dai)
sound/soc/atmel/mchp-pdmc.c
524
struct mchp_pdmc *dd = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-pdmc.c
525
struct snd_soc_component *comp = dai->component;
sound/soc/atmel/mchp-pdmc.c
641
int cmd, struct snd_soc_dai *dai)
sound/soc/atmel/mchp-pdmc.c
643
struct mchp_pdmc *dd = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-pdmc.c
644
struct snd_soc_component *cpu = dai->component;
sound/soc/atmel/mchp-pdmc.c
732
struct snd_soc_dai *dai)
sound/soc/atmel/mchp-pdmc.c
734
struct mchp_pdmc *dd = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-spdifrx.c
388
struct snd_soc_dai *dai)
sound/soc/atmel/mchp-spdifrx.c
390
struct mchp_spdifrx_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-spdifrx.c
429
struct snd_soc_dai *dai)
sound/soc/atmel/mchp-spdifrx.c
431
struct mchp_spdifrx_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-spdifrx.c
589
struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol);
sound/soc/atmel/mchp-spdifrx.c
590
struct mchp_spdifrx_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-spdifrx.c
598
struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol);
sound/soc/atmel/mchp-spdifrx.c
599
struct mchp_spdifrx_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-spdifrx.c
671
struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol);
sound/soc/atmel/mchp-spdifrx.c
672
struct mchp_spdifrx_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-spdifrx.c
680
struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol);
sound/soc/atmel/mchp-spdifrx.c
681
struct mchp_spdifrx_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-spdifrx.c
700
struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol);
sound/soc/atmel/mchp-spdifrx.c
701
struct mchp_spdifrx_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-spdifrx.c
737
struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol);
sound/soc/atmel/mchp-spdifrx.c
738
struct mchp_spdifrx_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-spdifrx.c
774
struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol);
sound/soc/atmel/mchp-spdifrx.c
775
struct mchp_spdifrx_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-spdifrx.c
838
struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol);
sound/soc/atmel/mchp-spdifrx.c
839
struct mchp_spdifrx_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-spdifrx.c
961
static int mchp_spdifrx_dai_probe(struct snd_soc_dai *dai)
sound/soc/atmel/mchp-spdifrx.c
963
struct mchp_spdifrx_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-spdifrx.c
967
snd_soc_dai_init_dma_data(dai, NULL, &dev->capture);
sound/soc/atmel/mchp-spdifrx.c
985
snd_soc_add_dai_controls(dai, mchp_spdifrx_ctrls,
sound/soc/atmel/mchp-spdifrx.c
991
static int mchp_spdifrx_dai_remove(struct snd_soc_dai *dai)
sound/soc/atmel/mchp-spdifrx.c
993
struct mchp_spdifrx_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-spdiftx.c
284
struct snd_soc_dai *dai)
sound/soc/atmel/mchp-spdiftx.c
286
struct mchp_spdiftx_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-spdiftx.c
296
struct snd_soc_dai *dai)
sound/soc/atmel/mchp-spdiftx.c
298
struct mchp_spdiftx_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-spdiftx.c
305
struct snd_soc_dai *dai)
sound/soc/atmel/mchp-spdiftx.c
307
struct mchp_spdiftx_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-spdiftx.c
347
struct snd_soc_dai *dai)
sound/soc/atmel/mchp-spdiftx.c
350
struct mchp_spdiftx_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-spdiftx.c
511
struct snd_soc_dai *dai)
sound/soc/atmel/mchp-spdiftx.c
513
struct mchp_spdiftx_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-spdiftx.c
549
struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol);
sound/soc/atmel/mchp-spdiftx.c
550
struct mchp_spdiftx_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-spdiftx.c
565
struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol);
sound/soc/atmel/mchp-spdiftx.c
566
struct mchp_spdiftx_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-spdiftx.c
608
struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol);
sound/soc/atmel/mchp-spdiftx.c
609
struct mchp_spdiftx_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-spdiftx.c
625
struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol);
sound/soc/atmel/mchp-spdiftx.c
626
struct mchp_spdiftx_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-spdiftx.c
685
static int mchp_spdiftx_dai_probe(struct snd_soc_dai *dai)
sound/soc/atmel/mchp-spdiftx.c
687
struct mchp_spdiftx_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/atmel/mchp-spdiftx.c
689
snd_soc_dai_init_dma_data(dai, &dev->playback, NULL);
sound/soc/atmel/mchp-spdiftx.c
692
snd_soc_add_dai_controls(dai, mchp_spdiftx_ctrls,
sound/soc/atmel/mikroe-proto.c
100
dai->platforms = &comp[2];
sound/soc/atmel/mikroe-proto.c
101
dai->num_platforms = 1;
sound/soc/atmel/mikroe-proto.c
103
dai->name = "WM8731";
sound/soc/atmel/mikroe-proto.c
104
dai->stream_name = "WM8731 HiFi";
sound/soc/atmel/mikroe-proto.c
105
dai->codecs->dai_name = "wm8731-hifi";
sound/soc/atmel/mikroe-proto.c
106
dai->init = &snd_proto_init;
sound/soc/atmel/mikroe-proto.c
113
dai->codecs->of_node = codec_np;
sound/soc/atmel/mikroe-proto.c
121
dai->cpus->of_node = cpu_np;
sound/soc/atmel/mikroe-proto.c
122
dai->platforms->of_node = cpu_np;
sound/soc/atmel/mikroe-proto.c
142
dai->dai_fmt = dai_fmt;
sound/soc/atmel/mikroe-proto.c
65
struct snd_soc_dai_link *dai;
sound/soc/atmel/mikroe-proto.c
84
dai = devm_kzalloc(&pdev->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/atmel/mikroe-proto.c
85
if (!dai)
sound/soc/atmel/mikroe-proto.c
93
snd_proto.dai_link = dai;
sound/soc/atmel/mikroe-proto.c
96
dai->cpus = &comp[0];
sound/soc/atmel/mikroe-proto.c
97
dai->num_cpus = 1;
sound/soc/atmel/mikroe-proto.c
98
dai->codecs = &comp[1];
sound/soc/atmel/mikroe-proto.c
99
dai->num_codecs = 1;
sound/soc/atmel/sam9x5_wm8731.c
101
card->dai_link = dai;
sound/soc/atmel/sam9x5_wm8731.c
106
dai->cpus = &comp[0];
sound/soc/atmel/sam9x5_wm8731.c
107
dai->num_cpus = 1;
sound/soc/atmel/sam9x5_wm8731.c
108
dai->codecs = &comp[1];
sound/soc/atmel/sam9x5_wm8731.c
109
dai->num_codecs = 1;
sound/soc/atmel/sam9x5_wm8731.c
110
dai->platforms = &comp[2];
sound/soc/atmel/sam9x5_wm8731.c
111
dai->num_platforms = 1;
sound/soc/atmel/sam9x5_wm8731.c
113
dai->name = "WM8731";
sound/soc/atmel/sam9x5_wm8731.c
114
dai->stream_name = "WM8731 PCM";
sound/soc/atmel/sam9x5_wm8731.c
115
dai->codecs->dai_name = "wm8731-hifi";
sound/soc/atmel/sam9x5_wm8731.c
116
dai->init = sam9x5_wm8731_init;
sound/soc/atmel/sam9x5_wm8731.c
117
dai->dai_fmt = SND_SOC_DAIFMT_DSP_A | SND_SOC_DAIFMT_NB_NF
sound/soc/atmel/sam9x5_wm8731.c
139
dai->codecs->of_node = codec_np;
sound/soc/atmel/sam9x5_wm8731.c
147
dai->cpus->of_node = cpu_np;
sound/soc/atmel/sam9x5_wm8731.c
148
dai->platforms->of_node = cpu_np;
sound/soc/atmel/sam9x5_wm8731.c
78
struct snd_soc_dai_link *dai;
sound/soc/atmel/sam9x5_wm8731.c
90
dai = devm_kzalloc(&pdev->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/atmel/sam9x5_wm8731.c
92
if (!dai || !card || !priv || !comp) {
sound/soc/au1x/ac97c.c
191
struct snd_soc_dai *dai)
sound/soc/au1x/ac97c.c
193
struct au1xpsc_audio_data *ctx = snd_soc_dai_get_drvdata(dai);
sound/soc/au1x/ac97c.c
194
snd_soc_dai_set_dma_data(dai, substream, &ctx->dmaids[0]);
sound/soc/au1x/ac97c.c
198
static int au1xac97c_dai_probe(struct snd_soc_dai *dai)
sound/soc/au1x/i2sc.c
137
int cmd, struct snd_soc_dai *dai)
sound/soc/au1x/i2sc.c
139
struct au1xpsc_audio_data *ctx = snd_soc_dai_get_drvdata(dai);
sound/soc/au1x/i2sc.c
183
struct snd_soc_dai *dai)
sound/soc/au1x/i2sc.c
185
struct au1xpsc_audio_data *ctx = snd_soc_dai_get_drvdata(dai);
sound/soc/au1x/i2sc.c
198
struct snd_soc_dai *dai)
sound/soc/au1x/i2sc.c
200
struct au1xpsc_audio_data *ctx = snd_soc_dai_get_drvdata(dai);
sound/soc/au1x/i2sc.c
201
snd_soc_dai_set_dma_data(dai, substream, &ctx->dmaids[0]);
sound/soc/au1x/psc-ac97.c
209
struct snd_soc_dai *dai)
sound/soc/au1x/psc-ac97.c
211
struct au1xpsc_audio_data *pscdata = snd_soc_dai_get_drvdata(dai);
sound/soc/au1x/psc-ac97.c
289
int cmd, struct snd_soc_dai *dai)
sound/soc/au1x/psc-ac97.c
291
struct au1xpsc_audio_data *pscdata = snd_soc_dai_get_drvdata(dai);
sound/soc/au1x/psc-ac97.c
323
struct snd_soc_dai *dai)
sound/soc/au1x/psc-ac97.c
325
struct au1xpsc_audio_data *pscdata = snd_soc_dai_get_drvdata(dai);
sound/soc/au1x/psc-ac97.c
326
snd_soc_dai_set_dma_data(dai, substream, &pscdata->dmaids[0]);
sound/soc/au1x/psc-ac97.c
330
static int au1xpsc_ac97_probe(struct snd_soc_dai *dai)
sound/soc/au1x/psc-i2s.c
112
struct snd_soc_dai *dai)
sound/soc/au1x/psc-i2s.c
114
struct au1xpsc_audio_data *pscdata = snd_soc_dai_get_drvdata(dai);
sound/soc/au1x/psc-i2s.c
237
struct snd_soc_dai *dai)
sound/soc/au1x/psc-i2s.c
239
struct au1xpsc_audio_data *pscdata = snd_soc_dai_get_drvdata(dai);
sound/soc/au1x/psc-i2s.c
258
struct snd_soc_dai *dai)
sound/soc/au1x/psc-i2s.c
260
struct au1xpsc_audio_data *pscdata = snd_soc_dai_get_drvdata(dai);
sound/soc/au1x/psc-i2s.c
261
snd_soc_dai_set_dma_data(dai, substream, &pscdata->dmaids[0]);
sound/soc/bcm/bcm2835-i2s.c
219
static int bcm2835_i2s_set_dai_fmt(struct snd_soc_dai *dai,
sound/soc/bcm/bcm2835-i2s.c
222
struct bcm2835_i2s_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/bcm/bcm2835-i2s.c
227
static int bcm2835_i2s_set_dai_bclk_ratio(struct snd_soc_dai *dai,
sound/soc/bcm/bcm2835-i2s.c
230
struct bcm2835_i2s_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/bcm/bcm2835-i2s.c
249
static int bcm2835_i2s_set_dai_tdm_slot(struct snd_soc_dai *dai,
sound/soc/bcm/bcm2835-i2s.c
253
struct bcm2835_i2s_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/bcm/bcm2835-i2s.c
331
struct snd_soc_dai *dai)
sound/soc/bcm/bcm2835-i2s.c
333
struct bcm2835_i2s_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/bcm/bcm2835-i2s.c
618
struct snd_soc_dai *dai)
sound/soc/bcm/bcm2835-i2s.c
620
struct bcm2835_i2s_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/bcm/bcm2835-i2s.c
643
struct snd_soc_dai *dai)
sound/soc/bcm/bcm2835-i2s.c
656
if (!snd_soc_dai_active(dai) && !(dev->fmt & SND_SOC_DAIFMT_CONT))
sound/soc/bcm/bcm2835-i2s.c
661
struct snd_soc_dai *dai)
sound/soc/bcm/bcm2835-i2s.c
663
struct bcm2835_i2s_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/bcm/bcm2835-i2s.c
684
bcm2835_i2s_stop(dev, substream, dai);
sound/soc/bcm/bcm2835-i2s.c
694
struct snd_soc_dai *dai)
sound/soc/bcm/bcm2835-i2s.c
696
struct bcm2835_i2s_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/bcm/bcm2835-i2s.c
698
if (snd_soc_dai_active(dai))
sound/soc/bcm/bcm2835-i2s.c
719
struct snd_soc_dai *dai)
sound/soc/bcm/bcm2835-i2s.c
721
struct bcm2835_i2s_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/bcm/bcm2835-i2s.c
723
bcm2835_i2s_stop(dev, substream, dai);
sound/soc/bcm/bcm2835-i2s.c
726
if (snd_soc_dai_active(dai))
sound/soc/bcm/bcm2835-i2s.c
740
static int bcm2835_i2s_dai_probe(struct snd_soc_dai *dai)
sound/soc/bcm/bcm2835-i2s.c
742
struct bcm2835_i2s_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/bcm/bcm2835-i2s.c
744
snd_soc_dai_init_dma_data(dai,
sound/soc/bcm/bcm63xx-i2s-whistler.c
143
struct snd_soc_dai *dai)
sound/soc/bcm/bcm63xx-i2s-whistler.c
146
struct bcm_i2s_priv *i2s_priv = snd_soc_dai_get_drvdata(dai);
sound/soc/bcm/bcm63xx-i2s-whistler.c
76
struct snd_soc_dai *dai)
sound/soc/bcm/bcm63xx-i2s-whistler.c
79
struct bcm_i2s_priv *i2s_priv = snd_soc_dai_get_drvdata(dai);
sound/soc/bcm/bcm63xx-i2s-whistler.c
90
struct snd_soc_dai *dai)
sound/soc/bcm/bcm63xx-i2s-whistler.c
93
struct bcm_i2s_priv *i2s_priv = snd_soc_dai_get_drvdata(dai);
sound/soc/bcm/cygnus-ssp.c
1076
struct snd_soc_dai *dai;
sound/soc/bcm/cygnus-ssp.c
1079
for_each_component_dais(component, dai)
sound/soc/bcm/cygnus-ssp.c
1080
ret |= __cygnus_ssp_suspend(dai);
sound/soc/bcm/cygnus-ssp.c
1122
struct snd_soc_dai *dai;
sound/soc/bcm/cygnus-ssp.c
1125
for_each_component_dais(component, dai)
sound/soc/bcm/cygnus-ssp.c
1126
ret |= __cygnus_ssp_resume(dai);
sound/soc/bcm/cygnus-ssp.c
237
static struct cygnus_aio_port *cygnus_dai_get_portinfo(struct snd_soc_dai *dai)
sound/soc/bcm/cygnus-ssp.c
239
struct cygnus_audio *cygaud = snd_soc_dai_get_drvdata(dai);
sound/soc/bcm/cygnus-ssp.c
241
return &cygaud->portinfo[dai->id];
sound/soc/bcm/cygnus-ssp.c
612
struct snd_soc_dai *dai)
sound/soc/bcm/cygnus-ssp.c
614
struct cygnus_aio_port *aio = cygnus_dai_get_portinfo(dai);
sound/soc/bcm/cygnus-ssp.c
705
static int cygnus_ssp_set_sysclk(struct snd_soc_dai *dai,
sound/soc/bcm/cygnus-ssp.c
710
struct cygnus_aio_port *aio = cygnus_dai_get_portinfo(dai);
sound/soc/bcm/cygnus-ssp.c
711
struct cygnus_audio *cygaud = snd_soc_dai_get_drvdata(dai);
sound/soc/bcm/cygnus-ssp.c
734
struct snd_soc_dai *dai)
sound/soc/bcm/cygnus-ssp.c
736
struct cygnus_aio_port *aio = cygnus_dai_get_portinfo(dai);
sound/soc/bcm/cygnus-ssp.c
738
snd_soc_dai_set_dma_data(dai, substream, aio);
sound/soc/bcm/cygnus-ssp.c
753
struct snd_soc_dai *dai)
sound/soc/bcm/cygnus-ssp.c
755
struct cygnus_aio_port *aio = cygnus_dai_get_portinfo(dai);
sound/soc/bcm/cygnus-ssp.c
923
struct snd_soc_dai *dai)
sound/soc/bcm/cygnus-ssp.c
925
struct cygnus_aio_port *aio = cygnus_dai_get_portinfo(dai);
sound/soc/bcm/cygnus-ssp.c
926
struct cygnus_audio *cygaud = snd_soc_dai_get_drvdata(dai);
sound/soc/cirrus/ep93xx-i2s.c
197
static int ep93xx_i2s_dai_probe(struct snd_soc_dai *dai)
sound/soc/cirrus/ep93xx-i2s.c
199
struct ep93xx_i2s_info *info = snd_soc_dai_get_drvdata(dai);
sound/soc/cirrus/ep93xx-i2s.c
201
snd_soc_dai_init_dma_data(dai, &info->dma_params_tx,
sound/soc/cirrus/ep93xx-i2s.c
208
struct snd_soc_dai *dai)
sound/soc/cirrus/ep93xx-i2s.c
210
struct ep93xx_i2s_info *info = snd_soc_dai_get_drvdata(dai);
sound/soc/cirrus/ep93xx-i2s.c
216
struct snd_soc_dai *dai)
sound/soc/cirrus/ep93xx-i2s.c
218
struct ep93xx_i2s_info *info = snd_soc_dai_get_drvdata(dai);
sound/soc/cirrus/ep93xx-i2s.c
301
struct snd_soc_dai *dai)
sound/soc/cirrus/ep93xx-i2s.c
303
struct ep93xx_i2s_info *info = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/88pm860x-codec.c
1017
struct snd_soc_dai *dai)
sound/soc/codecs/88pm860x-codec.c
1019
struct snd_soc_component *component = dai->component;
sound/soc/codecs/88pm860x-codec.c
920
struct snd_soc_dai *dai)
sound/soc/codecs/88pm860x-codec.c
922
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ab8500-codec.c
2027
static int ab8500_audio_set_bit_delay(struct snd_soc_dai *dai,
sound/soc/codecs/ab8500-codec.c
2031
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ab8500-codec.c
2043
dev_err(dai->component->dev,
sound/soc/codecs/ab8500-codec.c
2049
dev_dbg(dai->component->dev, "%s: IF0 Bit-delay: %d bits.\n",
sound/soc/codecs/ab8500-codec.c
2090
static int ab8500_codec_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/ab8500-codec.c
2094
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ab8500-codec.c
2107
dev_dbg(dai->component->dev,
sound/soc/codecs/ab8500-codec.c
2112
dev_dbg(dai->component->dev,
sound/soc/codecs/ab8500-codec.c
2117
dev_err(dai->component->dev,
sound/soc/codecs/ab8500-codec.c
2122
dev_err(dai->component->dev,
sound/soc/codecs/ab8500-codec.c
2133
dev_err(dai->component->dev,
sound/soc/codecs/ab8500-codec.c
2149
dev_dbg(dai->component->dev, "%s: IF0 Protocol: I2S\n", __func__);
sound/soc/codecs/ab8500-codec.c
2151
ab8500_audio_set_bit_delay(dai, 0);
sound/soc/codecs/ab8500-codec.c
2155
dev_dbg(dai->component->dev,
sound/soc/codecs/ab8500-codec.c
2158
ab8500_audio_set_bit_delay(dai, 1);
sound/soc/codecs/ab8500-codec.c
2162
dev_dbg(dai->component->dev,
sound/soc/codecs/ab8500-codec.c
2165
ab8500_audio_set_bit_delay(dai, 0);
sound/soc/codecs/ab8500-codec.c
2169
dev_err(dai->component->dev,
sound/soc/codecs/ab8500-codec.c
2177
dev_dbg(dai->component->dev,
sound/soc/codecs/ab8500-codec.c
2182
dev_dbg(dai->component->dev,
sound/soc/codecs/ab8500-codec.c
2188
dev_dbg(dai->component->dev,
sound/soc/codecs/ab8500-codec.c
2194
dev_dbg(dai->component->dev,
sound/soc/codecs/ab8500-codec.c
2201
dev_err(dai->component->dev,
sound/soc/codecs/ab8500-codec.c
2212
static int ab8500_codec_set_dai_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/ab8500-codec.c
2216
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ab8500-codec.c
2237
dev_err(dai->component->dev, "%s: Unsupported slot-width 0x%x\n",
sound/soc/codecs/ab8500-codec.c
2242
dev_dbg(dai->component->dev, "%s: IF0 slot-width: %d bits.\n",
sound/soc/codecs/ab8500-codec.c
2247
dev_dbg(dai->component->dev, "%s: Slots, total: %d\n", __func__, slots);
sound/soc/codecs/ab8500-codec.c
2265
dev_err(dai->component->dev,
sound/soc/codecs/ab8500-codec.c
2281
dev_dbg(dai->component->dev, "%s: Slots, active, TX: %d\n", __func__,
sound/soc/codecs/ab8500-codec.c
2303
dev_dbg(dai->component->dev,
sound/soc/codecs/ab8500-codec.c
2308
dev_err(dai->component->dev,
sound/soc/codecs/ab8500-codec.c
2322
dev_dbg(dai->component->dev, "%s: Slots, active, RX: %d\n", __func__,
sound/soc/codecs/ab8500-codec.c
2347
dev_dbg(dai->component->dev,
sound/soc/codecs/ab8500-codec.c
2352
dev_err(dai->component->dev,
sound/soc/codecs/ac97.c
34
struct snd_soc_dai *dai)
sound/soc/codecs/ac97.c
36
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ad1836.c
164
struct snd_soc_dai *dai)
sound/soc/codecs/ad1836.c
166
struct ad1836_priv *ad1836 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/ad193x.c
146
static int ad193x_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/ad193x.c
148
struct ad193x_priv *ad193x = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/ad193x.c
161
static int ad193x_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/ad193x.c
164
struct ad193x_priv *ad193x = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/ad193x.c
314
struct snd_soc_dai *dai)
sound/soc/codecs/ad193x.c
317
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ad193x.c
322
dev_dbg(dai->dev, "%s() rate=%u format=%#x width=%u channels=%u\n",
sound/soc/codecs/ad193x.c
368
dev_err(dai->dev, "invalid sampling rate: %d\n", params_rate(params));
sound/soc/codecs/ad193x.c
390
struct snd_soc_dai *dai)
sound/soc/codecs/adau1372.c
574
static int adau1372_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/adau1372.c
576
struct adau1372 *adau1372 = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/adau1372.c
639
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/adau1372.c
641
struct adau1372 *adau1372 = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/adau1372.c
679
static int adau1372_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/adau1372.c
682
struct adau1372 *adau1372 = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/adau1372.c
742
static int adau1372_set_tristate(struct snd_soc_dai *dai, int tristate)
sound/soc/codecs/adau1372.c
744
struct adau1372 *adau1372 = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/adau1372.c
755
static int adau1372_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/codecs/adau1372.c
757
struct adau1372 *adau1372 = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/adau1373.c
1050
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/adau1373.c
1052
struct snd_soc_component *component = dai->component;
sound/soc/codecs/adau1373.c
1054
struct adau1373_dai *adau1373_dai = &adau1373->dais[dai->id];
sound/soc/codecs/adau1373.c
1092
regmap_update_bits(adau1373->regmap, ADAU1373_BCLKDIV(dai->id),
sound/soc/codecs/adau1373.c
1113
return regmap_update_bits(adau1373->regmap, ADAU1373_DAI(dai->id),
sound/soc/codecs/adau1373.c
1117
static int adau1373_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/adau1373.c
1119
struct snd_soc_component *component = dai->component;
sound/soc/codecs/adau1373.c
1121
struct adau1373_dai *adau1373_dai = &adau1373->dais[dai->id];
sound/soc/codecs/adau1373.c
1170
regmap_update_bits(adau1373->regmap, ADAU1373_DAI(dai->id),
sound/soc/codecs/adau1373.c
1176
static int adau1373_set_dai_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/adau1373.c
1179
struct adau1373 *adau1373 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/adau1373.c
1180
struct adau1373_dai *adau1373_dai = &adau1373->dais[dai->id];
sound/soc/codecs/adau1373.c
1193
regmap_update_bits(adau1373->regmap, ADAU1373_BCLKDIV(dai->id),
sound/soc/codecs/adau1373.c
844
unsigned int dai;
sound/soc/codecs/adau1373.c
847
dai = sink->name[3] - '1';
sound/soc/codecs/adau1373.c
849
if (!adau1373->dais[dai].clock_provider)
sound/soc/codecs/adau1373.c
852
if (adau1373->dais[dai].clk_src == ADAU1373_CLK_SRC_PLL1)
sound/soc/codecs/adau1373.c
865
unsigned int dai;
sound/soc/codecs/adau1373.c
867
dai = sink->name[3] - '1';
sound/soc/codecs/adau1373.c
869
return adau1373->dais[dai].enable_src;
sound/soc/codecs/adau1701.c
434
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/adau1701.c
436
struct snd_soc_component *component = dai->component;
sound/soc/codecs/adau1701.c
575
static int adau1701_mute_stream(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/adau1701.c
577
struct snd_soc_component *component = dai->component;
sound/soc/codecs/adau1701.c
617
struct snd_soc_dai *dai)
sound/soc/codecs/adau1701.c
619
struct adau1701 *adau1701 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/adau17x1.c
358
static int adau17x1_set_dai_pll(struct snd_soc_dai *dai, int pll_id,
sound/soc/codecs/adau17x1.c
361
struct snd_soc_component *component = dai->component;
sound/soc/codecs/adau17x1.c
383
static int adau17x1_set_dai_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/adau17x1.c
386
struct snd_soc_dapm_context *dapm = snd_soc_component_to_dapm(dai->component);
sound/soc/codecs/adau17x1.c
387
struct adau *adau = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/adau17x1.c
435
static int adau17x1_auto_pll(struct snd_soc_dai *dai,
sound/soc/codecs/adau17x1.c
438
struct adau *adau = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/adau17x1.c
464
return adau17x1_set_dai_pll(dai, ADAU17X1_PLL, ADAU17X1_PLL_SRC_MCLK,
sound/soc/codecs/adau17x1.c
469
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/adau17x1.c
471
struct snd_soc_component *component = dai->component;
sound/soc/codecs/adau17x1.c
479
ret = adau17x1_auto_pll(dai, params);
sound/soc/codecs/adau17x1.c
562
static int adau17x1_set_dai_fmt(struct snd_soc_dai *dai,
sound/soc/codecs/adau17x1.c
565
struct adau *adau = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/adau17x1.c
643
static int adau17x1_set_dai_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/adau17x1.c
646
struct adau *adau = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/adau17x1.c
769
struct snd_soc_dai *dai)
sound/soc/codecs/adau17x1.c
771
struct adau *adau = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/adau1977.c
293
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/adau1977.c
295
struct snd_soc_component *component = dai->component;
sound/soc/codecs/adau1977.c
496
static int adau1977_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/adau1977.c
499
struct adau1977 *adau1977 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/adau1977.c
603
static int adau1977_mute(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/adau1977.c
605
struct adau1977 *adau1977 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/adau1977.c
617
static int adau1977_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/adau1977.c
619
struct adau1977 *adau1977 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/adau1977.c
704
struct snd_soc_dai *dai)
sound/soc/codecs/adau1977.c
706
struct adau1977 *adau1977 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/adau1977.c
730
static int adau1977_set_tristate(struct snd_soc_dai *dai, int tristate)
sound/soc/codecs/adau1977.c
732
struct adau1977 *adau1977 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/adau7118.c
123
static int adau7118_set_channel_map(struct snd_soc_dai *dai,
sound/soc/codecs/adau7118.c
130
snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/adau7118.c
136
ret = snd_soc_component_update_bits(dai->component,
sound/soc/codecs/adau7118.c
147
static int adau7118_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/adau7118.c
150
snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/adau7118.c
158
ret = snd_soc_component_update_bits(dai->component,
sound/soc/codecs/adau7118.c
164
ret = snd_soc_component_update_bits(dai->component,
sound/soc/codecs/adau7118.c
173
ret = snd_soc_component_update_bits(dai->component,
sound/soc/codecs/adau7118.c
206
ret = snd_soc_component_update_bits(dai->component,
sound/soc/codecs/adau7118.c
216
static int adau7118_set_tristate(struct snd_soc_dai *dai, int tristate)
sound/soc/codecs/adau7118.c
219
snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/adau7118.c
224
ret = snd_soc_component_update_bits(dai->component,
sound/soc/codecs/adau7118.c
234
static int adau7118_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/adau7118.c
239
snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/adau7118.c
260
ret = snd_soc_component_update_bits(dai->component,
sound/soc/codecs/adau7118.c
274
struct snd_soc_dai *dai)
sound/soc/codecs/adau7118.c
277
snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/adau7118.c
284
ret = snd_soc_component_update_bits(dai->component,
sound/soc/codecs/adau7118.c
323
ret = snd_soc_component_update_bits(dai->component,
sound/soc/codecs/adav80x.c
365
static int adav80x_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/adav80x.c
367
struct snd_soc_component *component = dai->component;
sound/soc/codecs/adav80x.c
407
regmap_update_bits(adav80x->regmap, adav80x_port_ctrl_regs[dai->id][0],
sound/soc/codecs/adav80x.c
410
regmap_write(adav80x->regmap, adav80x_port_ctrl_regs[dai->id][1],
sound/soc/codecs/adav80x.c
413
adav80x->dai_fmt[dai->id] = fmt & SND_SOC_DAIFMT_FORMAT_MASK;
sound/soc/codecs/adav80x.c
454
struct snd_soc_dai *dai, struct snd_pcm_hw_params *params)
sound/soc/codecs/adav80x.c
476
regmap_update_bits(adav80x->regmap, adav80x_port_ctrl_regs[dai->id][0],
sound/soc/codecs/adav80x.c
483
struct snd_soc_dai *dai, struct snd_pcm_hw_params *params)
sound/soc/codecs/adav80x.c
488
if (adav80x->dai_fmt[dai->id] != SND_SOC_DAIFMT_RIGHT_J)
sound/soc/codecs/adav80x.c
508
regmap_update_bits(adav80x->regmap, adav80x_port_ctrl_regs[dai->id][1],
sound/soc/codecs/adav80x.c
515
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/adav80x.c
517
struct snd_soc_component *component = dai->component;
sound/soc/codecs/adav80x.c
525
adav80x_set_playback_pcm_format(component, dai, params);
sound/soc/codecs/adav80x.c
528
adav80x_set_capture_pcm_format(component, dai, params);
sound/soc/codecs/adav80x.c
724
struct snd_soc_dai *dai)
sound/soc/codecs/adav80x.c
726
struct snd_soc_component *component = dai->component;
sound/soc/codecs/adav80x.c
737
struct snd_soc_dai *dai)
sound/soc/codecs/adav80x.c
739
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ak4104.c
101
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ak4104.c
99
struct snd_soc_dai *dai)
sound/soc/codecs/ak4118.c
195
static int ak4118_set_dai_fmt(struct snd_soc_dai *dai,
sound/soc/codecs/ak4118.c
198
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ak4118.c
234
struct snd_soc_dai *dai)
sound/soc/codecs/ak4375.c
251
struct snd_soc_dai *dai)
sound/soc/codecs/ak4375.c
253
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ak4375.c
271
return snd_soc_dai_set_pll(dai, 0, 0, freq_in, freq_out);
sound/soc/codecs/ak4375.c
274
static int ak4375_dai_set_pll(struct snd_soc_dai *dai, int pll_id, int source,
sound/soc/codecs/ak4375.c
277
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ak4375.c
367
static int ak4375_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/ak4375.c
369
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ak4458.c
345
struct snd_soc_dai *dai)
sound/soc/codecs/ak4458.c
347
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ak4458.c
358
channels_max = dai->driver->playback.channels_max;
sound/soc/codecs/ak4458.c
385
dev_err(dai->dev, "DSD512 not supported.\n");
sound/soc/codecs/ak4458.c
390
dev_err(dai->dev, "Unsupported dsd bclk.\n");
sound/soc/codecs/ak4458.c
468
static int ak4458_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/ak4458.c
470
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ak4458.c
518
static int ak4458_set_dai_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/ak4458.c
520
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ak4458.c
547
static int ak4458_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/ak4458.c
550
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ak4458.c
587
struct snd_soc_dai *dai)
sound/soc/codecs/ak4535.c
260
struct snd_soc_dai *dai)
sound/soc/codecs/ak4535.c
262
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ak4535.c
312
static int ak4535_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/ak4535.c
314
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ak4613.c
381
struct snd_soc_dai *dai)
sound/soc/codecs/ak4613.c
383
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ak4613.c
505
struct snd_soc_dai *dai)
sound/soc/codecs/ak4613.c
507
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ak4613.c
529
static int ak4613_dai_set_fmt(struct snd_soc_dai *dai, unsigned int format)
sound/soc/codecs/ak4613.c
531
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ak4613.c
563
struct snd_soc_dai *dai)
sound/soc/codecs/ak4613.c
565
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ak4613.c
710
struct snd_soc_dai *dai)
sound/soc/codecs/ak4613.c
712
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ak4619.c
534
struct snd_soc_dai *dai)
sound/soc/codecs/ak4619.c
536
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ak4619.c
627
static int ak4619_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/ak4619.c
629
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ak4619.c
695
static int ak4619_dai_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/ak4619.c
697
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ak4619.c
770
struct snd_soc_dai *dai)
sound/soc/codecs/ak4619.c
772
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ak4642.c
278
struct snd_soc_dai *dai)
sound/soc/codecs/ak4642.c
281
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ak4642.c
321
struct snd_soc_dai *dai)
sound/soc/codecs/ak4642.c
324
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ak4642.c
386
static int ak4642_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/ak4642.c
388
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ak4642.c
469
struct snd_soc_dai *dai)
sound/soc/codecs/ak4642.c
471
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ak4671.c
423
struct snd_soc_dai *dai)
sound/soc/codecs/ak4671.c
425
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ak4671.c
468
static int ak4671_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/codecs/ak4671.c
471
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ak4671.c
514
static int ak4671_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/ak4671.c
516
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ak5386.c
100
struct snd_soc_dai *dai)
sound/soc/codecs/ak5386.c
102
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ak5386.c
121
struct snd_soc_dai *dai)
sound/soc/codecs/ak5386.c
123
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ak5558.c
173
struct snd_soc_dai *dai)
sound/soc/codecs/ak5558.c
175
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ak5558.c
196
static int ak5558_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/ak5558.c
198
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ak5558.c
209
dev_err(dai->dev, "Clock mode unsupported");
sound/soc/codecs/ak5558.c
233
static int ak5558_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/ak5558.c
237
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ak5558.c
282
struct snd_soc_dai *dai)
sound/soc/codecs/alc5623.c
692
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/alc5623.c
694
struct snd_soc_component *component = dai->component;
sound/soc/codecs/alc5623.c
735
static int alc5623_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/alc5623.c
737
struct snd_soc_component *component = dai->component;
sound/soc/codecs/alc5632.c
868
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/alc5632.c
870
struct snd_soc_component *component = dai->component;
sound/soc/codecs/alc5632.c
905
static int alc5632_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/alc5632.c
907
struct snd_soc_component *component = dai->component;
sound/soc/codecs/arizona.c
1440
static int arizona_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/arizona.c
1442
struct snd_soc_component *component = dai->component;
sound/soc/codecs/arizona.c
1447
base = dai->driver->base;
sound/soc/codecs/arizona.c
1459
arizona_aif_err(dai, "DSP_B not valid in slave mode\n");
sound/soc/codecs/arizona.c
1470
arizona_aif_err(dai, "LEFT_J not valid in slave mode\n");
sound/soc/codecs/arizona.c
1476
arizona_aif_err(dai, "Unsupported DAI format %d\n",
sound/soc/codecs/arizona.c
1495
arizona_aif_err(dai, "Unsupported master mode %d\n",
sound/soc/codecs/arizona.c
1615
struct snd_soc_dai *dai)
sound/soc/codecs/arizona.c
1617
struct snd_soc_component *component = dai->component;
sound/soc/codecs/arizona.c
1619
struct arizona_dai_priv *dai_priv = &priv->dai[dai->id - 1];
sound/soc/codecs/arizona.c
1675
struct snd_soc_dai *dai)
sound/soc/codecs/arizona.c
1677
struct snd_soc_component *component = dai->component;
sound/soc/codecs/arizona.c
1679
struct arizona_dai_priv *dai_priv = &priv->dai[dai->id - 1];
sound/soc/codecs/arizona.c
1680
int base = dai->driver->base;
sound/soc/codecs/arizona.c
1691
arizona_aif_err(dai, "Unsupported sample rate %dHz\n",
sound/soc/codecs/arizona.c
1706
arizona_aif_err(dai, "Failed to change DVFS %d\n", ret);
sound/soc/codecs/arizona.c
1745
arizona_aif_err(dai, "Invalid clock %d\n", dai_priv->clk);
sound/soc/codecs/arizona.c
1775
struct snd_soc_dai *dai)
sound/soc/codecs/arizona.c
1777
struct snd_soc_component *component = dai->component;
sound/soc/codecs/arizona.c
1780
int base = dai->driver->base;
sound/soc/codecs/arizona.c
1784
int chan_limit = arizona->pdata.max_channels_clocked[dai->id - 1];
sound/soc/codecs/arizona.c
1785
int tdm_width = arizona->tdm_width[dai->id - 1];
sound/soc/codecs/arizona.c
1786
int tdm_slots = arizona->tdm_slots[dai->id - 1];
sound/soc/codecs/arizona.c
1799
arizona_aif_dbg(dai, "Configuring for %d %d bit TDM slots\n",
sound/soc/codecs/arizona.c
1809
arizona_aif_dbg(dai, "Limiting to %d channels\n", chan_limit);
sound/soc/codecs/arizona.c
1818
arizona_aif_dbg(dai, "Forcing stereo mode\n");
sound/soc/codecs/arizona.c
1831
arizona_aif_err(dai, "Unsupported sample rate %dHz\n",
sound/soc/codecs/arizona.c
1838
arizona_aif_dbg(dai, "BCLK %dHz LRCLK %dHz\n",
sound/soc/codecs/arizona.c
1859
ret = arizona_hw_params_rate(substream, params, dai);
sound/soc/codecs/arizona.c
1908
static int arizona_dai_set_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/arizona.c
1911
struct snd_soc_component *component = dai->component;
sound/soc/codecs/arizona.c
1914
struct arizona_dai_priv *dai_priv = &priv->dai[dai->id - 1];
sound/soc/codecs/arizona.c
1928
if (snd_soc_dai_active(dai)) {
sound/soc/codecs/arizona.c
1930
dai->id);
sound/soc/codecs/arizona.c
1934
dev_dbg(component->dev, "Setting AIF%d to %s\n", dai->id + 1,
sound/soc/codecs/arizona.c
1938
routes[0].sink = dai->driver->capture.stream_name;
sound/soc/codecs/arizona.c
1939
routes[1].sink = dai->driver->playback.stream_name;
sound/soc/codecs/arizona.c
1954
static int arizona_set_tristate(struct snd_soc_dai *dai, int tristate)
sound/soc/codecs/arizona.c
1956
struct snd_soc_component *component = dai->component;
sound/soc/codecs/arizona.c
1957
int base = dai->driver->base;
sound/soc/codecs/arizona.c
1970
static void arizona_set_channels_to_mask(struct snd_soc_dai *dai,
sound/soc/codecs/arizona.c
1974
struct snd_soc_component *component = dai->component;
sound/soc/codecs/arizona.c
1990
arizona_aif_warn(dai, "Too many channels in TDM mask\n");
sound/soc/codecs/arizona.c
1993
static int arizona_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/arizona.c
1996
struct snd_soc_component *component = dai->component;
sound/soc/codecs/arizona.c
1999
int base = dai->driver->base;
sound/soc/codecs/arizona.c
2000
int rx_max_chan = dai->driver->playback.channels_max;
sound/soc/codecs/arizona.c
2001
int tx_max_chan = dai->driver->capture.channels_max;
sound/soc/codecs/arizona.c
2004
if (dai->id > ARIZONA_MAX_AIF)
sound/soc/codecs/arizona.c
2012
arizona_set_channels_to_mask(dai, base + ARIZONA_AIF_FRAME_CTRL_3,
sound/soc/codecs/arizona.c
2014
arizona_set_channels_to_mask(dai, base + ARIZONA_AIF_FRAME_CTRL_11,
sound/soc/codecs/arizona.c
2017
arizona->tdm_width[dai->id - 1] = slot_width;
sound/soc/codecs/arizona.c
2018
arizona->tdm_slots[dai->id - 1] = slots;
sound/soc/codecs/arizona.c
2042
struct arizona_dai_priv *dai_priv = &priv->dai[id];
sound/soc/codecs/arizona.h
81
struct arizona_dai_priv dai[ARIZONA_MAX_DAI];
sound/soc/codecs/cpcap.c
1007
if (dai == CPCAP_DAI_VOICE) {
sound/soc/codecs/cpcap.c
1047
if (dai == CPCAP_DAI_VOICE) {
sound/soc/codecs/cpcap.c
1055
static int cpcap_set_samprate(struct cpcap_audio *cpcap, enum cpcap_dai dai,
sound/soc/codecs/cpcap.c
1062
switch (dai) {
sound/soc/codecs/cpcap.c
1076
dev_err(component->dev, "invalid DAI: %d", dai);
sound/soc/codecs/cpcap.c
1136
struct snd_soc_dai *dai)
sound/soc/codecs/cpcap.c
1138
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cpcap.c
1239
static int cpcap_hifi_set_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/cpcap.c
1241
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cpcap.c
1266
struct snd_soc_dai *dai)
sound/soc/codecs/cpcap.c
1268
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cpcap.c
1402
static int cpcap_voice_call(struct cpcap_audio *cpcap, struct snd_soc_dai *dai,
sound/soc/codecs/cpcap.c
1444
if (dai) {
sound/soc/codecs/cpcap.c
1445
err = snd_soc_dai_digital_mute(dai, !voice_call,
sound/soc/codecs/cpcap.c
1468
static int cpcap_voice_set_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/cpcap.c
1472
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cpcap.c
1501
err = cpcap_voice_call(cpcap, dai, voice_call);
sound/soc/codecs/cpcap.c
1508
static int cpcap_voice_set_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/cpcap.c
1510
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cpcap.c
969
static int cpcap_set_sysclk(struct cpcap_audio *cpcap, enum cpcap_dai dai,
sound/soc/codecs/cpcap.c
978
switch (dai) {
sound/soc/codecs/cpcap.c
992
dev_err(cpcap->component->dev, "invalid DAI: %d", dai);
sound/soc/codecs/cq93vc.c
33
static int cq93vc_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/cq93vc.c
35
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cros_ec_codec.c
222
struct snd_soc_dai *dai)
sound/soc/codecs/cros_ec_codec.c
224
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cros_ec_codec.c
268
static int i2s_rx_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio)
sound/soc/codecs/cros_ec_codec.c
270
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cros_ec_codec.c
278
static int i2s_rx_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/cros_ec_codec.c
280
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs35l32.c
172
static int cs35l32_set_tristate(struct snd_soc_dai *dai, int tristate)
sound/soc/codecs/cs35l32.c
174
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs35l33.c
477
struct snd_soc_dai *dai)
sound/soc/codecs/cs35l33.c
479
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs35l33.c
518
struct snd_soc_dai *dai)
sound/soc/codecs/cs35l33.c
526
static int cs35l33_set_tristate(struct snd_soc_dai *dai, int tristate)
sound/soc/codecs/cs35l33.c
528
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs35l33.c
546
static int cs35l33_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/cs35l33.c
549
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs35l34.c
267
static int cs35l34_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/cs35l34.c
270
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs35l34.c
542
struct snd_soc_dai *dai)
sound/soc/codecs/cs35l34.c
544
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs35l34.c
565
static int cs35l34_set_tristate(struct snd_soc_dai *dai, int tristate)
sound/soc/codecs/cs35l34.c
568
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs35l34.c
579
static int cs35l34_dai_set_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/cs35l34.c
582
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs35l35.c
464
struct snd_soc_dai *dai)
sound/soc/codecs/cs35l35.c
466
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs35l35.c
601
struct snd_soc_dai *dai)
sound/soc/codecs/cs35l35.c
603
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs35l35.c
629
struct snd_soc_dai *dai)
sound/soc/codecs/cs35l35.c
631
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs35l35.c
648
static int cs35l35_dai_set_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/cs35l35.c
651
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs35l36.c
862
struct snd_soc_dai *dai)
sound/soc/codecs/cs35l36.c
865
snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/cs35l36.c
905
static int cs35l36_dai_set_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/codecs/cs35l36.c
908
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs35l41.c
675
static int cs35l41_set_channel_map(struct snd_soc_dai *dai, unsigned int tx_n,
sound/soc/codecs/cs35l41.c
679
struct cs35l41_private *cs35l41 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/cs35l41.c
684
static int cs35l41_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/cs35l41.c
686
struct cs35l41_private *cs35l41 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/cs35l41.c
757
struct snd_soc_dai *dai)
sound/soc/codecs/cs35l41.c
759
struct cs35l41_private *cs35l41 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/cs35l41.c
862
static int cs35l41_dai_set_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/cs35l41.c
865
struct cs35l41_private *cs35l41 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/cs35l45.c
699
struct snd_soc_dai *dai)
sound/soc/codecs/cs35l45.c
701
struct cs35l45_private *cs35l45 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/cs35l45.c
770
static int cs35l45_asp_set_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/cs35l45.c
774
struct cs35l45_private *cs35l45 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/cs35l45.c
785
static int cs35l45_asp_set_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/cs35l45.c
788
struct cs35l45_private *cs35l45 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/cs35l45.c
809
static int cs35l45_mute_stream(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/cs35l45.c
811
struct cs35l45_private *cs35l45 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/cs35l56.c
434
static int cs35l56_asp_dai_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/cs35l56.c
437
struct cs35l56_private *cs35l56 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/cs35l56.c
481
struct snd_soc_dai *dai)
sound/soc/codecs/cs35l56.c
483
struct cs35l56_private *cs35l56 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/cs35l56.c
538
static int cs35l56_asp_dai_set_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/cs35l56.c
541
struct cs35l56_private *cs35l56 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/cs35l56.c
570
struct snd_soc_dai *dai)
sound/soc/codecs/cs35l56.c
572
snd_soc_dai_set_dma_data(dai, substream, NULL);
sound/soc/codecs/cs35l56.c
575
static int cs35l56_sdw_dai_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/cs35l56.c
578
struct cs35l56_private *cs35l56 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/cs35l56.c
589
struct snd_soc_dai *dai)
sound/soc/codecs/cs35l56.c
591
struct cs35l56_private *cs35l56 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/cs35l56.c
592
struct sdw_stream_runtime *sdw_stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/cs35l56.c
631
dev_err(dai->dev, "Failed to add sdw stream: %d\n", ret);
sound/soc/codecs/cs35l56.c
639
struct snd_soc_dai *dai)
sound/soc/codecs/cs35l56.c
641
struct cs35l56_private *cs35l56 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/cs35l56.c
642
struct sdw_stream_runtime *sdw_stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/cs35l56.c
652
static int cs35l56_sdw_dai_set_stream(struct snd_soc_dai *dai,
sound/soc/codecs/cs35l56.c
655
snd_soc_dai_dma_data_set(dai, direction, sdw_stream);
sound/soc/codecs/cs40l50-codec.c
205
struct snd_soc_dai *dai)
sound/soc/codecs/cs40l50-codec.c
207
struct cs40l50_codec *codec = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/cs40l50-codec.c
227
static int cs40l50_set_dai_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio)
sound/soc/codecs/cs40l50-codec.c
229
struct cs40l50_codec *codec = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/cs4234.c
345
struct snd_soc_dai *dai)
sound/soc/codecs/cs4234.c
347
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs4234.c
465
static int cs4234_dai_startup(struct snd_pcm_substream *sub, struct snd_soc_dai *dai)
sound/soc/codecs/cs4234.c
467
struct snd_soc_component *comp = dai->component;
sound/soc/codecs/cs4234.c
523
static int cs4234_dai_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/cs4234.c
526
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs4265.c
380
static int cs4265_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/cs4265.c
382
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs4265.c
404
struct snd_soc_dai *dai)
sound/soc/codecs/cs4265.c
406
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs4270.c
321
struct snd_soc_dai *dai)
sound/soc/codecs/cs4270.c
323
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs4270.c
401
static int cs4270_dai_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/cs4270.c
403
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs4271.c
339
struct snd_soc_dai *dai)
sound/soc/codecs/cs4271.c
341
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs4271.c
357
!snd_soc_dai_stream_active(dai, SNDRV_PCM_STREAM_CAPTURE)) ||
sound/soc/codecs/cs4271.c
359
!snd_soc_dai_stream_active(dai, SNDRV_PCM_STREAM_PLAYBACK))) {
sound/soc/codecs/cs4271.c
405
static int cs4271_mute_stream(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/cs4271.c
407
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs42l42-sdw.c
101
struct cs42l42_private *cs42l42 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/cs42l42-sdw.c
103
dev_dbg(dai->dev, "dai_prepare: sclk=%u rate=%u\n", cs42l42->sclk, cs42l42->sample_rate);
sound/soc/codecs/cs42l42-sdw.c
114
return cs42l42_pll_config(dai->component, cs42l42->sclk, cs42l42->sample_rate);
sound/soc/codecs/cs42l42-sdw.c
118
struct snd_soc_dai *dai)
sound/soc/codecs/cs42l42-sdw.c
120
struct cs42l42_private *cs42l42 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/cs42l42-sdw.c
121
struct sdw_stream_runtime *sdw_stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/cs42l42-sdw.c
153
static int cs42l42_sdw_dai_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream,
sound/soc/codecs/cs42l42-sdw.c
156
snd_soc_dai_dma_data_set(dai, direction, sdw_stream);
sound/soc/codecs/cs42l42-sdw.c
162
struct snd_soc_dai *dai)
sound/soc/codecs/cs42l42-sdw.c
164
snd_soc_dai_set_dma_data(dai, substream, NULL);
sound/soc/codecs/cs42l42-sdw.c
53
struct snd_soc_dai *dai)
sound/soc/codecs/cs42l42-sdw.c
55
struct cs42l42_private *cs42l42 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/cs42l42-sdw.c
65
struct snd_soc_dai *dai)
sound/soc/codecs/cs42l42-sdw.c
67
struct cs42l42_private *cs42l42 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/cs42l42-sdw.c
68
struct sdw_stream_runtime *sdw_stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/cs42l42-sdw.c
89
dev_err(dai->dev, "Failed to add sdw stream: %d\n", ret);
sound/soc/codecs/cs42l42-sdw.c
93
cs42l42_src_config(dai->component, params_rate(params));
sound/soc/codecs/cs42l42-sdw.c
99
struct snd_soc_dai *dai)
sound/soc/codecs/cs42l42.c
1015
static int cs42l42_set_bclk_ratio(struct snd_soc_dai *dai,
sound/soc/codecs/cs42l42.c
1018
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs42l42.c
1026
int cs42l42_mute_stream(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/cs42l42.c
1028
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs42l42.c
2280
struct snd_soc_dai_driver *dai)
sound/soc/codecs/cs42l42.c
2355
ret = devm_snd_soc_register_component(cs42l42->dev, component_drv, dai, 1);
sound/soc/codecs/cs42l42.c
889
static int cs42l42_dai_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/codecs/cs42l42.c
891
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs42l42.c
910
struct snd_soc_dai *dai)
sound/soc/codecs/cs42l42.c
912
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs42l42.c
991
static int cs42l42_set_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/cs42l42.c
994
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs42l42.h
71
int cs42l42_mute_stream(struct snd_soc_dai *dai, int mute, int stream);
sound/soc/codecs/cs42l42.h
78
struct snd_soc_dai_driver *dai);
sound/soc/codecs/cs42l43-sdw.c
22
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/cs42l43-sdw.c
24
struct cs42l43_codec *priv = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/cs42l43-sdw.c
25
struct sdw_stream_runtime *sdw_stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/cs42l43-sdw.c
35
pconfig.num = dai->id;
sound/soc/codecs/cs42l43-sdw.c
48
struct snd_soc_dai *dai)
sound/soc/codecs/cs42l43-sdw.c
50
struct cs42l43_codec *priv = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/cs42l43-sdw.c
51
struct sdw_stream_runtime *sdw_stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/cs42l43-sdw.c
61
int cs42l43_sdw_set_stream(struct snd_soc_dai *dai, void *sdw_stream, int direction)
sound/soc/codecs/cs42l43-sdw.c
63
snd_soc_dai_dma_data_set(dai, direction, sdw_stream);
sound/soc/codecs/cs42l43.c
298
static int cs42l43_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/codecs/cs42l43.c
300
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs42l43.c
303
int provider = !dai->id || !!regmap_test_bits(cs42l43->regmap,
sound/soc/codecs/cs42l43.c
343
struct snd_soc_dai *dai)
sound/soc/codecs/cs42l43.c
345
struct cs42l43_codec *priv = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/cs42l43.c
364
struct snd_soc_dai *dai)
sound/soc/codecs/cs42l43.c
366
struct cs42l43_codec *priv = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/cs42l43.c
448
return cs42l43_set_sample_rate(substream, params, dai);
sound/soc/codecs/cs42l43.c
451
static int cs42l43_asp_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/cs42l43.c
453
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs42l43.c
561
static int cs42l43_asp_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/cs42l43.c
564
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs42l43.c
583
static int cs42l43_dai_probe(struct snd_soc_dai *dai)
sound/soc/codecs/cs42l43.c
585
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs42l43.c
608
static int cs42l43_dai_remove(struct snd_soc_dai *dai)
sound/soc/codecs/cs42l43.c
610
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs42l43.c
631
struct snd_soc_dai *dai)
sound/soc/codecs/cs42l43.c
635
ret = cs42l43_sdw_add_peripheral(substream, params, dai);
sound/soc/codecs/cs42l43.c
639
return cs42l43_set_sample_rate(substream, params, dai);
sound/soc/codecs/cs42l43.h
113
struct snd_soc_dai *dai);
sound/soc/codecs/cs42l43.h
115
struct snd_soc_dai *dai);
sound/soc/codecs/cs42l43.h
116
int cs42l43_sdw_set_stream(struct snd_soc_dai *dai, void *sdw_stream, int direction);
sound/soc/codecs/cs42l43.h
122
struct snd_soc_dai *dai)
sound/soc/codecs/cs42l51.c
395
struct snd_soc_dai *dai)
sound/soc/codecs/cs42l51.c
397
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs42l51.c
513
static int cs42l51_dai_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/cs42l51.c
515
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs42l52.c
806
static int cs42l52_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/cs42l52.c
808
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs42l52.c
824
struct snd_soc_dai *dai)
sound/soc/codecs/cs42l52.c
826
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs42l56.c
835
static int cs42l56_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/cs42l56.c
837
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs42l56.c
892
struct snd_soc_dai *dai)
sound/soc/codecs/cs42l56.c
894
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs42l73.c
1054
struct snd_soc_dai *dai)
sound/soc/codecs/cs42l73.c
1056
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs42l73.c
1058
int id = dai->id;
sound/soc/codecs/cs42l73.c
1139
static int cs42l73_set_tristate(struct snd_soc_dai *dai, int tristate)
sound/soc/codecs/cs42l73.c
1141
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs42l73.c
1142
int id = dai->id;
sound/soc/codecs/cs42l73.c
1154
struct snd_soc_dai *dai)
sound/soc/codecs/cs42l73.c
883
static int cs42l73_set_mclk(struct snd_soc_dai *dai, unsigned int freq)
sound/soc/codecs/cs42l73.c
885
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs42l73.c
915
static int cs42l73_set_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/cs42l73.c
918
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs42l73.c
930
if ((cs42l73_set_mclk(dai, freq)) < 0) {
sound/soc/codecs/cs42l73.c
932
dai->name);
sound/soc/codecs/cs42l84.c
486
struct snd_soc_dai *dai)
sound/soc/codecs/cs42l84.c
488
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs42l84.c
543
static int cs42l84_set_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/cs42l84.c
546
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs42l84.c
567
static int cs42l84_mute_stream(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/cs42l84.c
569
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs42xx8.c
261
struct snd_soc_dai *dai)
sound/soc/codecs/cs42xx8.c
263
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs42xx8.c
349
struct snd_soc_dai *dai)
sound/soc/codecs/cs42xx8.c
351
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs42xx8.c
364
static int cs42xx8_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/cs42xx8.c
366
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs43130.c
1489
struct snd_soc_dai *dai)
sound/soc/codecs/cs43130.c
1506
struct snd_soc_dai *dai)
sound/soc/codecs/cs43130.c
814
struct snd_soc_dai *dai)
sound/soc/codecs/cs43130.c
816
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs43130.c
854
if (cs43130->dais[dai->id].dai_mode == SND_SOC_DAIFMT_CBP_CFP)
sound/soc/codecs/cs43130.c
873
struct snd_soc_dai *dai)
sound/soc/codecs/cs43130.c
875
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs43130.c
878
unsigned int sclk = cs43130->dais[dai->id].sclk;
sound/soc/codecs/cs43130.c
904
switch (dai->id) {
sound/soc/codecs/cs43130.c
937
dev_err(cs43130->dev, "Invalid DAI (%d)\n", dai->id);
sound/soc/codecs/cs43130.c
941
switch (dai->id) {
sound/soc/codecs/cs43130.c
954
if (!sclk && cs43130->dais[dai->id].dai_mode == SND_SOC_DAIFMT_CBP_CFP)
sound/soc/codecs/cs43130.c
979
cs43130_set_bitwidth(dai->id, bitwidth_dai, cs43130->regmap);
sound/soc/codecs/cs43130.c
980
cs43130_set_sp_fmt(dai->id, bitwidth_sclk, params, cs43130);
sound/soc/codecs/cs43130.c
986
struct snd_soc_dai *dai)
sound/soc/codecs/cs43130.c
988
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs4341.c
119
static int cs4341_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/cs4341.c
121
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs4341.c
46
static int cs4341_set_fmt(struct snd_soc_dai *dai, unsigned int format)
sound/soc/codecs/cs4341.c
48
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs4341.c
80
struct snd_soc_dai *dai)
sound/soc/codecs/cs4341.c
82
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs4349.c
133
static int cs4349_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/cs4349.c
135
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs4349.c
94
struct snd_soc_dai *dai)
sound/soc/codecs/cs4349.c
96
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs48l32.c
1857
static int cs48l32_asp_dai_probe(struct snd_soc_dai *dai)
sound/soc/codecs/cs48l32.c
1859
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs48l32.c
1864
switch (dai->id) {
sound/soc/codecs/cs48l32.c
1886
static int cs48l32_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/cs48l32.c
1888
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs48l32.c
1892
unsigned int base = dai->driver->base;
sound/soc/codecs/cs48l32.c
1904
cs48l32_asp_err(dai, "DSP_B cannot be clock consumer\n");
sound/soc/codecs/cs48l32.c
1914
cs48l32_asp_err(dai, "LEFT_J cannot be clock consumer\n");
sound/soc/codecs/cs48l32.c
1920
cs48l32_asp_err(dai, "Unsupported DAI format %d\n",
sound/soc/codecs/cs48l32.c
1939
cs48l32_asp_err(dai, "Unsupported clock direction %d\n",
sound/soc/codecs/cs48l32.c
2027
static int cs48l32_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/codecs/cs48l32.c
2029
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs48l32.c
2031
struct cs48l32_dai_priv *dai_priv = &cs48l32_codec->dai[dai->id - 1];
sound/soc/codecs/cs48l32.c
2062
struct snd_soc_dai *dai)
sound/soc/codecs/cs48l32.c
2064
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs48l32.c
2066
struct cs48l32_dai_priv *dai_priv = &cs48l32_codec->dai[dai->id - 1];
sound/soc/codecs/cs48l32.c
2075
cs48l32_asp_err(dai, "Unsupported sample rate %dHz\n", rate);
sound/soc/codecs/cs48l32.c
2128
struct snd_soc_dai *dai)
sound/soc/codecs/cs48l32.c
2130
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs48l32.c
2133
int base = dai->driver->base;
sound/soc/codecs/cs48l32.c
2134
int dai_id = dai->id - 1;
sound/soc/codecs/cs48l32.c
2142
cs48l32_asp_dbg(dai, "hwparams in: ch:%u dataw:%u rate:%u\n",
sound/soc/codecs/cs48l32.c
2165
cs48l32_asp_err(dai, "Invalid parameters\n");
sound/soc/codecs/cs48l32.c
2177
cs48l32_asp_err(dai, "Unsupported sample rate %dHz\n", rate);
sound/soc/codecs/cs48l32.c
2181
cs48l32_asp_dbg(dai, "hwparams out: n_slots:%u dataw:%u slotw:%u bclk:%u bclkid:%u\n",
sound/soc/codecs/cs48l32.c
2188
return cs48l32_hw_params_rate(substream, params, dai);
sound/soc/codecs/cs48l32.c
2194
ret = cs48l32_hw_params_rate(substream, params, dai);
sound/soc/codecs/cs48l32.c
2237
static int cs48l32_dai_set_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/cs48l32.c
2240
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs48l32.c
2242
struct cs48l32_dai_priv *dai_priv = &cs48l32_codec->dai[dai->id - 1];
sound/soc/codecs/cs48l32.c
2243
unsigned int base = dai->driver->base;
sound/soc/codecs/cs48l32.c
2251
if (snd_soc_dai_active(dai)) {
sound/soc/codecs/cs48l32.c
2252
cs48l32_asp_err(dai, "Can't change clock on active DAI\n");
sound/soc/codecs/cs48l32.c
2274
cs48l32_asp_dbg(dai, "Setting to %s\n", cs48l32_dai_clk_str(clk_id));
sound/soc/codecs/cs48l32.c
2281
cs48l32_asp_err(dai, "Failed to check rate: %d\n", ret);
sound/soc/codecs/cs48l32.c
2306
static void cs48l32_set_channels_to_mask(struct snd_soc_dai *dai,
sound/soc/codecs/cs48l32.c
2310
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs48l32.c
2338
cs48l32_asp_warn(dai, "Too many channels in TDM mask\n");
sound/soc/codecs/cs48l32.c
2341
static int cs48l32_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/cs48l32.c
2344
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs48l32.c
2346
int base = dai->driver->base;
sound/soc/codecs/cs48l32.c
2347
int rx_max_chan = dai->driver->playback.channels_max;
sound/soc/codecs/cs48l32.c
2348
int tx_max_chan = dai->driver->capture.channels_max;
sound/soc/codecs/cs48l32.c
2351
if (dai->id > CS48L32_MAX_ASP)
sound/soc/codecs/cs48l32.c
2359
cs48l32_set_channels_to_mask(dai, base + CS48L32_ASP_FRAME_CONTROL1,
sound/soc/codecs/cs48l32.c
2361
cs48l32_set_channels_to_mask(dai, base + CS48L32_ASP_FRAME_CONTROL5,
sound/soc/codecs/cs48l32.c
2364
cs48l32_codec->tdm_width[dai->id - 1] = slot_width;
sound/soc/codecs/cs48l32.c
2365
cs48l32_codec->tdm_slots[dai->id - 1] = slots;
sound/soc/codecs/cs48l32.c
3465
struct cs48l32_dai_priv *dai_priv = &cs48l32_codec->dai[id];
sound/soc/codecs/cs48l32.c
3675
static_assert(ARRAY_SIZE(cs48l32_dai) == ARRAY_SIZE(cs48l32_codec->dai));
sound/soc/codecs/cs48l32.h
361
struct cs48l32_dai_priv dai[CS48L32_MAX_DAI];
sound/soc/codecs/cs530x.c
769
struct snd_soc_dai *dai)
sound/soc/codecs/cs530x.c
771
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs530x.c
832
static int cs530x_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/cs530x.c
834
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs530x.c
896
static int cs530x_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/cs530x.c
899
struct snd_soc_component *component = dai->component;
sound/soc/codecs/cs53l30.c
545
static int cs53l30_set_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/cs53l30.c
548
struct cs53l30_private *priv = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/cs53l30.c
569
static int cs53l30_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/cs53l30.c
571
struct cs53l30_private *priv = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/cs53l30.c
623
struct snd_soc_dai *dai)
sound/soc/codecs/cs53l30.c
625
struct cs53l30_private *priv = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/cs53l30.c
734
static int cs53l30_set_tristate(struct snd_soc_dai *dai, int tristate)
sound/soc/codecs/cs53l30.c
736
struct cs53l30_private *priv = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/cs53l30.c
748
static int cs53l30_set_dai_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/cs53l30.c
752
struct cs53l30_private *priv = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/cs53l30.c
759
dev_err(dai->dev, "rx masks must not be 0\n");
sound/soc/codecs/cs53l30.c
765
dev_err(dai->dev, "invalid slot number or slot width\n");
sound/soc/codecs/cs53l30.c
770
dev_err(dai->dev, "slot width must count in byte\n");
sound/soc/codecs/cs53l30.c
790
dev_err(dai->dev, "rx_mask exceeds max slot number: %d\n",
sound/soc/codecs/cs53l30.c
798
dev_err(dai->dev, "slot selection out of bounds: %u\n",
sound/soc/codecs/cs53l30.c
806
dev_dbg(dai->dev, "loc[%d]=%x\n", i, loc[i]);
sound/soc/codecs/cs53l30.c
813
dev_dbg(dai->dev, "en_reg=%x, tx_enable=%llx\n",
sound/soc/codecs/cs53l30.c
820
static int cs53l30_mute_stream(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/cs53l30.c
822
struct cs53l30_private *priv = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/cx2072x.c
1535
static int cx2072x_dsp_dai_probe(struct snd_soc_dai *dai)
sound/soc/codecs/cx2072x.c
1538
snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/cx2072x.c
904
struct snd_soc_dai *dai)
sound/soc/codecs/cx2072x.c
906
struct snd_soc_component *codec = dai->component;
sound/soc/codecs/cx2072x.c
951
if (dai->id == CX2072X_DAI_DSP) {
sound/soc/codecs/cx2072x.c
971
static int cx2072x_set_dai_bclk_ratio(struct snd_soc_dai *dai,
sound/soc/codecs/cx2072x.c
974
struct snd_soc_component *codec = dai->component;
sound/soc/codecs/cx2072x.c
981
static int cx2072x_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/codecs/cx2072x.c
984
struct snd_soc_component *codec = dai->component;
sound/soc/codecs/cx2072x.c
996
static int cx2072x_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/cx2072x.c
998
struct snd_soc_component *codec = dai->component;
sound/soc/codecs/da7210.c
756
struct snd_soc_dai *dai)
sound/soc/codecs/da7210.c
758
struct snd_soc_component *component = dai->component;
sound/soc/codecs/da7210.c
927
static int da7210_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/da7210.c
929
struct snd_soc_component *component = dai->component;
sound/soc/codecs/da7213.c
1322
struct snd_soc_dai *dai)
sound/soc/codecs/da7213.c
1324
struct snd_soc_component *component = dai->component;
sound/soc/codecs/da7213.c
1527
static int da7213_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/da7213.c
1529
struct snd_soc_component *component = dai->component;
sound/soc/codecs/da7218.c
2018
static int da7218_set_dai_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/da7218.c
2022
struct snd_soc_component *component = dai->component;
sound/soc/codecs/da7218.c
2089
struct snd_soc_dai *dai)
sound/soc/codecs/da7218.c
2091
struct snd_soc_component *component = dai->component;
sound/soc/codecs/da7219.c
1423
static int da7219_set_dai_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/da7219.c
1427
struct snd_soc_component *component = dai->component;
sound/soc/codecs/da7219.c
1561
struct snd_soc_dai *dai)
sound/soc/codecs/da7219.c
1563
struct snd_soc_component *component = dai->component;
sound/soc/codecs/da732x.c
1012
static int da732x_set_dai_fmt(struct snd_soc_dai *dai, u32 fmt)
sound/soc/codecs/da732x.c
1014
struct snd_soc_component *component = dai->component;
sound/soc/codecs/da732x.c
1019
switch (dai->id) {
sound/soc/codecs/da732x.c
1175
static int da732x_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/codecs/da732x.c
1178
struct snd_soc_component *component = dai->component;
sound/soc/codecs/da732x.c
942
struct snd_soc_dai *dai)
sound/soc/codecs/da732x.c
944
struct snd_soc_component *component = dai->component;
sound/soc/codecs/da732x.c
949
reg_aif = dai->driver->base;
sound/soc/codecs/da9055.c
1048
struct snd_soc_dai *dai)
sound/soc/codecs/da9055.c
1050
struct snd_soc_component *component = dai->component;
sound/soc/codecs/da9055.c
1213
static int da9055_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/da9055.c
1215
struct snd_soc_component *component = dai->component;
sound/soc/codecs/dmic.c
36
int cmd, struct snd_soc_dai *dai)
sound/soc/codecs/dmic.c
38
struct snd_soc_component *component = dai->component;
sound/soc/codecs/es7134.c
37
static int es7134_check_mclk(struct snd_soc_dai *dai,
sound/soc/codecs/es7134.c
55
dev_err(dai->dev, "unsupported mclk_fs %u for rate %u\n",
sound/soc/codecs/es7134.c
61
dev_err(dai->dev, "unsupported rate: %u\n", rate);
sound/soc/codecs/es7134.c
67
struct snd_soc_dai *dai)
sound/soc/codecs/es7134.c
69
struct es7134_data *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/es7134.c
75
return es7134_check_mclk(dai, priv, params_rate(params));
sound/soc/codecs/es7134.c
78
static int es7134_set_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/codecs/es7134.c
81
struct es7134_data *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/es7241.c
108
dev_err(dai->dev, "unsupported rate: %u\n", rate);
sound/soc/codecs/es7241.c
112
static int es7241_set_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/codecs/es7241.c
115
struct es7241_data *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/es7241.c
125
static int es7241_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/es7241.c
127
struct es7241_data *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/es7241.c
130
dev_err(dai->dev, "Unsupported dai clock inversion\n");
sound/soc/codecs/es7241.c
135
dev_err(dai->dev, "Invalid dai format\n");
sound/soc/codecs/es7241.c
148
dev_err(dai->dev, "Unsupported clock configuration\n");
sound/soc/codecs/es7241.c
88
struct snd_soc_dai *dai)
sound/soc/codecs/es7241.c
90
struct es7241_data *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/es8311.c
450
static int es8311_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/es8311.c
452
struct snd_soc_component *component = dai->component;
sound/soc/codecs/es8311.c
467
struct snd_soc_dai *dai)
sound/soc/codecs/es8311.c
469
struct snd_soc_component *component = dai->component;
sound/soc/codecs/es8311.c
483
struct snd_soc_dai *dai)
sound/soc/codecs/es8311.c
485
struct snd_soc_component *component = dai->component;
sound/soc/codecs/es8316.c
457
struct snd_soc_dai *dai)
sound/soc/codecs/es8316.c
459
struct snd_soc_component *component = dai->component;
sound/soc/codecs/es8316.c
472
struct snd_soc_dai *dai)
sound/soc/codecs/es8316.c
474
struct snd_soc_component *component = dai->component;
sound/soc/codecs/es8316.c
551
static int es8316_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/es8316.c
553
snd_soc_component_update_bits(dai->component, ES8316_DAC_SET1, 0x20,
sound/soc/codecs/es8323.c
545
struct snd_soc_dai *dai)
sound/soc/codecs/es8323.c
547
struct snd_soc_component *component = dai->component;
sound/soc/codecs/es8323.c
561
struct snd_soc_dai *dai)
sound/soc/codecs/es8323.c
563
struct snd_soc_component *component = dai->component;
sound/soc/codecs/es8323.c
619
static int es8323_mute_stream(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/es8323.c
621
return snd_soc_component_update_bits(dai->component, ES8323_DACCONTROL3,
sound/soc/codecs/es8326.c
552
struct snd_soc_dai *dai)
sound/soc/codecs/es8326.c
554
struct snd_soc_component *component = dai->component;
sound/soc/codecs/es8326.c
616
static int es8326_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/es8326.c
618
struct snd_soc_component *component = dai->component;
sound/soc/codecs/es8328.c
436
static int es8328_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/es8328.c
438
return snd_soc_component_update_bits(dai->component, ES8328_DACCONTROL3,
sound/soc/codecs/es8328.c
444
struct snd_soc_dai *dai)
sound/soc/codecs/es8328.c
446
struct snd_soc_component *component = dai->component;
sound/soc/codecs/es8328.c
459
struct snd_soc_dai *dai)
sound/soc/codecs/es8328.c
461
struct snd_soc_component *component = dai->component;
sound/soc/codecs/es8375.c
287
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/es8375.c
289
struct snd_soc_component *component = dai->component;
sound/soc/codecs/es8375.c
362
static int es8375_set_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/codecs/es8375.c
365
struct snd_soc_component *component = dai->component;
sound/soc/codecs/es8375.c
373
static int es8375_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/es8375.c
375
struct snd_soc_component *component = dai->component;
sound/soc/codecs/es8375.c
472
static int es8375_mute(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/es8375.c
474
struct snd_soc_component *component = dai->component;
sound/soc/codecs/es8389.c
489
static int es8389_set_dai_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/es8389.c
492
struct snd_soc_component *component = dai->component;
sound/soc/codecs/es8389.c
500
static int es8389_set_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/es8389.c
503
struct snd_soc_component *component = dai->component;
sound/soc/codecs/es8389.c
514
static int es8389_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/es8389.c
516
struct snd_soc_component *component = dai->component;
sound/soc/codecs/es8389.c
560
struct snd_soc_dai *dai)
sound/soc/codecs/es8389.c
562
struct snd_soc_component *component = dai->component;
sound/soc/codecs/es8389.c
691
static int es8389_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/es8389.c
693
struct snd_soc_component *component = dai->component;
sound/soc/codecs/framer-codec.c
103
struct snd_soc_dai *dai = rule->private;
sound/soc/codecs/framer-codec.c
104
struct framer_codec *framer = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/framer-codec.c
106
return framer_dai_hw_rule_channels_by_format(dai, params, framer->max_chan_capture);
sound/soc/codecs/framer-codec.c
109
static int framer_dai_hw_rule_format_by_channels(struct snd_soc_dai *dai,
sound/soc/codecs/framer-codec.c
120
dev_err(dai->dev, "channels %u not supported\n", nb_ts);
sound/soc/codecs/framer-codec.c
140
struct snd_soc_dai *dai = rule->private;
sound/soc/codecs/framer-codec.c
141
struct framer_codec *framer = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/framer-codec.c
143
return framer_dai_hw_rule_format_by_channels(dai, params, framer->max_chan_playback);
sound/soc/codecs/framer-codec.c
149
struct snd_soc_dai *dai = rule->private;
sound/soc/codecs/framer-codec.c
150
struct framer_codec *framer = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/framer-codec.c
152
return framer_dai_hw_rule_format_by_channels(dai, params, framer->max_chan_capture);
sound/soc/codecs/framer-codec.c
186
struct snd_soc_dai *dai)
sound/soc/codecs/framer-codec.c
188
struct framer_codec *framer = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/framer-codec.c
210
dev_err(dai->dev, "Failed to add format constraint (%d)\n", ret);
sound/soc/codecs/framer-codec.c
215
hw_rule_channels_by_format, dai,
sound/soc/codecs/framer-codec.c
218
dev_err(dai->dev, "Failed to add channels rule (%d)\n", ret);
sound/soc/codecs/framer-codec.c
223
hw_rule_format_by_channels, dai,
sound/soc/codecs/framer-codec.c
226
dev_err(dai->dev, "Failed to add format rule (%d)\n", ret);
sound/soc/codecs/framer-codec.c
234
dev_err(dai->dev, "Failed to add frame_bits constraint (%d)\n", ret);
sound/soc/codecs/framer-codec.c
33
static int framer_dai_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/framer-codec.c
36
struct framer_codec *framer = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/framer-codec.c
44
dev_err(dai->dev, "tdm slot width %d not supported\n", width);
sound/soc/codecs/framer-codec.c
50
dev_err(dai->dev, "too many tx slots defined (mask = 0x%x) supported max %d\n",
sound/soc/codecs/framer-codec.c
57
dev_err(dai->dev, "too many rx slots defined (mask = 0x%x) supported max %d\n",
sound/soc/codecs/framer-codec.c
69
static int framer_dai_hw_rule_channels_by_format(struct snd_soc_dai *dai,
sound/soc/codecs/framer-codec.c
82
dev_err(dai->dev, "format physical width %d not supported\n", width);
sound/soc/codecs/framer-codec.c
94
struct snd_soc_dai *dai = rule->private;
sound/soc/codecs/framer-codec.c
95
struct framer_codec *framer = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/framer-codec.c
97
return framer_dai_hw_rule_channels_by_format(dai, params, framer->max_chan_playback);
sound/soc/codecs/fs210x.c
691
struct snd_soc_dai *dai)
sound/soc/codecs/fs210x.c
697
fs210x = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/fs210x.c
732
static int fs210x_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/fs210x.c
736
fs210x = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/fs210x.c
752
struct snd_soc_dai *dai)
sound/soc/codecs/fs210x.c
761
fs210x = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/fs210x.c
782
static int fs210x_dai_mute(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/fs210x.c
790
fs210x = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/fs210x.c
813
int cmd, struct snd_soc_dai *dai)
sound/soc/codecs/fs210x.c
817
fs210x = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/hda-dai.c
12
static int hda_codec_dai_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/codecs/hda-dai.c
19
codec = dev_to_hda_codec(dai->dev);
sound/soc/codecs/hda-dai.c
20
stream_info = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/hda-dai.c
23
dev_dbg(dai->dev, "open stream codec: %08x, info: %p, pcm: %p %s substream: %p\n",
sound/soc/codecs/hda-dai.c
30
dev_err(dai->dev, "codec open failed: %d\n", ret);
sound/soc/codecs/hda-dai.c
38
static void hda_codec_dai_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/codecs/hda-dai.c
45
codec = dev_to_hda_codec(dai->dev);
sound/soc/codecs/hda-dai.c
46
stream_info = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/hda-dai.c
49
dev_dbg(dai->dev, "close stream codec: %08x, info: %p, pcm: %p %s substream: %p\n",
sound/soc/codecs/hda-dai.c
54
dev_err(dai->dev, "codec close failed: %d\n", ret);
sound/soc/codecs/hda-dai.c
59
static int hda_codec_dai_hw_free(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/codecs/hda-dai.c
64
codec = dev_to_hda_codec(dai->dev);
sound/soc/codecs/hda-dai.c
65
stream_info = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/hda-dai.c
72
static int hda_codec_dai_prepare(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/codecs/hda-dai.c
82
codec = dev_to_hda_codec(dai->dev);
sound/soc/codecs/hda-dai.c
84
stream_info = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/hda-dai.c
92
dev_err(dai->dev, "codec prepare failed: %d\n", ret);
sound/soc/codecs/hda.c
102
struct snd_soc_dai *dai;
sound/soc/codecs/hda.c
104
dai = snd_soc_register_dai(component, drvs, false);
sound/soc/codecs/hda.c
105
if (!dai) {
sound/soc/codecs/hda.c
110
ret = snd_soc_dapm_new_dai_widgets(dapm, dai);
sound/soc/codecs/hda.c
113
snd_soc_unregister_dai(dai);
sound/soc/codecs/hda.c
117
snd_soc_dai_init_dma_data(dai, &pcm->stream[0], &pcm->stream[1]);
sound/soc/codecs/hda.c
127
struct snd_soc_dai *dai, *save;
sound/soc/codecs/hda.c
130
for_each_component_dais_safe(component, dai, save) {
sound/soc/codecs/hda.c
134
if (strcmp(dai->driver->name, pcm->name))
sound/soc/codecs/hda.c
138
snd_soc_dapm_free_widget(snd_soc_dai_get_widget(dai, stream));
sound/soc/codecs/hda.c
140
snd_soc_unregister_dai(dai);
sound/soc/codecs/hdac_hda.c
193
static int hdac_hda_dai_set_stream(struct snd_soc_dai *dai,
sound/soc/codecs/hdac_hda.c
196
struct snd_soc_component *component = dai->component;
sound/soc/codecs/hdac_hda.c
205
pcm = &hda_pvt->pcm[dai->id];
sound/soc/codecs/hdac_hda.c
215
struct snd_soc_dai *dai)
sound/soc/codecs/hdac_hda.c
217
struct snd_soc_component *component = dai->component;
sound/soc/codecs/hdac_hda.c
224
maxbps = dai->driver->playback.sig_bits;
sound/soc/codecs/hdac_hda.c
226
maxbps = dai->driver->capture.sig_bits;
sound/soc/codecs/hdac_hda.c
232
dev_err(dai->dev,
sound/soc/codecs/hdac_hda.c
241
hda_pvt->pcm[dai->id].format_val[substream->stream] = format_val;
sound/soc/codecs/hdac_hda.c
246
struct snd_soc_dai *dai)
sound/soc/codecs/hdac_hda.c
248
struct snd_soc_component *component = dai->component;
sound/soc/codecs/hdac_hda.c
254
pcm = snd_soc_find_pcm_from_dai(hda_pvt, dai);
sound/soc/codecs/hdac_hda.c
265
struct snd_soc_dai *dai)
sound/soc/codecs/hdac_hda.c
267
struct snd_soc_component *component = dai->component;
sound/soc/codecs/hdac_hda.c
276
pcm = snd_soc_find_pcm_from_dai(hda_pvt, dai);
sound/soc/codecs/hdac_hda.c
282
stream = hda_pvt->pcm[dai->id].stream_tag[substream->stream];
sound/soc/codecs/hdac_hda.c
283
format_val = hda_pvt->pcm[dai->id].format_val[substream->stream];
sound/soc/codecs/hdac_hda.c
288
dev_err(dai->dev, "%s: failed %d\n", __func__, ret);
sound/soc/codecs/hdac_hda.c
294
struct snd_soc_dai *dai)
sound/soc/codecs/hdac_hda.c
296
struct snd_soc_component *component = dai->component;
sound/soc/codecs/hdac_hda.c
303
pcm = snd_soc_find_pcm_from_dai(hda_pvt, dai);
sound/soc/codecs/hdac_hda.c
313
dev_err(dai->dev, "%s: failed %d\n", __func__, ret);
sound/soc/codecs/hdac_hda.c
319
struct snd_soc_dai *dai)
sound/soc/codecs/hdac_hda.c
321
struct snd_soc_component *component = dai->component;
sound/soc/codecs/hdac_hda.c
327
pcm = snd_soc_find_pcm_from_dai(hda_pvt, dai);
sound/soc/codecs/hdac_hda.c
339
struct snd_soc_dai *dai)
sound/soc/codecs/hdac_hda.c
351
switch (dai->id) {
sound/soc/codecs/hdac_hda.c
374
dev_err(dai->dev, "%s: invalid dai id %d\n", __func__, dai->id);
sound/soc/codecs/hdac_hda.c
388
dev_err(dai->dev, "%s: didn't find PCM for DAI %s\n", __func__, dai->name);
sound/soc/codecs/hdac_hda.c
47
struct snd_soc_dai *dai);
sound/soc/codecs/hdac_hda.c
49
struct snd_soc_dai *dai);
sound/soc/codecs/hdac_hda.c
51
struct snd_soc_dai *dai);
sound/soc/codecs/hdac_hda.c
54
struct snd_soc_dai *dai);
sound/soc/codecs/hdac_hda.c
56
struct snd_soc_dai *dai);
sound/soc/codecs/hdac_hda.c
57
static int hdac_hda_dai_set_stream(struct snd_soc_dai *dai, void *stream,
sound/soc/codecs/hdac_hda.c
60
struct snd_soc_dai *dai);
sound/soc/codecs/hdac_hdmi.c
438
static int hdac_hdmi_set_stream(struct snd_soc_dai *dai,
sound/soc/codecs/hdac_hdmi.c
441
struct hdac_hdmi_priv *hdmi = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/hdac_hdmi.c
454
dai_map = &hdmi->dai_map[dai->id];
sound/soc/codecs/hdac_hdmi.c
465
struct snd_pcm_hw_params *hparams, struct snd_soc_dai *dai)
sound/soc/codecs/hdac_hdmi.c
467
struct hdac_hdmi_priv *hdmi = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/hdac_hdmi.c
473
dai_map = &hdmi->dai_map[dai->id];
sound/soc/codecs/hdac_hdmi.c
476
dai->driver->playback.sig_bits);
sound/soc/codecs/hdac_hdmi.c
589
struct snd_soc_dai *dai)
sound/soc/codecs/hdac_hdmi.c
591
struct hdac_hdmi_priv *hdmi = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/hdac_hdmi.c
598
dai_map = &hdmi->dai_map[dai->id];
sound/soc/codecs/hdac_hdmi.c
632
struct snd_soc_dai *dai)
sound/soc/codecs/hdac_hdmi.c
634
struct hdac_hdmi_priv *hdmi = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/hdac_hdmi.c
638
dai_map = &hdmi->dai_map[dai->id];
sound/soc/codecs/hdmi-codec.c
1000
ret = hdmi_dai_probe(dai);
sound/soc/codecs/hdmi-codec.c
1004
cf = snd_soc_dai_dma_data_get_playback(dai);
sound/soc/codecs/hdmi-codec.c
444
struct snd_soc_dai *dai)
sound/soc/codecs/hdmi-codec.c
446
struct hdmi_codec_priv *hcp = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/hdmi-codec.c
457
dev_err(dai->dev, "Only one simultaneous stream supported!\n");
sound/soc/codecs/hdmi-codec.c
463
ret = hcp->hcd.ops->audio_startup(dai->dev->parent, hcp->hcd.data);
sound/soc/codecs/hdmi-codec.c
469
ret = hcp->hcd.ops->get_eld(dai->dev->parent, hcp->hcd.data,
sound/soc/codecs/hdmi-codec.c
474
snd_parse_eld(dai->dev, &hcp->eld_parsed,
sound/soc/codecs/hdmi-codec.c
493
struct snd_soc_dai *dai)
sound/soc/codecs/hdmi-codec.c
495
struct hdmi_codec_priv *hcp = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/hdmi-codec.c
504
hcp->hcd.ops->audio_shutdown(dai->dev->parent, hcp->hcd.data);
sound/soc/codecs/hdmi-codec.c
511
static int hdmi_codec_fill_codec_params(struct snd_soc_dai *dai,
sound/soc/codecs/hdmi-codec.c
517
struct hdmi_codec_priv *hcp = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/hdmi-codec.c
527
dev_err(dai->dev, "Not able to map channels to speakers (%d)\n",
sound/soc/codecs/hdmi-codec.c
564
struct snd_soc_dai *dai)
sound/soc/codecs/hdmi-codec.c
566
struct hdmi_codec_priv *hcp = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/hdmi-codec.c
567
struct hdmi_codec_daifmt *cf = snd_soc_dai_dma_data_get_playback(dai);
sound/soc/codecs/hdmi-codec.c
581
dev_dbg(dai->dev, "%s() width %d rate %d channels %d\n", __func__,
sound/soc/codecs/hdmi-codec.c
585
ret = hdmi_codec_fill_codec_params(dai,
sound/soc/codecs/hdmi-codec.c
597
dev_err(dai->dev, "Creating IEC958 channel status failed %d\n",
sound/soc/codecs/hdmi-codec.c
603
return hcp->hcd.ops->hw_params(dai->dev->parent, hcp->hcd.data,
sound/soc/codecs/hdmi-codec.c
608
struct snd_soc_dai *dai)
sound/soc/codecs/hdmi-codec.c
610
struct hdmi_codec_priv *hcp = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/hdmi-codec.c
611
struct hdmi_codec_daifmt *cf = snd_soc_dai_dma_data_get_playback(dai);
sound/soc/codecs/hdmi-codec.c
622
dev_dbg(dai->dev, "%s() width %d rate %d channels %d\n", __func__,
sound/soc/codecs/hdmi-codec.c
625
ret = hdmi_codec_fill_codec_params(dai, width, rate, channels, &hp);
sound/soc/codecs/hdmi-codec.c
633
dev_err(dai->dev, "Creating IEC958 channel status failed %d\n",
sound/soc/codecs/hdmi-codec.c
639
return hcp->hcd.ops->prepare(dai->dev->parent, hcp->hcd.data,
sound/soc/codecs/hdmi-codec.c
643
static int hdmi_codec_i2s_set_fmt(struct snd_soc_dai *dai,
sound/soc/codecs/hdmi-codec.c
646
struct hdmi_codec_daifmt *cf = snd_soc_dai_dma_data_get_playback(dai);
sound/soc/codecs/hdmi-codec.c
703
dev_err(dai->dev, "Invalid DAI interface format\n");
sound/soc/codecs/hdmi-codec.c
710
static int hdmi_codec_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/hdmi-codec.c
712
struct hdmi_codec_priv *hcp = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/hdmi-codec.c
723
return hcp->hcd.ops->mute_stream(dai->dev->parent,
sound/soc/codecs/hdmi-codec.c
795
struct snd_soc_dai *dai)
sound/soc/codecs/hdmi-codec.c
797
struct snd_soc_dai_driver *drv = dai->driver;
sound/soc/codecs/hdmi-codec.c
798
struct hdmi_codec_priv *hcp = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/hdmi-codec.c
820
kctl = snd_ctl_new1(&hdmi_codec_controls[i], dai->component);
sound/soc/codecs/hdmi-codec.c
843
struct snd_soc_dai *dai)
sound/soc/codecs/hdmi-codec.c
845
struct snd_soc_component *component = dai->component;
sound/soc/codecs/hdmi-codec.c
859
if (d == dai) {
sound/soc/codecs/hdmi-codec.c
883
struct snd_soc_dai *dai)
sound/soc/codecs/hdmi-codec.c
893
static int hdmi_dai_probe(struct snd_soc_dai *dai)
sound/soc/codecs/hdmi-codec.c
896
snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/hdmi-codec.c
902
.source = dai->driver->playback.stream_name,
sound/soc/codecs/hdmi-codec.c
905
.sink = dai->driver->capture.stream_name,
sound/soc/codecs/hdmi-codec.c
911
dapm = snd_soc_component_to_dapm(dai->component);
sound/soc/codecs/hdmi-codec.c
923
daifmt = devm_kzalloc(dai->dev, sizeof(*daifmt), GFP_KERNEL);
sound/soc/codecs/hdmi-codec.c
927
snd_soc_dai_dma_data_set_playback(dai, daifmt);
sound/soc/codecs/hdmi-codec.c
929
return hdmi_dai_proc_new(hcp, dai);
sound/soc/codecs/hdmi-codec.c
932
static int hdmi_dai_remove(struct snd_soc_dai *dai)
sound/soc/codecs/hdmi-codec.c
935
snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/hdmi-codec.c
995
static int hdmi_dai_spdif_probe(struct snd_soc_dai *dai)
sound/soc/codecs/idt821034.c
696
static int idt821034_dai_set_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/idt821034.c
700
struct idt821034 *idt821034 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/idt821034.c
711
dev_err(dai->dev, "tdm slot width %d not supported\n", width);
sound/soc/codecs/idt821034.c
724
dev_err(dai->dev, "ch%u set tx tdm slot failed (%d)\n",
sound/soc/codecs/idt821034.c
734
dev_err(dai->dev, "too much tx slots defined (mask = 0x%x) support max %d\n",
sound/soc/codecs/idt821034.c
749
dev_err(dai->dev, "ch%u set rx tdm slot failed (%d)\n",
sound/soc/codecs/idt821034.c
759
dev_err(dai->dev, "too much rx slots defined (mask = 0x%x) support max %d\n",
sound/soc/codecs/idt821034.c
768
static int idt821034_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/idt821034.c
770
struct idt821034 *idt821034 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/idt821034.c
786
dev_err(dai->dev, "Unsupported DAI format 0x%x\n",
sound/soc/codecs/idt821034.c
799
struct snd_soc_dai *dai)
sound/soc/codecs/idt821034.c
801
struct idt821034 *idt821034 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/idt821034.c
817
dev_err(dai->dev, "Unsupported PCM format 0x%x\n",
sound/soc/codecs/idt821034.c
836
struct snd_soc_dai *dai)
sound/soc/codecs/idt821034.c
838
struct idt821034 *idt821034 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/inno_rk3036.c
196
static int rk3036_codec_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/inno_rk3036.c
198
struct snd_soc_component *component = dai->component;
sound/soc/codecs/inno_rk3036.c
268
struct snd_soc_dai *dai)
sound/soc/codecs/inno_rk3036.c
270
struct snd_soc_component *component = dai->component;
sound/soc/codecs/isabelle.c
863
static int isabelle_hs_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/isabelle.c
865
snd_soc_component_update_bits(dai->component, ISABELLE_DAC1_SOFTRAMP_REG,
sound/soc/codecs/isabelle.c
871
static int isabelle_hf_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/isabelle.c
873
snd_soc_component_update_bits(dai->component, ISABELLE_DAC2_SOFTRAMP_REG,
sound/soc/codecs/isabelle.c
879
static int isabelle_line_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/isabelle.c
881
snd_soc_component_update_bits(dai->component, ISABELLE_DAC3_SOFTRAMP_REG,
sound/soc/codecs/isabelle.c
912
struct snd_soc_dai *dai)
sound/soc/codecs/isabelle.c
914
struct snd_soc_component *component = dai->component;
sound/soc/codecs/jz4725b.c
449
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/jz4725b.c
451
struct jz_icdc *icdc = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/jz4740.c
151
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/jz4740.c
153
struct jz4740_codec *jz4740_codec = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/jz4760.c
197
struct snd_soc_dai *dai)
sound/soc/codecs/jz4760.c
199
struct snd_soc_component *codec = dai->component;
sound/soc/codecs/jz4760.c
214
struct snd_soc_dai *dai)
sound/soc/codecs/jz4760.c
216
struct snd_soc_component *codec = dai->component;
sound/soc/codecs/jz4760.c
225
int cmd, struct snd_soc_dai *dai)
sound/soc/codecs/jz4760.c
227
struct snd_soc_component *codec = dai->component;
sound/soc/codecs/jz4760.c
250
static int jz4760_codec_mute_stream(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/jz4760.c
252
struct snd_soc_component *codec = dai->component;
sound/soc/codecs/jz4760.c
643
struct snd_soc_dai *dai)
sound/soc/codecs/jz4760.c
645
struct jz_codec *codec = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/jz4770.c
217
struct snd_soc_dai *dai)
sound/soc/codecs/jz4770.c
219
struct snd_soc_component *codec = dai->component;
sound/soc/codecs/jz4770.c
234
struct snd_soc_dai *dai)
sound/soc/codecs/jz4770.c
236
struct snd_soc_component *codec = dai->component;
sound/soc/codecs/jz4770.c
245
int cmd, struct snd_soc_dai *dai)
sound/soc/codecs/jz4770.c
247
struct snd_soc_component *codec = dai->component;
sound/soc/codecs/jz4770.c
270
static int jz4770_codec_mute_stream(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/jz4770.c
272
struct snd_soc_component *codec = dai->component;
sound/soc/codecs/jz4770.c
675
struct snd_soc_dai *dai)
sound/soc/codecs/jz4770.c
677
struct jz_codec *codec = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/lm49453.c
1108
struct snd_soc_dai *dai)
sound/soc/codecs/lm49453.c
1110
struct snd_soc_component *component = dai->component;
sound/soc/codecs/lm49453.c
1194
static int lm49453_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/codecs/lm49453.c
1197
struct snd_soc_component *component = dai->component;
sound/soc/codecs/lm49453.c
1219
static int lm49453_hp_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/lm49453.c
1221
snd_soc_component_update_bits(dai->component, LM49453_P0_DAC_DSP_REG, BIT(1)|BIT(0),
sound/soc/codecs/lm49453.c
1226
static int lm49453_lo_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/lm49453.c
1228
snd_soc_component_update_bits(dai->component, LM49453_P0_DAC_DSP_REG, BIT(3)|BIT(2),
sound/soc/codecs/lm49453.c
1233
static int lm49453_ls_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/lm49453.c
1235
snd_soc_component_update_bits(dai->component, LM49453_P0_DAC_DSP_REG, BIT(5)|BIT(4),
sound/soc/codecs/lm49453.c
1240
static int lm49453_ep_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/lm49453.c
1242
snd_soc_component_update_bits(dai->component, LM49453_P0_DAC_DSP_REG, BIT(4),
sound/soc/codecs/lm49453.c
1247
static int lm49453_ha_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/lm49453.c
1249
snd_soc_component_update_bits(dai->component, LM49453_P0_DAC_DSP_REG, BIT(7)|BIT(6),
sound/soc/codecs/lochnagar-sc.c
101
ret = lochnagar_sc_startup(substream, dai);
sound/soc/codecs/lochnagar-sc.c
111
struct snd_soc_dai *dai)
sound/soc/codecs/lochnagar-sc.c
113
struct snd_soc_component *comp = dai->component;
sound/soc/codecs/lochnagar-sc.c
119
static int lochnagar_sc_check_fmt(struct snd_soc_dai *dai, unsigned int fmt,
sound/soc/codecs/lochnagar-sc.c
130
static int lochnagar_sc_set_line_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/lochnagar-sc.c
132
return lochnagar_sc_check_fmt(dai, fmt, SND_SOC_DAIFMT_CBC_CFC);
sound/soc/codecs/lochnagar-sc.c
135
static int lochnagar_sc_set_usb_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/lochnagar-sc.c
137
return lochnagar_sc_check_fmt(dai, fmt, SND_SOC_DAIFMT_CBP_CFP);
sound/soc/codecs/lochnagar-sc.c
70
struct snd_soc_dai *dai)
sound/soc/codecs/lochnagar-sc.c
72
struct snd_soc_component *comp = dai->component;
sound/soc/codecs/lochnagar-sc.c
89
struct snd_soc_dai *dai)
sound/soc/codecs/lochnagar-sc.c
91
struct snd_soc_component *comp = dai->component;
sound/soc/codecs/lochnagar-sc.c
97
dev_err(dai->dev, "Failed to enable MCLK: %d\n", ret);
sound/soc/codecs/lpass-rx-macro.c
1722
static int rx_macro_set_prim_interpolator_rate(struct snd_soc_dai *dai,
sound/soc/codecs/lpass-rx-macro.c
1731
struct snd_soc_component *component = dai->component;
sound/soc/codecs/lpass-rx-macro.c
1734
for_each_set_bit(port, &rx->active_ch_mask[dai->id], RX_MACRO_PORTS_MAX) {
sound/soc/codecs/lpass-rx-macro.c
1768
static int rx_macro_set_mix_interpolator_rate(struct snd_soc_dai *dai,
sound/soc/codecs/lpass-rx-macro.c
1776
struct snd_soc_component *component = dai->component;
sound/soc/codecs/lpass-rx-macro.c
1779
for_each_set_bit(port, &rx->active_ch_mask[dai->id], RX_MACRO_PORTS_MAX) {
sound/soc/codecs/lpass-rx-macro.c
1799
static int rx_macro_set_interpolator_rate(struct snd_soc_dai *dai,
sound/soc/codecs/lpass-rx-macro.c
1809
ret = rx_macro_set_prim_interpolator_rate(dai, rate_val, sample_rate);
sound/soc/codecs/lpass-rx-macro.c
1813
ret = rx_macro_set_mix_interpolator_rate(dai, rate_val, sample_rate);
sound/soc/codecs/lpass-rx-macro.c
1820
struct snd_soc_dai *dai)
sound/soc/codecs/lpass-rx-macro.c
1822
struct snd_soc_component *component = dai->component;
sound/soc/codecs/lpass-rx-macro.c
1828
ret = rx_macro_set_interpolator_rate(dai, params_rate(params));
sound/soc/codecs/lpass-rx-macro.c
1834
rx->bit_width[dai->id] = params_width(params);
sound/soc/codecs/lpass-rx-macro.c
1842
static int rx_macro_get_channel_map(const struct snd_soc_dai *dai,
sound/soc/codecs/lpass-rx-macro.c
1846
struct snd_soc_component *component = dai->component;
sound/soc/codecs/lpass-rx-macro.c
1850
switch (dai->id) {
sound/soc/codecs/lpass-rx-macro.c
1855
for_each_set_bit(temp, &rx->active_ch_mask[dai->id],
sound/soc/codecs/lpass-rx-macro.c
1876
*rx_num = rx->active_ch_cnt[dai->id];
sound/soc/codecs/lpass-rx-macro.c
1904
static int rx_macro_digital_mute(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/lpass-rx-macro.c
1906
struct snd_soc_component *component = dai->component;
sound/soc/codecs/lpass-rx-macro.c
1933
for_each_set_bit(port, &rx->active_ch_mask[dai->id], RX_MACRO_PORTS_MAX) {
sound/soc/codecs/lpass-tx-macro.c
1125
struct snd_soc_dai *dai)
sound/soc/codecs/lpass-tx-macro.c
1127
struct snd_soc_component *component = dai->component;
sound/soc/codecs/lpass-tx-macro.c
1162
for_each_set_bit(decimator, &tx->active_ch_mask[dai->id], TX_MACRO_DEC_MAX)
sound/soc/codecs/lpass-tx-macro.c
1169
static int tx_macro_get_channel_map(const struct snd_soc_dai *dai,
sound/soc/codecs/lpass-tx-macro.c
1173
struct snd_soc_component *component = dai->component;
sound/soc/codecs/lpass-tx-macro.c
1176
switch (dai->id) {
sound/soc/codecs/lpass-tx-macro.c
1180
*tx_slot = tx->active_ch_mask[dai->id];
sound/soc/codecs/lpass-tx-macro.c
1181
*tx_num = tx->active_ch_cnt[dai->id];
sound/soc/codecs/lpass-tx-macro.c
1189
static int tx_macro_digital_mute(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/lpass-tx-macro.c
1191
struct snd_soc_component *component = dai->component;
sound/soc/codecs/lpass-tx-macro.c
1196
if (tx->active_decimator[dai->id] == -1)
sound/soc/codecs/lpass-tx-macro.c
1199
decimator = tx->active_decimator[dai->id];
sound/soc/codecs/lpass-va-macro.c
853
struct snd_soc_dai *dai)
sound/soc/codecs/lpass-va-macro.c
856
struct snd_soc_component *component = dai->component;
sound/soc/codecs/lpass-va-macro.c
891
for_each_set_bit(decimator, &va->active_ch_mask[dai->id],
sound/soc/codecs/lpass-va-macro.c
901
static int va_macro_get_channel_map(const struct snd_soc_dai *dai,
sound/soc/codecs/lpass-va-macro.c
905
struct snd_soc_component *component = dai->component;
sound/soc/codecs/lpass-va-macro.c
909
switch (dai->id) {
sound/soc/codecs/lpass-va-macro.c
913
*tx_slot = va->active_ch_mask[dai->id];
sound/soc/codecs/lpass-va-macro.c
914
*tx_num = va->active_ch_cnt[dai->id];
sound/soc/codecs/lpass-va-macro.c
923
static int va_macro_digital_mute(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/lpass-va-macro.c
925
struct snd_soc_component *component = dai->component;
sound/soc/codecs/lpass-va-macro.c
929
for_each_set_bit(decimator, &va->active_ch_mask[dai->id],
sound/soc/codecs/lpass-wsa-macro.c
1156
static int wsa_macro_set_prim_interpolator_rate(struct snd_soc_dai *dai,
sound/soc/codecs/lpass-wsa-macro.c
1165
struct snd_soc_component *component = dai->component;
sound/soc/codecs/lpass-wsa-macro.c
1168
for_each_set_bit(port, &wsa->active_ch_mask[dai->id], WSA_MACRO_RX_MAX) {
sound/soc/codecs/lpass-wsa-macro.c
1203
static int wsa_macro_set_mix_interpolator_rate(struct snd_soc_dai *dai,
sound/soc/codecs/lpass-wsa-macro.c
1211
struct snd_soc_component *component = dai->component;
sound/soc/codecs/lpass-wsa-macro.c
1214
for_each_set_bit(port, &wsa->active_ch_mask[dai->id], WSA_MACRO_RX_MAX) {
sound/soc/codecs/lpass-wsa-macro.c
1237
static int wsa_macro_set_interpolator_rate(struct snd_soc_dai *dai,
sound/soc/codecs/lpass-wsa-macro.c
1253
ret = wsa_macro_set_mix_interpolator_rate(dai, (u8) rate_val, sample_rate);
sound/soc/codecs/lpass-wsa-macro.c
1267
ret = wsa_macro_set_prim_interpolator_rate(dai, (u8) rate_val, sample_rate);
sound/soc/codecs/lpass-wsa-macro.c
1274
struct snd_soc_dai *dai)
sound/soc/codecs/lpass-wsa-macro.c
1276
struct snd_soc_component *component = dai->component;
sound/soc/codecs/lpass-wsa-macro.c
1282
ret = wsa_macro_set_interpolator_rate(dai, params_rate(params));
sound/soc/codecs/lpass-wsa-macro.c
1291
if (dai->id == WSA_MACRO_AIF_VI)
sound/soc/codecs/lpass-wsa-macro.c
1301
static int wsa_macro_get_channel_map(const struct snd_soc_dai *dai,
sound/soc/codecs/lpass-wsa-macro.c
1305
struct snd_soc_component *component = dai->component;
sound/soc/codecs/lpass-wsa-macro.c
1309
switch (dai->id) {
sound/soc/codecs/lpass-wsa-macro.c
1311
*tx_slot = wsa->active_ch_mask[dai->id];
sound/soc/codecs/lpass-wsa-macro.c
1312
*tx_num = wsa->active_ch_cnt[dai->id];
sound/soc/codecs/lpass-wsa-macro.c
1316
for_each_set_bit(temp, &wsa->active_ch_mask[dai->id],
sound/soc/codecs/madera.c
2748
static int madera_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/madera.c
2750
struct snd_soc_component *component = dai->component;
sound/soc/codecs/madera.c
2755
base = dai->driver->base;
sound/soc/codecs/madera.c
2767
madera_aif_err(dai, "DSP_B not valid in slave mode\n");
sound/soc/codecs/madera.c
2778
madera_aif_err(dai, "LEFT_J not valid in slave mode\n");
sound/soc/codecs/madera.c
2784
madera_aif_err(dai, "Unsupported DAI format %d\n",
sound/soc/codecs/madera.c
2803
madera_aif_err(dai, "Unsupported master mode %d\n",
sound/soc/codecs/madera.c
2822
madera_aif_err(dai, "Unsupported invert mode %d\n",
sound/soc/codecs/madera.c
2928
struct snd_soc_dai *dai)
sound/soc/codecs/madera.c
2930
struct snd_soc_component *component = dai->component;
sound/soc/codecs/madera.c
2932
struct madera_dai_priv *dai_priv = &priv->dai[dai->id - 1];
sound/soc/codecs/madera.c
2981
struct snd_soc_dai *dai)
sound/soc/codecs/madera.c
2983
struct snd_soc_component *component = dai->component;
sound/soc/codecs/madera.c
2985
struct madera_dai_priv *dai_priv = &priv->dai[dai->id - 1];
sound/soc/codecs/madera.c
2986
int base = dai->driver->base;
sound/soc/codecs/madera.c
2996
madera_aif_err(dai, "Unsupported sample rate %dHz\n",
sound/soc/codecs/madera.c
3024
madera_aif_err(dai, "Invalid clock %d\n", dai_priv->clk);
sound/soc/codecs/madera.c
3037
madera_aif_err(dai, "Failed to check rate: %d\n", ret);
sound/soc/codecs/madera.c
3047
madera_aif_warn(dai, "Cannot change rate while active\n");
sound/soc/codecs/madera.c
3087
struct snd_soc_dai *dai)
sound/soc/codecs/madera.c
3089
struct snd_soc_component *component = dai->component;
sound/soc/codecs/madera.c
3092
int base = dai->driver->base;
sound/soc/codecs/madera.c
3099
madera->pdata.codec.max_channels_clocked[dai->id - 1];
sound/soc/codecs/madera.c
3100
int tdm_width = priv->tdm_width[dai->id - 1];
sound/soc/codecs/madera.c
3101
int tdm_slots = priv->tdm_slots[dai->id - 1];
sound/soc/codecs/madera.c
3117
madera_aif_dbg(dai, "Configuring for %d %d bit TDM slots\n",
sound/soc/codecs/madera.c
3127
madera_aif_dbg(dai, "Limiting to %d channels\n", chan_limit);
sound/soc/codecs/madera.c
3136
madera_aif_dbg(dai, "Forcing stereo mode\n");
sound/soc/codecs/madera.c
3149
madera_aif_err(dai, "Unsupported sample rate %dHz\n", rate);
sound/soc/codecs/madera.c
3155
madera_aif_dbg(dai, "BCLK %dHz LRCLK %dHz\n",
sound/soc/codecs/madera.c
3177
ret = madera_hw_params_rate(substream, params, dai);
sound/soc/codecs/madera.c
3227
static int madera_dai_set_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/madera.c
3230
struct snd_soc_component *component = dai->component;
sound/soc/codecs/madera.c
3233
struct madera_dai_priv *dai_priv = &priv->dai[dai->id - 1];
sound/soc/codecs/madera.c
3246
if (snd_soc_dai_active(dai)) {
sound/soc/codecs/madera.c
3248
dai->id);
sound/soc/codecs/madera.c
3252
dev_dbg(component->dev, "Setting AIF%d to %s\n", dai->id,
sound/soc/codecs/madera.c
3260
routes[0].sink = dai->driver->capture.stream_name;
sound/soc/codecs/madera.c
3261
routes[1].sink = dai->driver->playback.stream_name;
sound/soc/codecs/madera.c
3275
static int madera_set_tristate(struct snd_soc_dai *dai, int tristate)
sound/soc/codecs/madera.c
3277
struct snd_soc_component *component = dai->component;
sound/soc/codecs/madera.c
3278
int base = dai->driver->base;
sound/soc/codecs/madera.c
3296
static void madera_set_channels_to_mask(struct snd_soc_dai *dai,
sound/soc/codecs/madera.c
3300
struct snd_soc_component *component = dai->component;
sound/soc/codecs/madera.c
3316
madera_aif_warn(dai, "Too many channels in TDM mask\n");
sound/soc/codecs/madera.c
3319
static int madera_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/madera.c
3322
struct snd_soc_component *component = dai->component;
sound/soc/codecs/madera.c
3324
int base = dai->driver->base;
sound/soc/codecs/madera.c
3325
int rx_max_chan = dai->driver->playback.channels_max;
sound/soc/codecs/madera.c
3326
int tx_max_chan = dai->driver->capture.channels_max;
sound/soc/codecs/madera.c
3329
if (dai->id > MADERA_MAX_AIF)
sound/soc/codecs/madera.c
3337
madera_set_channels_to_mask(dai, base + MADERA_AIF_FRAME_CTRL_3,
sound/soc/codecs/madera.c
3339
madera_set_channels_to_mask(dai, base + MADERA_AIF_FRAME_CTRL_11,
sound/soc/codecs/madera.c
3342
priv->tdm_width[dai->id - 1] = slot_width;
sound/soc/codecs/madera.c
3343
priv->tdm_slots[dai->id - 1] = slots;
sound/soc/codecs/madera.c
3367
struct madera_dai_priv *dai_priv = &priv->dai[id];
sound/soc/codecs/madera.h
127
struct madera_dai_priv dai[MADERA_MAX_DAI];
sound/soc/codecs/max98088.c
1015
struct snd_soc_dai *dai)
sound/soc/codecs/max98088.c
1017
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max98088.c
1024
cdata = &max98088->dai[1];
sound/soc/codecs/max98088.c
1083
static int max98088_dai_set_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/max98088.c
1086
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max98088.c
1120
dev_dbg(dai->dev, "Clock source is %d at %uHz\n", clk_id, freq);
sound/soc/codecs/max98088.c
1135
cdata = &max98088->dai[0];
sound/soc/codecs/max98088.c
1204
cdata = &max98088->dai[1];
sound/soc/codecs/max98088.c
1413
cdata = &max98088->dai[0];
sound/soc/codecs/max98088.c
1460
cdata = &max98088->dai[1];
sound/soc/codecs/max98088.c
1513
cdata = &max98088->dai[channel];
sound/soc/codecs/max98088.c
1543
cdata = &max98088->dai[channel];
sound/soc/codecs/max98088.c
1653
cdata = &max98088->dai[0];
sound/soc/codecs/max98088.c
1658
cdata = &max98088->dai[1];
sound/soc/codecs/max98088.c
310
static void m98088_eq_band(struct snd_soc_component *component, unsigned int dai,
sound/soc/codecs/max98088.c
317
WARN_ON(dai > 1))
sound/soc/codecs/max98088.c
321
eq_reg = dai ? M98088_REG_84_DAI2_EQ_BASE : M98088_REG_52_DAI1_EQ_BASE;
sound/soc/codecs/max98088.c
46
struct max98088_cdata dai[2];
sound/soc/codecs/max98088.c
945
struct snd_soc_dai *dai)
sound/soc/codecs/max98088.c
947
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max98088.c
954
cdata = &max98088->dai[0];
sound/soc/codecs/max98090.c
1624
cdata = &max98090->dai[0];
sound/soc/codecs/max98090.c
1952
struct snd_soc_dai *dai)
sound/soc/codecs/max98090.c
1954
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max98090.c
1968
struct snd_soc_dai *dai)
sound/soc/codecs/max98090.c
1970
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max98090.c
1974
cdata = &max98090->dai[0];
sound/soc/codecs/max98090.c
2020
static int max98090_dai_set_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/max98090.c
2023
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max98090.c
2076
struct snd_soc_dai *dai)
sound/soc/codecs/max98090.c
2078
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max98090.c
2085
if (!max98090->master && snd_soc_dai_active(dai) == 1)
sound/soc/codecs/max98090.c
2093
if (!max98090->master && snd_soc_dai_active(dai) == 1)
sound/soc/codecs/max98090.c
2441
cdata = &max98090->dai[0];
sound/soc/codecs/max98090.h
1528
struct max98090_cdata dai[1];
sound/soc/codecs/max98095.c
1001
struct snd_soc_dai *dai)
sound/soc/codecs/max98095.c
1003
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max98095.c
1010
cdata = &max98095->dai[1];
sound/soc/codecs/max98095.c
1062
struct snd_soc_dai *dai)
sound/soc/codecs/max98095.c
1064
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max98095.c
1071
cdata = &max98095->dai[2];
sound/soc/codecs/max98095.c
1121
static int max98095_dai_set_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/max98095.c
1124
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max98095.c
1152
dev_dbg(dai->dev, "Clock source is %d at %uHz\n", clk_id, freq);
sound/soc/codecs/max98095.c
1166
cdata = &max98095->dai[0];
sound/soc/codecs/max98095.c
1232
cdata = &max98095->dai[1];
sound/soc/codecs/max98095.c
1299
cdata = &max98095->dai[2];
sound/soc/codecs/max98095.c
1508
cdata = &max98095->dai[channel];
sound/soc/codecs/max98095.c
1558
cdata = &max98095->dai[channel];
sound/soc/codecs/max98095.c
1659
cdata = &max98095->dai[channel];
sound/soc/codecs/max98095.c
1709
cdata = &max98095->dai[channel];
sound/soc/codecs/max98095.c
2004
cdata = &max98095->dai[0];
sound/soc/codecs/max98095.c
2010
cdata = &max98095->dai[1];
sound/soc/codecs/max98095.c
2016
cdata = &max98095->dai[2];
sound/soc/codecs/max98095.c
251
static void m98095_eq_band(struct snd_soc_component *component, unsigned int dai,
sound/soc/codecs/max98095.c
258
WARN_ON(dai > 1))
sound/soc/codecs/max98095.c
262
eq_reg = dai ? M98095_142_DAI2_EQ_BASE : M98095_110_DAI1_EQ_BASE;
sound/soc/codecs/max98095.c
277
static void m98095_biquad_band(struct snd_soc_component *component, unsigned int dai,
sound/soc/codecs/max98095.c
284
WARN_ON(dai > 1))
sound/soc/codecs/max98095.c
288
bq_reg = dai ? M98095_17E_DAI2_BQ_BASE : M98095_174_DAI1_BQ_BASE;
sound/soc/codecs/max98095.c
46
struct max98095_cdata dai[3];
sound/soc/codecs/max98095.c
940
struct snd_soc_dai *dai)
sound/soc/codecs/max98095.c
942
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max98095.c
949
cdata = &max98095->dai[0];
sound/soc/codecs/max98357a.c
29
int cmd, struct snd_soc_dai *dai)
sound/soc/codecs/max98357a.c
31
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max98363.c
201
struct snd_soc_dai *dai)
sound/soc/codecs/max98363.c
203
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max98363.c
215
stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/max98363.c
236
dev_info(dai->dev, "Number of channels: %d (requested: %d)\n",
sound/soc/codecs/max98363.c
244
dev_err(dai->dev, "Unable to configure port\n");
sound/soc/codecs/max98363.c
254
struct snd_soc_dai *dai)
sound/soc/codecs/max98363.c
256
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max98363.c
260
snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/max98363.c
270
static int max98363_set_sdw_stream(struct snd_soc_dai *dai,
sound/soc/codecs/max98363.c
273
snd_soc_dai_dma_data_set(dai, direction, sdw_stream);
sound/soc/codecs/max98371.c
216
struct snd_soc_dai *dai)
sound/soc/codecs/max98371.c
218
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max98373-i2c.c
215
struct snd_soc_dai *dai)
sound/soc/codecs/max98373-i2c.c
217
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max98373-i2c.c
317
static int max98373_dai_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/max98373-i2c.c
321
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max98373-sdw.c
516
struct snd_soc_dai *dai)
sound/soc/codecs/max98373-sdw.c
518
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max98373-sdw.c
526
sdw_stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/max98373-sdw.c
554
dev_err(dai->dev, "Unable to configure port\n");
sound/soc/codecs/max98373-sdw.c
646
struct snd_soc_dai *dai)
sound/soc/codecs/max98373-sdw.c
648
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max98373-sdw.c
652
snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/max98373-sdw.c
661
static int max98373_set_sdw_stream(struct snd_soc_dai *dai,
sound/soc/codecs/max98373-sdw.c
664
snd_soc_dai_dma_data_set(dai, direction, sdw_stream);
sound/soc/codecs/max98373-sdw.c
670
struct snd_soc_dai *dai)
sound/soc/codecs/max98373-sdw.c
672
snd_soc_dai_set_dma_data(dai, substream, NULL);
sound/soc/codecs/max98373-sdw.c
675
static int max98373_sdw_set_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/max98373-sdw.c
680
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max98388.c
557
struct snd_soc_dai *dai)
sound/soc/codecs/max98388.c
559
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max98388.c
686
static int max98388_dai_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/max98388.c
690
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max98390.c
302
struct snd_soc_dai *dai)
sound/soc/codecs/max98390.c
305
dai->component;
sound/soc/codecs/max98390.c
382
static int max98390_dai_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/max98390.c
386
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max98390.c
454
static int max98390_dai_set_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/max98390.c
457
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max98396.c
506
struct snd_soc_dai *dai)
sound/soc/codecs/max98396.c
508
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max98396.c
666
static int max98396_dai_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/max98396.c
670
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max9850.c
113
struct snd_soc_dai *dai)
sound/soc/codecs/max9850.c
115
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max98504.c
199
static int max98504_set_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/max98504.c
203
struct max98504_priv *max98504 = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/max98504.c
207
switch (dai->id) {
sound/soc/codecs/max98504.c
222
static int max98504_set_channel_map(struct snd_soc_dai *dai,
sound/soc/codecs/max98504.c
228
struct max98504_priv *max98504 = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/max98504.c
236
switch (dai->id) {
sound/soc/codecs/max98520.c
167
struct snd_soc_dai *dai)
sound/soc/codecs/max98520.c
169
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max98520.c
262
static int max98520_dai_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/max98520.c
266
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max9860.c
253
struct snd_soc_dai *dai)
sound/soc/codecs/max9860.c
255
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max9860.c
446
static int max9860_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/max9860.c
448
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max9867.c
313
struct snd_soc_dai *dai)
sound/soc/codecs/max9867.c
316
snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/max9867.c
326
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/max9867.c
330
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max9867.c
420
static int max9867_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/max9867.c
422
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max98925.c
423
struct snd_soc_dai *dai)
sound/soc/codecs/max98925.c
425
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max98925.c
457
static int max98925_dai_set_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/max98925.c
460
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max98926.c
369
struct snd_soc_dai *dai)
sound/soc/codecs/max98926.c
373
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max98927.c
298
struct snd_soc_dai *dai)
sound/soc/codecs/max98927.c
300
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max98927.c
388
static int max98927_dai_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/max98927.c
392
struct snd_soc_component *component = dai->component;
sound/soc/codecs/max98927.c
456
static int max98927_dai_set_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/max98927.c
459
struct snd_soc_component *component = dai->component;
sound/soc/codecs/mc13783.c
114
struct snd_soc_dai *dai)
sound/soc/codecs/mc13783.c
116
struct snd_soc_component *component = dai->component;
sound/soc/codecs/mc13783.c
139
struct snd_soc_dai *dai)
sound/soc/codecs/mc13783.c
142
return mc13783_pcm_hw_params_dac(substream, params, dai);
sound/soc/codecs/mc13783.c
144
return mc13783_pcm_hw_params_codec(substream, params, dai);
sound/soc/codecs/mc13783.c
147
static int mc13783_set_fmt(struct snd_soc_dai *dai, unsigned int fmt,
sound/soc/codecs/mc13783.c
150
struct snd_soc_component *component = dai->component;
sound/soc/codecs/mc13783.c
202
static int mc13783_set_fmt_async(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/mc13783.c
204
if (dai->id == MC13783_ID_STEREO_DAC)
sound/soc/codecs/mc13783.c
205
return mc13783_set_fmt(dai, fmt, MC13783_AUDIO_DAC);
sound/soc/codecs/mc13783.c
207
return mc13783_set_fmt(dai, fmt, MC13783_AUDIO_CODEC);
sound/soc/codecs/mc13783.c
210
static int mc13783_set_fmt_sync(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/mc13783.c
214
ret = mc13783_set_fmt(dai, fmt, MC13783_AUDIO_DAC);
sound/soc/codecs/mc13783.c
224
ret = mc13783_set_fmt(dai, fmt, MC13783_AUDIO_CODEC);
sound/soc/codecs/mc13783.c
240
static int mc13783_set_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/mc13783.c
244
struct snd_soc_component *component = dai->component;
sound/soc/codecs/mc13783.c
269
static int mc13783_set_sysclk_dac(struct snd_soc_dai *dai,
sound/soc/codecs/mc13783.c
272
return mc13783_set_sysclk(dai, clk_id, freq, dir, MC13783_AUDIO_DAC);
sound/soc/codecs/mc13783.c
275
static int mc13783_set_sysclk_codec(struct snd_soc_dai *dai,
sound/soc/codecs/mc13783.c
278
return mc13783_set_sysclk(dai, clk_id, freq, dir, MC13783_AUDIO_CODEC);
sound/soc/codecs/mc13783.c
281
static int mc13783_set_sysclk_sync(struct snd_soc_dai *dai,
sound/soc/codecs/mc13783.c
286
ret = mc13783_set_sysclk(dai, clk_id, freq, dir, MC13783_AUDIO_DAC);
sound/soc/codecs/mc13783.c
290
return mc13783_set_sysclk(dai, clk_id, freq, dir, MC13783_AUDIO_CODEC);
sound/soc/codecs/mc13783.c
293
static int mc13783_set_tdm_slot_dac(struct snd_soc_dai *dai,
sound/soc/codecs/mc13783.c
297
struct snd_soc_component *component = dai->component;
sound/soc/codecs/mc13783.c
338
static int mc13783_set_tdm_slot_codec(struct snd_soc_dai *dai,
sound/soc/codecs/mc13783.c
342
struct snd_soc_component *component = dai->component;
sound/soc/codecs/mc13783.c
360
static int mc13783_set_tdm_slot_sync(struct snd_soc_dai *dai,
sound/soc/codecs/mc13783.c
366
ret = mc13783_set_tdm_slot_dac(dai, tx_mask, rx_mask, slots,
sound/soc/codecs/mc13783.c
371
ret = mc13783_set_tdm_slot_codec(dai, tx_mask, rx_mask, slots,
sound/soc/codecs/mc13783.c
95
struct snd_soc_dai *dai)
sound/soc/codecs/mc13783.c
97
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ml26124.c
326
struct snd_soc_dai *dai)
sound/soc/codecs/ml26124.c
328
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ml26124.c
375
static int ml26124_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/ml26124.c
377
struct snd_soc_component *component = dai->component;
sound/soc/codecs/msm8916-wcd-digital.c
1071
struct snd_soc_dai *dai)
sound/soc/codecs/msm8916-wcd-digital.c
1073
struct snd_soc_component *component = dai->component;
sound/soc/codecs/msm8916-wcd-digital.c
1105
struct snd_soc_dai *dai)
sound/soc/codecs/msm8916-wcd-digital.c
1107
snd_soc_component_update_bits(dai->component, LPASS_CDC_CLK_PDM_CTL,
sound/soc/codecs/msm8916-wcd-digital.c
862
struct snd_soc_dai *dai)
sound/soc/codecs/msm8916-wcd-digital.c
885
dev_err(dai->component->dev, "Invalid sampling rate %d\n",
sound/soc/codecs/msm8916-wcd-digital.c
892
snd_soc_component_update_bits(dai->component, LPASS_CDC_CLK_TX_I2S_CTL,
sound/soc/codecs/msm8916-wcd-digital.c
896
snd_soc_component_update_bits(dai->component, LPASS_CDC_CLK_RX_I2S_CTL,
sound/soc/codecs/msm8916-wcd-digital.c
905
snd_soc_component_update_bits(dai->component, LPASS_CDC_CLK_TX_I2S_CTL,
sound/soc/codecs/msm8916-wcd-digital.c
908
snd_soc_component_update_bits(dai->component, LPASS_CDC_CLK_RX_I2S_CTL,
sound/soc/codecs/msm8916-wcd-digital.c
914
snd_soc_component_update_bits(dai->component, LPASS_CDC_CLK_TX_I2S_CTL,
sound/soc/codecs/msm8916-wcd-digital.c
917
snd_soc_component_update_bits(dai->component, LPASS_CDC_CLK_RX_I2S_CTL,
sound/soc/codecs/msm8916-wcd-digital.c
922
dev_err(dai->dev, "%s: wrong format selected\n", __func__);
sound/soc/codecs/mt6351.c
264
struct snd_soc_dai *dai)
sound/soc/codecs/mt6351.c
266
struct snd_soc_component *cmpnt = dai->component;
sound/soc/codecs/mt6358.c
2249
struct snd_soc_dai *dai)
sound/soc/codecs/mt6358.c
2251
struct snd_soc_component *cmpnt = dai->component;
sound/soc/codecs/mt6359.c
2644
struct snd_soc_dai *dai)
sound/soc/codecs/mt6359.c
2646
struct snd_soc_component *cmpnt = dai->component;
sound/soc/codecs/mt6359.c
2649
int id = dai->id;
sound/soc/codecs/mt6359.c
2663
struct snd_soc_dai *dai)
sound/soc/codecs/mt6359.c
2665
struct snd_soc_component *cmpnt = dai->component;
sound/soc/codecs/mt6359.c
2678
struct snd_soc_dai *dai)
sound/soc/codecs/mt6359.c
2680
struct snd_soc_component *cmpnt = dai->component;
sound/soc/codecs/mt6660.c
329
struct snd_pcm_hw_params *hw_params, struct snd_soc_dai *dai)
sound/soc/codecs/mt6660.c
336
dev_dbg(dai->dev, "%s: ++\n", __func__);
sound/soc/codecs/mt6660.c
337
dev_dbg(dai->dev, "format: 0x%08x\n", params_format(hw_params));
sound/soc/codecs/mt6660.c
338
dev_dbg(dai->dev, "rate: 0x%08x\n", params_rate(hw_params));
sound/soc/codecs/mt6660.c
339
dev_dbg(dai->dev, "word_len: %d, aud_bit: %d\n", word_len, aud_bit);
sound/soc/codecs/mt6660.c
341
dev_err(dai->dev, "not supported word length\n");
sound/soc/codecs/mt6660.c
361
ret = snd_soc_component_update_bits(dai->component,
sound/soc/codecs/mt6660.c
364
dev_err(dai->dev, "config aud bit fail\n");
sound/soc/codecs/mt6660.c
367
ret = snd_soc_component_update_bits(dai->component,
sound/soc/codecs/mt6660.c
370
dev_err(dai->dev, "config word len fail\n");
sound/soc/codecs/mt6660.c
373
dev_dbg(dai->dev, "%s: --\n", __func__);
sound/soc/codecs/nau8315.c
31
int cmd, struct snd_soc_dai *dai)
sound/soc/codecs/nau8315.c
33
struct snd_soc_component *component = dai->component;
sound/soc/codecs/nau8325.c
487
struct snd_soc_dai *dai)
sound/soc/codecs/nau8325.c
489
struct snd_soc_component *component = dai->component;
sound/soc/codecs/nau8325.c
504
struct snd_soc_dai *dai)
sound/soc/codecs/nau8325.c
506
struct snd_soc_component *component = dai->component;
sound/soc/codecs/nau8325.c
553
static int nau8325_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/nau8325.c
555
struct snd_soc_component *component = dai->component;
sound/soc/codecs/nau8540.c
417
struct snd_soc_dai *dai)
sound/soc/codecs/nau8540.c
419
struct snd_soc_component *component = dai->component;
sound/soc/codecs/nau8540.c
433
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/nau8540.c
435
struct snd_soc_component *component = dai->component;
sound/soc/codecs/nau8540.c
478
static int nau8540_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/nau8540.c
480
struct snd_soc_component *component = dai->component;
sound/soc/codecs/nau8540.c
548
static int nau8540_set_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/nau8540.c
551
struct snd_soc_component *component = dai->component;
sound/soc/codecs/nau8540.c
578
int cmd, struct snd_soc_dai *dai)
sound/soc/codecs/nau8540.c
580
struct snd_soc_component *component = dai->component;
sound/soc/codecs/nau8810.c
515
static int nau8810_set_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/nau8810.c
518
struct snd_soc_component *component = dai->component;
sound/soc/codecs/nau8810.c
699
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/nau8810.c
701
struct snd_soc_component *component = dai->component;
sound/soc/codecs/nau8821.c
827
struct snd_soc_dai *dai)
sound/soc/codecs/nau8821.c
829
struct snd_soc_component *component = dai->component;
sound/soc/codecs/nau8821.c
843
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/nau8821.c
845
struct snd_soc_component *component = dai->component;
sound/soc/codecs/nau8821.c
970
static int nau8821_digital_mute(struct snd_soc_dai *dai, int mute,
sound/soc/codecs/nau8821.c
973
struct snd_soc_component *component = dai->component;
sound/soc/codecs/nau8822.c
654
static int nau8822_config_clkdiv(struct snd_soc_dai *dai, int div, int rate)
sound/soc/codecs/nau8822.c
656
struct snd_soc_component *component = dai->component;
sound/soc/codecs/nau8822.c
709
static int nau8822_set_pll(struct snd_soc_dai *dai, int pll_id, int source,
sound/soc/codecs/nau8822.c
712
struct snd_soc_component *component = dai->component;
sound/soc/codecs/nau8822.c
770
static int nau8822_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/codecs/nau8822.c
773
struct snd_soc_component *component = dai->component;
sound/soc/codecs/nau8822.c
783
int ret = nau8822_set_pll(dai, NAU8822_CLK_MCLK,
sound/soc/codecs/nau8822.c
799
static int nau8822_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/nau8822.c
801
struct snd_soc_component *component = dai->component;
sound/soc/codecs/nau8822.c
861
struct snd_soc_dai *dai)
sound/soc/codecs/nau8822.c
863
struct snd_soc_component *component = dai->component;
sound/soc/codecs/nau8822.c
935
nau8822_config_clkdiv(dai, div, params_rate(params));
sound/soc/codecs/nau8822.c
940
static int nau8822_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/nau8822.c
942
struct snd_soc_component *component = dai->component;
sound/soc/codecs/nau8824.c
1059
struct snd_soc_dai *dai)
sound/soc/codecs/nau8824.c
1061
struct snd_soc_component *component = dai->component;
sound/soc/codecs/nau8824.c
1075
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/nau8824.c
1077
struct snd_soc_component *component = dai->component;
sound/soc/codecs/nau8824.c
1155
static int nau8824_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/nau8824.c
1157
struct snd_soc_component *component = dai->component;
sound/soc/codecs/nau8824.c
1231
static int nau8824_set_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/nau8824.c
1234
struct snd_soc_component *component = dai->component;
sound/soc/codecs/nau8825.c
1259
struct snd_soc_dai *dai)
sound/soc/codecs/nau8825.c
1261
struct snd_soc_component *component = dai->component;
sound/soc/codecs/nau8825.c
1276
struct snd_soc_dai *dai)
sound/soc/codecs/nau8825.c
1278
struct snd_soc_component *component = dai->component;
sound/soc/codecs/nau8825.c
1425
static int nau8825_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/nau8825.c
1428
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ntp8835.c
298
struct snd_soc_dai *dai)
sound/soc/codecs/ntp8835.c
300
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ntp8835.c
371
static int ntp8835_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/ntp8835.c
373
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ntp8918.c
207
struct snd_soc_dai *dai)
sound/soc/codecs/ntp8918.c
209
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ntp8918.c
283
static int ntp8918_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/ntp8918.c
285
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ntp8918.c
300
static int ntp8918_digital_mute(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/ntp8918.c
305
return snd_soc_component_update_bits(dai->component, NTP8918_SOFT_MUTE,
sound/soc/codecs/pcm1681.c
147
static int pcm1681_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/pcm1681.c
149
struct snd_soc_component *component = dai->component;
sound/soc/codecs/pcm1681.c
163
struct snd_soc_dai *dai)
sound/soc/codecs/pcm1681.c
165
struct snd_soc_component *component = dai->component;
sound/soc/codecs/pcm1754.c
72
static int pcm1754_mute_stream(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/pcm1754.c
74
struct pcm1754_priv *priv = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/pcm1789.c
144
struct snd_soc_dai *dai)
sound/soc/codecs/pcm1789.c
146
struct snd_soc_component *component = dai->component;
sound/soc/codecs/pcm179x.c
79
static int pcm179x_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/pcm179x.c
81
struct snd_soc_component *component = dai->component;
sound/soc/codecs/pcm179x.c
95
struct snd_soc_dai *dai)
sound/soc/codecs/pcm179x.c
97
struct snd_soc_component *component = dai->component;
sound/soc/codecs/pcm186x.c
262
struct snd_soc_dai *dai)
sound/soc/codecs/pcm186x.c
264
struct snd_soc_component *component = dai->component;
sound/soc/codecs/pcm186x.c
357
static int pcm186x_set_fmt(struct snd_soc_dai *dai, unsigned int format)
sound/soc/codecs/pcm186x.c
359
struct snd_soc_component *component = dai->component;
sound/soc/codecs/pcm186x.c
426
static int pcm186x_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/pcm186x.c
429
struct snd_soc_component *component = dai->component;
sound/soc/codecs/pcm186x.c
462
static int pcm186x_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/codecs/pcm186x.c
465
struct snd_soc_component *component = dai->component;
sound/soc/codecs/pcm3060.c
110
struct snd_soc_dai *dai)
sound/soc/codecs/pcm3060.c
112
struct snd_soc_component *comp = dai->component;
sound/soc/codecs/pcm3060.c
119
if (!priv->dai[dai->id].is_provider) {
sound/soc/codecs/pcm3060.c
130
ratio = priv->dai[dai->id].sclk_freq / rate;
sound/soc/codecs/pcm3060.c
157
if (dai->id == PCM3060_DAI_ID_DAC)
sound/soc/codecs/pcm3060.c
16
static int pcm3060_set_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/codecs/pcm3060.c
19
struct snd_soc_component *comp = dai->component;
sound/soc/codecs/pcm3060.c
35
val = (dai->id == PCM3060_DAI_ID_DAC ? PCM3060_REG_CSEL : 0);
sound/soc/codecs/pcm3060.c
39
val = (dai->id == PCM3060_DAI_ID_DAC ? 0 : PCM3060_REG_CSEL);
sound/soc/codecs/pcm3060.c
47
if (dai->id == PCM3060_DAI_ID_DAC)
sound/soc/codecs/pcm3060.c
54
priv->dai[dai->id].sclk_freq = freq;
sound/soc/codecs/pcm3060.c
59
static int pcm3060_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/pcm3060.c
61
struct snd_soc_component *comp = dai->component;
sound/soc/codecs/pcm3060.c
73
priv->dai[dai->id].is_provider = true;
sound/soc/codecs/pcm3060.c
76
priv->dai[dai->id].is_provider = false;
sound/soc/codecs/pcm3060.c
98
if (dai->id == PCM3060_DAI_ID_DAC)
sound/soc/codecs/pcm3060.h
32
struct pcm3060_priv_dai dai[PCM3060_DAI_IDS_NUM];
sound/soc/codecs/pcm3168a.c
290
static int pcm3168a_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/pcm3168a.c
292
struct snd_soc_component *component = dai->component;
sound/soc/codecs/pcm3168a.c
300
static int pcm3168a_set_dai_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/pcm3168a.c
303
struct pcm3168a_priv *pcm3168a = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/pcm3168a.c
325
static void pcm3168a_update_fixup_pcm_stream(struct snd_soc_dai *dai)
sound/soc/codecs/pcm3168a.c
327
struct snd_soc_component *component = dai->component;
sound/soc/codecs/pcm3168a.c
329
struct pcm3168a_io_params *io_params = &pcm3168a->io_params[dai->id];
sound/soc/codecs/pcm3168a.c
331
unsigned int channel_max = dai->id == PCM3168A_DAI_DAC ? 8 : 6;
sound/soc/codecs/pcm3168a.c
345
if (dai->id == PCM3168A_DAI_DAC) {
sound/soc/codecs/pcm3168a.c
346
dai->driver->playback.channels_max = channel_max;
sound/soc/codecs/pcm3168a.c
347
dai->driver->playback.formats = formats;
sound/soc/codecs/pcm3168a.c
349
dai->driver->capture.channels_max = channel_max;
sound/soc/codecs/pcm3168a.c
350
dai->driver->capture.formats = formats;
sound/soc/codecs/pcm3168a.c
354
static int pcm3168a_set_dai_fmt(struct snd_soc_dai *dai, unsigned int format)
sound/soc/codecs/pcm3168a.c
356
struct snd_soc_component *component = dai->component;
sound/soc/codecs/pcm3168a.c
358
struct pcm3168a_io_params *io_params = &pcm3168a->io_params[dai->id];
sound/soc/codecs/pcm3168a.c
395
pcm3168a_update_fixup_pcm_stream(dai);
sound/soc/codecs/pcm3168a.c
400
static int pcm3168a_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/pcm3168a.c
404
struct snd_soc_component *component = dai->component;
sound/soc/codecs/pcm3168a.c
406
struct pcm3168a_io_params *io_params = &pcm3168a->io_params[dai->id];
sound/soc/codecs/pcm3168a.c
425
if (dai->id == PCM3168A_DAI_DAC)
sound/soc/codecs/pcm3168a.c
430
pcm3168a_update_fixup_pcm_stream(dai);
sound/soc/codecs/pcm3168a.c
437
struct snd_soc_dai *dai)
sound/soc/codecs/pcm3168a.c
439
struct snd_soc_component *component = dai->component;
sound/soc/codecs/pcm3168a.c
441
struct pcm3168a_io_params *io_params = &pcm3168a->io_params[dai->id];
sound/soc/codecs/pcm3168a.c
447
if (dai->id == PCM3168A_DAI_DAC) {
sound/soc/codecs/pcm512x.c
1009
dac_rate = pcm512x_pllin_dac_rate(dai, osr_rate, pllin_rate);
sound/soc/codecs/pcm512x.c
1171
struct snd_soc_dai *dai)
sound/soc/codecs/pcm512x.c
1173
struct snd_soc_component *component = dai->component;
sound/soc/codecs/pcm512x.c
1297
ret = pcm512x_set_dividers(dai, params);
sound/soc/codecs/pcm512x.c
1364
static int pcm512x_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/pcm512x.c
1366
struct snd_soc_component *component = dai->component;
sound/soc/codecs/pcm512x.c
1448
static int pcm512x_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio)
sound/soc/codecs/pcm512x.c
1450
struct snd_soc_component *component = dai->component;
sound/soc/codecs/pcm512x.c
1461
static int pcm512x_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/pcm512x.c
1463
struct snd_soc_component *component = dai->component;
sound/soc/codecs/pcm512x.c
586
struct snd_soc_dai *dai)
sound/soc/codecs/pcm512x.c
588
struct snd_soc_component *component = dai->component;
sound/soc/codecs/pcm512x.c
590
struct device *dev = dai->dev;
sound/soc/codecs/pcm512x.c
628
struct snd_soc_dai *dai)
sound/soc/codecs/pcm512x.c
630
struct snd_soc_component *component = dai->component;
sound/soc/codecs/pcm512x.c
632
struct device *dev = dai->dev;
sound/soc/codecs/pcm512x.c
654
struct snd_soc_dai *dai)
sound/soc/codecs/pcm512x.c
656
struct snd_soc_component *component = dai->component;
sound/soc/codecs/pcm512x.c
662
return pcm512x_dai_startup_master(substream, dai);
sound/soc/codecs/pcm512x.c
665
return pcm512x_dai_startup_slave(substream, dai);
sound/soc/codecs/pcm512x.c
707
static unsigned long pcm512x_find_sck(struct snd_soc_dai *dai,
sound/soc/codecs/pcm512x.c
710
struct device *dev = dai->dev;
sound/soc/codecs/pcm512x.c
711
struct snd_soc_component *component = dai->component;
sound/soc/codecs/pcm512x.c
752
static int pcm512x_find_pll_coeff(struct snd_soc_dai *dai,
sound/soc/codecs/pcm512x.c
756
struct device *dev = dai->dev;
sound/soc/codecs/pcm512x.c
757
struct snd_soc_component *component = dai->component;
sound/soc/codecs/pcm512x.c
860
static unsigned long pcm512x_pllin_dac_rate(struct snd_soc_dai *dai,
sound/soc/codecs/pcm512x.c
864
struct snd_soc_component *component = dai->component;
sound/soc/codecs/pcm512x.c
891
static int pcm512x_set_dividers(struct snd_soc_dai *dai,
sound/soc/codecs/pcm512x.c
894
struct device *dev = dai->dev;
sound/soc/codecs/pcm512x.c
895
struct snd_soc_component *component = dai->component;
sound/soc/codecs/pcm512x.c
948
sck_rate = pcm512x_find_sck(dai, bclk_rate);
sound/soc/codecs/pcm512x.c
953
ret = pcm512x_find_pll_coeff(dai, pllin_rate, pll_rate);
sound/soc/codecs/pcm6240.c
1883
static int pcmdevice_mute(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/pcm6240.c
1885
struct snd_soc_component *codec = dai->component;
sound/soc/codecs/pcm6240.c
1906
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/pcm6240.c
1908
struct pcmdevice_priv *pcm_dev = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/peb2466.c
665
static int peb2466_dai_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/peb2466.c
668
struct peb2466 *peb2466 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/peb2466.c
680
dev_err(dai->dev, "tdm slot width %d not supported\n", width);
sound/soc/codecs/peb2466.c
691
dev_err(dai->dev, "chan %d set tx tdm slot failed (%d)\n",
sound/soc/codecs/peb2466.c
701
dev_err(dai->dev, "too much tx slots defined (mask = 0x%x) support max %d\n",
sound/soc/codecs/peb2466.c
714
dev_err(dai->dev, "chan %d set rx tdm slot failed (%d)\n",
sound/soc/codecs/peb2466.c
724
dev_err(dai->dev, "too much rx slots defined (mask = 0x%x) support max %d\n",
sound/soc/codecs/peb2466.c
733
static int peb2466_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/peb2466.c
735
struct peb2466 *peb2466 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/peb2466.c
746
dev_err(dai->dev, "Unsupported format 0x%x\n",
sound/soc/codecs/peb2466.c
755
struct snd_soc_dai *dai)
sound/soc/codecs/peb2466.c
757
struct peb2466 *peb2466 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/peb2466.c
793
struct snd_soc_dai *dai)
sound/soc/codecs/peb2466.c
795
struct peb2466 *peb2466 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/pm4125-sdw.c
50
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/pm4125.c
1402
struct snd_soc_dai *dai)
sound/soc/codecs/pm4125.c
1404
struct pm4125_priv *pm4125 = dev_get_drvdata(dai->dev);
sound/soc/codecs/pm4125.c
1405
struct pm4125_sdw_priv *sdw_priv = pm4125->sdw_priv[dai->id];
sound/soc/codecs/pm4125.c
1407
return pm4125_sdw_hw_params(sdw_priv, substream, params, dai);
sound/soc/codecs/pm4125.c
1410
static int pm4125_codec_free(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/codecs/pm4125.c
1412
struct pm4125_priv *pm4125 = dev_get_drvdata(dai->dev);
sound/soc/codecs/pm4125.c
1413
struct pm4125_sdw_priv *sdw_priv = pm4125->sdw_priv[dai->id];
sound/soc/codecs/pm4125.c
1418
static int pm4125_codec_set_sdw_stream(struct snd_soc_dai *dai, void *stream, int direction)
sound/soc/codecs/pm4125.c
1420
struct pm4125_priv *pm4125 = dev_get_drvdata(dai->dev);
sound/soc/codecs/pm4125.c
1421
struct pm4125_sdw_priv *sdw_priv = pm4125->sdw_priv[dai->id];
sound/soc/codecs/pm4125.c
1428
static int pm4125_get_channel_map(const struct snd_soc_dai *dai,
sound/soc/codecs/pm4125.c
1432
struct pm4125_priv *pm4125 = dev_get_drvdata(dai->dev);
sound/soc/codecs/pm4125.c
1433
struct pm4125_sdw_priv *sdw_priv = pm4125->sdw_priv[dai->id];
sound/soc/codecs/pm4125.c
1436
switch (dai->id) {
sound/soc/codecs/pm4125.c
1439
dev_err(dai->dev, "Invalid rx_slot %p or rx_num %p\n", rx_slot, rx_num);
sound/soc/codecs/pm4125.c
1450
dev_err(dai->dev, "Invalid tx_slot %p or tx_num %p\n", tx_slot, tx_num);
sound/soc/codecs/pm4125.h
225
struct snd_soc_dai *dai);
sound/soc/codecs/pm4125.h
226
int pm4125_sdw_set_sdw_stream(struct pm4125_sdw_priv *pm4125, struct snd_soc_dai *dai, void *stream,
sound/soc/codecs/pm4125.h
229
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai);
sound/soc/codecs/pm4125.h
233
struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/codecs/pm4125.h
239
struct snd_soc_dai *dai, void *stream, int direction)
sound/soc/codecs/pm4125.h
246
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/rk3308_codec.c
672
struct snd_soc_dai *dai)
sound/soc/codecs/rk3308_codec.c
674
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rk3328_codec.c
109
static int rk3328_mute_stream(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/rk3328_codec.c
112
snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/rk3328_codec.c
266
struct snd_soc_dai *dai)
sound/soc/codecs/rk3328_codec.c
269
snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/rk3328_codec.c
298
struct snd_soc_dai *dai)
sound/soc/codecs/rk3328_codec.c
301
snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/rk3328_codec.c
307
struct snd_soc_dai *dai)
sound/soc/codecs/rk3328_codec.c
310
snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/rk3328_codec.c
65
static int rk3328_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/rk3328_codec.c
68
snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/rk817_codec.c
325
struct snd_soc_dai *dai)
sound/soc/codecs/rk817_codec.c
327
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rk817_codec.c
350
static int rk817_digital_mute(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/rk817_codec.c
352
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1011.c
1570
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/rt1011.c
1572
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1011.c
1581
snd_soc_dai_set_pll(dai, 0, RT1011_PLL1_S_BCLK,
sound/soc/codecs/rt1011.c
1583
snd_soc_dai_set_sysclk(dai, RT1011_FS_SYS_PRE_S_PLL1,
sound/soc/codecs/rt1011.c
1598
bclk_ms, pre_div, dai->id);
sound/soc/codecs/rt1011.c
1601
rt1011->lrck, pre_div, dai->id);
sound/soc/codecs/rt1011.c
1638
switch (dai->id) {
sound/soc/codecs/rt1011.c
1651
dev_err(component->dev, "Invalid dai->id: %d\n", dai->id);
sound/soc/codecs/rt1011.c
1661
static int rt1011_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/rt1011.c
1663
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1011.c
1706
switch (dai->id) {
sound/soc/codecs/rt1011.c
1717
dev_err(component->dev, "Invalid dai->id: %d\n", dai->id);
sound/soc/codecs/rt1011.c
1840
static int rt1011_set_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/rt1011.c
1843
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1015.c
697
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/rt1015.c
699
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1015.c
718
dev_dbg(component->dev, "pre_div is %d for iis %d\n", pre_div, dai->id);
sound/soc/codecs/rt1015.c
721
lrck, pre_div, dai->id);
sound/soc/codecs/rt1015.c
747
static int rt1015_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/rt1015.c
749
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1015.c
898
static int rt1015_set_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/rt1015.c
901
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1016.c
305
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/rt1016.c
307
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1016.c
334
rt1016->lrck, pre_div, dai->id);
sound/soc/codecs/rt1016.c
363
static int rt1016_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/rt1016.c
365
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1017-sdca-sdw.c
557
static int rt1017_sdca_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream,
sound/soc/codecs/rt1017-sdca-sdw.c
560
snd_soc_dai_dma_data_set(dai, direction, sdw_stream);
sound/soc/codecs/rt1017-sdca-sdw.c
566
struct snd_soc_dai *dai)
sound/soc/codecs/rt1017-sdca-sdw.c
568
snd_soc_dai_set_dma_data(dai, substream, NULL);
sound/soc/codecs/rt1017-sdca-sdw.c
573
struct snd_soc_dai *dai)
sound/soc/codecs/rt1017-sdca-sdw.c
575
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1017-sdca-sdw.c
584
dev_dbg(dai->dev, "%s %s", __func__, dai->name);
sound/soc/codecs/rt1017-sdca-sdw.c
585
sdw_stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/rt1017-sdca-sdw.c
614
dev_dbg(dai->dev, "frame_rate %d, ch_count %d, bps %d, direction %d, ch_mask %d, port: %d\n",
sound/soc/codecs/rt1017-sdca-sdw.c
621
dev_err(dai->dev, "Unable to configure port\n");
sound/soc/codecs/rt1017-sdca-sdw.c
655
struct snd_soc_dai *dai)
sound/soc/codecs/rt1017-sdca-sdw.c
657
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1017-sdca-sdw.c
660
snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/rt1019.c
157
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/rt1019.c
159
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1019.c
182
dev_dbg(dai->dev, "bclk is %dHz and lrck is %dHz\n",
sound/soc/codecs/rt1019.c
184
dev_dbg(dai->dev, "bclk_ms is %d and pre_div is %d for iis %d\n",
sound/soc/codecs/rt1019.c
185
bclk_ms, pre_div, dai->id);
sound/soc/codecs/rt1019.c
246
static int rt1019_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/rt1019.c
248
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1019.c
289
static int rt1019_set_dai_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/rt1019.c
292
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1019.c
316
dev_dbg(dai->dev, "Sysclk is %dHz and clock id is %d\n", freq, clk_id);
sound/soc/codecs/rt1019.c
324
static int rt1019_set_dai_pll(struct snd_soc_dai *dai, int pll_id, int source,
sound/soc/codecs/rt1019.c
327
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1019.c
389
static int rt1019_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/rt1019.c
392
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1305.c
624
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/rt1305.c
626
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1305.c
635
snd_soc_dai_set_pll(dai, 0, RT1305_PLL1_S_BCLK,
sound/soc/codecs/rt1305.c
637
snd_soc_dai_set_sysclk(dai, RT1305_FS_SYS_PRE_S_PLL1,
sound/soc/codecs/rt1305.c
652
bclk_ms, pre_div, dai->id);
sound/soc/codecs/rt1305.c
655
rt1305->lrck, pre_div, dai->id);
sound/soc/codecs/rt1305.c
674
switch (dai->id) {
sound/soc/codecs/rt1305.c
683
dev_err(component->dev, "Invalid dai->id: %d\n", dai->id);
sound/soc/codecs/rt1305.c
693
static int rt1305_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/rt1305.c
695
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1305.c
738
switch (dai->id) {
sound/soc/codecs/rt1305.c
747
dev_err(component->dev, "Invalid dai->id: %d\n", dai->id);
sound/soc/codecs/rt1308-sdw.c
492
static int rt1308_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream,
sound/soc/codecs/rt1308-sdw.c
495
snd_soc_dai_dma_data_set(dai, direction, sdw_stream);
sound/soc/codecs/rt1308-sdw.c
501
struct snd_soc_dai *dai)
sound/soc/codecs/rt1308-sdw.c
503
snd_soc_dai_set_dma_data(dai, substream, NULL);
sound/soc/codecs/rt1308-sdw.c
506
static int rt1308_sdw_set_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/rt1308-sdw.c
511
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1308-sdw.c
529
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/rt1308-sdw.c
531
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1308-sdw.c
539
dev_dbg(dai->dev, "%s %s", __func__, dai->name);
sound/soc/codecs/rt1308-sdw.c
540
sdw_stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/rt1308-sdw.c
565
dev_err(dai->dev, "Unable to configure port\n");
sound/soc/codecs/rt1308-sdw.c
573
struct snd_soc_dai *dai)
sound/soc/codecs/rt1308-sdw.c
575
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1308-sdw.c
579
snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/rt1308.c
452
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/rt1308.c
454
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1308.c
478
bclk_ms, pre_div, dai->id);
sound/soc/codecs/rt1308.c
481
rt1308->lrck, pre_div, dai->id);
sound/soc/codecs/rt1308.c
500
switch (dai->id) {
sound/soc/codecs/rt1308.c
509
dev_err(component->dev, "Invalid dai->id: %d\n", dai->id);
sound/soc/codecs/rt1308.c
519
static int rt1308_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/rt1308.c
521
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1308.c
559
switch (dai->id) {
sound/soc/codecs/rt1308.c
569
dev_err(component->dev, "Invalid dai->id: %d\n", dai->id);
sound/soc/codecs/rt1316-sdw.c
493
static int rt1316_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream,
sound/soc/codecs/rt1316-sdw.c
496
snd_soc_dai_dma_data_set(dai, direction, sdw_stream);
sound/soc/codecs/rt1316-sdw.c
502
struct snd_soc_dai *dai)
sound/soc/codecs/rt1316-sdw.c
504
snd_soc_dai_set_dma_data(dai, substream, NULL);
sound/soc/codecs/rt1316-sdw.c
508
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/rt1316-sdw.c
510
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1316-sdw.c
518
dev_dbg(dai->dev, "%s %s", __func__, dai->name);
sound/soc/codecs/rt1316-sdw.c
519
sdw_stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/rt1316-sdw.c
539
dev_err(dai->dev, "%s: Unable to configure port\n", __func__);
sound/soc/codecs/rt1316-sdw.c
547
struct snd_soc_dai *dai)
sound/soc/codecs/rt1316-sdw.c
549
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1316-sdw.c
553
snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/rt1318-sdw.c
548
static int rt1318_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream,
sound/soc/codecs/rt1318-sdw.c
551
snd_soc_dai_dma_data_set(dai, direction, sdw_stream);
sound/soc/codecs/rt1318-sdw.c
557
struct snd_soc_dai *dai)
sound/soc/codecs/rt1318-sdw.c
559
snd_soc_dai_set_dma_data(dai, substream, NULL);
sound/soc/codecs/rt1318-sdw.c
563
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/rt1318-sdw.c
565
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1318-sdw.c
575
dev_dbg(dai->dev, "%s %s", __func__, dai->name);
sound/soc/codecs/rt1318-sdw.c
576
sdw_stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/rt1318-sdw.c
608
dev_err(dai->dev, "%s: Unable to configure port\n", __func__);
sound/soc/codecs/rt1318-sdw.c
647
struct snd_soc_dai *dai)
sound/soc/codecs/rt1318-sdw.c
649
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1318-sdw.c
653
snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/rt1318.c
606
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/rt1318.c
608
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1318.c
680
static int rt1318_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/rt1318.c
682
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1318.c
724
static int rt1318_set_dai_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/rt1318.c
727
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1318.c
766
dev_dbg(dai->dev, "Sysclk is %dHz and clock id is %d\n", freq, clk_id);
sound/soc/codecs/rt1318.c
866
static int rt1318_set_dai_pll(struct snd_soc_dai *dai, int pll_id, int source,
sound/soc/codecs/rt1318.c
869
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1318.c
949
static int rt1318_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/rt1318.c
952
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1320-sdw.c
2609
static int rt1320_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream,
sound/soc/codecs/rt1320-sdw.c
2612
snd_soc_dai_dma_data_set(dai, direction, sdw_stream);
sound/soc/codecs/rt1320-sdw.c
2617
struct snd_soc_dai *dai)
sound/soc/codecs/rt1320-sdw.c
2619
snd_soc_dai_set_dma_data(dai, substream, NULL);
sound/soc/codecs/rt1320-sdw.c
2623
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/rt1320-sdw.c
2625
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1320-sdw.c
2635
dev_dbg(dai->dev, "%s %s", __func__, dai->name);
sound/soc/codecs/rt1320-sdw.c
2636
sdw_stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/rt1320-sdw.c
2648
if (dai->id == RT1320_AIF1)
sound/soc/codecs/rt1320-sdw.c
2653
if (dai->id == RT1320_AIF1)
sound/soc/codecs/rt1320-sdw.c
2655
else if (dai->id == RT1320_AIF2) {
sound/soc/codecs/rt1320-sdw.c
2675
if (dai->id == RT1320_AIF1)
sound/soc/codecs/rt1320-sdw.c
2678
else if (dai->id == RT1320_AIF2) {
sound/soc/codecs/rt1320-sdw.c
2689
dev_err(dai->dev, "%s: Unknown device ID %d\n", __func__, rt1320->dev_id);
sound/soc/codecs/rt1320-sdw.c
2695
dev_err(dai->dev, "%s: Unable to configure port\n", __func__);
sound/soc/codecs/rt1320-sdw.c
2726
if (dai->id == RT1320_AIF1)
sound/soc/codecs/rt1320-sdw.c
2745
struct snd_soc_dai *dai)
sound/soc/codecs/rt1320-sdw.c
2747
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt1320-sdw.c
2751
snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/rt274.c
615
struct snd_soc_dai *dai)
sound/soc/codecs/rt274.c
617
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt274.c
703
static int rt274_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/rt274.c
705
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt274.c
750
static int rt274_set_dai_pll(struct snd_soc_dai *dai, int pll_id, int source,
sound/soc/codecs/rt274.c
753
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt274.c
803
static int rt274_set_dai_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/rt274.c
806
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt274.c
874
static int rt274_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio)
sound/soc/codecs/rt274.c
876
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt274.c
892
static int rt274_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/rt274.c
896
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt286.c
681
struct snd_soc_dai *dai)
sound/soc/codecs/rt286.c
683
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt286.c
763
static int rt286_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/rt286.c
765
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt286.c
807
static int rt286_set_dai_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/rt286.c
810
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt286.c
871
static int rt286_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio)
sound/soc/codecs/rt286.c
873
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt298.c
747
struct snd_soc_dai *dai)
sound/soc/codecs/rt298.c
749
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt298.c
827
static int rt298_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/rt298.c
829
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt298.c
871
static int rt298_set_dai_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/rt298.c
874
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt298.c
933
static int rt298_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio)
sound/soc/codecs/rt298.c
935
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5514.c
752
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/rt5514.c
754
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5514.c
775
dev_dbg(dai->dev, "bclk is %dHz and lrck is %dHz\n",
sound/soc/codecs/rt5514.c
777
dev_dbg(dai->dev, "bclk_ms is %d and pre_div is %d for iis %d\n",
sound/soc/codecs/rt5514.c
778
bclk_ms, pre_div, dai->id);
sound/soc/codecs/rt5514.c
809
static int rt5514_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/rt5514.c
811
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5514.c
862
static int rt5514_set_dai_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/rt5514.c
865
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5514.c
892
dev_dbg(dai->dev, "Sysclk is %dHz and clock id is %d\n", freq, clk_id);
sound/soc/codecs/rt5514.c
897
static int rt5514_set_dai_pll(struct snd_soc_dai *dai, int pll_id, int source,
sound/soc/codecs/rt5514.c
900
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5514.c
961
static int rt5514_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/rt5514.c
964
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5616.c
1011
static int rt5616_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/rt5616.c
1013
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5616.c
1019
rt5616->master[dai->id] = 1;
sound/soc/codecs/rt5616.c
1023
rt5616->master[dai->id] = 0;
sound/soc/codecs/rt5616.c
1062
static int rt5616_set_dai_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/rt5616.c
1065
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5616.c
1089
dev_dbg(dai->dev, "Sysclk is %dHz and clock id is %d\n", freq, clk_id);
sound/soc/codecs/rt5616.c
1094
static int rt5616_set_dai_pll(struct snd_soc_dai *dai, int pll_id, int source,
sound/soc/codecs/rt5616.c
1097
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5616.c
958
struct snd_soc_dai *dai)
sound/soc/codecs/rt5616.c
960
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5616.c
965
rt5616->lrck[dai->id] = params_rate(params);
sound/soc/codecs/rt5616.c
967
pre_div = rl6231_get_clk_info(rt5616->sysclk, rt5616->lrck[dai->id]);
sound/soc/codecs/rt5616.c
979
rt5616->bclk[dai->id] = rt5616->lrck[dai->id] * (32 << bclk_ms);
sound/soc/codecs/rt5616.c
981
dev_dbg(dai->dev, "bclk is %dHz and lrck is %dHz\n",
sound/soc/codecs/rt5616.c
982
rt5616->bclk[dai->id], rt5616->lrck[dai->id]);
sound/soc/codecs/rt5616.c
983
dev_dbg(dai->dev, "bclk_ms is %d and pre_div is %d for iis %d\n",
sound/soc/codecs/rt5616.c
984
bclk_ms, pre_div, dai->id);
sound/soc/codecs/rt5631.c
1353
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/rt5631.c
1355
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5640.c
1697
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/rt5640.c
1699
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5640.c
1704
rt5640->lrck[dai->id] = params_rate(params);
sound/soc/codecs/rt5640.c
1705
pre_div = rl6231_get_clk_info(rt5640->sysclk, rt5640->lrck[dai->id]);
sound/soc/codecs/rt5640.c
1708
rt5640->lrck[dai->id], dai->id);
sound/soc/codecs/rt5640.c
1720
rt5640->bclk[dai->id] = rt5640->lrck[dai->id] * (32 << bclk_ms);
sound/soc/codecs/rt5640.c
1722
dev_dbg(dai->dev, "bclk is %dHz and lrck is %dHz\n",
sound/soc/codecs/rt5640.c
1723
rt5640->bclk[dai->id], rt5640->lrck[dai->id]);
sound/soc/codecs/rt5640.c
1724
dev_dbg(dai->dev, "bclk_ms is %d and pre_div is %d for iis %d\n",
sound/soc/codecs/rt5640.c
1725
bclk_ms, pre_div, dai->id);
sound/soc/codecs/rt5640.c
1743
dai_sel = get_sdp_info(component, dai->id);
sound/soc/codecs/rt5640.c
1768
static int rt5640_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/rt5640.c
1770
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5640.c
1777
rt5640->master[dai->id] = 1;
sound/soc/codecs/rt5640.c
1781
rt5640->master[dai->id] = 0;
sound/soc/codecs/rt5640.c
1813
dai_sel = get_sdp_info(component, dai->id);
sound/soc/codecs/rt5640.c
1832
static int rt5640_set_dai_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/rt5640.c
1835
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5640.c
1867
dev_dbg(dai->dev, "Sysclk is %dHz and clock id is %d\n", freq, clk_id);
sound/soc/codecs/rt5640.c
1871
static int rt5640_set_dai_pll(struct snd_soc_dai *dai, int pll_id, int source,
sound/soc/codecs/rt5640.c
1874
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5645.c
2753
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/rt5645.c
2755
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5645.c
2760
rt5645->lrck[dai->id] = params_rate(params);
sound/soc/codecs/rt5645.c
2761
pre_div = rl6231_get_clk_info(rt5645->sysclk, rt5645->lrck[dai->id]);
sound/soc/codecs/rt5645.c
2782
rt5645->bclk[dai->id] = rt5645->lrck[dai->id] * (32 << bclk_ms);
sound/soc/codecs/rt5645.c
2784
dev_dbg(dai->dev, "bclk is %dHz and lrck is %dHz\n",
sound/soc/codecs/rt5645.c
2785
rt5645->bclk[dai->id], rt5645->lrck[dai->id]);
sound/soc/codecs/rt5645.c
2786
dev_dbg(dai->dev, "bclk_ms is %d and pre_div is %d for iis %d\n",
sound/soc/codecs/rt5645.c
2787
bclk_ms, pre_div, dai->id);
sound/soc/codecs/rt5645.c
2805
switch (dai->id) {
sound/soc/codecs/rt5645.c
2822
dev_err(component->dev, "Invalid dai->id: %d\n", dai->id);
sound/soc/codecs/rt5645.c
2829
static int rt5645_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/rt5645.c
2831
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5645.c
2846
rt5645->master[dai->id] = 1;
sound/soc/codecs/rt5645.c
2850
rt5645->master[dai->id] = 0;
sound/soc/codecs/rt5645.c
2881
switch (dai->id) {
sound/soc/codecs/rt5645.c
2893
dev_err(component->dev, "Invalid dai->id: %d\n", dai->id);
sound/soc/codecs/rt5645.c
2899
static int rt5645_set_dai_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/rt5645.c
2902
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5645.c
2928
dev_dbg(dai->dev, "Sysclk is %dHz and clock id is %d\n", freq, clk_id);
sound/soc/codecs/rt5645.c
2933
static int rt5645_set_dai_pll(struct snd_soc_dai *dai, int pll_id, int source,
sound/soc/codecs/rt5645.c
2936
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5645.c
2962
switch (dai->id) {
sound/soc/codecs/rt5645.c
2972
dev_err(component->dev, "Invalid dai->id: %d\n", dai->id);
sound/soc/codecs/rt5645.c
3004
static int rt5645_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/rt5645.c
3007
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5651.c
1282
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/rt5651.c
1284
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5651.c
1289
rt5651->lrck[dai->id] = params_rate(params);
sound/soc/codecs/rt5651.c
1290
pre_div = rl6231_get_clk_info(rt5651->sysclk, rt5651->lrck[dai->id]);
sound/soc/codecs/rt5651.c
1302
rt5651->bclk[dai->id] = rt5651->lrck[dai->id] * (32 << bclk_ms);
sound/soc/codecs/rt5651.c
1304
dev_dbg(dai->dev, "bclk is %dHz and lrck is %dHz\n",
sound/soc/codecs/rt5651.c
1305
rt5651->bclk[dai->id], rt5651->lrck[dai->id]);
sound/soc/codecs/rt5651.c
1306
dev_dbg(dai->dev, "bclk_ms is %d and pre_div is %d for iis %d\n",
sound/soc/codecs/rt5651.c
1307
bclk_ms, pre_div, dai->id);
sound/soc/codecs/rt5651.c
1325
switch (dai->id) {
sound/soc/codecs/rt5651.c
1341
dev_err(component->dev, "Wrong dai->id: %d\n", dai->id);
sound/soc/codecs/rt5651.c
1348
static int rt5651_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/rt5651.c
1350
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5651.c
1356
rt5651->master[dai->id] = 1;
sound/soc/codecs/rt5651.c
1360
rt5651->master[dai->id] = 0;
sound/soc/codecs/rt5651.c
1392
switch (dai->id) {
sound/soc/codecs/rt5651.c
1404
dev_err(component->dev, "Wrong dai->id: %d\n", dai->id);
sound/soc/codecs/rt5651.c
1410
static int rt5651_set_dai_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/rt5651.c
1413
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5651.c
1443
dev_dbg(dai->dev, "Sysclk is %dHz and clock id is %d\n", freq, clk_id);
sound/soc/codecs/rt5651.c
1448
static int rt5651_set_dai_pll(struct snd_soc_dai *dai, int pll_id, int source,
sound/soc/codecs/rt5651.c
1451
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5659.c
3276
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/rt5659.c
3278
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5659.c
3283
rt5659->lrck[dai->id] = params_rate(params);
sound/soc/codecs/rt5659.c
3284
pre_div = rl6231_get_clk_info(rt5659->sysclk, rt5659->lrck[dai->id]);
sound/soc/codecs/rt5659.c
3287
rt5659->lrck[dai->id], dai->id);
sound/soc/codecs/rt5659.c
3296
dev_dbg(dai->dev, "lrck is %dHz and pre_div is %d for iis %d\n",
sound/soc/codecs/rt5659.c
3297
rt5659->lrck[dai->id], pre_div, dai->id);
sound/soc/codecs/rt5659.c
3315
switch (dai->id) {
sound/soc/codecs/rt5659.c
3335
dev_err(component->dev, "Invalid dai->id: %d\n", dai->id);
sound/soc/codecs/rt5659.c
3341
switch (rt5659->lrck[dai->id]) {
sound/soc/codecs/rt5659.c
3359
static int rt5659_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/rt5659.c
3361
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5659.c
3367
rt5659->master[dai->id] = 1;
sound/soc/codecs/rt5659.c
3371
rt5659->master[dai->id] = 0;
sound/soc/codecs/rt5659.c
3403
switch (dai->id) {
sound/soc/codecs/rt5659.c
3420
dev_err(component->dev, "Invalid dai->id: %d\n", dai->id);
sound/soc/codecs/rt5659.c
3532
static int rt5659_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/rt5659.c
3535
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5659.c
3584
static int rt5659_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio)
sound/soc/codecs/rt5659.c
3586
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5659.c
3591
rt5659->bclk[dai->id] = ratio;
sound/soc/codecs/rt5659.c
3594
switch (dai->id) {
sound/soc/codecs/rt5660.c
1002
dev_dbg(dai->dev, "Sysclk is %dHz and clock id is %d\n", freq, clk_id);
sound/soc/codecs/rt5660.c
1007
static int rt5660_set_dai_pll(struct snd_soc_dai *dai, int pll_id, int source,
sound/soc/codecs/rt5660.c
1010
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5660.c
834
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/rt5660.c
836
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5660.c
841
rt5660->lrck[dai->id] = params_rate(params);
sound/soc/codecs/rt5660.c
842
pre_div = rl6231_get_clk_info(rt5660->sysclk, rt5660->lrck[dai->id]);
sound/soc/codecs/rt5660.c
845
rt5660->lrck[dai->id], dai->id);
sound/soc/codecs/rt5660.c
860
rt5660->bclk[dai->id] = rt5660->lrck[dai->id] * (32 << bclk_ms);
sound/soc/codecs/rt5660.c
862
dev_dbg(dai->dev, "bclk is %dHz and lrck is %dHz\n",
sound/soc/codecs/rt5660.c
863
rt5660->bclk[dai->id], rt5660->lrck[dai->id]);
sound/soc/codecs/rt5660.c
864
dev_dbg(dai->dev, "bclk_ms is %d and pre_div is %d for iis %d\n",
sound/soc/codecs/rt5660.c
865
bclk_ms, pre_div, dai->id);
sound/soc/codecs/rt5660.c
883
switch (dai->id) {
sound/soc/codecs/rt5660.c
894
dev_err(component->dev, "Invalid dai->id: %d\n", dai->id);
sound/soc/codecs/rt5660.c
901
static int rt5660_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/rt5660.c
903
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5660.c
909
rt5660->master[dai->id] = 1;
sound/soc/codecs/rt5660.c
914
rt5660->master[dai->id] = 0;
sound/soc/codecs/rt5660.c
953
switch (dai->id) {
sound/soc/codecs/rt5660.c
961
dev_err(component->dev, "Invalid dai->id: %d\n", dai->id);
sound/soc/codecs/rt5660.c
968
static int rt5660_set_dai_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/rt5660.c
971
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5663.c
2764
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/rt5663.c
2766
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5663.c
2773
dev_dbg(dai->dev, "bclk is %dHz and sysclk is %dHz\n",
sound/soc/codecs/rt5663.c
2779
rt5663->lrck, dai->id);
sound/soc/codecs/rt5663.c
2783
dev_dbg(dai->dev, "pre_div is %d for iis %d\n", pre_div, dai->id);
sound/soc/codecs/rt5663.c
2811
static int rt5663_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/rt5663.c
2813
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5663.c
2858
static int rt5663_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/codecs/rt5663.c
2861
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5663.c
2893
static int rt5663_set_dai_pll(struct snd_soc_dai *dai, int pll_id, int source,
sound/soc/codecs/rt5663.c
2896
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5663.c
2966
static int rt5663_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/rt5663.c
2969
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5663.c
3033
static int rt5663_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio)
sound/soc/codecs/rt5663.c
3035
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5665.c
3949
static int rt5665_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/rt5665.c
3952
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5665.c
4006
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/rt5665.c
4008
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5665.c
4013
rt5665->lrck[dai->id] = params_rate(params);
sound/soc/codecs/rt5665.c
4014
pre_div = rl6231_get_clk_info(rt5665->sysclk, rt5665->lrck[dai->id]);
sound/soc/codecs/rt5665.c
4018
rt5665->sysclk, rt5665->lrck[dai->id] * 512);
sound/soc/codecs/rt5665.c
4020
rt5665->lrck[dai->id] * 512, 0);
sound/soc/codecs/rt5665.c
4029
dev_dbg(dai->dev, "lrck is %dHz and pre_div is %d for iis %d\n",
sound/soc/codecs/rt5665.c
4030
rt5665->lrck[dai->id], pre_div, dai->id);
sound/soc/codecs/rt5665.c
4051
switch (dai->id) {
sound/soc/codecs/rt5665.c
4055
rt5665_set_tdm_slot(dai, 0xf, 0xf,
sound/soc/codecs/rt5665.c
4079
dev_err(component->dev, "Invalid dai->id: %d\n", dai->id);
sound/soc/codecs/rt5665.c
4086
switch (rt5665->lrck[dai->id]) {
sound/soc/codecs/rt5665.c
4116
static int rt5665_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/rt5665.c
4118
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5665.c
4124
rt5665->master[dai->id] = 1;
sound/soc/codecs/rt5665.c
4128
rt5665->master[dai->id] = 0;
sound/soc/codecs/rt5665.c
4160
switch (dai->id) {
sound/soc/codecs/rt5665.c
4179
dev_err(component->dev, "Invalid dai->id: %d\n", dai->id);
sound/soc/codecs/rt5665.c
4298
static int rt5665_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio)
sound/soc/codecs/rt5665.c
4300
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5665.c
4305
rt5665->bclk[dai->id] = ratio;
sound/soc/codecs/rt5665.c
4308
switch (dai->id) {
sound/soc/codecs/rt5668.c
1823
static int rt5668_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/rt5668.c
1826
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5668.c
1876
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/rt5668.c
1878
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5668.c
1883
rt5668->lrck[dai->id] = params_rate(params);
sound/soc/codecs/rt5668.c
1884
pre_div = rl6231_get_clk_info(rt5668->sysclk, rt5668->lrck[dai->id]);
sound/soc/codecs/rt5668.c
1893
dev_dbg(dai->dev, "lrck is %dHz and pre_div is %d for iis %d\n",
sound/soc/codecs/rt5668.c
1894
rt5668->lrck[dai->id], pre_div, dai->id);
sound/soc/codecs/rt5668.c
1919
switch (dai->id) {
sound/soc/codecs/rt5668.c
1955
dev_err(component->dev, "Invalid dai->id: %d\n", dai->id);
sound/soc/codecs/rt5668.c
1962
static int rt5668_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/rt5668.c
1964
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5668.c
1970
rt5668->master[dai->id] = 1;
sound/soc/codecs/rt5668.c
1973
rt5668->master[dai->id] = 0;
sound/soc/codecs/rt5668.c
1987
if (dai->id == RT5668_AIF1)
sound/soc/codecs/rt5668.c
1993
if (dai->id == RT5668_AIF1)
sound/soc/codecs/rt5668.c
2022
switch (dai->id) {
sound/soc/codecs/rt5668.c
2030
tdm_ctrl | rt5668->master[dai->id]);
sound/soc/codecs/rt5668.c
2033
if (rt5668->master[dai->id] == 0)
sound/soc/codecs/rt5668.c
2040
dev_err(component->dev, "Invalid dai->id: %d\n", dai->id);
sound/soc/codecs/rt5668.c
2153
static int rt5668_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio)
sound/soc/codecs/rt5668.c
2155
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5668.c
2158
rt5668->bclk[dai->id] = ratio;
sound/soc/codecs/rt5668.c
2172
dev_err(dai->dev, "Invalid bclk ratio %d\n", ratio);
sound/soc/codecs/rt5670.c
2371
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/rt5670.c
2373
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5670.c
2378
rt5670->lrck[dai->id] = params_rate(params);
sound/soc/codecs/rt5670.c
2379
pre_div = rl6231_get_clk_info(rt5670->sysclk, rt5670->lrck[dai->id]);
sound/soc/codecs/rt5670.c
2382
rt5670->lrck[dai->id], dai->id);
sound/soc/codecs/rt5670.c
2391
rt5670->bclk[dai->id] = rt5670->lrck[dai->id] * (32 << bclk_ms);
sound/soc/codecs/rt5670.c
2393
dev_dbg(dai->dev, "bclk is %dHz and lrck is %dHz\n",
sound/soc/codecs/rt5670.c
2394
rt5670->bclk[dai->id], rt5670->lrck[dai->id]);
sound/soc/codecs/rt5670.c
2395
dev_dbg(dai->dev, "bclk_ms is %d and pre_div is %d for iis %d\n",
sound/soc/codecs/rt5670.c
2396
bclk_ms, pre_div, dai->id);
sound/soc/codecs/rt5670.c
2414
switch (dai->id) {
sound/soc/codecs/rt5670.c
2432
dev_err(component->dev, "Invalid dai->id: %d\n", dai->id);
sound/soc/codecs/rt5670.c
2439
static int rt5670_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/rt5670.c
2441
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5670.c
2447
rt5670->master[dai->id] = 1;
sound/soc/codecs/rt5670.c
2451
rt5670->master[dai->id] = 0;
sound/soc/codecs/rt5670.c
2483
switch (dai->id) {
sound/soc/codecs/rt5670.c
2495
dev_err(component->dev, "Invalid dai->id: %d\n", dai->id);
sound/soc/codecs/rt5670.c
2532
static int rt5670_set_dai_pll(struct snd_soc_dai *dai, int pll_id, int source,
sound/soc/codecs/rt5670.c
2535
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5670.c
2563
switch (dai->id) {
sound/soc/codecs/rt5670.c
2573
dev_err(component->dev, "Invalid dai->id: %d\n", dai->id);
sound/soc/codecs/rt5670.c
2605
static int rt5670_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/rt5670.c
2608
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5670.c
2651
static int rt5670_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio)
sound/soc/codecs/rt5670.c
2653
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5670.c
2656
if (dai->id != RT5670_AIF1)
sound/soc/codecs/rt5677.c
4288
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/rt5677.c
4290
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5677.c
4295
rt5677->lrck[dai->id] = params_rate(params);
sound/soc/codecs/rt5677.c
4296
pre_div = rl6231_get_clk_info(rt5677->sysclk, rt5677->lrck[dai->id]);
sound/soc/codecs/rt5677.c
4299
rt5677->sysclk, rt5677->lrck[dai->id]);
sound/soc/codecs/rt5677.c
4308
rt5677->bclk[dai->id] = rt5677->lrck[dai->id] * (32 << bclk_ms);
sound/soc/codecs/rt5677.c
4310
dev_dbg(dai->dev, "bclk is %dHz and lrck is %dHz\n",
sound/soc/codecs/rt5677.c
4311
rt5677->bclk[dai->id], rt5677->lrck[dai->id]);
sound/soc/codecs/rt5677.c
4312
dev_dbg(dai->dev, "bclk_ms is %d and pre_div is %d for iis %d\n",
sound/soc/codecs/rt5677.c
4313
bclk_ms, pre_div, dai->id);
sound/soc/codecs/rt5677.c
4331
switch (dai->id) {
sound/soc/codecs/rt5677.c
4373
static int rt5677_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/rt5677.c
4375
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5677.c
4381
rt5677->master[dai->id] = 1;
sound/soc/codecs/rt5677.c
4385
rt5677->master[dai->id] = 0;
sound/soc/codecs/rt5677.c
4417
switch (dai->id) {
sound/soc/codecs/rt5677.c
4446
static int rt5677_set_dai_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/rt5677.c
4449
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5677.c
4475
dev_dbg(dai->dev, "Sysclk is %dHz and clock id is %d\n", freq, clk_id);
sound/soc/codecs/rt5677.c
4499
static int rt5677_set_dai_pll(struct snd_soc_dai *dai, int pll_id, int source,
sound/soc/codecs/rt5677.c
4502
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5677.c
4530
switch (dai->id) {
sound/soc/codecs/rt5677.c
4579
static int rt5677_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/rt5677.c
4582
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5677.c
4622
switch (dai->id) {
sound/soc/codecs/rt5682-sdw.c
100
snd_soc_dai_set_dma_data(dai, substream, NULL);
sound/soc/codecs/rt5682-sdw.c
105
struct snd_soc_dai *dai)
sound/soc/codecs/rt5682-sdw.c
107
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5682-sdw.c
115
dev_dbg(dai->dev, "%s %s", __func__, dai->name);
sound/soc/codecs/rt5682-sdw.c
117
sdw_stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/rt5682-sdw.c
135
dev_err(dai->dev, "%s: Unable to configure port\n", __func__);
sound/soc/codecs/rt5682-sdw.c
223
struct snd_soc_dai *dai)
sound/soc/codecs/rt5682-sdw.c
225
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5682-sdw.c
228
snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/rt5682-sdw.c
89
static int rt5682_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream,
sound/soc/codecs/rt5682-sdw.c
92
snd_soc_dai_dma_data_set(dai, direction, sdw_stream);
sound/soc/codecs/rt5682-sdw.c
98
struct snd_soc_dai *dai)
sound/soc/codecs/rt5682.c
2063
static int rt5682_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/rt5682.c
2066
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5682.c
2133
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/rt5682.c
2135
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5682.c
2140
rt5682->lrck[dai->id] = params_rate(params);
sound/soc/codecs/rt5682.c
2141
pre_div = rl6231_get_clk_info(rt5682->sysclk, rt5682->lrck[dai->id]);
sound/soc/codecs/rt5682.c
2150
dev_dbg(dai->dev, "lrck is %dHz and pre_div is %d for iis %d\n",
sound/soc/codecs/rt5682.c
2151
rt5682->lrck[dai->id], pre_div, dai->id);
sound/soc/codecs/rt5682.c
2176
switch (dai->id) {
sound/soc/codecs/rt5682.c
2214
dev_err(component->dev, "Invalid dai->id: %d\n", dai->id);
sound/soc/codecs/rt5682.c
2221
static int rt5682_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/rt5682.c
2223
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5682.c
2229
rt5682->master[dai->id] = 1;
sound/soc/codecs/rt5682.c
2232
rt5682->master[dai->id] = 0;
sound/soc/codecs/rt5682.c
2246
if (dai->id == RT5682_AIF1)
sound/soc/codecs/rt5682.c
2252
if (dai->id == RT5682_AIF1)
sound/soc/codecs/rt5682.c
2281
switch (dai->id) {
sound/soc/codecs/rt5682.c
2289
tdm_ctrl | rt5682->master[dai->id]);
sound/soc/codecs/rt5682.c
2292
if (rt5682->master[dai->id] == 0)
sound/soc/codecs/rt5682.c
2299
dev_err(component->dev, "Invalid dai->id: %d\n", dai->id);
sound/soc/codecs/rt5682.c
2483
static int rt5682_set_bclk1_ratio(struct snd_soc_dai *dai, unsigned int ratio)
sound/soc/codecs/rt5682.c
2485
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5682.c
2488
rt5682->bclk[dai->id] = ratio;
sound/soc/codecs/rt5682.c
2508
dev_err(dai->dev, "Invalid bclk1 ratio %d\n", ratio);
sound/soc/codecs/rt5682.c
2515
static int rt5682_set_bclk2_ratio(struct snd_soc_dai *dai, unsigned int ratio)
sound/soc/codecs/rt5682.c
2517
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5682.c
2520
rt5682->bclk[dai->id] = ratio;
sound/soc/codecs/rt5682.c
2534
dev_err(dai->dev, "Invalid bclk2 ratio %d\n", ratio);
sound/soc/codecs/rt5682.c
2830
struct snd_soc_dai *dai;
sound/soc/codecs/rt5682.c
2840
for_each_component_dais(component, dai)
sound/soc/codecs/rt5682.c
2841
if (dai->id == RT5682_AIF1)
sound/soc/codecs/rt5682.c
2842
return rt5682_set_bclk1_ratio(dai, factor);
sound/soc/codecs/rt5682s.c
1981
static int rt5682s_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/rt5682s.c
1984
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5682s.c
2062
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/rt5682s.c
2064
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5682s.c
2069
rt5682s->lrck[dai->id] = params_rate(params);
sound/soc/codecs/rt5682s.c
2100
switch (dai->id) {
sound/soc/codecs/rt5682s.c
2122
dev_err(component->dev, "Invalid dai->id: %d\n", dai->id);
sound/soc/codecs/rt5682s.c
2129
static int rt5682s_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/rt5682s.c
2131
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5682s.c
2137
rt5682s->master[dai->id] = 1;
sound/soc/codecs/rt5682s.c
2140
rt5682s->master[dai->id] = 0;
sound/soc/codecs/rt5682s.c
2154
if (dai->id == RT5682S_AIF1)
sound/soc/codecs/rt5682s.c
2160
if (dai->id == RT5682S_AIF1)
sound/soc/codecs/rt5682s.c
2189
switch (dai->id) {
sound/soc/codecs/rt5682s.c
2197
tdm_ctrl | rt5682s->master[dai->id]);
sound/soc/codecs/rt5682s.c
2200
if (rt5682s->master[dai->id] == 0)
sound/soc/codecs/rt5682s.c
2207
dev_err(component->dev, "Invalid dai->id: %d\n", dai->id);
sound/soc/codecs/rt5682s.c
2427
static int rt5682s_set_bclk1_ratio(struct snd_soc_dai *dai,
sound/soc/codecs/rt5682s.c
2430
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5682s.c
2433
rt5682s->bclk[dai->id] = ratio;
sound/soc/codecs/rt5682s.c
2453
dev_err(dai->dev, "Invalid bclk1 ratio %d\n", ratio);
sound/soc/codecs/rt5682s.c
2460
static int rt5682s_set_bclk2_ratio(struct snd_soc_dai *dai, unsigned int ratio)
sound/soc/codecs/rt5682s.c
2462
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt5682s.c
2465
rt5682s->bclk[dai->id] = ratio;
sound/soc/codecs/rt5682s.c
2477
dev_err(dai->dev, "Invalid bclk2 ratio %d\n", ratio);
sound/soc/codecs/rt5682s.c
2754
struct snd_soc_dai *dai;
sound/soc/codecs/rt5682s.c
2762
for_each_component_dais(component, dai)
sound/soc/codecs/rt5682s.c
2763
if (dai->id == RT5682S_AIF1)
sound/soc/codecs/rt5682s.c
2764
return rt5682s_set_bclk1_ratio(dai, factor);
sound/soc/codecs/rt700.c
875
static int rt700_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream,
sound/soc/codecs/rt700.c
878
snd_soc_dai_dma_data_set(dai, direction, sdw_stream);
sound/soc/codecs/rt700.c
884
struct snd_soc_dai *dai)
sound/soc/codecs/rt700.c
886
snd_soc_dai_set_dma_data(dai, substream, NULL);
sound/soc/codecs/rt700.c
891
struct snd_soc_dai *dai)
sound/soc/codecs/rt700.c
893
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt700.c
901
dev_dbg(dai->dev, "%s %s", __func__, dai->name);
sound/soc/codecs/rt700.c
902
sdw_stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/rt700.c
919
switch (dai->id) {
sound/soc/codecs/rt700.c
926
dev_err(component->dev, "%s: Invalid DAI id %d\n", __func__, dai->id);
sound/soc/codecs/rt700.c
933
dev_err(dai->dev, "%s: Unable to configure port\n", __func__);
sound/soc/codecs/rt700.c
974
struct snd_soc_dai *dai)
sound/soc/codecs/rt700.c
976
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt700.c
979
snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/rt711-sdca.c
1312
static int rt711_sdca_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream,
sound/soc/codecs/rt711-sdca.c
1315
snd_soc_dai_dma_data_set(dai, direction, sdw_stream);
sound/soc/codecs/rt711-sdca.c
1321
struct snd_soc_dai *dai)
sound/soc/codecs/rt711-sdca.c
1323
snd_soc_dai_set_dma_data(dai, substream, NULL);
sound/soc/codecs/rt711-sdca.c
1328
struct snd_soc_dai *dai)
sound/soc/codecs/rt711-sdca.c
1330
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt711-sdca.c
1338
dev_dbg(dai->dev, "%s %s", __func__, dai->name);
sound/soc/codecs/rt711-sdca.c
1339
sdw_stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/rt711-sdca.c
1353
if (dai->id == RT711_AIF1)
sound/soc/codecs/rt711-sdca.c
1355
else if (dai->id == RT711_AIF2)
sound/soc/codecs/rt711-sdca.c
1364
dev_err(dai->dev, "%s: Unable to configure port\n", __func__);
sound/soc/codecs/rt711-sdca.c
1409
struct snd_soc_dai *dai)
sound/soc/codecs/rt711-sdca.c
1411
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt711-sdca.c
1414
snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/rt711.c
1005
if (dai->id == RT711_AIF1)
sound/soc/codecs/rt711.c
1007
else if (dai->id == RT711_AIF2)
sound/soc/codecs/rt711.c
1016
dev_err(dai->dev, "%s: Unable to configure port\n", __func__);
sound/soc/codecs/rt711.c
1058
struct snd_soc_dai *dai)
sound/soc/codecs/rt711.c
1060
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt711.c
1063
snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/rt711.c
964
static int rt711_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream,
sound/soc/codecs/rt711.c
967
snd_soc_dai_dma_data_set(dai, direction, sdw_stream);
sound/soc/codecs/rt711.c
973
struct snd_soc_dai *dai)
sound/soc/codecs/rt711.c
975
snd_soc_dai_set_dma_data(dai, substream, NULL);
sound/soc/codecs/rt711.c
980
struct snd_soc_dai *dai)
sound/soc/codecs/rt711.c
982
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt711.c
990
dev_dbg(dai->dev, "%s %s", __func__, dai->name);
sound/soc/codecs/rt711.c
991
sdw_stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/rt712-sdca-dmic.c
616
static int rt712_sdca_dmic_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream,
sound/soc/codecs/rt712-sdca-dmic.c
619
snd_soc_dai_dma_data_set(dai, direction, sdw_stream);
sound/soc/codecs/rt712-sdca-dmic.c
625
struct snd_soc_dai *dai)
sound/soc/codecs/rt712-sdca-dmic.c
627
snd_soc_dai_set_dma_data(dai, substream, NULL);
sound/soc/codecs/rt712-sdca-dmic.c
632
struct snd_soc_dai *dai)
sound/soc/codecs/rt712-sdca-dmic.c
634
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt712-sdca-dmic.c
642
dev_dbg(dai->dev, "%s %s", __func__, dai->name);
sound/soc/codecs/rt712-sdca-dmic.c
643
sdw_stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/rt712-sdca-dmic.c
663
dev_err(dai->dev, "%s: Unable to configure port\n", __func__);
sound/soc/codecs/rt712-sdca-dmic.c
711
struct snd_soc_dai *dai)
sound/soc/codecs/rt712-sdca-dmic.c
713
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt712-sdca-dmic.c
716
snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/rt712-sdca.c
1433
static int rt712_sdca_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream,
sound/soc/codecs/rt712-sdca.c
1436
snd_soc_dai_dma_data_set(dai, direction, sdw_stream);
sound/soc/codecs/rt712-sdca.c
1442
struct snd_soc_dai *dai)
sound/soc/codecs/rt712-sdca.c
1444
snd_soc_dai_set_dma_data(dai, substream, NULL);
sound/soc/codecs/rt712-sdca.c
1449
struct snd_soc_dai *dai)
sound/soc/codecs/rt712-sdca.c
1451
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt712-sdca.c
1460
dev_dbg(dai->dev, "%s %s id %d", __func__, dai->name, dai->id);
sound/soc/codecs/rt712-sdca.c
1461
sdw_stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/rt712-sdca.c
1470
if (dai->id == RT712_AIF3 && rt712->version_id == RT712_VA)
sound/soc/codecs/rt712-sdca.c
1476
if (dai->id == RT712_AIF1)
sound/soc/codecs/rt712-sdca.c
1478
else if (dai->id == RT712_AIF2)
sound/soc/codecs/rt712-sdca.c
1484
if (dai->id == RT712_AIF1)
sound/soc/codecs/rt712-sdca.c
1486
else if (dai->id == RT712_AIF3)
sound/soc/codecs/rt712-sdca.c
1504
dev_err(dai->dev, "%s: Unable to configure port\n", __func__);
sound/soc/codecs/rt712-sdca.c
1535
switch (dai->id) {
sound/soc/codecs/rt712-sdca.c
1566
struct snd_soc_dai *dai)
sound/soc/codecs/rt712-sdca.c
1568
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt712-sdca.c
1571
snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/rt715-sdca.c
777
static int rt715_sdca_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream,
sound/soc/codecs/rt715-sdca.c
780
snd_soc_dai_dma_data_set(dai, direction, sdw_stream);
sound/soc/codecs/rt715-sdca.c
786
struct snd_soc_dai *dai)
sound/soc/codecs/rt715-sdca.c
789
snd_soc_dai_set_dma_data(dai, substream, NULL);
sound/soc/codecs/rt715-sdca.c
794
struct snd_soc_dai *dai)
sound/soc/codecs/rt715-sdca.c
796
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt715-sdca.c
804
sdw_stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/rt715-sdca.c
814
switch (dai->id) {
sound/soc/codecs/rt715-sdca.c
826
dev_err(component->dev, "%s: Invalid DAI id %d\n", __func__, dai->id);
sound/soc/codecs/rt715-sdca.c
898
struct snd_soc_dai *dai)
sound/soc/codecs/rt715-sdca.c
900
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt715-sdca.c
903
snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/rt715.c
802
static int rt715_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream,
sound/soc/codecs/rt715.c
806
snd_soc_dai_dma_data_set(dai, direction, sdw_stream);
sound/soc/codecs/rt715.c
812
struct snd_soc_dai *dai)
sound/soc/codecs/rt715.c
815
snd_soc_dai_set_dma_data(dai, substream, NULL);
sound/soc/codecs/rt715.c
820
struct snd_soc_dai *dai)
sound/soc/codecs/rt715.c
822
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt715.c
830
sdw_stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/rt715.c
840
switch (dai->id) {
sound/soc/codecs/rt715.c
850
dev_err(component->dev, "%s: Invalid DAI id %d\n", __func__, dai->id);
sound/soc/codecs/rt715.c
857
dev_err(dai->dev, "%s: Unable to configure port\n", __func__);
sound/soc/codecs/rt715.c
914
struct snd_soc_dai *dai)
sound/soc/codecs/rt715.c
916
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt715.c
919
snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/rt721-sdca.c
1252
static int rt721_sdca_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream,
sound/soc/codecs/rt721-sdca.c
1255
snd_soc_dai_dma_data_set(dai, direction, sdw_stream);
sound/soc/codecs/rt721-sdca.c
1261
struct snd_soc_dai *dai)
sound/soc/codecs/rt721-sdca.c
1263
snd_soc_dai_set_dma_data(dai, substream, NULL);
sound/soc/codecs/rt721-sdca.c
1268
struct snd_soc_dai *dai)
sound/soc/codecs/rt721-sdca.c
1270
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt721-sdca.c
1279
dev_dbg(dai->dev, "%s %s", __func__, dai->name);
sound/soc/codecs/rt721-sdca.c
1280
sdw_stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/rt721-sdca.c
1296
if (dai->id == RT721_AIF1)
sound/soc/codecs/rt721-sdca.c
1298
else if (dai->id == RT721_AIF2)
sound/soc/codecs/rt721-sdca.c
1304
if (dai->id == RT721_AIF1)
sound/soc/codecs/rt721-sdca.c
1306
else if (dai->id == RT721_AIF3)
sound/soc/codecs/rt721-sdca.c
1323
dev_err(dai->dev, "Unable to configure port\n");
sound/soc/codecs/rt721-sdca.c
1372
if (dai->id == RT721_AIF1) {
sound/soc/codecs/rt721-sdca.c
1381
if (dai->id == RT721_AIF2)
sound/soc/codecs/rt721-sdca.c
1386
if (dai->id == RT721_AIF3)
sound/soc/codecs/rt721-sdca.c
1395
struct snd_soc_dai *dai)
sound/soc/codecs/rt721-sdca.c
1397
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt721-sdca.c
1400
snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/rt722-sdca.c
1102
static int rt722_sdca_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream,
sound/soc/codecs/rt722-sdca.c
1105
snd_soc_dai_dma_data_set(dai, direction, sdw_stream);
sound/soc/codecs/rt722-sdca.c
1111
struct snd_soc_dai *dai)
sound/soc/codecs/rt722-sdca.c
1113
snd_soc_dai_set_dma_data(dai, substream, NULL);
sound/soc/codecs/rt722-sdca.c
1118
struct snd_soc_dai *dai)
sound/soc/codecs/rt722-sdca.c
1120
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt722-sdca.c
1129
dev_dbg(dai->dev, "%s %s", __func__, dai->name);
sound/soc/codecs/rt722-sdca.c
1130
sdw_stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/rt722-sdca.c
1146
if (dai->id == RT722_AIF1)
sound/soc/codecs/rt722-sdca.c
1148
else if (dai->id == RT722_AIF2)
sound/soc/codecs/rt722-sdca.c
1154
if (dai->id == RT722_AIF1)
sound/soc/codecs/rt722-sdca.c
1156
else if (dai->id == RT722_AIF3)
sound/soc/codecs/rt722-sdca.c
1173
dev_err(dai->dev, "%s: Unable to configure port\n", __func__);
sound/soc/codecs/rt722-sdca.c
1204
if (dai->id == RT722_AIF1) {
sound/soc/codecs/rt722-sdca.c
1213
if (dai->id == RT722_AIF2)
sound/soc/codecs/rt722-sdca.c
1218
if (dai->id == RT722_AIF3)
sound/soc/codecs/rt722-sdca.c
1227
struct snd_soc_dai *dai)
sound/soc/codecs/rt722-sdca.c
1229
struct snd_soc_component *component = dai->component;
sound/soc/codecs/rt722-sdca.c
1232
snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/rt9120.c
203
static int rt9120_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/rt9120.c
205
struct snd_soc_component *comp = dai->component;
sound/soc/codecs/rt9120.c
225
dev_err(dai->dev, "Unknown dai format\n");
sound/soc/codecs/rt9120.c
237
struct snd_soc_dai *dai)
sound/soc/codecs/rt9120.c
239
struct snd_soc_component *comp = dai->component;
sound/soc/codecs/rt9120.c
255
dev_err(dai->dev, "Unsupported data width [%d]\n", width);
sound/soc/codecs/rt9120.c
273
dev_err(dai->dev, "Unsupported slot width [%d]\n", width);
sound/soc/codecs/rt9123.c
194
static int rt9123_dai_set_format(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/rt9123.c
196
struct rt9123_priv *rt9123 = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/rt9123.c
202
static int rt9123_dai_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/rt9123.c
205
struct rt9123_priv *rt9123 = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/rt9123.c
206
struct snd_soc_component *comp = dai->component;
sound/soc/codecs/rt9123.c
207
struct device *dev = dai->dev;
sound/soc/codecs/rt9123.c
235
struct snd_pcm_hw_params *param, struct snd_soc_dai *dai)
sound/soc/codecs/rt9123.c
237
struct rt9123_priv *rt9123 = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/rt9123.c
238
struct snd_soc_component *comp = dai->component;
sound/soc/codecs/rt9123.c
240
struct device *dev = dai->dev;
sound/soc/codecs/rt9123p.c
29
struct snd_soc_dai *dai)
sound/soc/codecs/rt9123p.c
31
struct snd_soc_component *comp = dai->component;
sound/soc/codecs/rtq9124.c
167
static int rtq9124_dai_set_format(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/rtq9124.c
169
struct rtq9124_priv *rtq9124 = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/rtq9124.c
175
static int rtq9124_dai_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/rtq9124.c
178
struct rtq9124_priv *rtq9124 = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/rtq9124.c
179
struct snd_soc_component *comp = dai->component;
sound/soc/codecs/rtq9124.c
180
struct device *dev = dai->dev;
sound/soc/codecs/rtq9124.c
218
struct snd_pcm_hw_params *param, struct snd_soc_dai *dai)
sound/soc/codecs/rtq9124.c
220
struct rtq9124_priv *rtq9124 = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/rtq9124.c
221
struct snd_soc_component *comp = dai->component;
sound/soc/codecs/rtq9124.c
223
struct device *dev = dai->dev;
sound/soc/codecs/rtq9128.c
529
static int rtq9128_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/rtq9128.c
531
struct rtq9128_data *data = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/rtq9128.c
532
struct device *dev = dai->dev;
sound/soc/codecs/rtq9128.c
548
static int rtq9128_dai_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/rtq9128.c
551
struct rtq9128_data *data = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/rtq9128.c
552
struct snd_soc_component *comp = dai->component;
sound/soc/codecs/rtq9128.c
553
struct device *dev = dai->dev;
sound/soc/codecs/rtq9128.c
615
struct snd_soc_dai *dai)
sound/soc/codecs/rtq9128.c
617
struct rtq9128_data *data = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/rtq9128.c
619
struct snd_soc_component *comp = dai->component;
sound/soc/codecs/rtq9128.c
620
struct device *dev = dai->dev;
sound/soc/codecs/rtq9128.c
718
static int rtq9128_dai_mute_stream(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/rtq9128.c
720
struct snd_soc_component *comp = dai->component;
sound/soc/codecs/rtq9128.c
721
struct device *dev = dai->dev;
sound/soc/codecs/sdw-mockup.c
41
static int sdw_mockup_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream,
sound/soc/codecs/sdw-mockup.c
44
snd_soc_dai_dma_data_set(dai, direction, sdw_stream);
sound/soc/codecs/sdw-mockup.c
50
struct snd_soc_dai *dai)
sound/soc/codecs/sdw-mockup.c
52
snd_soc_dai_set_dma_data(dai, substream, NULL);
sound/soc/codecs/sdw-mockup.c
57
struct snd_soc_dai *dai)
sound/soc/codecs/sdw-mockup.c
59
struct snd_soc_component *component = dai->component;
sound/soc/codecs/sdw-mockup.c
63
struct sdw_stream_runtime *sdw_stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/sdw-mockup.c
83
dev_err(dai->dev, "Unable to configure port\n");
sound/soc/codecs/sdw-mockup.c
89
struct snd_soc_dai *dai)
sound/soc/codecs/sdw-mockup.c
91
struct snd_soc_component *component = dai->component;
sound/soc/codecs/sdw-mockup.c
93
struct sdw_stream_runtime *sdw_stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/sgtl5000.c
1049
struct snd_soc_dai *dai)
sound/soc/codecs/sgtl5000.c
1051
struct snd_soc_component *component = dai->component;
sound/soc/codecs/si476x.c
150
struct snd_soc_dai *dai)
sound/soc/codecs/si476x.c
152
struct si476x_core *core = i2c_mfd_cell_to_core(dai->dev);
sound/soc/codecs/si476x.c
157
dev_err(dai->component->dev, "Rate: %d is not supported\n", rate);
sound/soc/codecs/si476x.c
180
err = snd_soc_component_write(dai->component, SI476X_DIGITAL_IO_OUTPUT_SAMPLE_RATE,
sound/soc/codecs/si476x.c
183
dev_err(dai->component->dev, "Failed to set sample rate\n");
sound/soc/codecs/si476x.c
187
err = snd_soc_component_update_bits(dai->component, SI476X_DIGITAL_IO_OUTPUT_FORMAT,
sound/soc/codecs/si476x.c
192
dev_err(dai->component->dev, "Failed to set output width\n");
sound/soc/codecs/sma1303.c
1161
static int sma1303_dai_set_sysclk_amp(struct snd_soc_dai *dai,
sound/soc/codecs/sma1303.c
1164
struct snd_soc_component *component = dai->component;
sound/soc/codecs/sma1303.c
1184
static int sma1303_dai_mute(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/sma1303.c
1186
struct snd_soc_component *component = dai->component;
sound/soc/codecs/sma1303.c
1224
static int sma1303_dai_set_fmt_amp(struct snd_soc_dai *dai,
sound/soc/codecs/sma1303.c
1227
struct snd_soc_component *component = dai->component;
sound/soc/codecs/sma1303.c
1318
static int sma1303_dai_set_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/sma1303.c
1322
struct snd_soc_component *component = dai->component;
sound/soc/codecs/sma1303.c
974
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/sma1303.c
976
struct snd_soc_component *component = dai->component;
sound/soc/codecs/sma1307.c
1163
struct snd_soc_dai *dai)
sound/soc/codecs/sma1307.c
1165
struct snd_soc_component *component = dai->component;
sound/soc/codecs/sma1307.c
1316
static int sma1307_dai_set_sysclk_amp(struct snd_soc_dai *dai,
sound/soc/codecs/sma1307.c
1319
struct snd_soc_component *component = dai->component;
sound/soc/codecs/sma1307.c
1338
static int sma1307_dai_set_fmt_amp(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/sma1307.c
1340
struct snd_soc_component *component = dai->component;
sound/soc/codecs/sma1307.c
1427
static int sma1307_dai_set_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/sma1307.c
1431
struct snd_soc_component *component = dai->component;
sound/soc/codecs/sma1307.c
1525
static int sma1307_dai_mute_stream(struct snd_soc_dai *dai, int mute,
sound/soc/codecs/sma1307.c
1528
struct snd_soc_component *component = dai->component;
sound/soc/codecs/src4xxx.c
154
static int src4xxx_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/src4xxx.c
156
struct snd_soc_component *component = dai->component;
sound/soc/codecs/src4xxx.c
163
src4xxx->master[dai->id] = true;
sound/soc/codecs/src4xxx.c
167
src4xxx->master[dai->id] = false;
sound/soc/codecs/src4xxx.c
197
regmap_update_bits(src4xxx->regmap, SRC4XXX_BUS_FMT(dai->id),
sound/soc/codecs/src4xxx.c
218
struct snd_soc_dai *dai)
sound/soc/codecs/src4xxx.c
220
struct snd_soc_component *component = dai->component;
sound/soc/codecs/src4xxx.c
227
switch (dai->id) {
sound/soc/codecs/src4xxx.c
236
if (src4xxx->master[dai->id]) {
sound/soc/codecs/src4xxx.c
323
dev_info(dai->dev, "not setting up MCLK as not master\n");
sound/soc/codecs/ssm2518.c
335
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/ssm2518.c
337
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ssm2518.c
390
static int ssm2518_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/ssm2518.c
392
struct ssm2518 *ssm2518 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/ssm2518.c
404
static int ssm2518_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/ssm2518.c
406
struct ssm2518 *ssm2518 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/ssm2518.c
523
static int ssm2518_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/ssm2518.c
526
struct ssm2518 *ssm2518 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/ssm2518.c
609
struct snd_soc_dai *dai)
sound/soc/codecs/ssm2518.c
611
struct ssm2518 *ssm2518 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/ssm2602.c
307
struct snd_soc_dai *dai)
sound/soc/codecs/ssm2602.c
309
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ssm2602.c
342
struct snd_soc_dai *dai)
sound/soc/codecs/ssm2602.c
344
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ssm2602.c
356
static int ssm2602_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/ssm2602.c
358
struct ssm2602_priv *ssm2602 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/ssm3515.c
170
static int ssm3515_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/ssm3515.c
174
ret = snd_soc_component_update_bits(dai->component,
sound/soc/codecs/ssm3515.c
185
struct snd_soc_dai *dai)
sound/soc/codecs/ssm3515.c
187
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ssm3515.c
237
static int ssm3515_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/ssm3515.c
239
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ssm3515.c
296
static int ssm3515_set_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/ssm3515.c
301
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ssm3515.c
348
struct snd_soc_dai *dai)
sound/soc/codecs/ssm3515.c
355
ssm3515_read_faults(dai->component);
sound/soc/codecs/ssm4567.c
199
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/ssm4567.c
201
struct snd_soc_component *component = dai->component;
sound/soc/codecs/ssm4567.c
223
static int ssm4567_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/ssm4567.c
225
struct ssm4567 *ssm4567 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/ssm4567.c
233
static int ssm4567_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/ssm4567.c
236
struct ssm4567 *ssm4567 = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/ssm4567.c
275
static int ssm4567_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/ssm4567.c
277
struct ssm4567 *ssm4567 = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/sta32x.c
646
struct snd_soc_dai *dai)
sound/soc/codecs/sta32x.c
648
struct snd_soc_component *component = dai->component;
sound/soc/codecs/sta350.c
675
struct snd_soc_dai *dai)
sound/soc/codecs/sta350.c
677
struct snd_soc_component *component = dai->component;
sound/soc/codecs/sta529.c
189
struct snd_soc_dai *dai)
sound/soc/codecs/sta529.c
191
struct snd_soc_component *component = dai->component;
sound/soc/codecs/sta529.c
255
static int sta529_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/sta529.c
262
snd_soc_component_update_bits(dai->component, STA529_FFXCFG0, AUDIO_MUTE_MSK, val);
sound/soc/codecs/stac9766.c
165
struct snd_soc_dai *dai)
sound/soc/codecs/stac9766.c
167
struct snd_soc_component *component = dai->component;
sound/soc/codecs/stac9766.c
183
struct snd_soc_dai *dai)
sound/soc/codecs/stac9766.c
185
struct snd_soc_component *component = dai->component;
sound/soc/codecs/sti-sas.c
147
static int sti_sas_dac_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/sti-sas.c
151
dev_err(dai->component->dev,
sound/soc/codecs/sti-sas.c
174
static int stih407_sas_dac_mute(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/sti-sas.c
176
struct snd_soc_component *component = dai->component;
sound/soc/codecs/sti-sas.c
192
static int sti_sas_spdif_set_fmt(struct snd_soc_dai *dai,
sound/soc/codecs/sti-sas.c
196
dev_err(dai->component->dev,
sound/soc/codecs/sti-sas.c
212
struct snd_soc_dai *dai)
sound/soc/codecs/sti-sas.c
214
struct snd_soc_component *component = dai->component;
sound/soc/codecs/sti-sas.c
250
static int sti_sas_set_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/codecs/sti-sas.c
253
struct snd_soc_component *component = dai->component;
sound/soc/codecs/sti-sas.c
262
switch (dai->id) {
sound/soc/codecs/sti-sas.c
276
struct snd_soc_dai *dai)
sound/soc/codecs/sti-sas.c
278
struct snd_soc_component *component = dai->component;
sound/soc/codecs/sti-sas.c
282
switch (dai->id) {
sound/soc/codecs/tas2552.c
237
struct snd_soc_dai *dai)
sound/soc/codecs/tas2552.c
239
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tas2552.c
326
struct snd_soc_dai *dai)
sound/soc/codecs/tas2552.c
328
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tas2552.c
344
static int tas2552_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/tas2552.c
346
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tas2552.c
393
static int tas2552_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/codecs/tas2552.c
396
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tas2552.c
439
static int tas2552_set_dai_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/tas2552.c
443
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tas2552.c
468
static int tas2552_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/tas2552.c
471
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tas2562.c
142
static int tas2562_set_dai_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/tas2562.c
146
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tas2562.c
285
struct snd_soc_dai *dai)
sound/soc/codecs/tas2562.c
287
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tas2562.c
304
static int tas2562_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/tas2562.c
306
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tas2562.c
374
static int tas2562_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/tas2562.c
376
struct tas2562_data *tas2562 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/tas2764.c
227
static int tas2764_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/tas2764.c
230
snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/tas2764.c
363
struct snd_soc_dai *dai)
sound/soc/codecs/tas2764.c
365
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tas2764.c
376
static int tas2764_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/tas2764.c
378
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tas2764.c
444
static int tas2764_set_dai_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/tas2764.c
449
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tas2770.c
209
static int tas2770_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/tas2770.c
211
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tas2770.c
336
struct snd_soc_dai *dai)
sound/soc/codecs/tas2770.c
338
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tas2770.c
350
static int tas2770_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/tas2770.c
352
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tas2770.c
430
static int tas2770_set_dai_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/tas2770.c
435
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tas2780.c
128
static int tas2780_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/tas2780.c
130
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tas2780.c
278
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/tas2780.c
280
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tas2780.c
292
static int tas2780_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/tas2780.c
294
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tas2780.c
361
static int tas2780_set_dai_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/tas2780.c
366
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tas2781-i2c.c
1793
struct snd_soc_dai *dai)
sound/soc/codecs/tas2781-i2c.c
1795
struct snd_soc_component *codec = dai->component;
sound/soc/codecs/tas2781-i2c.c
1808
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/tas2781-i2c.c
1810
struct tasdevice_priv *tas_priv = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/tas2783-sdw.c
876
static s32 tas_set_sdw_stream(struct snd_soc_dai *dai,
sound/soc/codecs/tas2783-sdw.c
882
snd_soc_dai_dma_data_set(dai, direction, sdw_stream);
sound/soc/codecs/tas2783-sdw.c
888
struct snd_soc_dai *dai)
sound/soc/codecs/tas2783-sdw.c
890
snd_soc_dai_set_dma_data(dai, substream, NULL);
sound/soc/codecs/tas2783-sdw.c
895
struct snd_soc_dai *dai)
sound/soc/codecs/tas2783-sdw.c
897
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tas2783-sdw.c
911
sdw_stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/tas2783-sdw.c
951
dev_err(dai->dev, "Unable to configure port\n");
sound/soc/codecs/tas2783-sdw.c
957
struct snd_soc_dai *dai)
sound/soc/codecs/tas2783-sdw.c
960
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tas2783-sdw.c
964
snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/tas5086.c
352
struct snd_soc_dai *dai)
sound/soc/codecs/tas5086.c
354
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tas5086.c
450
static int tas5086_mute_stream(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/tas5086.c
452
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tas571x.c
265
static int tas571x_set_dai_fmt(struct snd_soc_dai *dai, unsigned int format)
sound/soc/codecs/tas571x.c
267
struct tas571x_private *priv = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/tas571x.c
276
struct snd_soc_dai *dai)
sound/soc/codecs/tas571x.c
278
struct tas571x_private *priv = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/tas571x.c
304
static int tas571x_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/tas571x.c
306
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tas5720.c
141
static int tas5720_set_dai_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/tas5720.c
145
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tas5720.c
236
static int tas5720_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/tas5720.c
238
return tas5720_mute_soc_component(dai->component, mute);
sound/soc/codecs/tas5720.c
54
struct snd_soc_dai *dai)
sound/soc/codecs/tas5720.c
56
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tas5720.c
85
static int tas5720_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/tas5720.c
87
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tas5805m.c
301
struct snd_soc_dai *dai)
sound/soc/codecs/tas5805m.c
303
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tas5805m.c
411
static int tas5805m_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/tas5805m.c
413
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tas6424.c
111
struct snd_soc_dai *dai)
sound/soc/codecs/tas6424.c
113
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tas6424.c
154
static int tas6424_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/tas6424.c
156
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tas6424.c
209
static int tas6424_set_dai_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/tas6424.c
213
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tas6424.c
254
static int tas6424_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/tas6424.c
256
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tfa9879.c
107
static int tfa9879_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/tfa9879.c
109
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tfa9879.c
25
struct snd_soc_dai *dai)
sound/soc/codecs/tfa9879.c
27
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tfa9879.c
96
static int tfa9879_mute_stream(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/tfa9879.c
98
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tfa989x.c
160
struct snd_soc_dai *dai)
sound/soc/codecs/tfa989x.c
162
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tlv320adc3xxx.c
1193
struct snd_soc_dai *dai)
sound/soc/codecs/tlv320adc3xxx.c
1195
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tlv320adc3xxx.c
1196
struct snd_soc_dapm_context *dapm = snd_soc_component_to_dapm(dai->component);
sound/soc/codecs/tlv320adcx140.c
770
struct snd_soc_dai *dai)
sound/soc/codecs/tlv320adcx140.c
772
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tlv320aic23.c
335
struct snd_soc_dai *dai)
sound/soc/codecs/tlv320aic23.c
337
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tlv320aic23.c
380
struct snd_soc_dai *dai)
sound/soc/codecs/tlv320aic23.c
382
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tlv320aic23.c
391
struct snd_soc_dai *dai)
sound/soc/codecs/tlv320aic23.c
393
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tlv320aic23.c
407
static int tlv320aic23_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/tlv320aic23.c
409
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tlv320aic26.c
137
static int aic26_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/tlv320aic26.c
139
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tlv320aic26.c
144
dai, mute);
sound/soc/codecs/tlv320aic26.c
66
struct snd_soc_dai *dai)
sound/soc/codecs/tlv320aic26.c
68
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tlv320aic31xx.c
965
struct snd_soc_dai *dai)
sound/soc/codecs/tlv320aic31xx.c
967
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tlv320aic32x4.c
827
struct snd_soc_dai *dai)
sound/soc/codecs/tlv320aic32x4.c
829
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tlv320aic32x4.c
873
static int aic32x4_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/tlv320aic32x4.c
875
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tlv320aic3x.c
1050
struct snd_soc_dai *dai)
sound/soc/codecs/tlv320aic3x.c
1052
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tlv320aic3x.c
1202
struct snd_soc_dai *dai)
sound/soc/codecs/tlv320aic3x.c
1204
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tlv320aic3x.c
1224
static int aic3x_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/tlv320aic3x.c
1226
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tlv320dac33.c
1118
struct snd_soc_dai *dai)
sound/soc/codecs/tlv320dac33.c
1120
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tlv320dac33.c
1150
struct snd_soc_dai *dai)
sound/soc/codecs/tlv320dac33.c
1152
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tlv320dac33.c
794
struct snd_soc_dai *dai)
sound/soc/codecs/tlv320dac33.c
796
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tlv320dac33.c
806
struct snd_soc_dai *dai)
sound/soc/codecs/tlv320dac33.c
808
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tlv320dac33.c
818
struct snd_soc_dai *dai)
sound/soc/codecs/tlv320dac33.c
820
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tscs42xx.c
1173
static int tscs42xx_mute_stream(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/tscs42xx.c
1175
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tscs454.c
2630
static int tscs454_set_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/tscs454.c
2633
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tscs454.c
2643
if (bclk_dai != dai->id)
sound/soc/codecs/tscs454.c
2650
static int tscs454_set_bclk_ratio(struct snd_soc_dai *dai,
sound/soc/codecs/tscs454.c
2655
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tscs454.c
2660
dai->id, ratio);
sound/soc/codecs/tscs454.c
2662
switch (dai->id) {
sound/soc/codecs/tscs454.c
2881
static int tscs454_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/tscs454.c
2883
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tscs454.c
2885
struct aif *aif = &tscs454->aifs[dai->id];
sound/soc/codecs/tscs454.c
2892
ret = set_aif_format_from_fmt(component, dai->id, fmt);
sound/soc/codecs/tscs454.c
2896
ret = set_aif_clock_format_from_fmt(component, dai->id, fmt);
sound/soc/codecs/tscs454.c
2903
static int tscs454_dai1_set_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/tscs454.c
2907
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tscs454.c
2960
static int tscs454_dai23_set_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/tscs454.c
2964
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tscs454.c
2978
switch (dai->id) {
sound/soc/codecs/tscs454.c
2988
dai->id, ret);
sound/soc/codecs/tscs454.c
3168
struct snd_soc_dai *dai)
sound/soc/codecs/tscs454.c
3170
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tscs454.c
3173
struct aif *aif = &tscs454->aifs[dai->id];
sound/soc/codecs/tscs454.c
3234
struct snd_soc_dai *dai)
sound/soc/codecs/tscs454.c
3236
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tscs454.c
3238
struct aif *aif = &tscs454->aifs[dai->id];
sound/soc/codecs/tscs454.c
3245
struct snd_soc_dai *dai)
sound/soc/codecs/tscs454.c
3248
struct snd_soc_component *component = dai->component;
sound/soc/codecs/tscs454.c
3250
struct aif *aif = &tscs454->aifs[dai->id];
sound/soc/codecs/twl4030.c
1642
struct snd_soc_dai *dai)
sound/soc/codecs/twl4030.c
1644
struct snd_soc_component *component = dai->component;
sound/soc/codecs/twl4030.c
1671
struct snd_soc_dai *dai)
sound/soc/codecs/twl4030.c
1673
struct snd_soc_component *component = dai->component;
sound/soc/codecs/twl4030.c
1695
struct snd_soc_dai *dai)
sound/soc/codecs/twl4030.c
1697
struct snd_soc_component *component = dai->component;
sound/soc/codecs/twl4030.c
1890
static int twl4030_set_tristate(struct snd_soc_dai *dai, int tristate)
sound/soc/codecs/twl4030.c
1892
struct snd_soc_component *component = dai->component;
sound/soc/codecs/twl4030.c
1926
struct snd_soc_dai *dai)
sound/soc/codecs/twl4030.c
1928
struct snd_soc_component *component = dai->component;
sound/soc/codecs/twl4030.c
1958
struct snd_soc_dai *dai)
sound/soc/codecs/twl4030.c
1960
struct snd_soc_component *component = dai->component;
sound/soc/codecs/twl4030.c
1968
struct snd_soc_dai *dai)
sound/soc/codecs/twl4030.c
1970
struct snd_soc_component *component = dai->component;
sound/soc/codecs/twl4030.c
2084
static int twl4030_voice_set_tristate(struct snd_soc_dai *dai, int tristate)
sound/soc/codecs/twl4030.c
2086
struct snd_soc_component *component = dai->component;
sound/soc/codecs/twl6040.c
1000
static int twl6040_mute_stream(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/twl6040.c
1002
switch (dai->id) {
sound/soc/codecs/twl6040.c
1004
twl6040_mute_path(dai->component, TWL6040_DAI_DL1, mute);
sound/soc/codecs/twl6040.c
1005
twl6040_mute_path(dai->component, TWL6040_DAI_DL2, mute);
sound/soc/codecs/twl6040.c
1009
twl6040_mute_path(dai->component, dai->id, mute);
sound/soc/codecs/twl6040.c
860
struct snd_soc_dai *dai)
sound/soc/codecs/twl6040.c
862
struct snd_soc_component *component = dai->component;
sound/soc/codecs/twl6040.c
874
struct snd_soc_dai *dai)
sound/soc/codecs/twl6040.c
876
struct snd_soc_component *component = dai->component;
sound/soc/codecs/twl6040.c
910
struct snd_soc_dai *dai)
sound/soc/codecs/twl6040.c
912
struct snd_soc_component *component = dai->component;
sound/soc/codecs/uda1334.c
116
struct snd_soc_dai *dai)
sound/soc/codecs/uda1334.c
118
struct snd_soc_component *component = dai->component;
sound/soc/codecs/uda1334.c
183
static int uda1334_mute_stream(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/uda1334.c
185
struct uda1334_priv *uda1334 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/uda1334.c
91
struct snd_soc_dai *dai)
sound/soc/codecs/uda1334.c
93
struct snd_soc_component *component = dai->component;
sound/soc/codecs/uda1342.c
100
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/codecs/uda1342.c
102
struct snd_soc_component *component = dai->component;
sound/soc/codecs/uda1342.c
48
static int uda1342_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/uda1342.c
50
struct snd_soc_component *component = dai->component;
sound/soc/codecs/uda1342.c
64
struct snd_soc_dai *dai)
sound/soc/codecs/uda1342.c
66
struct snd_soc_component *component = dai->component;
sound/soc/codecs/uda1342.c
88
struct snd_soc_dai *dai)
sound/soc/codecs/uda1342.c
90
struct snd_soc_component *component = dai->component;
sound/soc/codecs/uda1380.c
507
struct snd_soc_dai *dai)
sound/soc/codecs/uda1380.c
509
struct snd_soc_component *component = dai->component;
sound/soc/codecs/uda1380.c
532
struct snd_soc_dai *dai)
sound/soc/codecs/uda1380.c
534
struct snd_soc_component *component = dai->component;
sound/soc/codecs/uda1380.c
569
struct snd_soc_dai *dai)
sound/soc/codecs/uda1380.c
571
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wcd9335.c
1297
&wcd->dai[AIF1_PB].slim_ch_list);
sound/soc/codecs/wcd9335.c
1301
&wcd->dai[AIF2_PB].slim_ch_list);
sound/soc/codecs/wcd9335.c
1305
&wcd->dai[AIF3_PB].slim_ch_list);
sound/soc/codecs/wcd9335.c
1309
&wcd->dai[AIF4_PB].slim_ch_list);
sound/soc/codecs/wcd9335.c
1364
&wcd->dai[dai_id].slim_ch_list);
sound/soc/codecs/wcd9335.c
1616
static int wcd9335_set_mix_interpolator_rate(struct snd_soc_dai *dai,
sound/soc/codecs/wcd9335.c
1620
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wcd9335.c
1625
list_for_each_entry(ch, &wcd->dai[dai->id].slim_ch_list, list) {
sound/soc/codecs/wcd9335.c
1642
static int wcd9335_set_prim_interpolator_rate(struct snd_soc_dai *dai,
sound/soc/codecs/wcd9335.c
1646
struct snd_soc_component *comp = dai->component;
sound/soc/codecs/wcd9335.c
1652
list_for_each_entry(ch, &wcd->dai[dai->id].slim_ch_list, list) {
sound/soc/codecs/wcd9335.c
1690
static int wcd9335_set_interpolator_rate(struct snd_soc_dai *dai, u32 rate)
sound/soc/codecs/wcd9335.c
1697
wcd9335_set_mix_interpolator_rate(dai,
sound/soc/codecs/wcd9335.c
1706
wcd9335_set_prim_interpolator_rate(dai,
sound/soc/codecs/wcd9335.c
1794
static int wcd9335_set_decimator_rate(struct snd_soc_dai *dai,
sound/soc/codecs/wcd9335.c
1797
struct snd_soc_component *comp = dai->component;
sound/soc/codecs/wcd9335.c
1804
list_for_each_entry(ch, &wcd->dai[dai->id].slim_ch_list, list) {
sound/soc/codecs/wcd9335.c
1808
tx_port, dai->id);
sound/soc/codecs/wcd9335.c
1873
struct snd_soc_dai *dai)
sound/soc/codecs/wcd9335.c
1878
wcd = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/wcd9335.c
1882
ret = wcd9335_set_interpolator_rate(dai, params_rate(params));
sound/soc/codecs/wcd9335.c
1890
wcd->dai[dai->id].sconfig.bps = params_width(params);
sound/soc/codecs/wcd9335.c
1929
ret = wcd9335_set_decimator_rate(dai, tx_fs_rate,
sound/soc/codecs/wcd9335.c
1937
wcd->dai[dai->id].sconfig.bps = params_width(params);
sound/soc/codecs/wcd9335.c
1951
wcd->dai[dai->id].sconfig.rate = params_rate(params);
sound/soc/codecs/wcd9335.c
1952
wcd9335_slim_set_hw_params(wcd, &wcd->dai[dai->id], substream->stream);
sound/soc/codecs/wcd9335.c
1958
struct snd_soc_dai *dai)
sound/soc/codecs/wcd9335.c
1964
wcd = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/wcd9335.c
1966
dai_data = &wcd->dai[dai->id];
sound/soc/codecs/wcd9335.c
1989
static int wcd9335_set_channel_map(struct snd_soc_dai *dai,
sound/soc/codecs/wcd9335.c
1998
wcd = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/wcd9335.c
2021
static int wcd9335_get_channel_map(const struct snd_soc_dai *dai,
sound/soc/codecs/wcd9335.c
2029
wcd = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/wcd9335.c
2031
switch (dai->id) {
sound/soc/codecs/wcd9335.c
2042
list_for_each_entry(ch, &wcd->dai[dai->id].slim_ch_list, list)
sound/soc/codecs/wcd9335.c
2055
list_for_each_entry(ch, &wcd->dai[dai->id].slim_ch_list, list)
sound/soc/codecs/wcd9335.c
2061
dev_err(wcd->dev, "Invalid DAI ID %x\n", dai->id);
sound/soc/codecs/wcd9335.c
2938
static void wcd9335_codec_enable_int_port(struct wcd_slim_codec_dai_data *dai,
sound/soc/codecs/wcd9335.c
2947
list_for_each_entry(ch, &dai->slim_ch_list, list) {
sound/soc/codecs/wcd9335.c
2969
struct wcd_slim_codec_dai_data *dai = &wcd->dai[w->shift];
sound/soc/codecs/wcd9335.c
2973
wcd9335_codec_enable_int_port(dai, comp);
sound/soc/codecs/wcd9335.c
2976
kfree(dai->sconfig.chs);
sound/soc/codecs/wcd9335.c
317
struct wcd_slim_codec_dai_data dai[NUM_CODEC_DAIS];
sound/soc/codecs/wcd9335.c
4811
INIT_LIST_HEAD(&wcd->dai[i].slim_ch_list);
sound/soc/codecs/wcd934x.c
1486
static int wcd934x_set_prim_interpolator_rate(struct snd_soc_dai *dai,
sound/soc/codecs/wcd934x.c
1489
struct snd_soc_component *comp = dai->component;
sound/soc/codecs/wcd934x.c
1495
list_for_each_entry(ch, &wcd->dai[dai->id].slim_ch_list, list) {
sound/soc/codecs/wcd934x.c
1543
static int wcd934x_set_mix_interpolator_rate(struct snd_soc_dai *dai,
sound/soc/codecs/wcd934x.c
1546
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wcd934x.c
1551
list_for_each_entry(ch, &wcd->dai[dai->id].slim_ch_list, list) {
sound/soc/codecs/wcd934x.c
1570
dai->id);
sound/soc/codecs/wcd934x.c
1585
static int wcd934x_set_interpolator_rate(struct snd_soc_dai *dai,
sound/soc/codecs/wcd934x.c
1598
dev_err(dai->dev, "Unsupported sample rate: %d\n", sample_rate);
sound/soc/codecs/wcd934x.c
1602
ret = wcd934x_set_prim_interpolator_rate(dai, (u8)rate_val,
sound/soc/codecs/wcd934x.c
1606
ret = wcd934x_set_mix_interpolator_rate(dai, (u8)rate_val,
sound/soc/codecs/wcd934x.c
1612
static int wcd934x_set_decimator_rate(struct snd_soc_dai *dai,
sound/soc/codecs/wcd934x.c
1615
struct snd_soc_component *comp = dai->component;
sound/soc/codecs/wcd934x.c
1622
list_for_each_entry(ch, &wcd->dai[dai->id].slim_ch_list, list) {
sound/soc/codecs/wcd934x.c
1653
tx_port, dai->id);
sound/soc/codecs/wcd934x.c
1774
struct snd_soc_dai *dai)
sound/soc/codecs/wcd934x.c
1779
wcd = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/wcd934x.c
1783
ret = wcd934x_set_interpolator_rate(dai, params_rate(params));
sound/soc/codecs/wcd934x.c
1791
wcd->dai[dai->id].sconfig.bps = params_width(params);
sound/soc/codecs/wcd934x.c
1830
ret = wcd934x_set_decimator_rate(dai, tx_fs_rate,
sound/soc/codecs/wcd934x.c
1838
wcd->dai[dai->id].sconfig.bps = params_width(params);
sound/soc/codecs/wcd934x.c
1852
wcd->dai[dai->id].sconfig.rate = params_rate(params);
sound/soc/codecs/wcd934x.c
1854
return wcd934x_slim_set_hw_params(wcd, &wcd->dai[dai->id], substream->stream);
sound/soc/codecs/wcd934x.c
1858
struct snd_soc_dai *dai)
sound/soc/codecs/wcd934x.c
1863
wcd = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/wcd934x.c
1865
dai_data = &wcd->dai[dai->id];
sound/soc/codecs/wcd934x.c
1873
struct snd_soc_dai *dai)
sound/soc/codecs/wcd934x.c
1879
wcd = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/wcd934x.c
1881
dai_data = &wcd->dai[dai->id];
sound/soc/codecs/wcd934x.c
1904
static int wcd934x_set_channel_map(struct snd_soc_dai *dai,
sound/soc/codecs/wcd934x.c
1913
wcd = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/wcd934x.c
1940
static int wcd934x_get_channel_map(const struct snd_soc_dai *dai,
sound/soc/codecs/wcd934x.c
1948
wcd = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/wcd934x.c
1950
switch (dai->id) {
sound/soc/codecs/wcd934x.c
1961
list_for_each_entry(ch, &wcd->dai[dai->id].slim_ch_list, list)
sound/soc/codecs/wcd934x.c
1975
list_for_each_entry(ch, &wcd->dai[dai->id].slim_ch_list, list)
sound/soc/codecs/wcd934x.c
1981
dev_err(wcd->dev, "Invalid DAI ID %x\n", dai->id);
sound/soc/codecs/wcd934x.c
3013
INIT_LIST_HEAD(&wcd->dai[i].slim_ch_list);
sound/soc/codecs/wcd934x.c
3314
list_for_each_entry_safe(ch, c, &wcd->dai[aif_id].slim_ch_list, list) {
sound/soc/codecs/wcd934x.c
3332
&wcd->dai[aif_id].slim_ch_list);
sound/soc/codecs/wcd934x.c
3805
&wcd->dai[dai_id].slim_ch_list);
sound/soc/codecs/wcd934x.c
3813
list_for_each_entry_safe(ch, c, &wcd->dai[dai_id].slim_ch_list, list) {
sound/soc/codecs/wcd934x.c
4086
static void wcd934x_codec_enable_int_port(struct wcd_slim_codec_dai_data *dai,
sound/soc/codecs/wcd934x.c
4095
list_for_each_entry(ch, &dai->slim_ch_list, list) {
sound/soc/codecs/wcd934x.c
4116
struct wcd_slim_codec_dai_data *dai = &wcd->dai[w->shift];
sound/soc/codecs/wcd934x.c
4120
wcd934x_codec_enable_int_port(dai, comp);
sound/soc/codecs/wcd934x.c
535
struct wcd_slim_codec_dai_data dai[NUM_CODEC_DAIS];
sound/soc/codecs/wcd937x-sdw.c
84
struct snd_soc_dai *dai)
sound/soc/codecs/wcd937x.c
2628
struct snd_soc_dai *dai)
sound/soc/codecs/wcd937x.c
2630
struct wcd937x_priv *wcd937x = dev_get_drvdata(dai->dev);
sound/soc/codecs/wcd937x.c
2631
struct wcd937x_sdw_priv *wcd = wcd937x->sdw_priv[dai->id];
sound/soc/codecs/wcd937x.c
2633
return wcd937x_sdw_hw_params(wcd, substream, params, dai);
sound/soc/codecs/wcd937x.c
2637
struct snd_soc_dai *dai)
sound/soc/codecs/wcd937x.c
2639
struct wcd937x_priv *wcd937x = dev_get_drvdata(dai->dev);
sound/soc/codecs/wcd937x.c
2640
struct wcd937x_sdw_priv *wcd = wcd937x->sdw_priv[dai->id];
sound/soc/codecs/wcd937x.c
2645
static int wcd937x_codec_set_sdw_stream(struct snd_soc_dai *dai,
sound/soc/codecs/wcd937x.c
2648
struct wcd937x_priv *wcd937x = dev_get_drvdata(dai->dev);
sound/soc/codecs/wcd937x.c
2649
struct wcd937x_sdw_priv *wcd = wcd937x->sdw_priv[dai->id];
sound/soc/codecs/wcd937x.c
2656
static int wcd937x_get_channel_map(const struct snd_soc_dai *dai,
sound/soc/codecs/wcd937x.c
2660
struct wcd937x_priv *wcd937x = dev_get_drvdata(dai->dev);
sound/soc/codecs/wcd937x.c
2661
struct wcd937x_sdw_priv *wcd = wcd937x->sdw_priv[dai->id];
sound/soc/codecs/wcd937x.c
2664
switch (dai->id) {
sound/soc/codecs/wcd937x.c
2667
dev_err(dai->dev, "Invalid rx_slot %p or rx_num %p\n",
sound/soc/codecs/wcd937x.c
2679
dev_err(dai->dev, "Invalid tx_slot %p or tx_num %p\n",
sound/soc/codecs/wcd937x.h
531
struct snd_soc_dai *dai);
sound/soc/codecs/wcd937x.h
533
struct snd_soc_dai *dai,
sound/soc/codecs/wcd937x.h
538
struct snd_soc_dai *dai);
sound/soc/codecs/wcd937x.h
543
struct snd_soc_dai *dai)
sound/soc/codecs/wcd937x.h
549
struct snd_soc_dai *dai,
sound/soc/codecs/wcd937x.h
558
struct snd_soc_dai *dai)
sound/soc/codecs/wcd938x-sdw.c
125
struct snd_soc_dai *dai)
sound/soc/codecs/wcd938x-sdw.c
134
struct snd_soc_dai *dai,
sound/soc/codecs/wcd938x-sdw.c
87
struct snd_soc_dai *dai)
sound/soc/codecs/wcd938x.c
3275
struct snd_soc_dai *dai)
sound/soc/codecs/wcd938x.c
3277
struct wcd938x_priv *wcd938x = dev_get_drvdata(dai->dev);
sound/soc/codecs/wcd938x.c
3278
struct wcd938x_sdw_priv *wcd = wcd938x->sdw_priv[dai->id];
sound/soc/codecs/wcd938x.c
3280
return wcd938x_sdw_hw_params(wcd, substream, params, dai);
sound/soc/codecs/wcd938x.c
3284
struct snd_soc_dai *dai)
sound/soc/codecs/wcd938x.c
3286
struct wcd938x_priv *wcd938x = dev_get_drvdata(dai->dev);
sound/soc/codecs/wcd938x.c
3287
struct wcd938x_sdw_priv *wcd = wcd938x->sdw_priv[dai->id];
sound/soc/codecs/wcd938x.c
3289
return wcd938x_sdw_free(wcd, substream, dai);
sound/soc/codecs/wcd938x.c
3292
static int wcd938x_codec_set_sdw_stream(struct snd_soc_dai *dai,
sound/soc/codecs/wcd938x.c
3295
struct wcd938x_priv *wcd938x = dev_get_drvdata(dai->dev);
sound/soc/codecs/wcd938x.c
3296
struct wcd938x_sdw_priv *wcd = wcd938x->sdw_priv[dai->id];
sound/soc/codecs/wcd938x.c
3298
return wcd938x_sdw_set_sdw_stream(wcd, dai, stream, direction);
sound/soc/codecs/wcd938x.h
653
struct snd_soc_dai *dai);
sound/soc/codecs/wcd938x.h
655
struct snd_soc_dai *dai,
sound/soc/codecs/wcd938x.h
660
struct snd_soc_dai *dai);
sound/soc/codecs/wcd938x.h
665
struct snd_soc_dai *dai)
sound/soc/codecs/wcd938x.h
671
struct snd_soc_dai *dai,
sound/soc/codecs/wcd938x.h
680
struct snd_soc_dai *dai)
sound/soc/codecs/wcd939x-sdw.c
133
struct snd_soc_dai *dai)
sound/soc/codecs/wcd939x-sdw.c
170
struct snd_soc_dai *dai)
sound/soc/codecs/wcd939x-sdw.c
179
struct snd_soc_dai *dai, void *stream,
sound/soc/codecs/wcd939x.c
3244
struct snd_soc_dai *dai)
sound/soc/codecs/wcd939x.c
3246
struct wcd939x_priv *wcd939x = dev_get_drvdata(dai->dev);
sound/soc/codecs/wcd939x.c
3247
struct wcd939x_sdw_priv *wcd = wcd939x->sdw_priv[dai->id];
sound/soc/codecs/wcd939x.c
3249
return wcd939x_sdw_hw_params(wcd, substream, params, dai);
sound/soc/codecs/wcd939x.c
3253
struct snd_soc_dai *dai)
sound/soc/codecs/wcd939x.c
3255
struct wcd939x_priv *wcd939x = dev_get_drvdata(dai->dev);
sound/soc/codecs/wcd939x.c
3256
struct wcd939x_sdw_priv *wcd = wcd939x->sdw_priv[dai->id];
sound/soc/codecs/wcd939x.c
3258
return wcd939x_sdw_free(wcd, substream, dai);
sound/soc/codecs/wcd939x.c
3261
static int wcd939x_codec_set_sdw_stream(struct snd_soc_dai *dai,
sound/soc/codecs/wcd939x.c
3264
struct wcd939x_priv *wcd939x = dev_get_drvdata(dai->dev);
sound/soc/codecs/wcd939x.c
3265
struct wcd939x_sdw_priv *wcd = wcd939x->sdw_priv[dai->id];
sound/soc/codecs/wcd939x.c
3267
return wcd939x_sdw_set_sdw_stream(wcd, dai, stream, direction);
sound/soc/codecs/wcd939x.h
913
struct snd_soc_dai *dai);
sound/soc/codecs/wcd939x.h
915
struct snd_soc_dai *dai,
sound/soc/codecs/wcd939x.h
920
struct snd_soc_dai *dai);
sound/soc/codecs/wcd939x.h
925
struct snd_soc_dai *dai)
sound/soc/codecs/wcd939x.h
931
struct snd_soc_dai *dai,
sound/soc/codecs/wcd939x.h
940
struct snd_soc_dai *dai)
sound/soc/codecs/wm1250-ev1.c
64
struct snd_soc_dai *dai)
sound/soc/codecs/wm1250-ev1.c
66
struct wm1250_priv *wm1250 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/wm2200.c
1557
static int wm2200_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/wm2200.c
1559
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm2200.c
1689
struct snd_soc_dai *dai)
sound/soc/codecs/wm2200.c
1691
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm2200.c
2046
static int wm2200_dai_probe(struct snd_soc_dai *dai)
sound/soc/codecs/wm2200.c
2048
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm5100.c
1282
static int wm5100_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/wm5100.c
1284
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm5100.c
1287
base = dai->driver->base;
sound/soc/codecs/wm5100.c
1400
struct snd_soc_dai *dai)
sound/soc/codecs/wm5100.c
1402
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm5100.c
1404
bool async = wm5100->aif_async[dai->id];
sound/soc/codecs/wm5100.c
1408
base = dai->driver->base;
sound/soc/codecs/wm5100.c
1482
wm5100->aif_symmetric[dai->id])
sound/soc/codecs/wm8350.c
946
static int wm8350_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/wm8350.c
948
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8400.c
1071
struct snd_soc_dai *dai)
sound/soc/codecs/wm8400.c
1073
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8400.c
1096
static int wm8400_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/wm8400.c
1098
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8510.c
442
struct snd_soc_dai *dai)
sound/soc/codecs/wm8510.c
444
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8510.c
490
static int wm8510_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/wm8510.c
492
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8523.c
122
struct snd_soc_dai *dai)
sound/soc/codecs/wm8523.c
124
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8523.c
145
struct snd_soc_dai *dai)
sound/soc/codecs/wm8523.c
147
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8524.c
151
static int wm8524_mute_stream(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/wm8524.c
153
struct wm8524_priv *wm8524 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/wm8524.c
163
struct snd_soc_dai *dai)
sound/soc/codecs/wm8524.c
165
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8524.c
60
struct snd_soc_dai *dai)
sound/soc/codecs/wm8524.c
62
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8524.c
79
struct snd_soc_dai *dai)
sound/soc/codecs/wm8524.c
81
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8580.c
536
struct snd_soc_dai *dai)
sound/soc/codecs/wm8580.c
538
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8580.c
566
ratio = wm8580->sysclk[dai->driver->id] / params_rate(params);
sound/soc/codecs/wm8580.c
572
wm8580->sysclk[dai->driver->id], params_rate(params));
sound/soc/codecs/wm8580.c
577
wm8580_sysclk_ratios[i], wm8580->sysclk[dai->driver->id]);
sound/soc/codecs/wm8580.c
595
snd_soc_component_update_bits(component, WM8580_PAIF1 + dai->driver->id,
sound/soc/codecs/wm8580.c
598
snd_soc_component_update_bits(component, WM8580_PAIF3 + dai->driver->id,
sound/soc/codecs/wm8580.c
750
static int wm8580_set_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/codecs/wm8580.c
753
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8580.c
757
switch (dai->driver->id) {
sound/soc/codecs/wm8580.c
775
if (dai->driver->id != WM8580_DAI_PAIFTX)
sound/soc/codecs/wm8580.c
794
wm8580->sysclk[dai->driver->id] = freq;
sound/soc/codecs/wm8580.c
852
struct snd_soc_dai *dai)
sound/soc/codecs/wm8580.c
854
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8711.c
157
struct snd_soc_dai *dai)
sound/soc/codecs/wm8711.c
159
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8711.c
185
struct snd_soc_dai *dai)
sound/soc/codecs/wm8711.c
187
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8711.c
196
struct snd_soc_dai *dai)
sound/soc/codecs/wm8711.c
198
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8711.c
207
static int wm8711_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/wm8711.c
209
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8728.c
72
static int wm8728_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/wm8728.c
74
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8728.c
87
struct snd_soc_dai *dai)
sound/soc/codecs/wm8728.c
89
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8731.c
315
struct snd_soc_dai *dai)
sound/soc/codecs/wm8731.c
317
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8731.c
349
static int wm8731_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/wm8731.c
351
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8731.c
506
struct snd_soc_dai *dai)
sound/soc/codecs/wm8731.c
508
struct wm8731_priv *wm8731 = snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/wm8737.c
326
struct snd_soc_dai *dai)
sound/soc/codecs/wm8737.c
328
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8741.c
176
struct snd_soc_dai *dai)
sound/soc/codecs/wm8741.c
178
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8741.c
191
struct snd_soc_dai *dai)
sound/soc/codecs/wm8741.c
193
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8750.c
577
struct snd_soc_dai *dai)
sound/soc/codecs/wm8750.c
579
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8750.c
609
static int wm8750_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/wm8750.c
611
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8753.c
1153
struct snd_soc_dai *dai)
sound/soc/codecs/wm8753.c
1155
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8753.c
1300
static int wm8753_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/wm8753.c
1302
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8753.c
922
struct snd_soc_dai *dai)
sound/soc/codecs/wm8753.c
924
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8770.c
344
static int wm8770_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/wm8770.c
349
component = dai->component;
sound/soc/codecs/wm8770.c
409
struct snd_soc_dai *dai)
sound/soc/codecs/wm8770.c
418
component = dai->component;
sound/soc/codecs/wm8770.c
475
static int wm8770_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/wm8770.c
479
component = dai->component;
sound/soc/codecs/wm8770.c
484
static int wm8770_set_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/wm8770.c
490
component = dai->component;
sound/soc/codecs/wm8776.c
164
static int wm8776_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/wm8776.c
166
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8776.c
169
switch (dai->driver->id) {
sound/soc/codecs/wm8776.c
241
struct snd_soc_dai *dai)
sound/soc/codecs/wm8776.c
243
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8776.c
249
switch (dai->driver->id) {
sound/soc/codecs/wm8776.c
287
if (wm8776->sysclk[dai->driver->id] / params_rate(params)
sound/soc/codecs/wm8776.c
295
wm8776->sysclk[dai->driver->id], params_rate(params));
sound/soc/codecs/wm8776.c
312
static int wm8776_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/wm8776.c
314
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8776.c
319
static int wm8776_set_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/wm8776.c
322
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8776.c
325
if (WARN_ON(dai->driver->id >= ARRAY_SIZE(wm8776->sysclk)))
sound/soc/codecs/wm8776.c
328
wm8776->sysclk[dai->driver->id] = freq;
sound/soc/codecs/wm8782.c
37
static int wm8782_dai_startup(struct snd_pcm_substream *sub, struct snd_soc_dai *dai)
sound/soc/codecs/wm8782.c
41
snd_soc_component_get_drvdata(dai->component);
sound/soc/codecs/wm8804.c
215
static int wm8804_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/wm8804.c
220
component = dai->component;
sound/soc/codecs/wm8804.c
237
dev_err(dai->dev, "Unknown dai format\n");
sound/soc/codecs/wm8804.c
253
dev_err(dai->dev, "Unknown master/slave configuration\n");
sound/soc/codecs/wm8804.c
274
dev_err(dai->dev, "Unknown polarity configuration\n");
sound/soc/codecs/wm8804.c
288
struct snd_soc_dai *dai)
sound/soc/codecs/wm8804.c
293
component = dai->component;
sound/soc/codecs/wm8804.c
306
dev_err(dai->dev, "Unsupported word length: %u\n",
sound/soc/codecs/wm8804.c
400
static int wm8804_set_pll(struct snd_soc_dai *dai, int pll_id,
sound/soc/codecs/wm8804.c
404
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8804.c
447
static int wm8804_set_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/wm8804.c
452
component = dai->component;
sound/soc/codecs/wm8804.c
460
dev_err(dai->dev, "OSCCLOCK is not within the "
sound/soc/codecs/wm8804.c
475
dev_err(dai->dev, "Unknown clock source: %d\n", clk_id);
sound/soc/codecs/wm8804.c
482
static int wm8804_set_clkdiv(struct snd_soc_dai *dai,
sound/soc/codecs/wm8804.c
488
component = dai->component;
sound/soc/codecs/wm8804.c
499
dev_err(dai->dev, "Unknown clock divider: %d\n", div_id);
sound/soc/codecs/wm8900.c
627
struct snd_soc_dai *dai)
sound/soc/codecs/wm8900.c
629
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8903.c
1441
struct snd_soc_dai *dai)
sound/soc/codecs/wm8903.c
1443
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8904.c
1357
struct snd_soc_dai *dai)
sound/soc/codecs/wm8904.c
1359
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8904.c
1482
static int wm8904_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/wm8904.c
1484
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8904.c
1572
static int wm8904_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/wm8904.c
1575
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8904.c
1729
static int wm8904_set_fll(struct snd_soc_dai *dai, int fll_id, int source,
sound/soc/codecs/wm8904.c
1732
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8904.c
1868
static int wm8904_set_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/codecs/wm8904.c
1871
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8904.c
1888
ret = wm8904_set_fll(dai, WM8904_FLL_MCLK,
sound/soc/codecs/wm8904.c
1911
dev_dbg(dai->dev, "Clock source is %d at %uHz\n", clk_id, freq);
sound/soc/codecs/wm8940.c
392
static int wm8940_update_clocks(struct snd_soc_dai *dai);
sound/soc/codecs/wm8940.c
395
struct snd_soc_dai *dai)
sound/soc/codecs/wm8940.c
397
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8940.c
406
ret = wm8940_update_clocks(dai);
sound/soc/codecs/wm8940.c
464
static int wm8940_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/wm8940.c
466
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8940.c
680
static int wm8940_update_clocks(struct snd_soc_dai *dai)
sound/soc/codecs/wm8940.c
682
struct snd_soc_component *codec = dai->component;
sound/soc/codecs/wm8940.c
705
wm8940_set_dai_pll(dai, 0, 0, priv->mclk, fpll);
sound/soc/codecs/wm8940.c
706
wm8940_set_dai_clkdiv(dai, WM8940_MCLKDIV, mclkdiv);
sound/soc/codecs/wm8940.c
711
static int wm8940_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/codecs/wm8940.c
714
struct snd_soc_component *codec = dai->component;
sound/soc/codecs/wm8940.c
722
return wm8940_update_clocks(dai);
sound/soc/codecs/wm8955.c
590
struct snd_soc_dai *dai)
sound/soc/codecs/wm8955.c
592
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8955.c
638
static int wm8955_set_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/codecs/wm8955.c
641
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8955.c
663
dev_dbg(dai->dev, "Clock source is %d at %uHz\n", clk_id, freq);
sound/soc/codecs/wm8955.c
668
static int wm8955_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/wm8955.c
670
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8960.c
1310
static int wm8960_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/codecs/wm8960.c
1313
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8960.c
831
struct snd_soc_dai *dai)
sound/soc/codecs/wm8960.c
833
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8960.c
890
struct snd_soc_dai *dai)
sound/soc/codecs/wm8960.c
892
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8960.c
901
static int wm8960_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/wm8960.c
903
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8961.c
503
struct snd_soc_dai *dai)
sound/soc/codecs/wm8961.c
505
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8961.c
592
static int wm8961_set_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/codecs/wm8961.c
596
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8961.c
621
static int wm8961_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/wm8961.c
623
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8961.c
688
static int wm8961_set_tristate(struct snd_soc_dai *dai, int tristate)
sound/soc/codecs/wm8961.c
690
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8961.c
701
static int wm8961_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/wm8961.c
703
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8961.c
716
static int wm8961_set_clkdiv(struct snd_soc_dai *dai, int div_id, int div)
sound/soc/codecs/wm8961.c
718
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8962.c
2617
static int wm8962_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/wm8962.c
2620
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8962.c
2649
struct snd_soc_dai *dai)
sound/soc/codecs/wm8962.c
2651
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8962.c
2720
static int wm8962_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/codecs/wm8962.c
2723
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8962.c
2748
static int wm8962_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/wm8962.c
2750
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8962.c
3035
static int wm8962_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/wm8962.c
3037
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8971.c
507
struct snd_soc_dai *dai)
sound/soc/codecs/wm8971.c
509
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8971.c
539
static int wm8971_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/wm8971.c
541
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8974.c
407
static int wm8974_update_clocks(struct snd_soc_dai *dai)
sound/soc/codecs/wm8974.c
409
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8974.c
432
wm8974_set_dai_pll(dai, 0, 0, priv->mclk, fpll);
sound/soc/codecs/wm8974.c
433
wm8974_set_dai_clkdiv(dai, WM8974_MCLKDIV, mclkdiv);
sound/soc/codecs/wm8974.c
438
static int wm8974_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/codecs/wm8974.c
441
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8974.c
449
return wm8974_update_clocks(dai);
sound/soc/codecs/wm8974.c
515
struct snd_soc_dai *dai)
sound/soc/codecs/wm8974.c
517
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8974.c
524
err = wm8974_update_clocks(dai);
sound/soc/codecs/wm8974.c
570
static int wm8974_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/wm8974.c
572
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8978.c
718
struct snd_soc_dai *dai)
sound/soc/codecs/wm8978.c
720
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8978.c
839
static int wm8978_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/wm8978.c
841
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8983.c
560
static int wm8983_dac_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/wm8983.c
562
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8983.c
569
static int wm8983_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/wm8983.c
571
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8983.c
589
dev_err(dai->dev, "Unknown dai format\n");
sound/soc/codecs/wm8983.c
604
dev_err(dai->dev, "Unknown master/slave configuration\n");
sound/soc/codecs/wm8983.c
615
dev_err(dai->dev, "DSP A/B modes are not supported\n");
sound/soc/codecs/wm8983.c
635
dev_err(dai->dev, "Unknown polarity configuration\n");
sound/soc/codecs/wm8983.c
648
struct snd_soc_dai *dai)
sound/soc/codecs/wm8983.c
651
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8983.c
680
dev_err(dai->dev, "Unsupported word length %u\n",
sound/soc/codecs/wm8983.c
701
dev_dbg(dai->dev, "Selected SRATE = %d\n", srates[srate_idx]);
sound/soc/codecs/wm8983.c
705
dev_dbg(dai->dev, "Target BCLK = %uHz\n", wm8983->bclk);
sound/soc/codecs/wm8983.c
706
dev_dbg(dai->dev, "SYSCLK = %uHz\n", wm8983->sysclk);
sound/soc/codecs/wm8983.c
715
dev_err(dai->dev, "Unable to configure MCLK ratio %u/%u\n",
sound/soc/codecs/wm8983.c
720
dev_dbg(dai->dev, "MCLK ratio = %dfs\n", fs_ratios[i].ratio);
sound/soc/codecs/wm8983.c
732
dev_err(dai->dev, "No matching BCLK divider found\n");
sound/soc/codecs/wm8983.c
736
dev_dbg(dai->dev, "BCLK div = %d\n", i);
sound/soc/codecs/wm8983.c
784
static int wm8983_set_pll(struct snd_soc_dai *dai, int pll_id,
sound/soc/codecs/wm8983.c
792
component = dai->component;
sound/soc/codecs/wm8983.c
823
static int wm8983_set_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/wm8983.c
826
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8983.c
839
dev_err(dai->dev, "Unknown clock source: %d\n", clk_id);
sound/soc/codecs/wm8985.c
652
static int wm8985_dac_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/wm8985.c
654
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8985.c
661
static int wm8985_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/wm8985.c
666
component = dai->component;
sound/soc/codecs/wm8985.c
683
dev_err(dai->dev, "Unknown dai format\n");
sound/soc/codecs/wm8985.c
698
dev_err(dai->dev, "Unknown master/slave configuration\n");
sound/soc/codecs/wm8985.c
735
dev_err(dai->dev, "Unknown polarity configuration\n");
sound/soc/codecs/wm8985.c
748
struct snd_soc_dai *dai)
sound/soc/codecs/wm8985.c
757
component = dai->component;
sound/soc/codecs/wm8985.c
778
dev_err(dai->dev, "Unsupported word length %u\n",
sound/soc/codecs/wm8985.c
799
dev_dbg(dai->dev, "Selected SRATE = %d\n", srates[srate_idx]);
sound/soc/codecs/wm8985.c
803
dev_dbg(dai->dev, "Target BCLK = %uHz\n", wm8985->bclk);
sound/soc/codecs/wm8985.c
804
dev_dbg(dai->dev, "SYSCLK = %uHz\n", wm8985->sysclk);
sound/soc/codecs/wm8985.c
813
dev_err(dai->dev, "Unable to configure MCLK ratio %u/%u\n",
sound/soc/codecs/wm8985.c
818
dev_dbg(dai->dev, "MCLK ratio = %dfs\n", fs_ratios[i].ratio);
sound/soc/codecs/wm8985.c
830
dev_err(dai->dev, "No matching BCLK divider found\n");
sound/soc/codecs/wm8985.c
834
dev_dbg(dai->dev, "BCLK div = %d\n", i);
sound/soc/codecs/wm8985.c
882
static int wm8985_set_pll(struct snd_soc_dai *dai, int pll_id,
sound/soc/codecs/wm8985.c
890
component = dai->component;
sound/soc/codecs/wm8985.c
918
static int wm8985_set_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/wm8985.c
924
component = dai->component;
sound/soc/codecs/wm8985.c
939
dev_err(dai->dev, "Unknown clock source %d\n", clk_id);
sound/soc/codecs/wm8988.c
643
struct snd_soc_dai *dai)
sound/soc/codecs/wm8988.c
645
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8988.c
666
struct snd_soc_dai *dai)
sound/soc/codecs/wm8988.c
668
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8988.c
710
static int wm8988_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/wm8988.c
712
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8990.c
1001
static int wm8990_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/wm8990.c
1003
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8990.c
976
struct snd_soc_dai *dai)
sound/soc/codecs/wm8990.c
978
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8991.c
1042
struct snd_soc_dai *dai)
sound/soc/codecs/wm8991.c
1044
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8991.c
1067
static int wm8991_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/wm8991.c
1069
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8993.c
1089
static int wm8993_set_dai_fmt(struct snd_soc_dai *dai,
sound/soc/codecs/wm8993.c
1092
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8993.c
1187
struct snd_soc_dai *dai)
sound/soc/codecs/wm8993.c
1189
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8993.c
1351
static int wm8993_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/codecs/wm8993.c
1354
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8993.c
570
static int wm8993_set_fll(struct snd_soc_dai *dai, int fll_id, int source,
sound/soc/codecs/wm8993.c
573
return _wm8993_set_fll(dai->component, fll_id, source, Fref, Fout);
sound/soc/codecs/wm8994.c
2481
static int wm8994_set_fll(struct snd_soc_dai *dai, int id, int src,
sound/soc/codecs/wm8994.c
2484
return _wm8994_set_fll(dai->component, id, src, freq_in, freq_out);
sound/soc/codecs/wm8994.c
2504
static int wm8994_set_dai_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/wm8994.c
2507
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8994.c
2511
switch (dai->id) {
sound/soc/codecs/wm8994.c
2523
wm8994->sysclk[dai->id - 1] = WM8994_SYSCLK_MCLK1;
sound/soc/codecs/wm8994.c
2525
ret = wm8994_set_mclk_rate(wm8994, dai->id - 1, &freq);
sound/soc/codecs/wm8994.c
2530
dev_dbg(dai->dev, "AIF%d using MCLK1 at %uHz\n",
sound/soc/codecs/wm8994.c
2531
dai->id, freq);
sound/soc/codecs/wm8994.c
2536
wm8994->sysclk[dai->id - 1] = WM8994_SYSCLK_MCLK2;
sound/soc/codecs/wm8994.c
2538
ret = wm8994_set_mclk_rate(wm8994, dai->id - 1, &freq);
sound/soc/codecs/wm8994.c
2543
dev_dbg(dai->dev, "AIF%d using MCLK2 at %uHz\n",
sound/soc/codecs/wm8994.c
2544
dai->id, freq);
sound/soc/codecs/wm8994.c
2548
wm8994->sysclk[dai->id - 1] = WM8994_SYSCLK_FLL1;
sound/soc/codecs/wm8994.c
2549
dev_dbg(dai->dev, "AIF%d using FLL1\n", dai->id);
sound/soc/codecs/wm8994.c
2553
wm8994->sysclk[dai->id - 1] = WM8994_SYSCLK_FLL2;
sound/soc/codecs/wm8994.c
2554
dev_dbg(dai->dev, "AIF%d using FLL2\n", dai->id);
sound/soc/codecs/wm8994.c
2756
static int wm8994_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/wm8994.c
2758
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8994.c
2769
switch (dai->id) {
sound/soc/codecs/wm8994.c
2861
if (dai->id == 2)
sound/soc/codecs/wm8994.c
2912
struct snd_soc_dai *dai)
sound/soc/codecs/wm8994.c
2914
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8994.c
2928
int id = dai->id - 1;
sound/soc/codecs/wm8994.c
2932
switch (dai->id) {
sound/soc/codecs/wm8994.c
2987
dev_dbg(dai->dev, "Constraining channels to %d from %d\n",
sound/soc/codecs/wm8994.c
3010
dev_dbg(dai->dev, "Sample rate is %dHz\n", srs[i].rate);
sound/soc/codecs/wm8994.c
3011
dev_dbg(dai->dev, "AIF%dCLK is %dHz, target BCLK %dHz\n",
sound/soc/codecs/wm8994.c
3012
dai->id, wm8994->aifclk[id], bclk_rate);
sound/soc/codecs/wm8994.c
3019
dev_err(dai->dev, "AIF%dCLK not configured\n", dai->id);
sound/soc/codecs/wm8994.c
3035
dev_dbg(dai->dev, "Selected AIF%dCLK/fs = %d\n",
sound/soc/codecs/wm8994.c
3036
dai->id, fs_ratios[best]);
sound/soc/codecs/wm8994.c
3052
dev_dbg(dai->dev, "Using BCLK_DIV %d for actual BCLK %dHz\n",
sound/soc/codecs/wm8994.c
3058
dev_err(dai->dev, "Unable to generate LRCLK from %dHz BCLK\n",
sound/soc/codecs/wm8994.c
3062
dev_dbg(dai->dev, "Using LRCLK rate %d for actual LRCLK %dHz\n",
sound/soc/codecs/wm8994.c
3074
switch (dai->id) {
sound/soc/codecs/wm8994.c
3092
struct snd_soc_dai *dai)
sound/soc/codecs/wm8994.c
3094
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8994.c
3100
switch (dai->id) {
sound/soc/codecs/wm8994.c
3188
static int wm8994_aif2_probe(struct snd_soc_dai *dai)
sound/soc/codecs/wm8994.c
3190
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8995.c
1420
static int wm8995_aif_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/codecs/wm8995.c
1422
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8995.c
1425
switch (dai->id) {
sound/soc/codecs/wm8995.c
1441
static int wm8995_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/wm8995.c
1447
component = dai->component;
sound/soc/codecs/wm8995.c
1457
dev_err(dai->dev, "Unknown master/slave configuration\n");
sound/soc/codecs/wm8995.c
1478
dev_err(dai->dev, "Unknown dai format\n");
sound/soc/codecs/wm8995.c
1545
struct snd_soc_dai *dai)
sound/soc/codecs/wm8995.c
1558
component = dai->component;
sound/soc/codecs/wm8995.c
1561
switch (dai->id) {
sound/soc/codecs/wm8995.c
1608
dev_err(dai->dev, "Unsupported word length %u\n",
sound/soc/codecs/wm8995.c
1618
dev_err(dai->dev, "Sample rate %d is not supported\n",
sound/soc/codecs/wm8995.c
1624
dev_dbg(dai->dev, "Sample rate is %dHz\n", srs[i]);
sound/soc/codecs/wm8995.c
1625
dev_dbg(dai->dev, "AIF%dCLK is %dHz, target BCLK %dHz\n",
sound/soc/codecs/wm8995.c
1626
dai->id + 1, wm8995->aifclk[dai->id], bclk_rate);
sound/soc/codecs/wm8995.c
1631
- wm8995->aifclk[dai->id]);
sound/soc/codecs/wm8995.c
1634
- wm8995->aifclk[dai->id]);
sound/soc/codecs/wm8995.c
1642
dev_dbg(dai->dev, "Selected AIF%dCLK/fs = %d\n",
sound/soc/codecs/wm8995.c
1643
dai->id + 1, fs_ratios[best]);
sound/soc/codecs/wm8995.c
1654
cur_val = (wm8995->aifclk[dai->id] * 10 / bclk_divs[i]) - bclk_rate;
sound/soc/codecs/wm8995.c
1661
bclk_rate = wm8995->aifclk[dai->id] * 10 / bclk_divs[best];
sound/soc/codecs/wm8995.c
1662
dev_dbg(dai->dev, "Using BCLK_DIV %d for actual BCLK %dHz\n",
sound/soc/codecs/wm8995.c
1666
dev_dbg(dai->dev, "Using LRCLK rate %d for actual LRCLK %dHz\n",
sound/soc/codecs/wm8995.c
1794
static int wm8995_set_fll(struct snd_soc_dai *dai, int id,
sound/soc/codecs/wm8995.c
1804
component = dai->component;
sound/soc/codecs/wm8995.c
1905
static int wm8995_set_dai_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/wm8995.c
1911
component = dai->component;
sound/soc/codecs/wm8995.c
1914
switch (dai->id) {
sound/soc/codecs/wm8995.c
1925
wm8995->sysclk[dai->id] = WM8995_SYSCLK_MCLK1;
sound/soc/codecs/wm8995.c
1927
dev_dbg(dai->dev, "AIF%d using MCLK1 at %uHz\n",
sound/soc/codecs/wm8995.c
1928
dai->id + 1, freq);
sound/soc/codecs/wm8995.c
1931
wm8995->sysclk[dai->id] = WM8995_SYSCLK_MCLK2;
sound/soc/codecs/wm8995.c
1933
dev_dbg(dai->dev, "AIF%d using MCLK2 at %uHz\n",
sound/soc/codecs/wm8995.c
1934
dai->id + 1, freq);
sound/soc/codecs/wm8995.c
1937
wm8995->sysclk[dai->id] = WM8995_SYSCLK_FLL1;
sound/soc/codecs/wm8995.c
1938
dev_dbg(dai->dev, "AIF%d using FLL1\n", dai->id + 1);
sound/soc/codecs/wm8995.c
1941
wm8995->sysclk[dai->id] = WM8995_SYSCLK_FLL2;
sound/soc/codecs/wm8995.c
1942
dev_dbg(dai->dev, "AIF%d using FLL2\n", dai->id + 1);
sound/soc/codecs/wm8995.c
1946
dev_err(dai->dev, "Unknown clock source %d\n", clk_id);
sound/soc/codecs/wm8996.c
1631
static int wm8996_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/wm8996.c
1633
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8996.c
1640
switch (dai->id) {
sound/soc/codecs/wm8996.c
1654
WARN(1, "Invalid dai id %d\n", dai->id);
sound/soc/codecs/wm8996.c
1732
struct snd_soc_dai *dai)
sound/soc/codecs/wm8996.c
1734
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm8996.c
1742
switch (dai->id) {
sound/soc/codecs/wm8996.c
1766
WARN(1, "Invalid dai id %d\n", dai->id);
sound/soc/codecs/wm8996.c
1776
wm8996->bclk_rate[dai->id] = bclk_rate;
sound/soc/codecs/wm8996.c
1777
wm8996->rx_rate[dai->id] = params_rate(params);
sound/soc/codecs/wm8996.c
1796
dev_dbg(dai->dev, "Using LRCLK rate %d for actual LRCLK %dHz\n",
sound/soc/codecs/wm8996.c
1811
static int wm8996_set_sysclk(struct snd_soc_dai *dai,
sound/soc/codecs/wm8996.c
1814
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm9081.c
1187
static int wm9081_set_tdm_slot(struct snd_soc_dai *dai,
sound/soc/codecs/wm9081.c
1190
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm9081.c
900
static int wm9081_set_dai_fmt(struct snd_soc_dai *dai,
sound/soc/codecs/wm9081.c
903
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm9081.c
994
struct snd_soc_dai *dai)
sound/soc/codecs/wm9081.c
996
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm9705.c
232
struct snd_soc_dai *dai)
sound/soc/codecs/wm9705.c
234
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm9712.c
520
struct snd_soc_dai *dai)
sound/soc/codecs/wm9712.c
522
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm9712.c
537
struct snd_soc_dai *dai)
sound/soc/codecs/wm9712.c
539
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm9713.c
1000
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm9713.c
1023
struct snd_soc_dai *dai)
sound/soc/codecs/wm9713.c
1025
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm9713.c
1040
struct snd_soc_dai *dai)
sound/soc/codecs/wm9713.c
1042
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wm9713.c
998
struct snd_soc_dai *dai)
sound/soc/codecs/wsa881x.c
1002
struct snd_soc_dai *dai)
sound/soc/codecs/wsa881x.c
1004
struct wsa881x_priv *wsa881x = dev_get_drvdata(dai->dev);
sound/soc/codecs/wsa881x.c
1011
static int wsa881x_set_sdw_stream(struct snd_soc_dai *dai,
sound/soc/codecs/wsa881x.c
1014
struct wsa881x_priv *wsa881x = dev_get_drvdata(dai->dev);
sound/soc/codecs/wsa881x.c
1021
static int wsa881x_digital_mute(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/wsa881x.c
1023
struct wsa881x_priv *wsa881x = dev_get_drvdata(dai->dev);
sound/soc/codecs/wsa881x.c
981
struct snd_soc_dai *dai)
sound/soc/codecs/wsa881x.c
983
struct wsa881x_priv *wsa881x = dev_get_drvdata(dai->dev);
sound/soc/codecs/wsa883x.c
1340
struct snd_soc_dai *dai)
sound/soc/codecs/wsa883x.c
1342
struct wsa883x_priv *wsa883x = dev_get_drvdata(dai->dev);
sound/soc/codecs/wsa883x.c
1362
struct snd_soc_dai *dai)
sound/soc/codecs/wsa883x.c
1364
struct wsa883x_priv *wsa883x = dev_get_drvdata(dai->dev);
sound/soc/codecs/wsa883x.c
1371
static int wsa883x_set_sdw_stream(struct snd_soc_dai *dai,
sound/soc/codecs/wsa883x.c
1374
struct wsa883x_priv *wsa883x = dev_get_drvdata(dai->dev);
sound/soc/codecs/wsa883x.c
1381
static int wsa883x_digital_mute(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/wsa883x.c
1383
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wsa884x.c
1773
struct snd_soc_dai *dai)
sound/soc/codecs/wsa884x.c
1775
struct wsa884x_priv *wsa884x = dev_get_drvdata(dai->dev);
sound/soc/codecs/wsa884x.c
1795
struct snd_soc_dai *dai)
sound/soc/codecs/wsa884x.c
1797
struct wsa884x_priv *wsa884x = dev_get_drvdata(dai->dev);
sound/soc/codecs/wsa884x.c
1804
static int wsa884x_mute_stream(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/wsa884x.c
1806
struct snd_soc_component *component = dai->component;
sound/soc/codecs/wsa884x.c
1828
static int wsa884x_set_stream(struct snd_soc_dai *dai,
sound/soc/codecs/wsa884x.c
1831
struct wsa884x_priv *wsa884x = dev_get_drvdata(dai->dev);
sound/soc/codecs/zl38060.c
232
static int zl38_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/codecs/zl38060.c
234
struct zl38_codec_priv *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/zl38060.c
271
struct snd_soc_dai *dai)
sound/soc/codecs/zl38060.c
273
struct zl38_codec_priv *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/codecs/zl38060.c
317
struct snd_soc_dai *dai)
sound/soc/codecs/zl38060.c
319
struct zl38_codec_priv *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/dwc/dwc-i2s.c
275
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/dwc/dwc-i2s.c
277
struct dw_i2s_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/dwc/dwc-i2s.c
350
struct snd_soc_dai *dai)
sound/soc/dwc/dwc-i2s.c
352
struct dw_i2s_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/dwc/dwc-i2s.c
363
int cmd, struct snd_soc_dai *dai)
sound/soc/dwc/dwc-i2s.c
365
struct dw_i2s_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/dwc/dwc-i2s.c
462
static int dw_i2s_dai_probe(struct snd_soc_dai *dai)
sound/soc/dwc/dwc-i2s.c
464
struct dw_i2s_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/dwc/dwc-i2s.c
466
snd_soc_dai_init_dma_data(dai, &dev->play_dma_data, &dev->capture_dma_data);
sound/soc/dwc/dwc-i2s.c
515
struct snd_soc_dai *dai;
sound/soc/dwc/dwc-i2s.c
524
for_each_component_dais(component, dai) {
sound/soc/dwc/dwc-i2s.c
526
if (snd_soc_dai_stream_active(dai, stream))
sound/soc/fsl/fsl_asrc.c
651
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_asrc.c
653
struct fsl_asrc *asrc = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_asrc.c
706
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_asrc.c
708
struct fsl_asrc *asrc = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_asrc.c
720
dev_err(dai->dev, "fail to request asrc pair\n");
sound/soc/fsl/fsl_asrc.c
747
dev_err(dai->dev, "fail to config asrc pair\n");
sound/soc/fsl/fsl_asrc.c
755
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_asrc.c
767
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_asrc.c
790
static int fsl_asrc_dai_probe(struct snd_soc_dai *dai)
sound/soc/fsl/fsl_asrc.c
792
struct fsl_asrc *asrc = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_asrc.c
794
snd_soc_dai_init_dma_data(dai, &asrc->dma_params_tx,
sound/soc/fsl/fsl_asrc_dma.c
161
struct snd_soc_dai *dai;
sound/soc/fsl/fsl_asrc_dma.c
173
dai = dai_cpu;
sound/soc/fsl/fsl_asrc_dma.c
175
dai = dai_codec;
sound/soc/fsl/fsl_asrc_dma.c
178
dma_params_be = snd_soc_dai_get_dma_data(dai, substream_be);
sound/soc/fsl/fsl_asrc_dma.c
179
dev_be = dai->dev;
sound/soc/fsl/fsl_aud2htx.c
24
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_aud2htx.c
26
struct fsl_aud2htx *aud2htx = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_audmix.c
239
static int fsl_audmix_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/fsl/fsl_audmix.c
241
struct snd_soc_component *comp = dai->component;
sound/soc/fsl/fsl_audmix.c
280
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_audmix.c
282
struct fsl_audmix *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_audmix.c
294
priv->tdms |= BIT(dai->driver->id);
sound/soc/fsl/fsl_audmix.c
301
priv->tdms &= ~BIT(dai->driver->id);
sound/soc/fsl/fsl_dma.c
366
container_of(component->driver, struct dma_object, dai);
sound/soc/fsl/fsl_dma.c
57
struct snd_soc_component_driver dai;
sound/soc/fsl/fsl_dma.c
777
container_of(component->driver, struct dma_object, dai);
sound/soc/fsl/fsl_dma.c
857
dma->dai.name = DRV_NAME;
sound/soc/fsl/fsl_dma.c
858
dma->dai.open = fsl_dma_open;
sound/soc/fsl/fsl_dma.c
859
dma->dai.close = fsl_dma_close;
sound/soc/fsl/fsl_dma.c
860
dma->dai.hw_params = fsl_dma_hw_params;
sound/soc/fsl/fsl_dma.c
861
dma->dai.hw_free = fsl_dma_hw_free;
sound/soc/fsl/fsl_dma.c
862
dma->dai.pointer = fsl_dma_pointer;
sound/soc/fsl/fsl_dma.c
863
dma->dai.pcm_construct = fsl_dma_new;
sound/soc/fsl/fsl_dma.c
878
ret = devm_snd_soc_register_component(&pdev->dev, &dma->dai, NULL, 0);
sound/soc/fsl/fsl_easrc.c
1408
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_easrc.c
1416
int cmd, struct snd_soc_dai *dai)
sound/soc/fsl/fsl_easrc.c
1446
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_easrc.c
1448
struct fsl_asrc *easrc = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_easrc.c
1521
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_esai.c
165
static int fsl_esai_divisor_cal(struct snd_soc_dai *dai, bool tx, u32 ratio,
sound/soc/fsl/fsl_esai.c
168
struct fsl_esai *esai_priv = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_esai.c
177
dev_err(dai->dev, "the ratio is out of range (2 ~ %d)\n",
sound/soc/fsl/fsl_esai.c
181
dev_err(dai->dev, "the raio must be even if using upper divider\n");
sound/soc/fsl/fsl_esai.c
229
dev_err(dai->dev, "failed to calculate proper divisors\n");
sound/soc/fsl/fsl_esai.c
259
static int fsl_esai_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/fsl/fsl_esai.c
262
struct fsl_esai *esai_priv = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_esai.c
271
dev_err(dai->dev, "%sput freq of HCK%c should not be 0Hz\n",
sound/soc/fsl/fsl_esai.c
306
dev_err(dai->dev, "no assigned %s clock\n",
sound/soc/fsl/fsl_esai.c
322
dev_err(dai->dev, "failed to derive required HCK%c rate\n",
sound/soc/fsl/fsl_esai.c
334
dev_err(dai->dev, "failed to derive required HCK%c rate\n",
sound/soc/fsl/fsl_esai.c
339
ret = fsl_esai_divisor_cal(dai, tx, ratio, false, 0);
sound/soc/fsl/fsl_esai.c
362
static int fsl_esai_set_bclk(struct snd_soc_dai *dai, bool tx, u32 freq)
sound/soc/fsl/fsl_esai.c
364
struct fsl_esai *esai_priv = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_esai.c
382
dev_err(dai->dev, "failed to derive required SCK%c rate\n",
sound/soc/fsl/fsl_esai.c
389
dev_err(dai->dev, "the ratio is out of range (1 ~ 16)\n");
sound/soc/fsl/fsl_esai.c
393
ret = fsl_esai_divisor_cal(dai, tx, ratio, true,
sound/soc/fsl/fsl_esai.c
404
static int fsl_esai_set_dai_tdm_slot(struct snd_soc_dai *dai, u32 tx_mask,
sound/soc/fsl/fsl_esai.c
407
struct fsl_esai *esai_priv = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_esai.c
423
static int fsl_esai_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/fsl/fsl_esai.c
425
struct fsl_esai *esai_priv = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_esai.c
512
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_esai.c
514
struct fsl_esai *esai_priv = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_esai.c
516
if (!snd_soc_dai_active(dai)) {
sound/soc/fsl/fsl_esai.c
537
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_esai.c
539
struct fsl_esai *esai_priv = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_esai.c
554
ret = fsl_esai_set_bclk(dai, esai_priv->synchronous || tx, bclk);
sound/soc/fsl/fsl_esai.c
758
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_esai.c
760
struct fsl_esai *esai_priv = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_esai.c
788
static int fsl_esai_dai_probe(struct snd_soc_dai *dai)
sound/soc/fsl/fsl_esai.c
790
struct fsl_esai *esai_priv = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_esai.c
792
snd_soc_dai_init_dma_data(dai, &esai_priv->dma_params_tx,
sound/soc/fsl/fsl_micfil.c
595
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_micfil.c
597
struct fsl_micfil *micfil = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_micfil.c
600
dev_err(dai->dev, "micfil dai priv_data not set\n");
sound/soc/fsl/fsl_micfil.c
774
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_micfil.c
776
struct fsl_micfil *micfil = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_micfil.c
858
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_micfil.c
860
struct fsl_micfil *micfil = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_micfil.c
957
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_micfil.c
959
struct fsl_micfil *micfil = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_mqs.c
105
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_mqs.c
107
struct snd_soc_component *component = dai->component;
sound/soc/fsl/fsl_mqs.c
137
static int fsl_mqs_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/fsl/fsl_mqs.c
165
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_mqs.c
167
struct snd_soc_component *component = dai->component;
sound/soc/fsl/fsl_mqs.c
177
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_mqs.c
179
struct snd_soc_component *component = dai->component;
sound/soc/fsl/fsl_qmc_audio.c
347
static unsigned int qmc_dai_get_index(struct snd_soc_dai *dai)
sound/soc/fsl/fsl_qmc_audio.c
349
struct qmc_audio *qmc_audio = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_qmc_audio.c
351
return dai->driver - qmc_audio->dai_drivers;
sound/soc/fsl/fsl_qmc_audio.c
354
static struct qmc_dai *qmc_dai_get_data(struct snd_soc_dai *dai)
sound/soc/fsl/fsl_qmc_audio.c
356
struct qmc_audio *qmc_audio = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_qmc_audio.c
359
index = qmc_dai_get_index(dai);
sound/soc/fsl/fsl_qmc_audio.c
548
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_qmc_audio.c
553
qmc_dai = qmc_dai_get_data(dai);
sound/soc/fsl/fsl_qmc_audio.c
555
dev_err(dai->dev, "Invalid dai\n");
sound/soc/fsl/fsl_qmc_audio.c
568
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_qmc_audio.c
576
qmc_dai = qmc_dai_get_data(dai);
sound/soc/fsl/fsl_qmc_audio.c
578
dev_err(dai->dev, "Invalid dai\n");
sound/soc/fsl/fsl_qmc_audio.c
591
dev_err(dai->dev, "Not enough qmc_chans. Need %u, avail %u\n",
sound/soc/fsl/fsl_qmc_audio.c
602
dev_err(dai->dev, "qmc_chans[%u], set param failed %d\n",
sound/soc/fsl/fsl_qmc_audio.c
616
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_qmc_audio.c
625
qmc_dai = qmc_dai_get_data(dai);
sound/soc/fsl/fsl_qmc_audio.c
627
dev_err(dai->dev, "Invalid dai\n");
sound/soc/fsl/fsl_rpmsg.c
43
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_rpmsg.c
45
struct fsl_rpmsg *rpmsg = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_rpmsg.c
68
dev_warn(dai->dev, "failed to set parent %s: %d\n",
sound/soc/fsl/fsl_rpmsg.c
76
dev_err(dai->dev, "failed to enable mclk: %d\n", ret);
sound/soc/fsl/fsl_rpmsg.c
87
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_rpmsg.c
89
struct fsl_rpmsg *rpmsg = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_sai.c
210
static int fsl_sai_set_dai_bclk_ratio(struct snd_soc_dai *dai,
sound/soc/fsl/fsl_sai.c
213
struct fsl_sai *sai = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_sai.c
250
static int fsl_sai_set_mclk_rate(struct snd_soc_dai *dai, int clk_id, unsigned int freq)
sound/soc/fsl/fsl_sai.c
252
struct fsl_sai *sai = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_sai.c
255
fsl_asoc_reparent_pll_clocks(dai->dev, sai->mclk_clk[clk_id],
sound/soc/fsl/fsl_sai.c
260
dev_err(dai->dev, "failed to set clock rate (%u): %d\n", freq, ret);
sound/soc/fsl/fsl_sai.c
445
static int fsl_sai_set_bclk(struct snd_soc_dai *dai, bool tx, u32 freq)
sound/soc/fsl/fsl_sai.c
447
struct fsl_sai *sai = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_sai.c
491
dev_dbg(dai->dev,
sound/soc/fsl/fsl_sai.c
507
dev_err(dai->dev, "failed to derive required %cx rate: %d\n",
sound/soc/fsl/fsl_sai.c
512
dev_dbg(dai->dev, "best fit: clock id=%d, div=%d, deviation =%d\n",
sound/soc/fsl/fsl_spdif.c
1009
if (snd_soc_dai_active(dai)) {
sound/soc/fsl/fsl_spdif.c
1010
dev_err(dai->dev, "Cannot change BYPASS mode while stream is running.\n");
sound/soc/fsl/fsl_spdif.c
1014
pm_runtime_get_sync(dai->dev);
sound/soc/fsl/fsl_spdif.c
1039
pm_runtime_put_sync(dai->dev);
sound/soc/fsl/fsl_spdif.c
1249
static int fsl_spdif_dai_probe(struct snd_soc_dai *dai)
sound/soc/fsl/fsl_spdif.c
1251
struct fsl_spdif_priv *spdif_private = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_spdif.c
1253
snd_soc_dai_init_dma_data(dai, &spdif_private->dma_params_tx,
sound/soc/fsl/fsl_spdif.c
1256
snd_soc_add_dai_controls(dai, fsl_spdif_ctrls, ARRAY_SIZE(fsl_spdif_ctrls));
sound/soc/fsl/fsl_spdif.c
1259
snd_soc_add_dai_controls(dai, fsl_spdif_ctrls_rcm,
sound/soc/fsl/fsl_spdif.c
1262
spdif_private->snd_card = dai->component->card->snd_card;
sound/soc/fsl/fsl_spdif.c
1263
spdif_private->rxrate_kcontrol = snd_soc_card_get_kcontrol(dai->component->card,
sound/soc/fsl/fsl_spdif.c
700
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_spdif.c
735
int cmd, struct snd_soc_dai *dai)
sound/soc/fsl/fsl_spdif.c
984
struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol);
sound/soc/fsl/fsl_spdif.c
985
struct fsl_spdif_priv *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_spdif.c
995
struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol);
sound/soc/fsl/fsl_spdif.c
996
struct fsl_spdif_priv *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_spdif.c
997
struct snd_soc_card *card = dai->component->card;
sound/soc/fsl/fsl_ssi.c
1038
static int fsl_ssi_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/fsl/fsl_ssi.c
1040
struct fsl_ssi *ssi = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_ssi.c
1057
static int fsl_ssi_set_dai_tdm_slot(struct snd_soc_dai *dai, u32 tx_mask,
sound/soc/fsl/fsl_ssi.c
1060
struct fsl_ssi *ssi = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_ssi.c
1066
dev_err(dai->dev, "invalid slot width: %d\n", slot_width);
sound/soc/fsl/fsl_ssi.c
1072
dev_err(dai->dev, "slot number should be >= 2 in I2S or NET\n");
sound/soc/fsl/fsl_ssi.c
1108
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_ssi.c
1143
static int fsl_ssi_dai_probe(struct snd_soc_dai *dai)
sound/soc/fsl/fsl_ssi.c
1145
struct fsl_ssi *ssi = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_ssi.c
1148
snd_soc_dai_init_dma_data(dai, &ssi->dma_params_tx,
sound/soc/fsl/fsl_ssi.c
635
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_ssi.c
659
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_ssi.c
680
struct snd_soc_dai *dai,
sound/soc/fsl/fsl_ssi.c
684
struct fsl_ssi *ssi = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_ssi.c
719
dev_err(dai->dev, "bitclk > ipgclk / 5\n");
sound/soc/fsl/fsl_ssi.c
768
dev_err(dai->dev, "failed to handle the required sysclk\n");
sound/soc/fsl/fsl_ssi.c
782
dev_err(dai->dev, "failed to set baudclk rate\n");
sound/soc/fsl/fsl_ssi.c
806
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_ssi.c
809
struct fsl_ssi *ssi = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_ssi.c
818
ret = fsl_ssi_set_bclk(substream, dai, hw_params);
sound/soc/fsl/fsl_ssi.c
891
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_utils.c
31
struct snd_soc_dai_link *dai,
sound/soc/fsl/fsl_utils.c
62
snprintf((char *)dai->platforms->name, DAI_NAME_SIZE, "%llx.%pOFn",
sound/soc/fsl/fsl_utils.h
19
struct snd_soc_dai_link *dai,
sound/soc/fsl/fsl_xcvr.c
1023
static int fsl_xcvr_dai_probe(struct snd_soc_dai *dai)
sound/soc/fsl/fsl_xcvr.c
1025
struct fsl_xcvr *xcvr = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_xcvr.c
1027
snd_soc_dai_init_dma_data(dai, &xcvr->dma_prms_tx, &xcvr->dma_prms_rx);
sound/soc/fsl/fsl_xcvr.c
1032
snd_soc_add_dai_controls(dai, &fsl_xcvr_mode_kctl, 1);
sound/soc/fsl/fsl_xcvr.c
1033
snd_soc_add_dai_controls(dai, &fsl_xcvr_arc_mode_kctl, 1);
sound/soc/fsl/fsl_xcvr.c
1034
snd_soc_add_dai_controls(dai, &fsl_xcvr_earc_capds_kctl, 1);
sound/soc/fsl/fsl_xcvr.c
1036
snd_soc_add_dai_controls(dai, fsl_xcvr_tx_ctls,
sound/soc/fsl/fsl_xcvr.c
1038
snd_soc_add_dai_controls(dai, fsl_xcvr_rx_ctls,
sound/soc/fsl/fsl_xcvr.c
114
struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol);
sound/soc/fsl/fsl_xcvr.c
115
struct fsl_xcvr *xcvr = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_xcvr.c
127
struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol);
sound/soc/fsl/fsl_xcvr.c
128
struct fsl_xcvr *xcvr = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_xcvr.c
159
struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol);
sound/soc/fsl/fsl_xcvr.c
160
struct fsl_xcvr *xcvr = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_xcvr.c
170
struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol);
sound/soc/fsl/fsl_xcvr.c
171
struct fsl_xcvr *xcvr = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_xcvr.c
187
static int fsl_xcvr_activate_ctl(struct snd_soc_dai *dai, const char *name,
sound/soc/fsl/fsl_xcvr.c
190
struct snd_soc_card *card = dai->component->card;
sound/soc/fsl/fsl_xcvr.c
217
struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol);
sound/soc/fsl/fsl_xcvr.c
218
struct fsl_xcvr *xcvr = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_xcvr.c
221
struct snd_soc_card *card = dai->component->card;
sound/soc/fsl/fsl_xcvr.c
226
fsl_xcvr_activate_ctl(dai, fsl_xcvr_arc_mode_kctl.name,
sound/soc/fsl/fsl_xcvr.c
228
fsl_xcvr_activate_ctl(dai, fsl_xcvr_earc_capds_kctl.name,
sound/soc/fsl/fsl_xcvr.c
240
struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol);
sound/soc/fsl/fsl_xcvr.c
241
struct fsl_xcvr *xcvr = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_xcvr.c
497
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_xcvr.c
499
struct fsl_xcvr *xcvr = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_xcvr.c
513
dev_err(dai->dev, "Failed to set bypass fem: %d\n", ret);
sound/soc/fsl/fsl_xcvr.c
522
dev_err(dai->dev, "Failed to set TX freq %u: %d\n",
sound/soc/fsl/fsl_xcvr.c
530
dev_err(dai->dev, "Failed to set TX_DPTH: %d\n", ret);
sound/soc/fsl/fsl_xcvr.c
551
dev_err(dai->dev, "Failed to set RX_DPTH: %d\n", ret);
sound/soc/fsl/fsl_xcvr.c
557
dev_err(dai->dev, "Failed to set RX freq %u: %d\n",
sound/soc/fsl/fsl_xcvr.c
570
dev_err(dai->dev, "Failed to set RX_DPTH: %d\n", ret);
sound/soc/fsl/fsl_xcvr.c
579
dev_err(dai->dev, "Failed to clr TX_DPTH: %d\n", ret);
sound/soc/fsl/fsl_xcvr.c
594
dev_err(dai->dev, "Error while setting EXT_CTRL: %d\n", ret);
sound/soc/fsl/fsl_xcvr.c
622
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_xcvr.c
624
struct fsl_xcvr *xcvr = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_xcvr.c
629
dev_err(dai->dev, "%sX busy\n", tx ? "T" : "R");
sound/soc/fsl/fsl_xcvr.c
664
struct snd_soc_card *card = dai->component->card;
sound/soc/fsl/fsl_xcvr.c
668
fsl_xcvr_activate_ctl(dai, fsl_xcvr_mode_kctl.name, false);
sound/soc/fsl/fsl_xcvr.c
669
fsl_xcvr_activate_ctl(dai, fsl_xcvr_arc_mode_kctl.name, false);
sound/soc/fsl/fsl_xcvr.c
670
fsl_xcvr_activate_ctl(dai, fsl_xcvr_earc_capds_kctl.name, false);
sound/soc/fsl/fsl_xcvr.c
678
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_xcvr.c
680
struct fsl_xcvr *xcvr = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_xcvr.c
690
struct snd_soc_card *card = dai->component->card;
sound/soc/fsl/fsl_xcvr.c
693
fsl_xcvr_activate_ctl(dai, fsl_xcvr_mode_kctl.name, true);
sound/soc/fsl/fsl_xcvr.c
694
fsl_xcvr_activate_ctl(dai, fsl_xcvr_arc_mode_kctl.name,
sound/soc/fsl/fsl_xcvr.c
696
fsl_xcvr_activate_ctl(dai, fsl_xcvr_earc_capds_kctl.name,
sound/soc/fsl/fsl_xcvr.c
703
dev_err(dai->dev, "Failed to set IER0: %d\n", ret);
sound/soc/fsl/fsl_xcvr.c
720
dev_err(dai->dev, "Err setting DPATH RESET: %d\n", ret);
sound/soc/fsl/fsl_xcvr.c
726
struct snd_soc_dai *dai)
sound/soc/fsl/fsl_xcvr.c
728
struct fsl_xcvr *xcvr = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_xcvr.c
744
dev_err(dai->dev, "Failed to set DPATH RESET: %d\n", ret);
sound/soc/fsl/fsl_xcvr.c
756
dev_err(dai->dev, "err updating isr %d\n", ret);
sound/soc/fsl/fsl_xcvr.c
765
dev_err(dai->dev, "Failed to start DATA_TX: %d\n", ret);
sound/soc/fsl/fsl_xcvr.c
776
dev_err(dai->dev, "Failed to enable DMA: %d\n", ret);
sound/soc/fsl/fsl_xcvr.c
783
dev_err(dai->dev, "Error while setting IER0: %d\n", ret);
sound/soc/fsl/fsl_xcvr.c
792
dev_err(dai->dev, "Failed to clear DPATH RESET: %d\n", ret);
sound/soc/fsl/fsl_xcvr.c
805
dev_err(dai->dev, "Failed to disable DMA: %d\n", ret);
sound/soc/fsl/fsl_xcvr.c
812
dev_err(dai->dev, "Failed to clear IER0: %d\n", ret);
sound/soc/fsl/fsl_xcvr.c
823
dev_err(dai->dev, "Failed to stop DATA_TX: %d\n", ret);
sound/soc/fsl/fsl_xcvr.c
836
dev_err(dai->dev,
sound/soc/fsl/fsl_xcvr.c
953
struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol);
sound/soc/fsl/fsl_xcvr.c
954
struct fsl_xcvr *xcvr = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_xcvr.c
964
struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol);
sound/soc/fsl/fsl_xcvr.c
965
struct fsl_xcvr *xcvr = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/fsl_xcvr.c
975
struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol);
sound/soc/fsl/fsl_xcvr.c
976
struct fsl_xcvr *xcvr = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/imx-audmix.c
171
priv->dai = devm_kcalloc(&pdev->dev, priv->num_dai,
sound/soc/fsl/imx-audmix.c
173
if (!priv->dai)
sound/soc/fsl/imx-audmix.c
230
priv->dai[i].cpus =
sound/soc/fsl/imx-audmix.c
231
priv->dai[i].platforms = &dlc[0];
sound/soc/fsl/imx-audmix.c
232
priv->dai[i].codecs = &snd_soc_dummy_dlc;
sound/soc/fsl/imx-audmix.c
234
priv->dai[i].num_cpus = 1;
sound/soc/fsl/imx-audmix.c
235
priv->dai[i].num_codecs = 1;
sound/soc/fsl/imx-audmix.c
236
priv->dai[i].num_platforms = 1;
sound/soc/fsl/imx-audmix.c
237
priv->dai[i].name = name[0][i];
sound/soc/fsl/imx-audmix.c
238
priv->dai[i].stream_name = "HiFi-AUDMIX-FE";
sound/soc/fsl/imx-audmix.c
239
priv->dai[i].cpus->of_node = args.np;
sound/soc/fsl/imx-audmix.c
240
priv->dai[i].cpus->dai_name = name[1][i];
sound/soc/fsl/imx-audmix.c
242
priv->dai[i].dynamic = 1;
sound/soc/fsl/imx-audmix.c
244
priv->dai[i].capture_only = 1;
sound/soc/fsl/imx-audmix.c
246
priv->dai[i].playback_only = 1;
sound/soc/fsl/imx-audmix.c
247
priv->dai[i].ignore_pmdown_time = 1;
sound/soc/fsl/imx-audmix.c
248
priv->dai[i].ops = &imx_audmix_fe_ops;
sound/soc/fsl/imx-audmix.c
256
priv->dai[num_dai + i].cpus = &dlc[1];
sound/soc/fsl/imx-audmix.c
257
priv->dai[num_dai + i].codecs = &snd_soc_dummy_dlc;
sound/soc/fsl/imx-audmix.c
259
priv->dai[num_dai + i].num_cpus = 1;
sound/soc/fsl/imx-audmix.c
260
priv->dai[num_dai + i].num_codecs = 1;
sound/soc/fsl/imx-audmix.c
262
priv->dai[num_dai + i].name = be_name;
sound/soc/fsl/imx-audmix.c
263
priv->dai[num_dai + i].cpus->of_node = audmix_np;
sound/soc/fsl/imx-audmix.c
264
priv->dai[num_dai + i].cpus->dai_name = be_name;
sound/soc/fsl/imx-audmix.c
265
priv->dai[num_dai + i].no_pcm = 1;
sound/soc/fsl/imx-audmix.c
267
priv->dai[num_dai + i].capture_only = 1;
sound/soc/fsl/imx-audmix.c
269
priv->dai[num_dai + i].playback_only = 1;
sound/soc/fsl/imx-audmix.c
27
struct snd_soc_dai_link *dai;
sound/soc/fsl/imx-audmix.c
270
priv->dai[num_dai + i].ignore_pmdown_time = 1;
sound/soc/fsl/imx-audmix.c
271
priv->dai[num_dai + i].ops = &imx_audmix_be_ops;
sound/soc/fsl/imx-audmix.c
305
priv->card.dai_link = priv->dai;
sound/soc/fsl/imx-es8328.c
185
data->dai.cpus =
sound/soc/fsl/imx-es8328.c
186
data->dai.platforms = &comp[0];
sound/soc/fsl/imx-es8328.c
187
data->dai.codecs = &comp[1];
sound/soc/fsl/imx-es8328.c
189
data->dai.num_cpus = 1;
sound/soc/fsl/imx-es8328.c
190
data->dai.num_codecs = 1;
sound/soc/fsl/imx-es8328.c
191
data->dai.num_platforms = 1;
sound/soc/fsl/imx-es8328.c
193
data->dai.name = "hifi";
sound/soc/fsl/imx-es8328.c
194
data->dai.stream_name = "hifi";
sound/soc/fsl/imx-es8328.c
195
data->dai.codecs->dai_name = "es8328-hifi-analog";
sound/soc/fsl/imx-es8328.c
196
data->dai.codecs->of_node = codec_np;
sound/soc/fsl/imx-es8328.c
197
data->dai.cpus->of_node = ssi_np;
sound/soc/fsl/imx-es8328.c
198
data->dai.init = &imx_es8328_dai_init;
sound/soc/fsl/imx-es8328.c
199
data->dai.dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF |
sound/soc/fsl/imx-es8328.c
21
struct snd_soc_dai_link dai;
sound/soc/fsl/imx-es8328.c
219
data->card.dai_link = &data->dai;
sound/soc/fsl/imx-hdmi.c
125
data->dai.cpus = &dlc[0];
sound/soc/fsl/imx-hdmi.c
126
data->dai.num_cpus = 1;
sound/soc/fsl/imx-hdmi.c
127
data->dai.platforms = &dlc[1];
sound/soc/fsl/imx-hdmi.c
128
data->dai.num_platforms = 1;
sound/soc/fsl/imx-hdmi.c
129
data->dai.codecs = &dlc[2];
sound/soc/fsl/imx-hdmi.c
130
data->dai.num_codecs = 1;
sound/soc/fsl/imx-hdmi.c
132
data->dai.name = "i.MX HDMI";
sound/soc/fsl/imx-hdmi.c
133
data->dai.stream_name = "i.MX HDMI";
sound/soc/fsl/imx-hdmi.c
134
data->dai.cpus->of_node = cpu_np;
sound/soc/fsl/imx-hdmi.c
135
data->dai.platforms->of_node = cpu_np;
sound/soc/fsl/imx-hdmi.c
136
data->dai.ops = &imx_hdmi_ops;
sound/soc/fsl/imx-hdmi.c
137
data->dai.playback_only = true;
sound/soc/fsl/imx-hdmi.c
138
data->dai.capture_only = false;
sound/soc/fsl/imx-hdmi.c
139
data->dai.init = imx_hdmi_init;
sound/soc/fsl/imx-hdmi.c
161
data->dai.playback_only = true;
sound/soc/fsl/imx-hdmi.c
162
data->dai.capture_only = false;
sound/soc/fsl/imx-hdmi.c
163
data->dai.codecs->dai_name = "i2s-hifi";
sound/soc/fsl/imx-hdmi.c
164
data->dai.codecs->name = "hdmi-audio-codec.1";
sound/soc/fsl/imx-hdmi.c
165
data->dai.dai_fmt = data->dai_fmt |
sound/soc/fsl/imx-hdmi.c
171
data->dai.playback_only = false;
sound/soc/fsl/imx-hdmi.c
172
data->dai.capture_only = true;
sound/soc/fsl/imx-hdmi.c
173
data->dai.codecs->dai_name = "i2s-hifi";
sound/soc/fsl/imx-hdmi.c
174
data->dai.codecs->name = "hdmi-audio-codec.2";
sound/soc/fsl/imx-hdmi.c
175
data->dai.dai_fmt = data->dai_fmt |
sound/soc/fsl/imx-hdmi.c
189
data->card.dai_link = &data->dai;
sound/soc/fsl/imx-hdmi.c
24
struct snd_soc_dai_link dai;
sound/soc/fsl/imx-rpmsg.c
126
data->dai.cpus = &dlc[0];
sound/soc/fsl/imx-rpmsg.c
127
data->dai.num_cpus = 1;
sound/soc/fsl/imx-rpmsg.c
128
data->dai.platforms = &dlc[1];
sound/soc/fsl/imx-rpmsg.c
129
data->dai.num_platforms = 1;
sound/soc/fsl/imx-rpmsg.c
130
data->dai.codecs = &dlc[2];
sound/soc/fsl/imx-rpmsg.c
131
data->dai.num_codecs = 1;
sound/soc/fsl/imx-rpmsg.c
133
data->dai.name = "rpmsg hifi";
sound/soc/fsl/imx-rpmsg.c
134
data->dai.stream_name = "rpmsg hifi";
sound/soc/fsl/imx-rpmsg.c
135
data->dai.dai_fmt = SND_SOC_DAIFMT_I2S |
sound/soc/fsl/imx-rpmsg.c
145
data->dai.ignore_pmdown_time = 1;
sound/soc/fsl/imx-rpmsg.c
147
data->dai.cpus->dai_name = pdev->dev.platform_data;
sound/soc/fsl/imx-rpmsg.c
148
cpu_dai = snd_soc_find_dai_with_mutex(data->dai.cpus);
sound/soc/fsl/imx-rpmsg.c
167
*data->dai.codecs = snd_soc_dummy_dlc;
sound/soc/fsl/imx-rpmsg.c
171
ret = snd_soc_get_dlc(&args, data->dai.codecs);
sound/soc/fsl/imx-rpmsg.c
18
struct snd_soc_dai_link dai;
sound/soc/fsl/imx-rpmsg.c
183
data->dai.platforms->name = platform_name;
sound/soc/fsl/imx-rpmsg.c
185
data->dai.platforms->name = "rpmsg-audio-channel";
sound/soc/fsl/imx-rpmsg.c
186
data->dai.playback_only = true;
sound/soc/fsl/imx-rpmsg.c
187
data->dai.capture_only = true;
sound/soc/fsl/imx-rpmsg.c
189
data->card.dai_link = &data->dai;
sound/soc/fsl/imx-rpmsg.c
192
data->dai.capture_only = false;
sound/soc/fsl/imx-rpmsg.c
195
data->dai.playback_only = false;
sound/soc/fsl/imx-rpmsg.c
197
if (data->dai.playback_only && data->dai.capture_only) {
sound/soc/fsl/imx-rpmsg.c
48
codec_np = data->dai.codecs->of_node;
sound/soc/fsl/imx-sgtl5000.c
140
data->dai.cpus = &comp[0];
sound/soc/fsl/imx-sgtl5000.c
141
data->dai.codecs = &comp[1];
sound/soc/fsl/imx-sgtl5000.c
142
data->dai.platforms = &comp[2];
sound/soc/fsl/imx-sgtl5000.c
144
data->dai.num_cpus = 1;
sound/soc/fsl/imx-sgtl5000.c
145
data->dai.num_codecs = 1;
sound/soc/fsl/imx-sgtl5000.c
146
data->dai.num_platforms = 1;
sound/soc/fsl/imx-sgtl5000.c
148
data->dai.name = "HiFi";
sound/soc/fsl/imx-sgtl5000.c
149
data->dai.stream_name = "HiFi";
sound/soc/fsl/imx-sgtl5000.c
150
data->dai.codecs->dai_name = "sgtl5000";
sound/soc/fsl/imx-sgtl5000.c
151
data->dai.codecs->of_node = codec_np;
sound/soc/fsl/imx-sgtl5000.c
152
data->dai.cpus->of_node = ssi_np;
sound/soc/fsl/imx-sgtl5000.c
153
data->dai.platforms->of_node = ssi_np;
sound/soc/fsl/imx-sgtl5000.c
154
data->dai.init = &imx_sgtl5000_dai_init;
sound/soc/fsl/imx-sgtl5000.c
155
data->dai.dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF |
sound/soc/fsl/imx-sgtl5000.c
167
data->card.dai_link = &data->dai;
sound/soc/fsl/imx-sgtl5000.c
19
struct snd_soc_dai_link dai;
sound/soc/fsl/lpc3xxx-i2s.c
251
static int lpc3xxx_i2s_dai_probe(struct snd_soc_dai *dai)
sound/soc/fsl/lpc3xxx-i2s.c
253
struct lpc3xxx_i2s_info *i2s_info_p = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/lpc3xxx-i2s.c
255
snd_soc_dai_init_dma_data(dai, &i2s_info_p->playback_dma_config,
sound/soc/fsl/mpc5200_dma.c
288
struct snd_soc_dai *dai = snd_soc_rtd_to_cpu(rtd, 0);
sound/soc/fsl/mpc5200_dma.c
294
card, dai, pcm);
sound/soc/fsl/mpc5200_psc_ac97.c
176
struct snd_soc_dai *dai)
sound/soc/fsl/mpc5200_psc_ac97.c
178
struct psc_dma *psc_dma = snd_soc_dai_get_drvdata(dai);
sound/soc/fsl/mpc5200_psc_i2s.c
38
struct snd_soc_dai *dai)
sound/soc/fsl/p1022_ds.c
226
mdata->dai[0].cpus = &comp[0];
sound/soc/fsl/p1022_ds.c
227
mdata->dai[0].codecs = &comp[1];
sound/soc/fsl/p1022_ds.c
228
mdata->dai[0].platforms = &comp[2];
sound/soc/fsl/p1022_ds.c
230
mdata->dai[0].num_cpus = 1;
sound/soc/fsl/p1022_ds.c
231
mdata->dai[0].num_codecs = 1;
sound/soc/fsl/p1022_ds.c
232
mdata->dai[0].num_platforms = 1;
sound/soc/fsl/p1022_ds.c
234
mdata->dai[1].cpus = &comp[3];
sound/soc/fsl/p1022_ds.c
235
mdata->dai[1].codecs = &comp[4];
sound/soc/fsl/p1022_ds.c
236
mdata->dai[1].platforms = &comp[5];
sound/soc/fsl/p1022_ds.c
238
mdata->dai[1].num_cpus = 1;
sound/soc/fsl/p1022_ds.c
239
mdata->dai[1].num_codecs = 1;
sound/soc/fsl/p1022_ds.c
240
mdata->dai[1].num_platforms = 1;
sound/soc/fsl/p1022_ds.c
243
mdata->dai[0].cpus->dai_name = dev_name(&ssi_pdev->dev);
sound/soc/fsl/p1022_ds.c
244
mdata->dai[0].ops = &p1022_ds_ops;
sound/soc/fsl/p1022_ds.c
247
mdata->dai[0].codecs->of_node = codec_np;
sound/soc/fsl/p1022_ds.c
253
memcpy(&mdata->dai[1], &mdata->dai[0], sizeof(struct snd_soc_dai_link));
sound/soc/fsl/p1022_ds.c
256
mdata->dai[0].codecs->dai_name = "wm8776-hifi-playback";
sound/soc/fsl/p1022_ds.c
257
mdata->dai[1].codecs->dai_name = "wm8776-hifi-capture";
sound/soc/fsl/p1022_ds.c
343
mdata->dai[0].platforms->name = mdata->platform_name[0];
sound/soc/fsl/p1022_ds.c
344
ret = fsl_asoc_get_dma_channel(np, "fsl,playback-dma", &mdata->dai[0],
sound/soc/fsl/p1022_ds.c
353
mdata->dai[1].platforms->name = mdata->platform_name[1];
sound/soc/fsl/p1022_ds.c
354
ret = fsl_asoc_get_dma_channel(np, "fsl,capture-dma", &mdata->dai[1],
sound/soc/fsl/p1022_ds.c
363
mdata->dai[0].stream_name = "playback";
sound/soc/fsl/p1022_ds.c
364
mdata->dai[1].stream_name = "capture";
sound/soc/fsl/p1022_ds.c
365
mdata->dai[0].name = mdata->dai[0].stream_name;
sound/soc/fsl/p1022_ds.c
366
mdata->dai[1].name = mdata->dai[1].stream_name;
sound/soc/fsl/p1022_ds.c
374
mdata->card.dai_link = mdata->dai;
sound/soc/fsl/p1022_ds.c
64
struct snd_soc_dai_link dai[2];
sound/soc/fsl/p1022_rdk.c
241
mdata->dai[0].cpus = &comp[0];
sound/soc/fsl/p1022_rdk.c
242
mdata->dai[0].codecs = &comp[1];
sound/soc/fsl/p1022_rdk.c
243
mdata->dai[0].platforms = &comp[2];
sound/soc/fsl/p1022_rdk.c
245
mdata->dai[0].num_cpus = 1;
sound/soc/fsl/p1022_rdk.c
246
mdata->dai[0].num_codecs = 1;
sound/soc/fsl/p1022_rdk.c
247
mdata->dai[0].num_platforms = 1;
sound/soc/fsl/p1022_rdk.c
249
mdata->dai[1].cpus = &comp[3];
sound/soc/fsl/p1022_rdk.c
250
mdata->dai[1].codecs = &comp[4];
sound/soc/fsl/p1022_rdk.c
251
mdata->dai[1].platforms = &comp[5];
sound/soc/fsl/p1022_rdk.c
253
mdata->dai[1].num_cpus = 1;
sound/soc/fsl/p1022_rdk.c
254
mdata->dai[1].num_codecs = 1;
sound/soc/fsl/p1022_rdk.c
255
mdata->dai[1].num_platforms = 1;
sound/soc/fsl/p1022_rdk.c
257
mdata->dai[0].cpus->dai_name = dev_name(&ssi_pdev->dev);
sound/soc/fsl/p1022_rdk.c
258
mdata->dai[0].ops = &p1022_rdk_ops;
sound/soc/fsl/p1022_rdk.c
261
mdata->dai[0].codecs->of_node = codec_np;
sound/soc/fsl/p1022_rdk.c
268
memcpy(&mdata->dai[1], &mdata->dai[0], sizeof(struct snd_soc_dai_link));
sound/soc/fsl/p1022_rdk.c
271
mdata->dai[0].codecs->dai_name = "wm8960-hifi";
sound/soc/fsl/p1022_rdk.c
272
mdata->dai[1].codecs->dai_name = mdata->dai[0].codecs->dai_name;
sound/soc/fsl/p1022_rdk.c
304
mdata->dai[0].platforms->name = mdata->platform_name[0];
sound/soc/fsl/p1022_rdk.c
305
ret = fsl_asoc_get_dma_channel(np, "fsl,playback-dma", &mdata->dai[0],
sound/soc/fsl/p1022_rdk.c
315
mdata->dai[1].platforms->name = mdata->platform_name[1];
sound/soc/fsl/p1022_rdk.c
316
ret = fsl_asoc_get_dma_channel(np, "fsl,capture-dma", &mdata->dai[1],
sound/soc/fsl/p1022_rdk.c
326
mdata->dai[0].stream_name = "playback";
sound/soc/fsl/p1022_rdk.c
327
mdata->dai[1].stream_name = "capture";
sound/soc/fsl/p1022_rdk.c
328
mdata->dai[0].name = mdata->dai[0].stream_name;
sound/soc/fsl/p1022_rdk.c
329
mdata->dai[1].name = mdata->dai[1].stream_name;
sound/soc/fsl/p1022_rdk.c
337
mdata->card.dai_link = mdata->dai;
sound/soc/fsl/p1022_rdk.c
71
struct snd_soc_dai_link dai[2];
sound/soc/generic/audio-graph-card.c
110
struct simple_util_dai *dai;
sound/soc/generic/audio-graph-card.c
115
dai = simple_props_to_dai_cpu(dai_props, 0);
sound/soc/generic/audio-graph-card.c
118
dai = simple_props_to_dai_codec(dai_props, 0);
sound/soc/generic/audio-graph-card.c
125
ret = simple_util_parse_tdm(ep, dai);
sound/soc/generic/audio-graph-card.c
129
ret = simple_util_parse_clk(dev, ep, dai, dlc);
sound/soc/generic/audio-graph-card.c
77
struct snd_soc_dai *dai = snd_soc_find_dai_with_mutex(dlc);
sound/soc/generic/audio-graph-card.c
79
if (dai && (dai->component->driver->pcm_construct ||
sound/soc/generic/audio-graph-card.c
80
(dai->driver->ops && dai->driver->ops->pcm_new)))
sound/soc/generic/audio-graph-card2.c
408
struct simple_util_dai *dai;
sound/soc/generic/audio-graph-card2.c
413
dai = simple_props_to_dai_cpu(dai_props, idx);
sound/soc/generic/audio-graph-card2.c
416
dai = simple_props_to_dai_codec(dai_props, idx);
sound/soc/generic/audio-graph-card2.c
423
ret = simple_util_parse_tdm(ep, dai);
sound/soc/generic/audio-graph-card2.c
427
ret = simple_util_parse_tdm_width_map(priv, ep, dai);
sound/soc/generic/audio-graph-card2.c
431
ret = simple_util_parse_clk(dev, ep, dai, dlc);
sound/soc/generic/simple-card-utils.c
1112
struct snd_soc_dai *dai;
sound/soc/generic/simple-card-utils.c
1124
dai = snd_soc_get_dai_via_args(&args);
sound/soc/generic/simple-card-utils.c
1125
if (dai) {
sound/soc/generic/simple-card-utils.c
1126
const char *dai_name = snd_soc_dai_name_get(dai);
sound/soc/generic/simple-card-utils.c
144
struct simple_util_dai *dai)
sound/soc/generic/simple-card-utils.c
167
dai->tdm_width_map = devm_kcalloc(dev, n, sizeof(*dai->tdm_width_map), GFP_KERNEL);
sound/soc/generic/simple-card-utils.c
168
if (!dai->tdm_width_map)
sound/soc/generic/simple-card-utils.c
183
dai->tdm_width_map[i].sample_bits = *p++;
sound/soc/generic/simple-card-utils.c
184
dai->tdm_width_map[i].slot_width = *p++;
sound/soc/generic/simple-card-utils.c
185
dai->tdm_width_map[i].slot_count = *p++;
sound/soc/generic/simple-card-utils.c
188
dai->n_tdm_widths = i;
sound/soc/generic/simple-card-utils.c
246
static int simple_clk_enable(struct simple_util_dai *dai)
sound/soc/generic/simple-card-utils.c
248
if (dai)
sound/soc/generic/simple-card-utils.c
249
return clk_prepare_enable(dai->clk);
sound/soc/generic/simple-card-utils.c
254
static void simple_clk_disable(struct simple_util_dai *dai)
sound/soc/generic/simple-card-utils.c
256
if (dai)
sound/soc/generic/simple-card-utils.c
257
clk_disable_unprepare(dai->clk);
sound/soc/generic/simple-card-utils.c
298
struct simple_util_dai *dai,
sound/soc/generic/simple-card-utils.c
301
if (dai->clk_fixed) {
sound/soc/generic/simple-card-utils.c
302
if (*fixed_sysclk && *fixed_sysclk != dai->sysclk) {
sound/soc/generic/simple-card-utils.c
304
*fixed_sysclk, dai->sysclk);
sound/soc/generic/simple-card-utils.c
307
*fixed_sysclk = dai->sysclk;
sound/soc/generic/simple-card-utils.c
318
struct simple_util_dai *dai;
sound/soc/generic/simple-card-utils.c
323
for_each_prop_dai_cpu(props, i1, dai) {
sound/soc/generic/simple-card-utils.c
324
ret = simple_clk_enable(dai);
sound/soc/generic/simple-card-utils.c
327
ret = simple_check_fixed_sysclk(rtd->dev, dai, &fixed_sysclk);
sound/soc/generic/simple-card-utils.c
332
for_each_prop_dai_codec(props, i2, dai) {
sound/soc/generic/simple-card-utils.c
333
ret = simple_clk_enable(dai);
sound/soc/generic/simple-card-utils.c
336
ret = simple_check_fixed_sysclk(rtd->dev, dai, &fixed_sysclk);
sound/soc/generic/simple-card-utils.c
359
for_each_prop_dai_codec(props, i, dai) {
sound/soc/generic/simple-card-utils.c
362
simple_clk_disable(dai);
sound/soc/generic/simple-card-utils.c
365
for_each_prop_dai_cpu(props, i, dai) {
sound/soc/generic/simple-card-utils.c
368
simple_clk_disable(dai);
sound/soc/generic/simple-card-utils.c
380
struct simple_util_dai *dai;
sound/soc/generic/simple-card-utils.c
383
for_each_prop_dai_cpu(props, i, dai) {
sound/soc/generic/simple-card-utils.c
386
if (props->mclk_fs && !dai->clk_fixed && !snd_soc_dai_active(cpu_dai))
sound/soc/generic/simple-card-utils.c
387
snd_soc_dai_set_sysclk(cpu_dai, 0, 0, dai->clk_direction);
sound/soc/generic/simple-card-utils.c
389
simple_clk_disable(dai);
sound/soc/generic/simple-card-utils.c
391
for_each_prop_dai_codec(props, i, dai) {
sound/soc/generic/simple-card-utils.c
394
if (props->mclk_fs && !dai->clk_fixed && !snd_soc_dai_active(codec_dai))
sound/soc/generic/simple-card-utils.c
395
snd_soc_dai_set_sysclk(codec_dai, 0, 0, dai->clk_direction);
sound/soc/generic/simple-card-utils.c
397
simple_clk_disable(dai);
sound/soc/generic/simple-card-utils.c
429
struct snd_soc_dai *dai,
sound/soc/generic/simple-card-utils.c
454
ret = snd_soc_dai_set_tdm_slot(dai,
sound/soc/generic/simple-card-utils.c
563
struct snd_soc_dai *dai, struct simple_util_dai *simple_dai)
sound/soc/generic/simple-card-utils.c
571
ret = snd_soc_dai_set_sysclk(dai, 0, simple_dai->sysclk,
sound/soc/generic/simple-card-utils.c
574
dev_err(dai->dev, "simple-card: set_sysclk error\n");
sound/soc/generic/simple-card-utils.c
580
ret = snd_soc_dai_set_tdm_slot(dai,
sound/soc/generic/simple-card-utils.c
586
dev_err(dai->dev, "simple-card: set_tdm_slot error\n");
sound/soc/generic/simple-card-utils.c
660
struct simple_util_dai *dai;
sound/soc/generic/simple-card-utils.c
663
for_each_prop_dai_codec(props, i, dai) {
sound/soc/generic/simple-card-utils.c
664
ret = simple_init_dai(priv, snd_soc_rtd_to_codec(rtd, i), dai);
sound/soc/generic/simple-card-utils.c
668
for_each_prop_dai_cpu(props, i, dai) {
sound/soc/generic/simple-card-utils.c
669
ret = simple_init_dai(priv, snd_soc_rtd_to_cpu(rtd, i), dai);
sound/soc/generic/simple-card.c
153
struct simple_util_dai *dai;
sound/soc/generic/simple-card.c
158
dai = simple_props_to_dai_cpu(dai_props, 0);
sound/soc/generic/simple-card.c
161
dai = simple_props_to_dai_codec(dai_props, 0);
sound/soc/generic/simple-card.c
168
ret = simple_util_parse_clk(dev, np, dai, dlc);
sound/soc/generic/simple-card.c
172
ret = simple_util_parse_tdm(np, dai);
sound/soc/generic/simple-card.c
71
struct snd_soc_dai *dai;
sound/soc/generic/simple-card.c
88
dai = snd_soc_get_dai_via_args(&args);
sound/soc/generic/simple-card.c
89
if (dai) {
sound/soc/generic/simple-card.c
91
dlc->dai_name = snd_soc_dai_name_get(dai);
sound/soc/generic/test-component.c
104
dev_info(dai->dev, "clock : %s", str);
sound/soc/generic/test-component.c
121
dev_info(dai->dev, "clock : codec is %s", str);
sound/soc/generic/test-component.c
138
dev_info(dai->dev, "signal : %s", str);
sound/soc/generic/test-component.c
143
static int test_dai_set_tdm_slot(struct snd_soc_dai *dai,
sound/soc/generic/test-component.c
147
dev_info(dai->dev, "set tdm slot: tx_mask=0x%08X, rx_mask=0x%08X, slots=%d, slot_width=%d\n",
sound/soc/generic/test-component.c
152
static int test_dai_mute_stream(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/generic/test-component.c
154
mile_stone(dai);
sound/soc/generic/test-component.c
159
static int test_dai_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/generic/test-component.c
161
mile_stone(dai);
sound/soc/generic/test-component.c
166
static void test_dai_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/generic/test-component.c
168
mile_stone(dai);
sound/soc/generic/test-component.c
172
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/generic/test-component.c
174
mile_stone(dai);
sound/soc/generic/test-component.c
179
static int test_dai_hw_free(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/generic/test-component.c
181
mile_stone(dai);
sound/soc/generic/test-component.c
186
static int test_dai_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai)
sound/soc/generic/test-component.c
188
mile_stone(dai);
sound/soc/generic/test-component.c
41
static int test_dai_set_sysclk(struct snd_soc_dai *dai,
sound/soc/generic/test-component.c
44
mile_stone(dai);
sound/soc/generic/test-component.c
49
static int test_dai_set_pll(struct snd_soc_dai *dai, int pll_id, int source,
sound/soc/generic/test-component.c
52
mile_stone(dai);
sound/soc/generic/test-component.c
57
static int test_dai_set_clkdiv(struct snd_soc_dai *dai, int div_id, int div)
sound/soc/generic/test-component.c
59
mile_stone(dai);
sound/soc/generic/test-component.c
64
static int test_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/generic/test-component.c
72
dev_info(dai->dev, "name : %s", dai->name);
sound/soc/generic/test-component.c
98
dev_info(dai->dev, "format : %s", str);
sound/soc/hisilicon/hi6210-i2s.c
38
struct snd_soc_dai_driver dai;
sound/soc/hisilicon/hi6210-i2s.c
500
static int hi6210_i2s_dai_probe(struct snd_soc_dai *dai)
sound/soc/hisilicon/hi6210-i2s.c
502
struct hi6210_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/hisilicon/hi6210-i2s.c
504
snd_soc_dai_init_dma_data(dai,
sound/soc/hisilicon/hi6210-i2s.c
564
i2s->dai = hi6210_i2s_dai_init;
sound/soc/hisilicon/hi6210-i2s.c
588
&i2s->dai, 1);
sound/soc/img/img-i2s-in.c
161
struct snd_soc_dai *dai)
sound/soc/img/img-i2s-in.c
163
struct img_i2s_in *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/img/img-i2s-in.c
215
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/img/img-i2s-in.c
217
struct img_i2s_in *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/img/img-i2s-in.c
302
static int img_i2s_in_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/img/img-i2s-in.c
304
struct img_i2s_in *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/img/img-i2s-in.c
373
static int img_i2s_in_dai_probe(struct snd_soc_dai *dai)
sound/soc/img/img-i2s-in.c
375
struct img_i2s_in *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/img/img-i2s-in.c
377
snd_soc_dai_init_dma_data(dai, NULL, &i2s->dma_data);
sound/soc/img/img-i2s-out.c
186
struct snd_soc_dai *dai)
sound/soc/img/img-i2s-out.c
188
struct img_i2s_out *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/img/img-i2s-out.c
214
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/img/img-i2s-out.c
216
struct img_i2s_out *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/img/img-i2s-out.c
291
static int img_i2s_out_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/img/img-i2s-out.c
293
struct img_i2s_out *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/img/img-i2s-out.c
379
static int img_i2s_out_dai_probe(struct snd_soc_dai *dai)
sound/soc/img/img-i2s-out.c
381
struct img_i2s_out *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/img/img-i2s-out.c
383
snd_soc_dai_init_dma_data(dai, &i2s->dma_data, NULL);
sound/soc/img/img-parallel-out.c
118
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/img/img-parallel-out.c
120
struct img_prl_out *prl = snd_soc_dai_get_drvdata(dai);
sound/soc/img/img-parallel-out.c
149
static int img_prl_out_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/img/img-parallel-out.c
151
struct img_prl_out *prl = snd_soc_dai_get_drvdata(dai);
sound/soc/img/img-parallel-out.c
177
static int img_prl_out_dai_probe(struct snd_soc_dai *dai)
sound/soc/img/img-parallel-out.c
179
struct img_prl_out *prl = snd_soc_dai_get_drvdata(dai);
sound/soc/img/img-parallel-out.c
181
snd_soc_dai_init_dma_data(dai, &prl->dma_data, NULL);
sound/soc/img/img-parallel-out.c
92
struct snd_soc_dai *dai)
sound/soc/img/img-parallel-out.c
94
struct img_prl_out *prl = snd_soc_dai_get_drvdata(dai);
sound/soc/img/img-spdif-in.c
626
struct snd_soc_dai *dai)
sound/soc/img/img-spdif-in.c
629
struct img_spdif_in *spdif = snd_soc_dai_get_drvdata(dai);
sound/soc/img/img-spdif-in.c
666
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/img/img-spdif-in.c
668
struct img_spdif_in *spdif = snd_soc_dai_get_drvdata(dai);
sound/soc/img/img-spdif-in.c
685
static int img_spdif_in_dai_probe(struct snd_soc_dai *dai)
sound/soc/img/img-spdif-in.c
687
struct img_spdif_in *spdif = snd_soc_dai_get_drvdata(dai);
sound/soc/img/img-spdif-in.c
689
snd_soc_dai_init_dma_data(dai, NULL, &spdif->dma_data);
sound/soc/img/img-spdif-in.c
691
snd_soc_add_dai_controls(dai, img_spdif_in_controls,
sound/soc/img/img-spdif-out.c
204
struct snd_soc_dai *dai)
sound/soc/img/img-spdif-out.c
206
struct img_spdif_out *spdif = snd_soc_dai_get_drvdata(dai);
sound/soc/img/img-spdif-out.c
233
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/img/img-spdif-out.c
235
struct img_spdif_out *spdif = snd_soc_dai_get_drvdata(dai);
sound/soc/img/img-spdif-out.c
290
static int img_spdif_out_dai_probe(struct snd_soc_dai *dai)
sound/soc/img/img-spdif-out.c
292
struct img_spdif_out *spdif = snd_soc_dai_get_drvdata(dai);
sound/soc/img/img-spdif-out.c
294
snd_soc_dai_init_dma_data(dai, &spdif->dma_data, NULL);
sound/soc/img/img-spdif-out.c
296
snd_soc_add_dai_controls(dai, img_spdif_out_controls,
sound/soc/intel/atom/sst-atom-controls.c
1327
int sst_send_pipe_gains(struct snd_soc_dai *dai, int stream, int mute)
sound/soc/intel/atom/sst-atom-controls.c
1329
struct sst_data *drv = snd_soc_dai_get_drvdata(dai);
sound/soc/intel/atom/sst-atom-controls.c
1330
struct snd_soc_dapm_widget *w = snd_soc_dai_get_widget(dai, stream);
sound/soc/intel/atom/sst-atom-controls.c
1333
dev_dbg(dai->dev, "enter, dai-name=%s dir=%d\n", dai->name, stream);
sound/soc/intel/atom/sst-atom-controls.c
1334
dev_dbg(dai->dev, "Stream name=%s\n", w->name);
sound/soc/intel/atom/sst-atom-controls.c
1345
dev_dbg(dai->dev, "send gains for widget=%s\n",
sound/soc/intel/atom/sst-atom-controls.c
1361
dev_dbg(dai->dev, "send gain for widget=%s\n",
sound/soc/intel/atom/sst-atom-controls.c
742
int sst_handle_vb_timer(struct snd_soc_dai *dai, bool enable)
sound/soc/intel/atom/sst-atom-controls.c
746
struct sst_data *drv = snd_soc_dai_get_drvdata(dai);
sound/soc/intel/atom/sst-atom-controls.c
753
dev_dbg(dai->dev, "enable=%u, usage=%d\n", enable, timer_usage);
sound/soc/intel/atom/sst-atom-controls.c
791
int sst_fill_ssp_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/intel/atom/sst-atom-controls.c
794
struct sst_data *ctx = snd_soc_dai_get_drvdata(dai);
sound/soc/intel/atom/sst-atom-controls.c
804
static int sst_get_frame_sync_polarity(struct snd_soc_dai *dai,
sound/soc/intel/atom/sst-atom-controls.c
810
dev_dbg(dai->dev, "Enter:%s, format=%x\n", __func__, format);
sound/soc/intel/atom/sst-atom-controls.c
820
dev_err(dai->dev, "Invalid frame sync polarity %d\n", format);
sound/soc/intel/atom/sst-atom-controls.c
826
static int sst_get_ssp_mode(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/intel/atom/sst-atom-controls.c
831
dev_dbg(dai->dev, "Enter:%s, format=%x\n", __func__, format);
sound/soc/intel/atom/sst-atom-controls.c
839
dev_err(dai->dev, "Invalid ssp protocol: %d\n", format);
sound/soc/intel/atom/sst-atom-controls.c
846
int sst_fill_ssp_config(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/intel/atom/sst-atom-controls.c
850
struct sst_data *ctx = snd_soc_dai_get_drvdata(dai);
sound/soc/intel/atom/sst-atom-controls.c
857
ctx->ssp_cmd.mode = sst_get_ssp_mode(dai, fmt) | (SSP_PCM_MODE_NETWORK << 1);
sound/soc/intel/atom/sst-atom-controls.c
865
ctx->ssp_cmd.mode = sst_get_ssp_mode(dai, fmt) | (SSP_PCM_MODE_NETWORK << 1);
sound/soc/intel/atom/sst-atom-controls.c
873
ctx->ssp_cmd.mode = sst_get_ssp_mode(dai, fmt) | (SSP_PCM_MODE_NORMAL << 1);
sound/soc/intel/atom/sst-atom-controls.c
881
ctx->ssp_cmd.mode = sst_get_ssp_mode(dai, fmt) | (SSP_PCM_MODE_NORMAL << 1);
sound/soc/intel/atom/sst-atom-controls.c
888
dev_dbg(dai->dev, "using default ssp configs\n");
sound/soc/intel/atom/sst-atom-controls.c
891
fs_polarity = sst_get_frame_sync_polarity(dai, fmt);
sound/soc/intel/atom/sst-atom-controls.c
920
void sst_fill_ssp_defaults(struct snd_soc_dai *dai)
sound/soc/intel/atom/sst-atom-controls.c
923
struct sst_data *ctx = snd_soc_dai_get_drvdata(dai);
sound/soc/intel/atom/sst-atom-controls.c
943
int send_ssp_cmd(struct snd_soc_dai *dai, const char *id, bool enable)
sound/soc/intel/atom/sst-atom-controls.c
945
struct sst_data *drv = snd_soc_dai_get_drvdata(dai);
sound/soc/intel/atom/sst-atom-controls.c
948
dev_dbg(dai->dev, "Enter: enable=%d port_name=%s\n", enable, id);
sound/soc/intel/atom/sst-atom-controls.c
955
dev_dbg(dai->dev, "port %s is not supported\n", id);
sound/soc/intel/atom/sst-atom-controls.c
965
dev_dbg(dai->dev, "ssp_id: %u\n", ssp_id);
sound/soc/intel/atom/sst-atom-controls.h
870
int sst_fill_ssp_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/intel/atom/sst-atom-controls.h
872
int sst_fill_ssp_config(struct snd_soc_dai *dai, unsigned int fmt);
sound/soc/intel/atom/sst-atom-controls.h
873
void sst_fill_ssp_defaults(struct snd_soc_dai *dai);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
223
struct snd_soc_dai *dai)
sound/soc/intel/atom/sst-mfld-platform-pcm.c
231
struct sst_data *ctx = snd_soc_dai_get_drvdata(dai);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
303
struct snd_soc_dai *dai)
sound/soc/intel/atom/sst-mfld-platform-pcm.c
318
dev_err(dai->dev, "no device available to run\n");
sound/soc/intel/atom/sst-mfld-platform-pcm.c
360
struct snd_soc_dai *dai)
sound/soc/intel/atom/sst-mfld-platform-pcm.c
376
struct snd_soc_dai *dai)
sound/soc/intel/atom/sst-mfld-platform-pcm.c
388
ret_val = sst_platform_alloc_stream(substream, dai);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
402
struct snd_soc_dai *dai)
sound/soc/intel/atom/sst-mfld-platform-pcm.c
406
if (!snd_soc_dai_active(dai)) {
sound/soc/intel/atom/sst-mfld-platform-pcm.c
407
ret = sst_handle_vb_timer(dai, true);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
408
sst_fill_ssp_defaults(dai);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
415
struct snd_soc_dai *dai)
sound/soc/intel/atom/sst-mfld-platform-pcm.c
419
if (snd_soc_dai_active(dai) == 1)
sound/soc/intel/atom/sst-mfld-platform-pcm.c
420
ret = send_ssp_cmd(dai, dai->name, 1);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
424
static int sst_set_format(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/intel/atom/sst-mfld-platform-pcm.c
428
if (!snd_soc_dai_active(dai))
sound/soc/intel/atom/sst-mfld-platform-pcm.c
431
ret = sst_fill_ssp_config(dai, fmt);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
433
dev_err(dai->dev, "sst_set_format failed..\n");
sound/soc/intel/atom/sst-mfld-platform-pcm.c
438
static int sst_platform_set_ssp_slot(struct snd_soc_dai *dai,
sound/soc/intel/atom/sst-mfld-platform-pcm.c
443
if (!snd_soc_dai_active(dai))
sound/soc/intel/atom/sst-mfld-platform-pcm.c
446
ret = sst_fill_ssp_slot(dai, tx_mask, rx_mask, slots, slot_width);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
448
dev_err(dai->dev, "sst_fill_ssp_slot failed..%d\n", ret);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
454
struct snd_soc_dai *dai)
sound/soc/intel/atom/sst-mfld-platform-pcm.c
456
if (!snd_soc_dai_active(dai)) {
sound/soc/intel/atom/sst-mfld-platform-pcm.c
457
send_ssp_cmd(dai, dai->name, 0);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
458
sst_handle_vb_timer(dai, false);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
674
struct snd_soc_dai *dai = snd_soc_rtd_to_cpu(rtd, 0);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
677
if (dai->driver->playback.channels_min ||
sound/soc/intel/atom/sst-mfld-platform-pcm.c
678
dai->driver->capture.channels_min) {
sound/soc/intel/atom/sst-mfld-platform-pcm.c
765
struct snd_soc_dai *dai = snd_soc_rtd_to_cpu(rtd, 0);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
767
if (snd_soc_dai_active(dai)) {
sound/soc/intel/atom/sst-mfld-platform-pcm.c
768
send_ssp_cmd(dai, dai->name, 0);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
769
sst_handle_vb_timer(dai, false);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
786
struct snd_soc_dai *dai = snd_soc_rtd_to_cpu(rtd, 0);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
788
if (snd_soc_dai_active(dai)) {
sound/soc/intel/atom/sst-mfld-platform-pcm.c
789
sst_handle_vb_timer(dai, true);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
790
send_ssp_cmd(dai, dai->name, 1);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
96
static int sst_media_digital_mute(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/intel/atom/sst-mfld-platform-pcm.c
99
return sst_send_pipe_gains(dai, stream, mute);
sound/soc/intel/atom/sst-mfld-platform.h
153
int sst_send_pipe_gains(struct snd_soc_dai *dai, int stream, int mute);
sound/soc/intel/atom/sst-mfld-platform.h
154
int send_ssp_cmd(struct snd_soc_dai *dai, const char *id, bool enable);
sound/soc/intel/atom/sst-mfld-platform.h
155
int sst_handle_vb_timer(struct snd_soc_dai *dai, bool enable);
sound/soc/intel/avs/pcm.c
1086
static int avs_dai_resume_hw_params(struct snd_soc_dai *dai, struct avs_dma_data *data)
sound/soc/intel/avs/pcm.c
1095
ret = dai->driver->ops->hw_params(substream, &rtd->dpcm[substream->stream].hw_params, dai);
sound/soc/intel/avs/pcm.c
1097
dev_err(dai->dev, "hw_params on resume failed: %d\n", ret);
sound/soc/intel/avs/pcm.c
1102
static int avs_dai_resume_fe_prepare(struct snd_soc_dai *dai, struct avs_dma_data *data)
sound/soc/intel/avs/pcm.c
1116
ret = dai->driver->ops->prepare(data->substream, dai);
sound/soc/intel/avs/pcm.c
1118
dev_err(dai->dev, "prepare FE on resume failed: %d\n", ret);
sound/soc/intel/avs/pcm.c
1134
static int avs_dai_resume_be_prepare(struct snd_soc_dai *dai, struct avs_dma_data *data)
sound/soc/intel/avs/pcm.c
1138
ret = dai->driver->ops->prepare(data->substream, dai);
sound/soc/intel/avs/pcm.c
1140
dev_err(dai->dev, "prepare BE on resume failed: %d\n", ret);
sound/soc/intel/avs/pcm.c
1145
static int avs_dai_suspend_fe_hw_free(struct snd_soc_dai *dai, struct avs_dma_data *data)
sound/soc/intel/avs/pcm.c
1159
ret = __avs_dai_fe_hw_free(data->substream, dai);
sound/soc/intel/avs/pcm.c
1161
dev_err(dai->dev, "hw_free FE on suspend failed: %d\n", ret);
sound/soc/intel/avs/pcm.c
1166
static int avs_dai_suspend_be_hw_free(struct snd_soc_dai *dai, struct avs_dma_data *data)
sound/soc/intel/avs/pcm.c
1170
ret = dai->driver->ops->hw_free(data->substream, dai);
sound/soc/intel/avs/pcm.c
1172
dev_err(dai->dev, "hw_free BE on suspend failed: %d\n", ret);
sound/soc/intel/avs/pcm.c
1182
struct snd_soc_dai *dai;
sound/soc/intel/avs/pcm.c
1185
for_each_component_dais(component, dai) {
sound/soc/intel/avs/pcm.c
1186
data = snd_soc_dai_dma_data_get_playback(dai);
sound/soc/intel/avs/pcm.c
119
static int avs_dai_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/intel/avs/pcm.c
1190
ret = op(dai, data);
sound/soc/intel/avs/pcm.c
1199
data = snd_soc_dai_dma_data_get_capture(dai);
sound/soc/intel/avs/pcm.c
1203
ret = op(dai, data);
sound/soc/intel/avs/pcm.c
122
struct avs_dev *adev = to_avs_dev(dai->component->dev);
sound/soc/intel/avs/pcm.c
1223
int (*prepare_cb)(struct snd_soc_dai *dai, struct avs_dma_data *data);
sound/soc/intel/avs/pcm.c
1235
int (*hw_free_cb)(struct snd_soc_dai *dai, struct avs_dma_data *data);
sound/soc/intel/avs/pcm.c
126
template = avs_dai_find_path_template(dai, !rtd->dai_link->no_pcm, substream->stream);
sound/soc/intel/avs/pcm.c
128
dev_err(dai->dev, "no %s path for dai %s, invalid tplg?\n",
sound/soc/intel/avs/pcm.c
129
snd_pcm_stream_str(substream), dai->name);
sound/soc/intel/avs/pcm.c
1355
struct snd_soc_dai *dai = snd_soc_rtd_to_cpu(rtd, 0);
sound/soc/intel/avs/pcm.c
1358
if (dai->driver->playback.channels_min)
sound/soc/intel/avs/pcm.c
1363
if (dai->driver->capture.channels_min)
sound/soc/intel/avs/pcm.c
141
snd_soc_dai_set_dma_data(dai, substream, data);
sound/soc/intel/avs/pcm.c
146
return avs_hw_constraints_init(substream, dai);
sound/soc/intel/avs/pcm.c
1481
struct snd_soc_dai_driver *cpus, *dai;
sound/soc/intel/avs/pcm.c
149
static void avs_dai_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/intel/avs/pcm.c
1504
dai = cpus;
sound/soc/intel/avs/pcm.c
1507
memcpy(dai, &i2s_dai_template, sizeof(*dai));
sound/soc/intel/avs/pcm.c
1509
dai->name =
sound/soc/intel/avs/pcm.c
1511
dai->playback.stream_name =
sound/soc/intel/avs/pcm.c
1513
dai->capture.stream_name =
sound/soc/intel/avs/pcm.c
1516
if (!dai->name || !dai->playback.stream_name || !dai->capture.stream_name)
sound/soc/intel/avs/pcm.c
1518
dai->ops = ops;
sound/soc/intel/avs/pcm.c
1519
dai++;
sound/soc/intel/avs/pcm.c
1528
memcpy(dai, &i2s_dai_template, sizeof(*dai));
sound/soc/intel/avs/pcm.c
1530
dai->name =
sound/soc/intel/avs/pcm.c
1532
dai->playback.stream_name =
sound/soc/intel/avs/pcm.c
1534
dai->capture.stream_name =
sound/soc/intel/avs/pcm.c
1537
if (!dai->name || !dai->playback.stream_name || !dai->capture.stream_name)
sound/soc/intel/avs/pcm.c
1539
dai->ops = ops;
sound/soc/intel/avs/pcm.c
154
data = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/intel/avs/pcm.c
1540
dai++;
sound/soc/intel/avs/pcm.c
1576
struct snd_soc_dai *dai, *save;
sound/soc/intel/avs/pcm.c
1586
for_each_component_dais_safe(component, dai, save) {
sound/soc/intel/avs/pcm.c
1589
if (!strstr(dai->driver->name, name))
sound/soc/intel/avs/pcm.c
1593
snd_soc_dapm_free_widget(snd_soc_dai_get_widget(dai, stream));
sound/soc/intel/avs/pcm.c
1595
snd_soc_unregister_dai(dai);
sound/soc/intel/avs/pcm.c
163
snd_soc_dai_set_dma_data(dai, substream, NULL);
sound/soc/intel/avs/pcm.c
1631
struct snd_soc_dai *dai;
sound/soc/intel/avs/pcm.c
1680
dai = snd_soc_register_dai(component, &dais[i], false);
sound/soc/intel/avs/pcm.c
1681
if (!dai) {
sound/soc/intel/avs/pcm.c
1688
ret = snd_soc_dapm_new_dai_widgets(dapm, dai);
sound/soc/intel/avs/pcm.c
169
struct snd_pcm_hw_params *be_hw_params, struct snd_soc_dai *dai,
sound/soc/intel/avs/pcm.c
1692
snd_soc_unregister_dai(dai);
sound/soc/intel/avs/pcm.c
176
data = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/intel/avs/pcm.c
178
dev_dbg(dai->dev, "%s FE hw_params str %p rtd %p",
sound/soc/intel/avs/pcm.c
180
dev_dbg(dai->dev, "rate %d chn %d vbd %d bd %d\n",
sound/soc/intel/avs/pcm.c
184
dev_dbg(dai->dev, "%s BE hw_params str %p rtd %p",
sound/soc/intel/avs/pcm.c
186
dev_dbg(dai->dev, "rate %d chn %d vbd %d bd %d\n",
sound/soc/intel/avs/pcm.c
193
dev_err(dai->dev, "create path failed: %d\n", ret);
sound/soc/intel/avs/pcm.c
202
struct snd_pcm_hw_params *be_hw_params, struct snd_soc_dai *dai,
sound/soc/intel/avs/pcm.c
216
return avs_dai_hw_params(substream, fe_hw_params, be_hw_params, dai, dma_id);
sound/soc/intel/avs/pcm.c
219
static int avs_dai_prepare(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/intel/avs/pcm.c
224
data = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/intel/avs/pcm.c
230
dev_err(dai->dev, "reset path failed: %d\n", ret);
sound/soc/intel/avs/pcm.c
236
dev_err(dai->dev, "pause path failed: %d\n", ret);
sound/soc/intel/avs/pcm.c
241
struct snd_pcm_hw_params *hw_params, struct snd_soc_dai *dai)
sound/soc/intel/avs/pcm.c
245
data = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/intel/avs/pcm.c
250
return avs_dai_be_hw_params(substream, hw_params, dai, 0);
sound/soc/intel/avs/pcm.c
253
static int avs_dai_nonhda_be_hw_free(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/intel/avs/pcm.c
257
dev_dbg(dai->dev, "%s: %s\n", __func__, dai->name);
sound/soc/intel/avs/pcm.c
259
data = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/intel/avs/pcm.c
269
struct snd_soc_dai *dai)
sound/soc/intel/avs/pcm.c
275
data = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/intel/avs/pcm.c
286
dev_err(dai->dev, "pause BE path failed: %d\n", ret);
sound/soc/intel/avs/pcm.c
292
dev_err(dai->dev, "run BE path failed: %d\n", ret);
sound/soc/intel/avs/pcm.c
303
dev_err(dai->dev, "pause BE path failed: %d\n", ret);
sound/soc/intel/avs/pcm.c
307
dev_err(dai->dev, "reset BE path failed: %d\n", ret);
sound/soc/intel/avs/pcm.c
327
static int __avs_dai_hda_be_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai,
sound/soc/intel/avs/pcm.c
334
ret = avs_dai_startup(substream, dai);
sound/soc/intel/avs/pcm.c
338
data = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/intel/avs/pcm.c
342
avs_dai_shutdown(substream, dai);
sound/soc/intel/avs/pcm.c
351
static int avs_dai_hda_be_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/intel/avs/pcm.c
365
ret = __avs_dai_hda_be_startup(substream, dai, link);
sound/soc/intel/avs/pcm.c
367
data = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/intel/avs/pcm.c
374
static int avs_dai_i2shda_be_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/intel/avs/pcm.c
376
struct avs_dev *adev = to_avs_dev(dai->component->dev);
sound/soc/intel/avs/pcm.c
382
return __avs_dai_hda_be_startup(substream, dai, link);
sound/soc/intel/avs/pcm.c
385
static int avs_dai_dmichda_be_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/intel/avs/pcm.c
387
struct avs_dev *adev = to_avs_dev(dai->component->dev);
sound/soc/intel/avs/pcm.c
393
return __avs_dai_hda_be_startup(substream, dai, link);
sound/soc/intel/avs/pcm.c
396
static void avs_dai_hda_be_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/intel/avs/pcm.c
398
struct avs_dma_data *data = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/intel/avs/pcm.c
402
avs_dai_shutdown(substream, dai);
sound/soc/intel/avs/pcm.c
405
static void avs_dai_althda_be_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/intel/avs/pcm.c
407
struct avs_dma_data *data = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/intel/avs/pcm.c
410
avs_dai_shutdown(substream, dai);
sound/soc/intel/avs/pcm.c
414
struct snd_pcm_hw_params *hw_params, struct snd_soc_dai *dai)
sound/soc/intel/avs/pcm.c
418
data = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/intel/avs/pcm.c
422
return avs_dai_be_hw_params(substream, hw_params, dai,
sound/soc/intel/avs/pcm.c
426
static int avs_dai_hda_be_hw_free(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/intel/avs/pcm.c
431
data = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/intel/avs/pcm.c
448
static int avs_dai_hda_be_prepare(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/intel/avs/pcm.c
45
avs_dai_find_path_template(struct snd_soc_dai *dai, bool is_fe, int direction)
sound/soc/intel/avs/pcm.c
459
data = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/intel/avs/pcm.c
466
stream_info = snd_soc_dai_get_pcm_stream(dai, substream->stream);
sound/soc/intel/avs/pcm.c
47
struct snd_soc_dapm_widget *dw = snd_soc_dai_get_widget(dai, direction);
sound/soc/intel/avs/pcm.c
479
ret = avs_dai_prepare(substream, dai);
sound/soc/intel/avs/pcm.c
488
struct snd_soc_dai *dai)
sound/soc/intel/avs/pcm.c
494
dev_dbg(dai->dev, "entry %s cmd=%d\n", __func__, cmd);
sound/soc/intel/avs/pcm.c
496
data = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/intel/avs/pcm.c
509
dev_err(dai->dev, "pause BE path failed: %d\n", ret);
sound/soc/intel/avs/pcm.c
515
dev_err(dai->dev, "run BE path failed: %d\n", ret);
sound/soc/intel/avs/pcm.c
526
dev_err(dai->dev, "pause BE path failed: %d\n", ret);
sound/soc/intel/avs/pcm.c
532
dev_err(dai->dev, "reset BE path failed: %d\n", ret);
sound/soc/intel/avs/pcm.c
615
static int avs_dai_fe_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/intel/avs/pcm.c
626
ret = avs_dai_startup(substream, dai);
sound/soc/intel/avs/pcm.c
630
data = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/intel/avs/pcm.c
635
avs_dai_shutdown(substream, dai);
sound/soc/intel/avs/pcm.c
642
dev_dbg(dai->dev, "%s fe STARTUP tag %d str %p",
sound/soc/intel/avs/pcm.c
648
static void avs_dai_fe_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/intel/avs/pcm.c
652
data = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/intel/avs/pcm.c
656
avs_dai_shutdown(substream, dai);
sound/soc/intel/avs/pcm.c
660
struct snd_pcm_hw_params *hw_params, struct snd_soc_dai *dai)
sound/soc/intel/avs/pcm.c
669
data = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/intel/avs/pcm.c
686
ret = avs_dai_hw_params(substream, hw_params, be_hw_params, dai,
sound/soc/intel/avs/pcm.c
693
dev_err(dai->dev, "bind FE <-> BE failed: %d\n", ret);
sound/soc/intel/avs/pcm.c
707
static int __avs_dai_fe_hw_free(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/intel/avs/pcm.c
713
dev_dbg(dai->dev, "%s fe HW_FREE str %p rtd %p",
sound/soc/intel/avs/pcm.c
716
data = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/intel/avs/pcm.c
724
dev_err(dai->dev, "unbind FE <-> BE failed: %d\n", ret);
sound/soc/intel/avs/pcm.c
734
static int avs_dai_fe_hw_free(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/intel/avs/pcm.c
738
ret = __avs_dai_fe_hw_free(substream, dai);
sound/soc/intel/avs/pcm.c
744
static int avs_dai_fe_prepare(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/intel/avs/pcm.c
755
data = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/intel/avs/pcm.c
767
stream_info = snd_soc_dai_get_pcm_stream(dai, substream->stream);
sound/soc/intel/avs/pcm.c
77
struct snd_soc_dai *dai = snd_soc_rtd_to_cpu(rtd, 0);
sound/soc/intel/avs/pcm.c
78
struct avs_dma_data *data = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/intel/avs/pcm.c
780
ret = avs_dai_prepare(substream, dai);
sound/soc/intel/avs/pcm.c
84
static int avs_hw_constraints_init(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/intel/avs/pcm.c
861
static int avs_dai_fe_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai)
sound/soc/intel/avs/pcm.c
870
data = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/intel/avs/pcm.c
891
dev_err(dai->dev, "pause FE path failed: %d\n", ret);
sound/soc/intel/avs/pcm.c
897
dev_err(dai->dev, "run FE path failed: %d\n", ret);
sound/soc/intel/avs/pcm.c
909
dev_err(dai->dev, "pause FE path failed: %d\n", ret);
sound/soc/intel/avs/pcm.c
917
dev_err(dai->dev, "reset FE path failed: %d\n", ret);
sound/soc/intel/avs/pcm.c
95
data = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/intel/avs/probes.c
100
dev_err(dai->dev, "get probe points failed: %d\n", ret);
sound/soc/intel/avs/probes.c
130
struct snd_compr_params *params, struct snd_soc_dai *dai)
sound/soc/intel/avs/probes.c
134
struct avs_dev *adev = to_avs_dev(dai->dev);
sound/soc/intel/avs/probes.c
173
dev_err(dai->dev, "probe init failed: %d\n", ret);
sound/soc/intel/avs/probes.c
184
struct snd_soc_dai *dai)
sound/soc/intel/avs/probes.c
187
struct avs_dev *adev = to_avs_dev(dai->dev);
sound/soc/intel/avs/probes.c
219
struct snd_compr_tstamp64 *tstamp, struct snd_soc_dai *dai)
sound/soc/intel/avs/probes.c
224
pstream = &dai->driver->capture;
sound/soc/intel/avs/probes.c
63
static int avs_probe_compr_open(struct snd_compr_stream *cstream, struct snd_soc_dai *dai)
sound/soc/intel/avs/probes.c
65
struct avs_dev *adev = to_avs_dev(dai->dev);
sound/soc/intel/avs/probes.c
70
dev_err(dai->dev, "Cannot open more than one extractor stream\n");
sound/soc/intel/avs/probes.c
76
dev_err(dai->dev, "Failed to assign HDAudio stream for extraction\n");
sound/soc/intel/avs/probes.c
87
static int avs_probe_compr_free(struct snd_compr_stream *cstream, struct snd_soc_dai *dai)
sound/soc/intel/avs/probes.c
90
struct avs_dev *adev = to_avs_dev(dai->dev);
sound/soc/intel/avs/topology.c
1908
struct snd_soc_dai *dai)
sound/soc/intel/boards/bytcr_rt5640.c
538
struct snd_soc_dai *dai = snd_soc_rtd_to_codec(rtd, 0);
sound/soc/intel/boards/bytcr_rt5640.c
540
return byt_rt5640_prepare_and_enable_pll1(dai, params_rate(params));
sound/soc/intel/boards/ehl_rt5660.c
77
struct snd_soc_dai *dai = snd_soc_rtd_to_codec(rtd, 0);
sound/soc/intel/boards/ehl_rt5660.c
86
pcm->codec_dai = dai;
sound/soc/intel/boards/skl_hda_dsp_generic.c
32
struct snd_soc_dai *dai;
sound/soc/intel/boards/skl_hda_dsp_generic.c
37
dai = snd_soc_rtd_to_codec(rtd, 0);
sound/soc/intel/boards/skl_hda_dsp_generic.c
38
hda_pvt = snd_soc_component_get_drvdata(dai->component);
sound/soc/intel/boards/sof_board_helpers.c
16
struct snd_soc_dai *dai = snd_soc_rtd_to_codec(rtd, 0);
sound/soc/intel/boards/sof_board_helpers.c
18
ctx->hdmi.hdmi_comp = dai->component;
sound/soc/intel/boards/sof_es8336.c
255
struct snd_soc_dai *dai = snd_soc_rtd_to_codec(runtime, 0);
sound/soc/intel/boards/sof_es8336.c
264
pcm->codec_dai = dai;
sound/soc/intel/boards/sof_pcm512x.c
74
struct snd_soc_dai *dai = snd_soc_rtd_to_codec(rtd, 0);
sound/soc/intel/boards/sof_pcm512x.c
83
pcm->codec_dai = dai;
sound/soc/intel/boards/sof_sdw_hdmi.c
24
struct snd_soc_dai *dai = snd_soc_rtd_to_codec(rtd, 0);
sound/soc/intel/boards/sof_sdw_hdmi.c
26
intel_ctx->hdmi.hdmi_comp = dai->component;
sound/soc/intel/catpt/pcm.c
256
struct snd_soc_dai *dai)
sound/soc/intel/catpt/pcm.c
260
struct catpt_dev *cdev = dev_get_drvdata(dai->dev);
sound/soc/intel/catpt/pcm.c
287
snd_soc_dai_set_dma_data(dai, substream, stream);
sound/soc/intel/catpt/pcm.c
303
struct snd_soc_dai *dai)
sound/soc/intel/catpt/pcm.c
306
struct catpt_dev *cdev = dev_get_drvdata(dai->dev);
sound/soc/intel/catpt/pcm.c
308
stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/intel/catpt/pcm.c
320
snd_soc_dai_set_dma_data(dai, substream, NULL);
sound/soc/intel/catpt/pcm.c
325
static int catpt_dai_apply_usettings(struct snd_soc_dai *dai,
sound/soc/intel/catpt/pcm.c
328
struct snd_soc_component *component = dai->component;
sound/soc/intel/catpt/pcm.c
330
struct catpt_dev *cdev = dev_get_drvdata(dai->dev);
sound/soc/intel/catpt/pcm.c
369
struct snd_soc_dai *dai)
sound/soc/intel/catpt/pcm.c
376
struct catpt_dev *cdev = dev_get_drvdata(dai->dev);
sound/soc/intel/catpt/pcm.c
379
stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/intel/catpt/pcm.c
413
ret = catpt_dai_apply_usettings(dai, stream);
sound/soc/intel/catpt/pcm.c
424
struct snd_soc_dai *dai)
sound/soc/intel/catpt/pcm.c
427
struct catpt_dev *cdev = dev_get_drvdata(dai->dev);
sound/soc/intel/catpt/pcm.c
429
stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/intel/catpt/pcm.c
441
struct snd_soc_dai *dai)
sound/soc/intel/catpt/pcm.c
444
struct catpt_dev *cdev = dev_get_drvdata(dai->dev);
sound/soc/intel/catpt/pcm.c
447
stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/intel/catpt/pcm.c
464
struct snd_soc_dai *dai)
sound/soc/intel/catpt/pcm.c
468
struct catpt_dev *cdev = dev_get_drvdata(dai->dev);
sound/soc/intel/catpt/pcm.c
472
stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/intel/catpt/pcm.c
629
struct snd_soc_dai *dai)
sound/soc/intel/catpt/pcm.c
633
struct catpt_dev *cdev = dev_get_drvdata(dai->dev);
sound/soc/intel/catpt/pcm.c
636
devfmt.iface = dai->driver->id;
sound/soc/jz4740/jz4740-i2s.c
112
if (snd_soc_dai_active(dai))
sound/soc/jz4740/jz4740-i2s.c
133
struct snd_soc_dai *dai)
sound/soc/jz4740/jz4740-i2s.c
135
struct jz4740_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/jz4740/jz4740-i2s.c
137
if (snd_soc_dai_active(dai))
sound/soc/jz4740/jz4740-i2s.c
146
struct snd_soc_dai *dai)
sound/soc/jz4740/jz4740-i2s.c
148
struct jz4740_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/jz4740/jz4740-i2s.c
174
static int jz4740_i2s_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/jz4740/jz4740-i2s.c
176
struct jz4740_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/jz4740/jz4740-i2s.c
252
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/jz4740/jz4740-i2s.c
254
struct jz4740_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/jz4740/jz4740-i2s.c
320
static int jz4740_i2s_dai_probe(struct snd_soc_dai *dai)
sound/soc/jz4740/jz4740-i2s.c
322
struct jz4740_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/jz4740/jz4740-i2s.c
324
snd_soc_dai_init_dma_data(dai, &i2s->playback_dma_data,
sound/soc/jz4740/jz4740-i2s.c
362
.dai = &jz4740_i2s_dai,
sound/soc/jz4740/jz4740-i2s.c
371
.dai = &jz4740_i2s_dai,
sound/soc/jz4740/jz4740-i2s.c
379
.dai = &jz4740_i2s_dai,
sound/soc/jz4740/jz4740-i2s.c
403
.dai = &jz4770_i2s_dai,
sound/soc/jz4740/jz4740-i2s.c
411
.dai = &jz4770_i2s_dai,
sound/soc/jz4740/jz4740-i2s.c
582
i2s->soc_info->dai, 1);
sound/soc/jz4740/jz4740-i2s.c
67
struct snd_soc_dai_driver *dai;
sound/soc/jz4740/jz4740-i2s.c
95
struct snd_soc_dai *dai)
sound/soc/jz4740/jz4740-i2s.c
97
struct jz4740_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/kirkwood/kirkwood-i2s.c
215
static void kirkwood_set_rate(struct snd_soc_dai *dai,
sound/soc/kirkwood/kirkwood-i2s.c
223
dev_dbg(dai->dev, "%s: dco set rate = %lu\n",
sound/soc/kirkwood/kirkwood-i2s.c
234
dev_dbg(dai->dev, "%s: extclk set rate = %lu -> %lu\n",
sound/soc/kirkwood/kirkwood-i2s.c
244
struct snd_soc_dai *dai)
sound/soc/kirkwood/kirkwood-i2s.c
246
struct kirkwood_dma_data *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/kirkwood/kirkwood-i2s.c
248
snd_soc_dai_set_dma_data(dai, substream, priv);
sound/soc/kirkwood/kirkwood-i2s.c
254
struct snd_soc_dai *dai)
sound/soc/kirkwood/kirkwood-i2s.c
256
struct kirkwood_dma_data *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/kirkwood/kirkwood-i2s.c
267
kirkwood_set_rate(dai, priv, params_rate(params));
sound/soc/kirkwood/kirkwood-i2s.c
348
int cmd, struct snd_soc_dai *dai)
sound/soc/kirkwood/kirkwood-i2s.c
351
struct kirkwood_dma_data *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/kirkwood/kirkwood-i2s.c
371
dev_notice(dai->dev, "timed out waiting for busy to deassert: %08x\n",
sound/soc/kirkwood/kirkwood-i2s.c
379
if (dai->id == 0)
sound/soc/kirkwood/kirkwood-i2s.c
436
int cmd, struct snd_soc_dai *dai)
sound/soc/kirkwood/kirkwood-i2s.c
438
struct kirkwood_dma_data *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/kirkwood/kirkwood-i2s.c
447
if (dai->id == 0)
sound/soc/kirkwood/kirkwood-i2s.c
502
struct snd_soc_dai *dai)
sound/soc/kirkwood/kirkwood-i2s.c
505
return kirkwood_i2s_play_trigger(substream, cmd, dai);
sound/soc/kirkwood/kirkwood-i2s.c
507
return kirkwood_i2s_rec_trigger(substream, cmd, dai);
sound/soc/loongson/loongson_i2s.c
116
static int loongson_i2s_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/loongson/loongson_i2s.c
119
struct loongson_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/loongson/loongson_i2s.c
157
static int loongson_i2s_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/loongson/loongson_i2s.c
159
struct loongson_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/loongson/loongson_i2s.c
183
dev_warn(dai->dev, "wait BCLK ready timeout\n");
sound/soc/loongson/loongson_i2s.c
189
dev_warn(dai->dev, "wait MCLK ready timeout\n");
sound/soc/loongson/loongson_i2s.c
195
dev_warn(dai->dev, "wait MCLK ready timeout\n");
sound/soc/loongson/loongson_i2s.c
203
dev_warn(dai->dev, "wait BCLK ready timeout\n");
sound/soc/loongson/loongson_i2s.c
32
struct snd_soc_dai *dai)
sound/soc/loongson/loongson_i2s.c
34
struct loongson_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/loongson/loongson_i2s.c
62
struct snd_soc_dai *dai)
sound/soc/loongson/loongson_i2s.c
64
struct loongson_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/common/mtk-afe-fe-dai.c
102
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/common/mtk-afe-fe-dai.c
121
struct snd_soc_dai *dai)
sound/soc/mediatek/common/mtk-afe-fe-dai.c
124
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/common/mtk-afe-fe-dai.c
185
struct snd_soc_dai *dai)
sound/soc/mediatek/common/mtk-afe-fe-dai.c
187
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/common/mtk-afe-fe-dai.c
197
struct snd_soc_dai *dai)
sound/soc/mediatek/common/mtk-afe-fe-dai.c
201
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/common/mtk-afe-fe-dai.c
264
struct snd_soc_dai *dai)
sound/soc/mediatek/common/mtk-afe-fe-dai.c
267
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/common/mtk-afe-fe-dai.c
38
struct snd_soc_dai *dai)
sound/soc/mediatek/common/mtk-afe-fe-dai.c
41
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/common/mtk-afe-fe-dai.c
99
struct snd_soc_dai *dai)
sound/soc/mediatek/common/mtk-afe-fe-dai.h
17
struct snd_soc_dai *dai);
sound/soc/mediatek/common/mtk-afe-fe-dai.h
19
struct snd_soc_dai *dai);
sound/soc/mediatek/common/mtk-afe-fe-dai.h
22
struct snd_soc_dai *dai);
sound/soc/mediatek/common/mtk-afe-fe-dai.h
24
struct snd_soc_dai *dai);
sound/soc/mediatek/common/mtk-afe-fe-dai.h
26
struct snd_soc_dai *dai);
sound/soc/mediatek/common/mtk-afe-fe-dai.h
28
struct snd_soc_dai *dai);
sound/soc/mediatek/common/mtk-afe-platform-driver.c
18
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/common/mtk-afe-platform-driver.c
22
list_for_each_entry(dai, &afe->sub_dais, list) {
sound/soc/mediatek/common/mtk-afe-platform-driver.c
23
num_dai_drivers += dai->num_dai_drivers;
sound/soc/mediatek/common/mtk-afe-platform-driver.c
37
list_for_each_entry(dai, &afe->sub_dais, list) {
sound/soc/mediatek/common/mtk-afe-platform-driver.c
40
dai->dai_drivers,
sound/soc/mediatek/common/mtk-afe-platform-driver.c
41
dai->num_dai_drivers *
sound/soc/mediatek/common/mtk-afe-platform-driver.c
43
dai_idx += dai->num_dai_drivers;
sound/soc/mediatek/common/mtk-afe-platform-driver.c
53
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/common/mtk-afe-platform-driver.c
55
list_for_each_entry(dai, &afe->sub_dais, list) {
sound/soc/mediatek/common/mtk-afe-platform-driver.c
56
if (dai->controls)
sound/soc/mediatek/common/mtk-afe-platform-driver.c
58
dai->controls,
sound/soc/mediatek/common/mtk-afe-platform-driver.c
59
dai->num_controls);
sound/soc/mediatek/common/mtk-afe-platform-driver.c
61
if (dai->dapm_widgets)
sound/soc/mediatek/common/mtk-afe-platform-driver.c
63
dai->dapm_widgets,
sound/soc/mediatek/common/mtk-afe-platform-driver.c
64
dai->num_dapm_widgets);
sound/soc/mediatek/common/mtk-afe-platform-driver.c
67
list_for_each_entry(dai, &afe->sub_dais, list) {
sound/soc/mediatek/common/mtk-afe-platform-driver.c
68
if (dai->dapm_routes)
sound/soc/mediatek/common/mtk-afe-platform-driver.c
70
dai->dapm_routes,
sound/soc/mediatek/common/mtk-afe-platform-driver.c
71
dai->num_dapm_routes);
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
107
struct snd_soc_dai *dai)
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
109
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
111
int i2s_num = mt2701_dai_num_to_i2s(afe, dai->id);
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
142
struct snd_soc_dai *dai)
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
144
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
146
int i2s_num = mt2701_dai_num_to_i2s(afe, dai->id);
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
230
struct snd_soc_dai *dai)
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
232
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
234
int ret, i2s_num = mt2701_dai_num_to_i2s(afe, dai->id);
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
263
static int mt2701_afe_i2s_set_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
266
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
268
int i2s_num = mt2701_dai_num_to_i2s(afe, dai->id);
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
276
dev_warn(dai->dev, "The SoCs doesn't support mclk input\n");
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
286
struct snd_soc_dai *dai)
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
288
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
303
struct snd_soc_dai *dai)
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
305
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
344
struct snd_soc_dai *dai)
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
346
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
364
struct snd_soc_dai *dai)
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
366
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
379
return mtk_afe_fe_startup(substream, dai);
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
384
struct snd_soc_dai *dai)
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
386
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
396
return mtk_afe_fe_hw_params(substream, params, dai);
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
400
struct snd_soc_dai *dai)
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
402
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
422
return mtk_afe_fe_startup(substream, dai);
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
426
struct snd_soc_dai *dai)
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
428
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
440
return mtk_afe_fe_shutdown(substream, dai);
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
445
struct snd_soc_dai *dai)
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
447
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
463
return mtk_afe_fe_hw_params(substream, params, dai);
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
467
int cmd, struct snd_soc_dai *dai)
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
469
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
478
mtk_afe_fe_trigger(substream, cmd, dai);
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
482
mtk_afe_fe_trigger(substream, cmd, dai);
sound/soc/mediatek/mt6797/mt6797-afe-pcm.c
709
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt6797/mt6797-afe-pcm.c
711
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt6797/mt6797-afe-pcm.c
712
if (!dai)
sound/soc/mediatek/mt6797/mt6797-afe-pcm.c
715
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt6797/mt6797-afe-pcm.c
717
dai->dai_drivers = mt6797_memif_dai_driver;
sound/soc/mediatek/mt6797/mt6797-afe-pcm.c
718
dai->num_dai_drivers = ARRAY_SIZE(mt6797_memif_dai_driver);
sound/soc/mediatek/mt6797/mt6797-afe-pcm.c
720
dai->dapm_widgets = mt6797_memif_widgets;
sound/soc/mediatek/mt6797/mt6797-afe-pcm.c
721
dai->num_dapm_widgets = ARRAY_SIZE(mt6797_memif_widgets);
sound/soc/mediatek/mt6797/mt6797-afe-pcm.c
722
dai->dapm_routes = mt6797_memif_routes;
sound/soc/mediatek/mt6797/mt6797-afe-pcm.c
723
dai->num_dapm_routes = ARRAY_SIZE(mt6797_memif_routes);
sound/soc/mediatek/mt6797/mt6797-dai-adda.c
153
struct snd_soc_dai *dai)
sound/soc/mediatek/mt6797/mt6797-dai-adda.c
155
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt6797/mt6797-dai-adda.c
159
__func__, dai->id, substream->stream, rate);
sound/soc/mediatek/mt6797/mt6797-dai-adda.c
307
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt6797/mt6797-dai-adda.c
309
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt6797/mt6797-dai-adda.c
310
if (!dai)
sound/soc/mediatek/mt6797/mt6797-dai-adda.c
313
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt6797/mt6797-dai-adda.c
315
dai->dai_drivers = mtk_dai_adda_driver;
sound/soc/mediatek/mt6797/mt6797-dai-adda.c
316
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_adda_driver);
sound/soc/mediatek/mt6797/mt6797-dai-adda.c
318
dai->dapm_widgets = mtk_dai_adda_widgets;
sound/soc/mediatek/mt6797/mt6797-dai-adda.c
319
dai->num_dapm_widgets = ARRAY_SIZE(mtk_dai_adda_widgets);
sound/soc/mediatek/mt6797/mt6797-dai-adda.c
320
dai->dapm_routes = mtk_dai_adda_routes;
sound/soc/mediatek/mt6797/mt6797-dai-adda.c
321
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_adda_routes);
sound/soc/mediatek/mt6797/mt6797-dai-hostless.c
103
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt6797/mt6797-dai-hostless.c
105
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt6797/mt6797-dai-hostless.c
106
if (!dai)
sound/soc/mediatek/mt6797/mt6797-dai-hostless.c
109
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt6797/mt6797-dai-hostless.c
111
dai->dai_drivers = mtk_dai_hostless_driver;
sound/soc/mediatek/mt6797/mt6797-dai-hostless.c
112
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_hostless_driver);
sound/soc/mediatek/mt6797/mt6797-dai-hostless.c
114
dai->dapm_routes = mtk_dai_hostless_routes;
sound/soc/mediatek/mt6797/mt6797-dai-hostless.c
115
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_hostless_routes);
sound/soc/mediatek/mt6797/mt6797-dai-hostless.c
38
struct snd_soc_dai *dai)
sound/soc/mediatek/mt6797/mt6797-dai-hostless.c
40
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt6797/mt6797-dai-pcm.c
183
struct snd_soc_dai *dai)
sound/soc/mediatek/mt6797/mt6797-dai-pcm.c
185
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt6797/mt6797-dai-pcm.c
186
struct snd_soc_dapm_widget *p = snd_soc_dai_get_widget_playback(dai);
sound/soc/mediatek/mt6797/mt6797-dai-pcm.c
187
struct snd_soc_dapm_widget *c = snd_soc_dai_get_widget_capture(dai);
sound/soc/mediatek/mt6797/mt6797-dai-pcm.c
189
unsigned int rate_reg = mt6797_rate_transform(afe->dev, rate, dai->id);
sound/soc/mediatek/mt6797/mt6797-dai-pcm.c
194
dai->id,
sound/soc/mediatek/mt6797/mt6797-dai-pcm.c
204
switch (dai->id) {
sound/soc/mediatek/mt6797/mt6797-dai-pcm.c
235
__func__, dai->id);
sound/soc/mediatek/mt6797/mt6797-dai-pcm.c
303
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt6797/mt6797-dai-pcm.c
305
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt6797/mt6797-dai-pcm.c
306
if (!dai)
sound/soc/mediatek/mt6797/mt6797-dai-pcm.c
309
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt6797/mt6797-dai-pcm.c
311
dai->dai_drivers = mtk_dai_pcm_driver;
sound/soc/mediatek/mt6797/mt6797-dai-pcm.c
312
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_pcm_driver);
sound/soc/mediatek/mt6797/mt6797-dai-pcm.c
314
dai->dapm_widgets = mtk_dai_pcm_widgets;
sound/soc/mediatek/mt6797/mt6797-dai-pcm.c
315
dai->num_dapm_widgets = ARRAY_SIZE(mtk_dai_pcm_widgets);
sound/soc/mediatek/mt6797/mt6797-dai-pcm.c
316
dai->dapm_routes = mtk_dai_pcm_routes;
sound/soc/mediatek/mt6797/mt6797-dai-pcm.c
317
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_pcm_routes);
sound/soc/mediatek/mt7986/mt7986-afe-pcm.c
434
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt7986/mt7986-afe-pcm.c
436
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt7986/mt7986-afe-pcm.c
437
if (!dai)
sound/soc/mediatek/mt7986/mt7986-afe-pcm.c
440
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt7986/mt7986-afe-pcm.c
442
dai->dai_drivers = mt7986_memif_dai_driver;
sound/soc/mediatek/mt7986/mt7986-afe-pcm.c
443
dai->num_dai_drivers = ARRAY_SIZE(mt7986_memif_dai_driver);
sound/soc/mediatek/mt7986/mt7986-afe-pcm.c
445
dai->dapm_widgets = mt7986_memif_widgets;
sound/soc/mediatek/mt7986/mt7986-afe-pcm.c
446
dai->num_dapm_widgets = ARRAY_SIZE(mt7986_memif_widgets);
sound/soc/mediatek/mt7986/mt7986-afe-pcm.c
447
dai->dapm_routes = mt7986_memif_routes;
sound/soc/mediatek/mt7986/mt7986-afe-pcm.c
448
dai->num_dapm_routes = ARRAY_SIZE(mt7986_memif_routes);
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
119
struct snd_soc_dai *dai)
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
121
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
136
struct snd_soc_dai *dai)
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
138
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
165
struct snd_soc_dai *dai,
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
169
struct mtk_dai_etdm_priv *etdm_data = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
238
struct snd_soc_dai *dai)
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
241
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
252
mtk_dai_etdm_config(afe, params, dai, SNDRV_PCM_STREAM_PLAYBACK);
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
253
mtk_dai_etdm_config(afe, params, dai, SNDRV_PCM_STREAM_CAPTURE);
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
264
struct snd_soc_dai *dai)
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
266
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
268
dev_dbg(afe->dev, "%s(), cmd %d, dai id %d\n", __func__, cmd, dai->id);
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
291
static int mtk_dai_etdm_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
293
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
298
switch (dai->id) {
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
303
__func__, dai->id);
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
312
afe_priv->dai_priv[dai->id] = priv_data;
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
313
etdm_data = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
409
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
411
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
412
if (!dai)
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
415
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
417
dai->dai_drivers = mtk_dai_etdm_driver;
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
418
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_etdm_driver);
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
420
dai->dapm_widgets = mtk_dai_etdm_widgets;
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
421
dai->num_dapm_widgets = ARRAY_SIZE(mtk_dai_etdm_widgets);
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
422
dai->dapm_routes = mtk_dai_etdm_routes;
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
423
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_etdm_routes);
sound/soc/mediatek/mt8173/mt8173-afe-pcm.c
295
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8173/mt8173-afe-pcm.c
297
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8173/mt8173-afe-pcm.c
299
if (snd_soc_dai_active(dai))
sound/soc/mediatek/mt8173/mt8173-afe-pcm.c
308
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8173/mt8173-afe-pcm.c
310
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8173/mt8173-afe-pcm.c
312
if (snd_soc_dai_active(dai))
sound/soc/mediatek/mt8173/mt8173-afe-pcm.c
322
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8173/mt8173-afe-pcm.c
325
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8173/mt8173-afe-pcm.c
344
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8173/mt8173-afe-pcm.c
346
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8173/mt8173-afe-pcm.c
349
if (snd_soc_dai_active(dai))
sound/soc/mediatek/mt8173/mt8173-afe-pcm.c
358
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8173/mt8173-afe-pcm.c
360
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8173/mt8173-afe-pcm.c
363
if (snd_soc_dai_active(dai))
sound/soc/mediatek/mt8173/mt8173-afe-pcm.c
371
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8173/mt8173-afe-pcm.c
374
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8173/mt8173-afe-pcm.c
434
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8173/mt8173-afe-pcm.c
436
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8173/mt8173-afe-pcm.c
438
dev_info(afe->dev, "%s cmd=%d %s\n", __func__, cmd, dai->name);
sound/soc/mediatek/mt8183/mt8183-afe-pcm.c
741
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8183/mt8183-afe-pcm.c
743
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8183/mt8183-afe-pcm.c
744
if (!dai)
sound/soc/mediatek/mt8183/mt8183-afe-pcm.c
747
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8183/mt8183-afe-pcm.c
749
dai->dai_drivers = mt8183_memif_dai_driver;
sound/soc/mediatek/mt8183/mt8183-afe-pcm.c
750
dai->num_dai_drivers = ARRAY_SIZE(mt8183_memif_dai_driver);
sound/soc/mediatek/mt8183/mt8183-afe-pcm.c
752
dai->dapm_widgets = mt8183_memif_widgets;
sound/soc/mediatek/mt8183/mt8183-afe-pcm.c
753
dai->num_dapm_widgets = ARRAY_SIZE(mt8183_memif_widgets);
sound/soc/mediatek/mt8183/mt8183-afe-pcm.c
754
dai->dapm_routes = mt8183_memif_routes;
sound/soc/mediatek/mt8183/mt8183-afe-pcm.c
755
dai->num_dapm_routes = ARRAY_SIZE(mt8183_memif_routes);
sound/soc/mediatek/mt8183/mt8183-dai-adda.c
271
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8183/mt8183-dai-adda.c
273
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8183/mt8183-dai-adda.c
277
__func__, dai->id, substream->stream, rate);
sound/soc/mediatek/mt8183/mt8183-dai-adda.c
408
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8183/mt8183-dai-adda.c
410
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8183/mt8183-dai-adda.c
411
if (!dai)
sound/soc/mediatek/mt8183/mt8183-dai-adda.c
414
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8183/mt8183-dai-adda.c
416
dai->dai_drivers = mtk_dai_adda_driver;
sound/soc/mediatek/mt8183/mt8183-dai-adda.c
417
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_adda_driver);
sound/soc/mediatek/mt8183/mt8183-dai-adda.c
419
dai->controls = mtk_adda_controls;
sound/soc/mediatek/mt8183/mt8183-dai-adda.c
420
dai->num_controls = ARRAY_SIZE(mtk_adda_controls);
sound/soc/mediatek/mt8183/mt8183-dai-adda.c
421
dai->dapm_widgets = mtk_dai_adda_widgets;
sound/soc/mediatek/mt8183/mt8183-dai-adda.c
422
dai->num_dapm_widgets = ARRAY_SIZE(mtk_dai_adda_widgets);
sound/soc/mediatek/mt8183/mt8183-dai-adda.c
423
dai->dapm_routes = mtk_dai_adda_routes;
sound/soc/mediatek/mt8183/mt8183-dai-adda.c
424
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_adda_routes);
sound/soc/mediatek/mt8183/mt8183-dai-hostless.c
103
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8183/mt8183-dai-hostless.c
105
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8183/mt8183-dai-hostless.c
106
if (!dai)
sound/soc/mediatek/mt8183/mt8183-dai-hostless.c
109
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8183/mt8183-dai-hostless.c
111
dai->dai_drivers = mtk_dai_hostless_driver;
sound/soc/mediatek/mt8183/mt8183-dai-hostless.c
112
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_hostless_driver);
sound/soc/mediatek/mt8183/mt8183-dai-hostless.c
114
dai->dapm_routes = mtk_dai_hostless_routes;
sound/soc/mediatek/mt8183/mt8183-dai-hostless.c
115
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_hostless_routes);
sound/soc/mediatek/mt8183/mt8183-dai-hostless.c
38
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8183/mt8183-dai-hostless.c
40
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
1038
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
1040
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
1041
if (!dai)
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
1044
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
1046
dai->dai_drivers = mtk_dai_i2s_driver;
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
1047
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_i2s_driver);
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
1049
dai->controls = mtk_dai_i2s_controls;
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
1050
dai->num_controls = ARRAY_SIZE(mtk_dai_i2s_controls);
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
1051
dai->dapm_widgets = mtk_dai_i2s_widgets;
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
1052
dai->num_dapm_widgets = ARRAY_SIZE(mtk_dai_i2s_widgets);
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
1053
dai->dapm_routes = mtk_dai_i2s_routes;
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
1054
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_i2s_routes);
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
774
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
776
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
778
return mtk_dai_i2s_config(afe, params, dai->id);
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
781
static int mtk_dai_i2s_set_sysclk(struct snd_soc_dai *dai,
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
784
struct mtk_base_afe *afe = dev_get_drvdata(dai->dev);
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
786
struct mtk_afe_i2s_priv *i2s_priv = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
834
static int mtk_dai_i2s_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
836
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
840
switch (dai->id) {
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
849
__func__, dai->id);
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
852
i2s_priv = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8183/mt8183-dai-pcm.c
183
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8183/mt8183-dai-pcm.c
185
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8183/mt8183-dai-pcm.c
186
struct snd_soc_dapm_widget *p = snd_soc_dai_get_widget_playback(dai);
sound/soc/mediatek/mt8183/mt8183-dai-pcm.c
187
struct snd_soc_dapm_widget *c = snd_soc_dai_get_widget_capture(dai);
sound/soc/mediatek/mt8183/mt8183-dai-pcm.c
189
unsigned int rate_reg = mt8183_rate_transform(afe->dev, rate, dai->id);
sound/soc/mediatek/mt8183/mt8183-dai-pcm.c
194
dai->id,
sound/soc/mediatek/mt8183/mt8183-dai-pcm.c
203
switch (dai->id) {
sound/soc/mediatek/mt8183/mt8183-dai-pcm.c
234
__func__, dai->id);
sound/soc/mediatek/mt8183/mt8183-dai-pcm.c
302
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8183/mt8183-dai-pcm.c
304
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8183/mt8183-dai-pcm.c
305
if (!dai)
sound/soc/mediatek/mt8183/mt8183-dai-pcm.c
308
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8183/mt8183-dai-pcm.c
310
dai->dai_drivers = mtk_dai_pcm_driver;
sound/soc/mediatek/mt8183/mt8183-dai-pcm.c
311
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_pcm_driver);
sound/soc/mediatek/mt8183/mt8183-dai-pcm.c
313
dai->dapm_widgets = mtk_dai_pcm_widgets;
sound/soc/mediatek/mt8183/mt8183-dai-pcm.c
314
dai->num_dapm_widgets = ARRAY_SIZE(mtk_dai_pcm_widgets);
sound/soc/mediatek/mt8183/mt8183-dai-pcm.c
315
dai->dapm_routes = mtk_dai_pcm_routes;
sound/soc/mediatek/mt8183/mt8183-dai-pcm.c
316
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_pcm_routes);
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
466
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
468
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
470
int tdm_id = dai->id;
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
583
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
585
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
615
static int mtk_dai_tdm_set_sysclk(struct snd_soc_dai *dai,
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
618
struct mtk_base_afe *afe = dev_get_drvdata(dai->dev);
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
620
struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
637
static int mtk_dai_tdm_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
639
struct mtk_base_afe *afe = dev_get_drvdata(dai->dev);
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
641
struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
721
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
723
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
724
if (!dai)
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
727
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
729
dai->dai_drivers = mtk_dai_tdm_driver;
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
730
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_tdm_driver);
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
732
dai->dapm_widgets = mtk_dai_tdm_widgets;
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
733
dai->num_dapm_widgets = ARRAY_SIZE(mtk_dai_tdm_widgets);
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
734
dai->dapm_routes = mtk_dai_tdm_routes;
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
735
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_tdm_routes);
sound/soc/mediatek/mt8186/mt8186-afe-gpio.c
199
int dai, int uplink)
sound/soc/mediatek/mt8186/mt8186-afe-gpio.c
206
switch (dai) {
sound/soc/mediatek/mt8186/mt8186-afe-gpio.c
232
dev_dbg(dev, "%s(), invalid dai %d\n", __func__, dai);
sound/soc/mediatek/mt8186/mt8186-afe-gpio.h
17
int dai, int uplink);
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c
106
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c
109
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c
115
ret = mtk_afe_fe_hw_params(substream, params, dai);
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c
140
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c
142
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c
145
ret = mtk_afe_fe_hw_free(substream, dai);
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c
155
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c
159
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c
2783
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c
2785
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c
2786
if (!dai)
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c
2789
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c
2791
dai->dai_drivers = mt8186_memif_dai_driver;
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c
2792
dai->num_dai_drivers = ARRAY_SIZE(mt8186_memif_dai_driver);
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c
2794
dai->controls = mt8186_pcm_kcontrols;
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c
2795
dai->num_controls = ARRAY_SIZE(mt8186_pcm_kcontrols);
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c
2796
dai->dapm_widgets = mt8186_memif_widgets;
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c
2797
dai->num_dapm_widgets = ARRAY_SIZE(mt8186_memif_widgets);
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c
2798
dai->dapm_routes = mt8186_memif_routes;
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c
2799
dai->num_dapm_routes = ARRAY_SIZE(mt8186_memif_routes);
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c
292
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c
296
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c
306
ret = mtk_afe_fe_prepare(substream, dai);
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c
42
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c
45
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c
84
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c
87
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
557
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
559
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
562
int id = dai->id;
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
745
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
749
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
750
if (!dai)
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
753
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
755
dai->dai_drivers = mtk_dai_adda_driver;
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
756
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_adda_driver);
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
758
dai->controls = mtk_adda_controls;
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
759
dai->num_controls = ARRAY_SIZE(mtk_adda_controls);
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
760
dai->dapm_widgets = mtk_dai_adda_widgets;
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
761
dai->num_dapm_widgets = ARRAY_SIZE(mtk_dai_adda_widgets);
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
762
dai->dapm_routes = mtk_dai_adda_routes;
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
763
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_adda_routes);
sound/soc/mediatek/mt8186/mt8186-dai-hostless.c
283
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8186/mt8186-dai-hostless.c
285
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8186/mt8186-dai-hostless.c
286
if (!dai)
sound/soc/mediatek/mt8186/mt8186-dai-hostless.c
289
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8186/mt8186-dai-hostless.c
291
dai->dai_drivers = mtk_dai_hostless_driver;
sound/soc/mediatek/mt8186/mt8186-dai-hostless.c
292
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_hostless_driver);
sound/soc/mediatek/mt8186/mt8186-dai-hostless.c
294
dai->dapm_routes = mtk_dai_hostless_routes;
sound/soc/mediatek/mt8186/mt8186-dai-hostless.c
295
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_hostless_routes);
sound/soc/mediatek/mt8186/mt8186-dai-hostless.c
77
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8186/mt8186-dai-hostless.c
79
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8186/mt8186-dai-hw-gain.c
127
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8186/mt8186-dai-hw-gain.c
129
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8186/mt8186-dai-hw-gain.c
131
unsigned int rate_reg = mt8186_rate_transform(afe->dev, rate, dai->id);
sound/soc/mediatek/mt8186/mt8186-dai-hw-gain.c
134
__func__, dai->id, substream->stream, rate);
sound/soc/mediatek/mt8186/mt8186-dai-hw-gain.c
138
dai->id == MT8186_DAI_HW_GAIN_1 ?
sound/soc/mediatek/mt8186/mt8186-dai-hw-gain.c
145
dai->id == MT8186_DAI_HW_GAIN_1 ?
sound/soc/mediatek/mt8186/mt8186-dai-hw-gain.c
148
(dai->id == MT8186_DAI_HW_GAIN_1 ? 0x40 : 0x0) <<
sound/soc/mediatek/mt8186/mt8186-dai-hw-gain.c
218
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8186/mt8186-dai-hw-gain.c
220
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8186/mt8186-dai-hw-gain.c
221
if (!dai)
sound/soc/mediatek/mt8186/mt8186-dai-hw-gain.c
224
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8186/mt8186-dai-hw-gain.c
226
dai->dai_drivers = mtk_dai_gain_driver;
sound/soc/mediatek/mt8186/mt8186-dai-hw-gain.c
227
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_gain_driver);
sound/soc/mediatek/mt8186/mt8186-dai-hw-gain.c
229
dai->controls = mtk_hw_gain_controls;
sound/soc/mediatek/mt8186/mt8186-dai-hw-gain.c
230
dai->num_controls = ARRAY_SIZE(mtk_hw_gain_controls);
sound/soc/mediatek/mt8186/mt8186-dai-hw-gain.c
231
dai->dapm_widgets = mtk_dai_hw_gain_widgets;
sound/soc/mediatek/mt8186/mt8186-dai-hw-gain.c
232
dai->num_dapm_widgets = ARRAY_SIZE(mtk_dai_hw_gain_widgets);
sound/soc/mediatek/mt8186/mt8186-dai-hw-gain.c
233
dai->dapm_routes = mtk_dai_hw_gain_routes;
sound/soc/mediatek/mt8186/mt8186-dai-hw-gain.c
234
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_hw_gain_routes);
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
1000
static int mtk_dai_i2s_set_sysclk(struct snd_soc_dai *dai,
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
1003
struct mtk_base_afe *afe = dev_get_drvdata(dai->dev);
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
1005
struct mtk_afe_i2s_priv *i2s_priv = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
1206
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
1209
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
1210
if (!dai)
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
1213
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
1215
dai->dai_drivers = mtk_dai_i2s_driver;
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
1216
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_i2s_driver);
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
1218
dai->controls = mtk_dai_i2s_controls;
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
1219
dai->num_controls = ARRAY_SIZE(mtk_dai_i2s_controls);
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
1220
dai->dapm_widgets = mtk_dai_i2s_widgets;
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
1221
dai->num_dapm_widgets = ARRAY_SIZE(mtk_dai_i2s_widgets);
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
1222
dai->dapm_routes = mtk_dai_i2s_routes;
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
1223
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_i2s_routes);
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
811
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
813
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
816
rate, dai->id);
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
820
__func__, dai->id, substream->stream, rate);
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
860
int cmd, struct snd_soc_dai *dai)
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
862
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
893
afe_priv->dai_on[dai->id] = true;
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
910
afe_priv->dai_on[dai->id] = false;
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
993
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
995
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
997
return mtk_dai_i2s_config(afe, params, dai->id);
sound/soc/mediatek/mt8186/mt8186-dai-pcm.c
217
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8186/mt8186-dai-pcm.c
219
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8186/mt8186-dai-pcm.c
221
struct snd_soc_dapm_widget *p = snd_soc_dai_get_widget_playback(dai);
sound/soc/mediatek/mt8186/mt8186-dai-pcm.c
222
struct snd_soc_dapm_widget *c = snd_soc_dai_get_widget_capture(dai);
sound/soc/mediatek/mt8186/mt8186-dai-pcm.c
223
int pcm_id = dai->id;
sound/soc/mediatek/mt8186/mt8186-dai-pcm.c
226
unsigned int rate_reg = mt8186_rate_transform(afe->dev, rate, dai->id);
sound/soc/mediatek/mt8186/mt8186-dai-pcm.c
235
__func__, dai->id, substream->stream, p->active, c->active);
sound/soc/mediatek/mt8186/mt8186-dai-pcm.c
242
switch (dai->id) {
sound/soc/mediatek/mt8186/mt8186-dai-pcm.c
278
dev_err(afe->dev, "%s(), id %d not support\n", __func__, dai->id);
sound/soc/mediatek/mt8186/mt8186-dai-pcm.c
285
static int mtk_dai_pcm_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/mediatek/mt8186/mt8186-dai-pcm.c
287
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8186/mt8186-dai-pcm.c
289
struct mtk_afe_pcm_priv *pcm_priv = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8186/mt8186-dai-pcm.c
396
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8186/mt8186-dai-pcm.c
398
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8186/mt8186-dai-pcm.c
399
if (!dai)
sound/soc/mediatek/mt8186/mt8186-dai-pcm.c
402
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8186/mt8186-dai-pcm.c
404
dai->dai_drivers = mtk_dai_pcm_driver;
sound/soc/mediatek/mt8186/mt8186-dai-pcm.c
405
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_pcm_driver);
sound/soc/mediatek/mt8186/mt8186-dai-pcm.c
407
dai->dapm_widgets = mtk_dai_pcm_widgets;
sound/soc/mediatek/mt8186/mt8186-dai-pcm.c
408
dai->num_dapm_widgets = ARRAY_SIZE(mtk_dai_pcm_widgets);
sound/soc/mediatek/mt8186/mt8186-dai-pcm.c
409
dai->dapm_routes = mtk_dai_pcm_routes;
sound/soc/mediatek/mt8186/mt8186-dai-pcm.c
410
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_pcm_routes);
sound/soc/mediatek/mt8186/mt8186-dai-src.c
549
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8186/mt8186-dai-src.c
551
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8186/mt8186-dai-src.c
553
int id = dai->id;
sound/soc/mediatek/mt8186/mt8186-dai-src.c
589
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8186/mt8186-dai-src.c
591
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8186/mt8186-dai-src.c
593
int id = dai->id;
sound/soc/mediatek/mt8186/mt8186-dai-src.c
666
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8186/mt8186-dai-src.c
669
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8186/mt8186-dai-src.c
670
if (!dai)
sound/soc/mediatek/mt8186/mt8186-dai-src.c
673
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8186/mt8186-dai-src.c
675
dai->dai_drivers = mtk_dai_src_driver;
sound/soc/mediatek/mt8186/mt8186-dai-src.c
676
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_src_driver);
sound/soc/mediatek/mt8186/mt8186-dai-src.c
678
dai->dapm_widgets = mtk_dai_src_widgets;
sound/soc/mediatek/mt8186/mt8186-dai-src.c
679
dai->num_dapm_widgets = ARRAY_SIZE(mtk_dai_src_widgets);
sound/soc/mediatek/mt8186/mt8186-dai-src.c
680
dai->dapm_routes = mtk_dai_src_routes;
sound/soc/mediatek/mt8186/mt8186-dai-src.c
681
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_src_routes);
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
365
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
367
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
369
int tdm_id = dai->id;
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
390
tran_rate = mt8186_rate_transform(afe->dev, rate, dai->id);
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
459
static int mtk_dai_tdm_set_sysclk(struct snd_soc_dai *dai,
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
462
struct mtk_base_afe *afe = dev_get_drvdata(dai->dev);
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
464
struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
476
static int mtk_dai_tdm_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
478
struct mtk_base_afe *afe = dev_get_drvdata(dai->dev);
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
480
struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
548
static int mtk_dai_tdm_set_tdm_slot(struct snd_soc_dai *dai,
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
554
struct mtk_base_afe *afe = dev_get_drvdata(dai->dev);
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
556
struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
558
dev_dbg(dai->dev, "%s %d slot_width %d\n", __func__, dai->id, slot_width);
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
618
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
620
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
621
if (!dai)
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
624
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
626
dai->dai_drivers = mtk_dai_tdm_driver;
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
627
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_tdm_driver);
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
629
dai->controls = mtk_dai_tdm_controls;
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
630
dai->num_controls = ARRAY_SIZE(mtk_dai_tdm_controls);
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
631
dai->dapm_widgets = mtk_dai_tdm_widgets;
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
632
dai->num_dapm_widgets = ARRAY_SIZE(mtk_dai_tdm_widgets);
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
633
dai->dapm_routes = mtk_dai_tdm_routes;
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
634
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_tdm_routes);
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
230
mt8188_afe_found_cm(struct snd_soc_dai *dai)
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
232
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
235
if (mt8188_afe_memif_is_ul(dai->id) == 0)
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
238
switch (dai->id) {
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
253
dev_dbg(afe->dev, "%s, memif %d cannot find CM!\n", __func__, dai->id);
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
301
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
305
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
3072
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
3074
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
3075
if (!dai)
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
3078
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
3080
dai->dai_drivers = mt8188_memif_dai_driver;
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
3081
dai->num_dai_drivers = ARRAY_SIZE(mt8188_memif_dai_driver);
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
3083
dai->dapm_widgets = mt8188_memif_widgets;
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
3084
dai->num_dapm_widgets = ARRAY_SIZE(mt8188_memif_widgets);
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
3085
dai->dapm_routes = mt8188_memif_routes;
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
3086
dai->num_dapm_routes = ARRAY_SIZE(mt8188_memif_routes);
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
3087
dai->controls = mt8188_memif_controls;
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
3088
dai->num_controls = ARRAY_SIZE(mt8188_memif_controls);
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
309
ret = mtk_afe_fe_startup(substream, dai);
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
328
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
330
mtk_afe_fe_shutdown(substream, dai);
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
335
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
338
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
342
const struct mt8188_afe_channel_merge *cm = mt8188_afe_found_cm(dai);
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
353
return mtk_afe_fe_hw_params(substream, params, dai);
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
357
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
359
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
360
const struct mt8188_afe_channel_merge *cm = mt8188_afe_found_cm(dai);
sound/soc/mediatek/mt8188/mt8188-dai-adda.c
402
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8188/mt8188-dai-adda.c
404
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8188/mt8188-dai-adda.c
406
struct mtk_dai_adda_priv *adda_priv = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8188/mt8188-dai-adda.c
408
int id = dai->id;
sound/soc/mediatek/mt8188/mt8188-dai-adda.c
493
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8188/mt8188-dai-adda.c
495
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8188/mt8188-dai-adda.c
496
if (!dai)
sound/soc/mediatek/mt8188/mt8188-dai-adda.c
499
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8188/mt8188-dai-adda.c
501
dai->dai_drivers = mtk_dai_adda_driver;
sound/soc/mediatek/mt8188/mt8188-dai-adda.c
502
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_adda_driver);
sound/soc/mediatek/mt8188/mt8188-dai-adda.c
504
dai->dapm_widgets = mtk_dai_adda_widgets;
sound/soc/mediatek/mt8188/mt8188-dai-adda.c
505
dai->num_dapm_widgets = ARRAY_SIZE(mtk_dai_adda_widgets);
sound/soc/mediatek/mt8188/mt8188-dai-adda.c
506
dai->dapm_routes = mtk_dai_adda_routes;
sound/soc/mediatek/mt8188/mt8188-dai-adda.c
507
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_adda_routes);
sound/soc/mediatek/mt8188/mt8188-dai-adda.c
508
dai->controls = mtk_dai_adda_controls;
sound/soc/mediatek/mt8188/mt8188-dai-adda.c
509
dai->num_controls = ARRAY_SIZE(mtk_dai_adda_controls);
sound/soc/mediatek/mt8188/mt8188-dai-dmic.c
196
static int mtk_dai_dmic_configure_array(struct snd_soc_dai *dai)
sound/soc/mediatek/mt8188/mt8188-dai-dmic.c
198
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8188/mt8188-dai-dmic.c
393
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8188/mt8188-dai-dmic.c
395
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8188/mt8188-dai-dmic.c
415
ret = mtk_dai_dmic_configure_array(dai);
sound/soc/mediatek/mt8188/mt8188-dai-dmic.c
665
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8188/mt8188-dai-dmic.c
667
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8188/mt8188-dai-dmic.c
668
if (!dai)
sound/soc/mediatek/mt8188/mt8188-dai-dmic.c
671
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8188/mt8188-dai-dmic.c
673
dai->dai_drivers = mtk_dai_dmic_driver;
sound/soc/mediatek/mt8188/mt8188-dai-dmic.c
674
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_dmic_driver);
sound/soc/mediatek/mt8188/mt8188-dai-dmic.c
675
dai->dapm_widgets = mtk_dai_dmic_widgets;
sound/soc/mediatek/mt8188/mt8188-dai-dmic.c
676
dai->num_dapm_widgets = ARRAY_SIZE(mtk_dai_dmic_widgets);
sound/soc/mediatek/mt8188/mt8188-dai-dmic.c
677
dai->dapm_routes = mtk_dai_dmic_routes;
sound/soc/mediatek/mt8188/mt8188-dai-dmic.c
678
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_dmic_routes);
sound/soc/mediatek/mt8188/mt8188-dai-dmic.c
679
dai->controls = mtk_dai_dmic_controls;
sound/soc/mediatek/mt8188/mt8188-dai-dmic.c
680
dai->num_controls = ARRAY_SIZE(mtk_dai_dmic_controls);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2174
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2179
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2191
if (is_cowork_mode(dai)) {
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2192
mst_dai_id = get_etdm_cowork_master_id(dai);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2217
if (!is_valid_etdm_dai(dai->id))
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2219
mst_etdm_data = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2224
bit_width, dai->id);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2272
static int mtk_dai_etdm_set_sysclk(struct snd_soc_dai *dai,
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2275
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2280
dev_dbg(dai->dev, "%s id %d freq %u, dir %d\n",
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2281
__func__, dai->id, freq, dir);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2282
if (is_cowork_mode(dai))
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2283
dai_id = get_etdm_cowork_master_id(dai);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2285
dai_id = dai->id;
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2294
static int mtk_dai_etdm_set_tdm_slot(struct snd_soc_dai *dai,
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2298
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2303
if (is_cowork_mode(dai))
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2304
dai_id = get_etdm_cowork_master_id(dai);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2306
dai_id = dai->id;
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2312
dev_dbg(dai->dev, "%s id %d slot_width %d\n",
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2313
__func__, dai->id, slot_width);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2320
static int mtk_dai_etdm_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2322
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2326
if (!is_valid_etdm_dai(dai->id))
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2328
etdm_data = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2415
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2417
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2425
if (!is_valid_etdm_dai(dai->id))
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2427
etdm_data = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2430
if (dai->id == MT8188_AFE_IO_DPTX) {
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2451
return mtk_dai_etdm_configure(afe, rate, channels, width, dai->id);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2454
static int mtk_dai_hdmitx_dptx_set_sysclk(struct snd_soc_dai *dai,
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2459
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
246
static int is_cowork_mode(struct snd_soc_dai *dai)
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2463
if (!is_valid_etdm_dai(dai->id))
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2465
etdm_data = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2467
dev_dbg(dai->dev, "%s id %d freq %u, dir %d\n",
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2468
__func__, dai->id, freq, dir);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2471
return mtk_dai_etdm_cal_mclk(afe, freq, dai->id);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
248
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
252
if (!is_valid_etdm_dai(dai->id))
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
254
etdm_data = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2693
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2695
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2696
if (!dai)
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2699
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2701
dai->dai_drivers = mtk_dai_etdm_driver;
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2702
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_etdm_driver);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2704
dai->dapm_widgets = mtk_dai_etdm_widgets;
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2705
dai->num_dapm_widgets = ARRAY_SIZE(mtk_dai_etdm_widgets);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2706
dai->dapm_routes = mtk_dai_etdm_routes;
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2707
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_etdm_routes);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2708
dai->controls = mtk_dai_etdm_controls;
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
2709
dai->num_controls = ARRAY_SIZE(mtk_dai_etdm_controls);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
278
static int get_etdm_cowork_master_id(struct snd_soc_dai *dai)
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
280
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
285
if (!is_valid_etdm_dai(dai->id))
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
287
etdm_data = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
291
dai_id = dai->id;
sound/soc/mediatek/mt8188/mt8188-dai-pcm.c
121
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8188/mt8188-dai-pcm.c
124
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8188/mt8188-dai-pcm.c
131
unsigned int bit_width = dai->symmetric_sample_bits;
sound/soc/mediatek/mt8188/mt8188-dai-pcm.c
137
if (dai->id < 0)
sound/soc/mediatek/mt8188/mt8188-dai-pcm.c
140
pcmif_priv = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8188/mt8188-dai-pcm.c
228
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8188/mt8188-dai-pcm.c
230
if (snd_soc_dai_get_widget_playback(dai)->active ||
sound/soc/mediatek/mt8188/mt8188-dai-pcm.c
231
snd_soc_dai_get_widget_capture(dai)->active)
sound/soc/mediatek/mt8188/mt8188-dai-pcm.c
234
return mtk_dai_pcm_configure(substream, dai);
sound/soc/mediatek/mt8188/mt8188-dai-pcm.c
237
static int mtk_dai_pcm_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/mediatek/mt8188/mt8188-dai-pcm.c
239
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8188/mt8188-dai-pcm.c
243
dev_dbg(dai->dev, "%s fmt 0x%x\n", __func__, fmt);
sound/soc/mediatek/mt8188/mt8188-dai-pcm.c
245
if (dai->id < 0)
sound/soc/mediatek/mt8188/mt8188-dai-pcm.c
248
pcmif_priv = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8188/mt8188-dai-pcm.c
351
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8188/mt8188-dai-pcm.c
353
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8188/mt8188-dai-pcm.c
354
if (!dai)
sound/soc/mediatek/mt8188/mt8188-dai-pcm.c
357
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8188/mt8188-dai-pcm.c
359
dai->dai_drivers = mtk_dai_pcm_driver;
sound/soc/mediatek/mt8188/mt8188-dai-pcm.c
360
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_pcm_driver);
sound/soc/mediatek/mt8188/mt8188-dai-pcm.c
362
dai->dapm_widgets = mtk_dai_pcm_widgets;
sound/soc/mediatek/mt8188/mt8188-dai-pcm.c
363
dai->num_dapm_widgets = ARRAY_SIZE(mtk_dai_pcm_widgets);
sound/soc/mediatek/mt8188/mt8188-dai-pcm.c
364
dai->dapm_routes = mtk_dai_pcm_routes;
sound/soc/mediatek/mt8188/mt8188-dai-pcm.c
365
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_pcm_routes);
sound/soc/mediatek/mt8188/mt8188-mt6359.c
612
struct snd_soc_dai *dai = snd_soc_rtd_to_cpu(rtd, 0);
sound/soc/mediatek/mt8188/mt8188-mt6359.c
614
return snd_soc_dai_set_sysclk(dai, 0, mclk_fs, SND_SOC_CLOCK_OUT);
sound/soc/mediatek/mt8189/mt8189-afe-pcm.c
136
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8189/mt8189-afe-pcm.c
139
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8189/mt8189-afe-pcm.c
179
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8189/mt8189-afe-pcm.c
182
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8189/mt8189-afe-pcm.c
201
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8189/mt8189-afe-pcm.c
203
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8189/mt8189-afe-pcm.c
205
int id = dai->id;
sound/soc/mediatek/mt8189/mt8189-afe-pcm.c
225
return mtk_afe_fe_hw_params(substream, params, dai);
sound/soc/mediatek/mt8189/mt8189-afe-pcm.c
229
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8189/mt8189-afe-pcm.c
233
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8189/mt8189-afe-pcm.c
2389
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8189/mt8189-afe-pcm.c
2391
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8189/mt8189-afe-pcm.c
2392
if (!dai)
sound/soc/mediatek/mt8189/mt8189-afe-pcm.c
2395
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8189/mt8189-afe-pcm.c
2397
dai->dai_drivers = mt8189_memif_dai_driver;
sound/soc/mediatek/mt8189/mt8189-afe-pcm.c
2398
dai->num_dai_drivers = ARRAY_SIZE(mt8189_memif_dai_driver);
sound/soc/mediatek/mt8189/mt8189-afe-pcm.c
2399
dai->dapm_widgets = mt8189_memif_widgets;
sound/soc/mediatek/mt8189/mt8189-afe-pcm.c
2400
dai->num_dapm_widgets = ARRAY_SIZE(mt8189_memif_widgets);
sound/soc/mediatek/mt8189/mt8189-afe-pcm.c
2401
dai->dapm_routes = mt8189_memif_routes;
sound/soc/mediatek/mt8189/mt8189-afe-pcm.c
2402
dai->num_dapm_routes = ARRAY_SIZE(mt8189_memif_routes);
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
1082
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
1084
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
1085
int id = dai->id;
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
1094
return set_playback_hw_params(params, dai);
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
1096
return set_capture_hw_params(params, dai);
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
1205
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
1208
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
1209
if (!dai)
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
1212
dai->dai_drivers = mtk_dai_adda_driver;
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
1213
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_adda_driver);
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
1214
dai->controls = mtk_adda_controls;
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
1215
dai->num_controls = ARRAY_SIZE(mtk_adda_controls);
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
1216
dai->dapm_widgets = mtk_dai_adda_widgets;
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
1217
dai->num_dapm_widgets = ARRAY_SIZE(mtk_dai_adda_widgets);
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
1218
dai->dapm_routes = mtk_dai_adda_routes;
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
1219
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_adda_routes);
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
1225
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
910
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
912
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
918
int id = dai->id;
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
987
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
989
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
995
int id = dai->id;
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
1265
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
1267
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
1269
return mtk_dai_i2s_config(afe, params, dai->id);
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
1272
static int mtk_dai_i2s_set_sysclk(struct snd_soc_dai *dai,
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
1275
struct mtk_base_afe *afe = dev_get_drvdata(dai->dev);
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
1281
if (dai->id >= MT8189_DAI_NUM || dai->id < 0 ||
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
1285
i2s_priv = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
1433
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
1436
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
1437
if (!dai)
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
1440
dai->dai_drivers = mtk_dai_i2s_driver;
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
1441
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_i2s_driver);
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
1443
dai->controls = mtk_dai_i2s_controls;
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
1444
dai->num_controls = ARRAY_SIZE(mtk_dai_i2s_controls);
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
1445
dai->dapm_widgets = mtk_dai_i2s_widgets;
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
1446
dai->num_dapm_widgets = ARRAY_SIZE(mtk_dai_i2s_widgets);
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
1447
dai->dapm_routes = mtk_dai_i2s_routes;
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
1448
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_i2s_routes);
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
1460
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8189/mt8189-dai-pcm.c
219
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8189/mt8189-dai-pcm.c
221
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8189/mt8189-dai-pcm.c
230
snd_soc_dai_get_widget(dai, SNDRV_PCM_STREAM_PLAYBACK);
sound/soc/mediatek/mt8189/mt8189-dai-pcm.c
232
snd_soc_dai_get_widget(dai, SNDRV_PCM_STREAM_CAPTURE);
sound/soc/mediatek/mt8189/mt8189-dai-pcm.c
240
dai->id, substream->stream, rate, rate_reg,
sound/soc/mediatek/mt8189/mt8189-dai-pcm.c
245
switch (dai->id) {
sound/soc/mediatek/mt8189/mt8189-dai-pcm.c
270
__func__, dai->id);
sound/soc/mediatek/mt8189/mt8189-dai-pcm.c
316
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8189/mt8189-dai-pcm.c
318
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8189/mt8189-dai-pcm.c
319
if (!dai)
sound/soc/mediatek/mt8189/mt8189-dai-pcm.c
322
dai->dai_drivers = mtk_dai_pcm_driver;
sound/soc/mediatek/mt8189/mt8189-dai-pcm.c
323
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_pcm_driver);
sound/soc/mediatek/mt8189/mt8189-dai-pcm.c
324
dai->dapm_widgets = mtk_dai_pcm_widgets;
sound/soc/mediatek/mt8189/mt8189-dai-pcm.c
325
dai->num_dapm_widgets = ARRAY_SIZE(mtk_dai_pcm_widgets);
sound/soc/mediatek/mt8189/mt8189-dai-pcm.c
326
dai->dapm_routes = mtk_dai_pcm_routes;
sound/soc/mediatek/mt8189/mt8189-dai-pcm.c
327
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_pcm_routes);
sound/soc/mediatek/mt8189/mt8189-dai-pcm.c
329
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
399
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
401
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
403
int tdm_id = dai->id;
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
502
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
504
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
505
int tdm_id = dai->id;
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
551
static int mtk_dai_tdm_set_sysclk(struct snd_soc_dai *dai,
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
554
struct mtk_base_afe *afe = dev_get_drvdata(dai->dev);
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
558
if (dai->id >= MT8189_DAI_NUM || dai->id < 0)
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
561
tdm_priv = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
643
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
645
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
646
if (!dai)
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
649
dai->dai_drivers = mtk_dai_tdm_driver;
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
650
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_tdm_driver);
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
651
dai->controls = mtk_dai_tdm_controls;
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
652
dai->num_controls = ARRAY_SIZE(mtk_dai_tdm_controls);
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
653
dai->dapm_widgets = mtk_dai_tdm_widgets;
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
654
dai->num_dapm_widgets = ARRAY_SIZE(mtk_dai_tdm_widgets);
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
655
dai->dapm_routes = mtk_dai_tdm_routes;
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
656
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_tdm_routes);
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
666
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8189/mt8189-nau8825.c
161
struct snd_soc_dai *dai = snd_soc_rtd_to_cpu(rtd, 0);
sound/soc/mediatek/mt8189/mt8189-nau8825.c
163
return snd_soc_dai_set_sysclk(dai, 0, mclk_fs, SND_SOC_CLOCK_OUT);
sound/soc/mediatek/mt8192/mt8192-afe-gpio.c
209
int dai, int uplink)
sound/soc/mediatek/mt8192/mt8192-afe-gpio.c
212
switch (dai) {
sound/soc/mediatek/mt8192/mt8192-afe-gpio.c
300
dev_warn(dev, "%s(), invalid dai %d\n", __func__, dai);
sound/soc/mediatek/mt8192/mt8192-afe-gpio.h
17
int dai, int uplink);
sound/soc/mediatek/mt8192/mt8192-afe-pcm.c
2131
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8192/mt8192-afe-pcm.c
2133
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8192/mt8192-afe-pcm.c
2134
if (!dai)
sound/soc/mediatek/mt8192/mt8192-afe-pcm.c
2137
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8192/mt8192-afe-pcm.c
2139
dai->dai_drivers = mt8192_memif_dai_driver;
sound/soc/mediatek/mt8192/mt8192-afe-pcm.c
2140
dai->num_dai_drivers = ARRAY_SIZE(mt8192_memif_dai_driver);
sound/soc/mediatek/mt8192/mt8192-afe-pcm.c
2142
dai->dapm_widgets = mt8192_memif_widgets;
sound/soc/mediatek/mt8192/mt8192-afe-pcm.c
2143
dai->num_dapm_widgets = ARRAY_SIZE(mt8192_memif_widgets);
sound/soc/mediatek/mt8192/mt8192-afe-pcm.c
2144
dai->dapm_routes = mt8192_memif_routes;
sound/soc/mediatek/mt8192/mt8192-afe-pcm.c
2145
dai->num_dapm_routes = ARRAY_SIZE(mt8192_memif_routes);
sound/soc/mediatek/mt8192/mt8192-dai-adda.c
1064
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8192/mt8192-dai-adda.c
1066
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8192/mt8192-dai-adda.c
1068
int id = dai->id;
sound/soc/mediatek/mt8192/mt8192-dai-adda.c
1339
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8192/mt8192-dai-adda.c
1342
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8192/mt8192-dai-adda.c
1343
if (!dai)
sound/soc/mediatek/mt8192/mt8192-dai-adda.c
1346
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8192/mt8192-dai-adda.c
1348
dai->dai_drivers = mtk_dai_adda_driver;
sound/soc/mediatek/mt8192/mt8192-dai-adda.c
1349
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_adda_driver);
sound/soc/mediatek/mt8192/mt8192-dai-adda.c
1351
dai->controls = mtk_adda_controls;
sound/soc/mediatek/mt8192/mt8192-dai-adda.c
1352
dai->num_controls = ARRAY_SIZE(mtk_adda_controls);
sound/soc/mediatek/mt8192/mt8192-dai-adda.c
1353
dai->dapm_widgets = mtk_dai_adda_widgets;
sound/soc/mediatek/mt8192/mt8192-dai-adda.c
1354
dai->num_dapm_widgets = ARRAY_SIZE(mtk_dai_adda_widgets);
sound/soc/mediatek/mt8192/mt8192-dai-adda.c
1355
dai->dapm_routes = mtk_dai_adda_routes;
sound/soc/mediatek/mt8192/mt8192-dai-adda.c
1356
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_adda_routes);
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
1530
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
1532
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
1535
rate, dai->id);
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
1539
__func__, dai->id, substream->stream, rate);
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
1590
int cmd, struct snd_soc_dai *dai)
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
1592
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
1623
afe_priv->dai_on[dai->id] = true;
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
1648
afe_priv->dai_on[dai->id] = false;
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
1766
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
1768
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
1770
return mtk_dai_i2s_config(afe, params, dai->id);
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
1773
static int mtk_dai_i2s_set_sysclk(struct snd_soc_dai *dai,
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
1776
struct mtk_base_afe *afe = dev_get_drvdata(dai->dev);
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
1778
struct mtk_afe_i2s_priv *i2s_priv = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
2074
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
2079
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
2080
if (!dai)
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
2083
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
2085
dai->dai_drivers = mtk_dai_i2s_driver;
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
2086
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_i2s_driver);
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
2088
dai->controls = mtk_dai_i2s_controls;
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
2089
dai->num_controls = ARRAY_SIZE(mtk_dai_i2s_controls);
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
2090
dai->dapm_widgets = mtk_dai_i2s_widgets;
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
2091
dai->num_dapm_widgets = ARRAY_SIZE(mtk_dai_i2s_widgets);
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
2092
dai->dapm_routes = mtk_dai_i2s_routes;
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
2093
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_i2s_routes);
sound/soc/mediatek/mt8192/mt8192-dai-pcm.c
273
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8192/mt8192-dai-pcm.c
275
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8192/mt8192-dai-pcm.c
276
struct snd_soc_dapm_widget *p = snd_soc_dai_get_widget_playback(dai);
sound/soc/mediatek/mt8192/mt8192-dai-pcm.c
277
struct snd_soc_dapm_widget *c = snd_soc_dai_get_widget_capture(dai);
sound/soc/mediatek/mt8192/mt8192-dai-pcm.c
279
unsigned int rate_reg = mt8192_rate_transform(afe->dev, rate, dai->id);
sound/soc/mediatek/mt8192/mt8192-dai-pcm.c
284
dai->id,
sound/soc/mediatek/mt8192/mt8192-dai-pcm.c
294
switch (dai->id) {
sound/soc/mediatek/mt8192/mt8192-dai-pcm.c
325
__func__, dai->id);
sound/soc/mediatek/mt8192/mt8192-dai-pcm.c
393
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8192/mt8192-dai-pcm.c
397
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8192/mt8192-dai-pcm.c
398
if (!dai)
sound/soc/mediatek/mt8192/mt8192-dai-pcm.c
401
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8192/mt8192-dai-pcm.c
403
dai->dai_drivers = mtk_dai_pcm_driver;
sound/soc/mediatek/mt8192/mt8192-dai-pcm.c
404
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_pcm_driver);
sound/soc/mediatek/mt8192/mt8192-dai-pcm.c
406
dai->dapm_widgets = mtk_dai_pcm_widgets;
sound/soc/mediatek/mt8192/mt8192-dai-pcm.c
407
dai->num_dapm_widgets = ARRAY_SIZE(mtk_dai_pcm_widgets);
sound/soc/mediatek/mt8192/mt8192-dai-pcm.c
408
dai->dapm_routes = mtk_dai_pcm_routes;
sound/soc/mediatek/mt8192/mt8192-dai-pcm.c
409
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_pcm_routes);
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
515
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
517
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
519
int tdm_id = dai->id;
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
630
static int mtk_dai_tdm_set_sysclk(struct snd_soc_dai *dai,
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
633
struct mtk_base_afe *afe = dev_get_drvdata(dai->dev);
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
635
struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
652
static int mtk_dai_tdm_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
654
struct mtk_base_afe *afe = dev_get_drvdata(dai->dev);
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
656
struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
755
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
757
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
758
if (!dai)
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
761
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
763
dai->dai_drivers = mtk_dai_tdm_driver;
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
764
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_tdm_driver);
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
766
dai->dapm_widgets = mtk_dai_tdm_widgets;
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
767
dai->num_dapm_widgets = ARRAY_SIZE(mtk_dai_tdm_widgets);
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
768
dai->dapm_routes = mtk_dai_tdm_routes;
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
769
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_tdm_routes);
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
208
mt8195_afe_found_cm(struct snd_soc_dai *dai)
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
210
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
213
if (mt8195_afe_memif_is_ul(dai->id) == 0)
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
216
switch (dai->id) {
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
232
__func__, dai->id);
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
281
struct snd_soc_dai *dai,
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
285
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
2966
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
2968
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
2969
if (!dai)
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
2972
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
2974
dai->dai_drivers = mt8195_memif_dai_driver;
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
2975
dai->num_dai_drivers = ARRAY_SIZE(mt8195_memif_dai_driver);
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
2977
dai->dapm_widgets = mt8195_memif_widgets;
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
2978
dai->num_dapm_widgets = ARRAY_SIZE(mt8195_memif_widgets);
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
2979
dai->dapm_routes = mt8195_memif_routes;
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
2980
dai->num_dapm_routes = ARRAY_SIZE(mt8195_memif_routes);
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
2981
dai->controls = mt8195_memif_controls;
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
2982
dai->num_controls = ARRAY_SIZE(mt8195_memif_controls);
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
310
struct snd_soc_dai *dai,
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
314
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
343
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
347
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
351
mt8195_afe_paired_memif_clk_prepare(substream, dai, 1);
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
353
ret = mtk_afe_fe_startup(substream, dai);
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
373
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
375
mtk_afe_fe_shutdown(substream, dai);
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
376
mt8195_afe_paired_memif_clk_prepare(substream, dai, 0);
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
381
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
384
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
388
const struct mt8195_afe_channel_merge *cm = mt8195_afe_found_cm(dai);
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
399
return mtk_afe_fe_hw_params(substream, params, dai);
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
403
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
405
return mtk_afe_fe_hw_free(substream, dai);
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
409
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
411
return mtk_afe_fe_prepare(substream, dai);
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
415
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
418
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
419
const struct mt8195_afe_channel_merge *cm = mt8195_afe_found_cm(dai);
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
434
ret = mtk_afe_fe_trigger(substream, cmd, dai);
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
439
mt8195_afe_paired_memif_clk_enable(substream, dai, 1);
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
443
mt8195_afe_paired_memif_clk_enable(substream, dai, 0);
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
452
static int mt8195_afe_fe_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
619
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
621
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
627
if (dai->id != MT8195_AFE_IO_DL_SRC &&
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
628
dai->id != MT8195_AFE_IO_UL_SRC1 &&
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
629
dai->id != MT8195_AFE_IO_UL_SRC2)
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
631
adda_priv = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
634
__func__, dai->id, substream->stream, rate);
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
642
ret = mtk_dai_da_configure(afe, rate, dai->id);
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
644
ret = mtk_dai_ad_configure(afe, rate, dai->id);
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
734
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
736
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
737
if (!dai)
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
740
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
742
dai->dai_drivers = mtk_dai_adda_driver;
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
743
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_adda_driver);
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
745
dai->dapm_widgets = mtk_dai_adda_widgets;
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
746
dai->num_dapm_widgets = ARRAY_SIZE(mtk_dai_adda_widgets);
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
747
dai->dapm_routes = mtk_dai_adda_routes;
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
748
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_adda_routes);
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
749
dai->controls = mtk_dai_adda_controls;
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
750
dai->num_controls = ARRAY_SIZE(mtk_dai_adda_controls);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
1576
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
1578
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
1586
if (is_cowork_mode(dai)) {
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
1587
mst_dai_id = get_etdm_cowork_master_id(dai);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
1606
mtk_dai_etdm_enable_mclk(afe, dai->id);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
1608
cg_id = mtk_dai_etdm_get_cg_id_by_dai_id(dai->id);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
1617
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
1619
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
1627
if (is_cowork_mode(dai)) {
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
1628
mst_dai_id = get_etdm_cowork_master_id(dai);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
1646
cg_id = mtk_dai_etdm_get_cg_id_by_dai_id(dai->id);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
1650
mtk_dai_etdm_disable_mclk(afe, dai->id);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2039
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2045
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2056
if (is_cowork_mode(dai)) {
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2057
mst_dai_id = get_etdm_cowork_master_id(dai);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2083
ret = mtk_dai_etdm_mclk_configure(afe, dai->id);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2088
bit_width, dai->id);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2095
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2098
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2105
dev_dbg(afe->dev, "%s(), cmd %d, dai id %d\n", __func__, cmd, dai->id);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2109
if (is_cowork_mode(dai)) {
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2110
mst_dai_id = get_etdm_cowork_master_id(dai);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2123
ret = mt8195_afe_enable_etdm(afe, dai->id);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2128
if (is_cowork_mode(dai)) {
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2129
mst_dai_id = get_etdm_cowork_master_id(dai);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2142
ret = mt8195_afe_disable_etdm(afe, dai->id);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2186
static int mtk_dai_etdm_set_sysclk(struct snd_soc_dai *dai,
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2189
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2194
dev_dbg(dai->dev, "%s id %d freq %u, dir %d\n",
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2195
__func__, dai->id, freq, dir);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2196
if (is_cowork_mode(dai))
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2197
dai_id = get_etdm_cowork_master_id(dai);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2199
dai_id = dai->id;
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2209
static int mtk_dai_etdm_set_tdm_slot(struct snd_soc_dai *dai,
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2213
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2217
if (!mt8195_afe_etdm_is_valid(dai->id))
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2220
etdm_data = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2221
dev_dbg(dai->dev, "%s id %d slot_width %d\n",
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2222
__func__, dai->id, slot_width);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2229
static int mtk_dai_etdm_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2231
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2235
if (!mt8195_afe_etdm_is_valid(dai->id))
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2238
etdm_data = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2295
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2297
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2299
int cg_id = mtk_dai_etdm_get_cg_id_by_dai_id(dai->id);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2304
mtk_dai_etdm_enable_mclk(afe, dai->id);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2310
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2312
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2314
int cg_id = mtk_dai_etdm_get_cg_id_by_dai_id(dai->id);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2316
mtk_dai_etdm_disable_mclk(afe, dai->id);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2352
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2354
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2363
if (!mt8195_afe_hdmitx_dptx_is_valid(dai->id))
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2366
etdm_data = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2369
if (dai->id == MT8195_AFE_IO_DPTX) {
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2390
ret = mtk_dai_etdm_mclk_configure(afe, dai->id);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2394
ret = mtk_dai_etdm_configure(afe, rate, channels, width, dai->id);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2401
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2403
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2406
dev_dbg(afe->dev, "%s(), cmd %d, dai id %d\n", __func__, cmd, dai->id);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2412
if (dai->id == MT8195_AFE_IO_DPTX)
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2418
ret = mt8195_afe_enable_etdm(afe, dai->id);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2423
ret = mt8195_afe_disable_etdm(afe, dai->id);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2426
if (dai->id == MT8195_AFE_IO_DPTX)
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2437
static int mtk_dai_hdmitx_dptx_set_sysclk(struct snd_soc_dai *dai,
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2442
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2446
if (!mt8195_afe_hdmitx_dptx_is_valid(dai->id))
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2449
etdm_data = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2451
dev_dbg(dai->dev, "%s id %d freq %u, dir %d\n",
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2452
__func__, dai->id, freq, dir);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2455
return mtk_dai_etdm_cal_mclk(afe, freq, dai->id);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2465
static int mtk_dai_etdm_probe(struct snd_soc_dai *dai)
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2467
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2471
dev_dbg(dai->dev, "%s id %d\n", __func__, dai->id);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2473
if (!mt8195_afe_etdm_is_valid(dai->id))
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2476
etdm_data = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2481
mtk_dai_etdm_mclk_configure(afe, dai->id);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2482
mtk_dai_etdm_enable_mclk(afe, dai->id);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
267
static int is_cowork_mode(struct snd_soc_dai *dai)
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
269
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
273
if (!mt8195_afe_etdm_is_valid(dai->id))
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2739
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2741
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2742
if (!dai)
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2745
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2747
dai->dai_drivers = mtk_dai_etdm_driver;
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2748
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_etdm_driver);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2750
dai->dapm_widgets = mtk_dai_etdm_widgets;
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2751
dai->num_dapm_widgets = ARRAY_SIZE(mtk_dai_etdm_widgets);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2752
dai->dapm_routes = mtk_dai_etdm_routes;
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2753
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_etdm_routes);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2754
dai->controls = mtk_dai_etdm_controls;
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
2755
dai->num_controls = ARRAY_SIZE(mtk_dai_etdm_controls);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
276
etdm_data = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
299
static int get_etdm_cowork_master_id(struct snd_soc_dai *dai)
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
301
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
306
if (!mt8195_afe_etdm_is_valid(dai->id))
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
309
etdm_data = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
313
dai_id = dai->id;
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c
120
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c
123
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c
130
unsigned int bit_width = dai->symmetric_sample_bits;
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c
136
if (dai->id != MT8195_AFE_IO_PCM)
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c
139
pcmif_priv = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c
223
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c
225
struct snd_soc_dapm_widget *p = snd_soc_dai_get_widget_playback(dai);
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c
226
struct snd_soc_dapm_widget *c = snd_soc_dai_get_widget_capture(dai);
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c
228
dev_dbg(dai->dev, "%s(), id %d, stream %d, widget active p %d, c %d\n",
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c
229
__func__, dai->id, substream->stream,
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c
235
return mtk_dai_pcm_configure(substream, dai);
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c
238
static int mtk_dai_pcm_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c
240
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c
244
dev_dbg(dai->dev, "%s fmt 0x%x\n", __func__, fmt);
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c
246
if (dai->id != MT8195_AFE_IO_PCM)
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c
249
pcmif_priv = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c
352
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c
354
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c
355
if (!dai)
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c
358
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c
360
dai->dai_drivers = mtk_dai_pcm_driver;
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c
361
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_pcm_driver);
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c
363
dai->dapm_widgets = mtk_dai_pcm_widgets;
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c
364
dai->num_dapm_widgets = ARRAY_SIZE(mtk_dai_pcm_widgets);
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c
365
dai->dapm_routes = mtk_dai_pcm_routes;
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c
366
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_pcm_routes);
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
2061
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
2063
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
2064
if (!dai)
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
2067
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
2069
dai->dai_drivers = mt8365_memif_dai_driver;
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
2070
dai->num_dai_drivers = ARRAY_SIZE(mt8365_memif_dai_driver);
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
2072
dai->dapm_widgets = mt8365_memif_widgets;
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
2073
dai->num_dapm_widgets = ARRAY_SIZE(mt8365_memif_widgets);
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
2074
dai->dapm_routes = mt8365_memif_routes;
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
2075
dai->num_dapm_routes = ARRAY_SIZE(mt8365_memif_routes);
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
500
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
503
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
525
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
528
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
539
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
542
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
648
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
651
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
669
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
672
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
717
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
720
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
756
return mtk_afe_fe_trigger(substream, cmd, dai);
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
760
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
762
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
769
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
771
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
774
&afe_priv->be_data[dai->id - MT8365_AFE_BACKEND_BASE];
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
785
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
787
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
790
&afe_priv->be_data[dai->id - MT8365_AFE_BACKEND_BASE];
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
830
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
832
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8365/mt8365-dai-adda.c
135
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8365/mt8365-dai-adda.c
137
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8365/mt8365-dai-adda.c
153
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8365/mt8365-dai-adda.c
155
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8365/mt8365-dai-adda.c
158
&afe_priv->be_data[dai->id - MT8365_AFE_BACKEND_BASE];
sound/soc/mediatek/mt8365/mt8365-dai-adda.c
182
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8365/mt8365-dai-adda.c
184
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8365/mt8365-dai-adda.c
187
&afe_priv->be_data[dai->id - MT8365_AFE_BACKEND_BASE];
sound/soc/mediatek/mt8365/mt8365-dai-adda.c
298
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8365/mt8365-dai-adda.c
300
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8365/mt8365-dai-adda.c
301
if (!dai)
sound/soc/mediatek/mt8365/mt8365-dai-adda.c
303
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8365/mt8365-dai-adda.c
304
dai->dai_drivers = mtk_dai_adda_driver;
sound/soc/mediatek/mt8365/mt8365-dai-adda.c
305
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_adda_driver);
sound/soc/mediatek/mt8365/mt8365-dai-adda.c
306
dai->dapm_widgets = mtk_dai_adda_widgets;
sound/soc/mediatek/mt8365/mt8365-dai-adda.c
307
dai->num_dapm_widgets = ARRAY_SIZE(mtk_dai_adda_widgets);
sound/soc/mediatek/mt8365/mt8365-dai-adda.c
308
dai->dapm_routes = mtk_dai_adda_routes;
sound/soc/mediatek/mt8365/mt8365-dai-adda.c
309
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_adda_routes);
sound/soc/mediatek/mt8365/mt8365-dai-dmic.c
113
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8365/mt8365-dai-dmic.c
121
unsigned int rate = dai->symmetric_rate;
sound/soc/mediatek/mt8365/mt8365-dai-dmic.c
122
int reg = get_chan_reg(dai->symmetric_channels);
sound/soc/mediatek/mt8365/mt8365-dai-dmic.c
127
dmic_data->dmic_channel = dai->symmetric_channels;
sound/soc/mediatek/mt8365/mt8365-dai-dmic.c
163
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8365/mt8365-dai-dmic.c
165
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8365/mt8365-dai-dmic.c
180
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8365/mt8365-dai-dmic.c
182
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8365/mt8365-dai-dmic.c
184
mt8365_dai_disable_dmic(afe, substream, dai);
sound/soc/mediatek/mt8365/mt8365-dai-dmic.c
197
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8365/mt8365-dai-dmic.c
199
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8365/mt8365-dai-dmic.c
201
mt8365_dai_configure_dmic(afe, substream, dai);
sound/soc/mediatek/mt8365/mt8365-dai-dmic.c
202
mt8365_dai_enable_dmic(afe, substream, dai);
sound/soc/mediatek/mt8365/mt8365-dai-dmic.c
294
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8365/mt8365-dai-dmic.c
296
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8365/mt8365-dai-dmic.c
297
if (!dai)
sound/soc/mediatek/mt8365/mt8365-dai-dmic.c
300
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8365/mt8365-dai-dmic.c
301
dai->dai_drivers = mtk_dai_dmic_driver;
sound/soc/mediatek/mt8365/mt8365-dai-dmic.c
302
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_dmic_driver);
sound/soc/mediatek/mt8365/mt8365-dai-dmic.c
303
dai->controls = mtk_dai_dmic_controls;
sound/soc/mediatek/mt8365/mt8365-dai-dmic.c
304
dai->num_controls = ARRAY_SIZE(mtk_dai_dmic_controls);
sound/soc/mediatek/mt8365/mt8365-dai-dmic.c
305
dai->dapm_widgets = mtk_dai_dmic_widgets;
sound/soc/mediatek/mt8365/mt8365-dai-dmic.c
306
dai->num_dapm_widgets = ARRAY_SIZE(mtk_dai_dmic_widgets);
sound/soc/mediatek/mt8365/mt8365-dai-dmic.c
307
dai->dapm_routes = mtk_dai_dmic_routes;
sound/soc/mediatek/mt8365/mt8365-dai-dmic.c
308
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_dmic_routes);
sound/soc/mediatek/mt8365/mt8365-dai-dmic.c
70
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8365/mt8365-dai-dmic.c
90
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
517
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
519
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
521
struct mtk_afe_i2s_priv *i2s_data = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
522
struct mt8365_be_dai_data *be = &afe_priv->be_data[dai->id - MT8365_AFE_BACKEND_BASE];
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
543
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
545
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
547
struct mtk_afe_i2s_priv *i2s_data = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
548
struct mt8365_be_dai_data *be = &afe_priv->be_data[dai->id - MT8365_AFE_BACKEND_BASE];
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
590
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
592
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
594
struct mtk_afe_i2s_priv *i2s_data = afe_priv->dai_priv[dai->id];
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
595
struct mt8365_be_dai_data *be = &afe_priv->be_data[dai->id - MT8365_AFE_BACKEND_BASE];
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
672
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
674
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
685
static int mt8365_afe_2nd_i2s_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
687
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
689
struct mt8365_be_dai_data *be = &afe_priv->be_data[dai->id - MT8365_AFE_BACKEND_BASE];
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
828
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
830
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
831
if (!dai)
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
834
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
836
dai->dai_drivers = mtk_dai_i2s_driver;
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
837
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_i2s_driver);
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
838
dai->dapm_widgets = mtk_dai_i2s_widgets;
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
839
dai->num_dapm_widgets = ARRAY_SIZE(mtk_dai_i2s_widgets);
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
840
dai->dapm_routes = mtk_dai_i2s_routes;
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
841
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_i2s_routes);
sound/soc/mediatek/mt8365/mt8365-dai-pcm.c
108
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8365/mt8365-dai-pcm.c
110
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8365/mt8365-dai-pcm.c
112
if (snd_soc_dai_active(dai))
sound/soc/mediatek/mt8365/mt8365-dai-pcm.c
121
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8365/mt8365-dai-pcm.c
123
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8365/mt8365-dai-pcm.c
125
if (snd_soc_dai_active(dai))
sound/soc/mediatek/mt8365/mt8365-dai-pcm.c
133
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8365/mt8365-dai-pcm.c
135
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8365/mt8365-dai-pcm.c
138
if ((snd_soc_dai_stream_active(dai, SNDRV_PCM_STREAM_PLAYBACK) +
sound/soc/mediatek/mt8365/mt8365-dai-pcm.c
139
snd_soc_dai_stream_active(dai, SNDRV_PCM_STREAM_CAPTURE)) > 1) {
sound/soc/mediatek/mt8365/mt8365-dai-pcm.c
142
snd_soc_dai_stream_active(dai, SNDRV_PCM_STREAM_PLAYBACK),
sound/soc/mediatek/mt8365/mt8365-dai-pcm.c
143
snd_soc_dai_stream_active(dai, SNDRV_PCM_STREAM_CAPTURE));
sound/soc/mediatek/mt8365/mt8365-dai-pcm.c
147
ret = mt8365_dai_configure_pcm1(substream, dai);
sound/soc/mediatek/mt8365/mt8365-dai-pcm.c
156
static int mt8365_dai_pcm1_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/mediatek/mt8365/mt8365-dai-pcm.c
158
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8365/mt8365-dai-pcm.c
279
struct mtk_base_afe_dai *dai;
sound/soc/mediatek/mt8365/mt8365-dai-pcm.c
281
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
sound/soc/mediatek/mt8365/mt8365-dai-pcm.c
282
if (!dai)
sound/soc/mediatek/mt8365/mt8365-dai-pcm.c
285
list_add(&dai->list, &afe->sub_dais);
sound/soc/mediatek/mt8365/mt8365-dai-pcm.c
286
dai->dai_drivers = mtk_dai_pcm_driver;
sound/soc/mediatek/mt8365/mt8365-dai-pcm.c
287
dai->num_dai_drivers = ARRAY_SIZE(mtk_dai_pcm_driver);
sound/soc/mediatek/mt8365/mt8365-dai-pcm.c
288
dai->dapm_widgets = mtk_dai_pcm_widgets;
sound/soc/mediatek/mt8365/mt8365-dai-pcm.c
289
dai->num_dapm_widgets = ARRAY_SIZE(mtk_dai_pcm_widgets);
sound/soc/mediatek/mt8365/mt8365-dai-pcm.c
290
dai->dapm_routes = mtk_dai_pcm_routes;
sound/soc/mediatek/mt8365/mt8365-dai-pcm.c
291
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_pcm_routes);
sound/soc/mediatek/mt8365/mt8365-dai-pcm.c
38
struct snd_soc_dai *dai)
sound/soc/mediatek/mt8365/mt8365-dai-pcm.c
40
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
sound/soc/mediatek/mt8365/mt8365-dai-pcm.c
47
unsigned int bit_width = dai->symmetric_sample_bits;
sound/soc/meson/aiu-acodec-ctrl.c
84
struct snd_soc_dai *dai)
sound/soc/meson/aiu-acodec-ctrl.c
89
ret = meson_codec_glue_input_hw_params(substream, params, dai);
sound/soc/meson/aiu-acodec-ctrl.c
94
data = meson_codec_glue_input_get_data(dai);
sound/soc/meson/aiu-encoder-i2s.c
189
struct snd_soc_dai *dai)
sound/soc/meson/aiu-encoder-i2s.c
191
struct snd_soc_component *component = dai->component;
sound/soc/meson/aiu-encoder-i2s.c
199
dev_err(dai->dev, "setting i2s desc failed\n");
sound/soc/meson/aiu-encoder-i2s.c
205
dev_err(dai->dev, "setting i2s clocks failed\n");
sound/soc/meson/aiu-encoder-i2s.c
215
struct snd_soc_dai *dai)
sound/soc/meson/aiu-encoder-i2s.c
217
struct snd_soc_component *component = dai->component;
sound/soc/meson/aiu-encoder-i2s.c
224
static int aiu_encoder_i2s_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/meson/aiu-encoder-i2s.c
226
struct snd_soc_component *component = dai->component;
sound/soc/meson/aiu-encoder-i2s.c
271
static int aiu_encoder_i2s_set_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/meson/aiu-encoder-i2s.c
274
struct aiu *aiu = snd_soc_component_get_drvdata(dai->component);
sound/soc/meson/aiu-encoder-i2s.c
285
dev_err(dai->dev, "Failed to set sysclk to %uHz", freq);
sound/soc/meson/aiu-encoder-i2s.c
298
struct snd_soc_dai *dai)
sound/soc/meson/aiu-encoder-i2s.c
300
struct aiu *aiu = snd_soc_component_get_drvdata(dai->component);
sound/soc/meson/aiu-encoder-i2s.c
308
dev_err(dai->dev, "adding channels constraints failed\n");
sound/soc/meson/aiu-encoder-i2s.c
314
dev_err(dai->dev, "failed to enable i2s clocks\n");
sound/soc/meson/aiu-encoder-i2s.c
320
struct snd_soc_dai *dai)
sound/soc/meson/aiu-encoder-i2s.c
322
struct aiu *aiu = snd_soc_component_get_drvdata(dai->component);
sound/soc/meson/aiu-encoder-spdif.c
116
dev_err(dai->dev, "Unsupported physical width\n");
sound/soc/meson/aiu-encoder-spdif.c
132
dev_err(dai->dev, "failed to set channel status word\n");
sound/soc/meson/aiu-encoder-spdif.c
146
dev_err(dai->dev, "failed to set mclk rate\n");
sound/soc/meson/aiu-encoder-spdif.c
156
struct snd_soc_dai *dai)
sound/soc/meson/aiu-encoder-spdif.c
158
struct snd_soc_component *component = dai->component;
sound/soc/meson/aiu-encoder-spdif.c
166
struct snd_soc_dai *dai)
sound/soc/meson/aiu-encoder-spdif.c
168
struct aiu *aiu = snd_soc_component_get_drvdata(dai->component);
sound/soc/meson/aiu-encoder-spdif.c
190
dev_err(dai->dev, "failed to enable spdif clocks\n");
sound/soc/meson/aiu-encoder-spdif.c
196
struct snd_soc_dai *dai)
sound/soc/meson/aiu-encoder-spdif.c
198
struct aiu *aiu = snd_soc_component_get_drvdata(dai->component);
sound/soc/meson/aiu-encoder-spdif.c
48
struct snd_soc_dai *dai)
sound/soc/meson/aiu-encoder-spdif.c
50
struct snd_soc_component *component = dai->component;
sound/soc/meson/aiu-encoder-spdif.c
97
struct snd_soc_dai *dai)
sound/soc/meson/aiu-encoder-spdif.c
99
struct snd_soc_component *component = dai->component;
sound/soc/meson/aiu-fifo-i2s.c
111
dev_err(dai->dev, "Unsupported physical width %u\n",
sound/soc/meson/aiu-fifo-i2s.c
153
int aiu_fifo_i2s_dai_probe(struct snd_soc_dai *dai)
sound/soc/meson/aiu-fifo-i2s.c
155
struct snd_soc_component *component = dai->component;
sound/soc/meson/aiu-fifo-i2s.c
160
ret = aiu_fifo_dai_probe(dai);
sound/soc/meson/aiu-fifo-i2s.c
164
fifo = snd_soc_dai_dma_data_get_playback(dai);
sound/soc/meson/aiu-fifo-i2s.c
48
struct snd_soc_dai *dai)
sound/soc/meson/aiu-fifo-i2s.c
50
struct snd_soc_component *component = dai->component;
sound/soc/meson/aiu-fifo-i2s.c
62
return aiu_fifo_trigger(substream, cmd, dai);
sound/soc/meson/aiu-fifo-i2s.c
66
struct snd_soc_dai *dai)
sound/soc/meson/aiu-fifo-i2s.c
68
struct snd_soc_component *component = dai->component;
sound/soc/meson/aiu-fifo-i2s.c
71
ret = aiu_fifo_prepare(substream, dai);
sound/soc/meson/aiu-fifo-i2s.c
88
struct snd_soc_dai *dai)
sound/soc/meson/aiu-fifo-i2s.c
90
struct snd_soc_component *component = dai->component;
sound/soc/meson/aiu-fifo-i2s.c
91
struct aiu_fifo *fifo = snd_soc_dai_dma_data_get_playback(dai);
sound/soc/meson/aiu-fifo-i2s.c
99
ret = aiu_fifo_hw_params(substream, params, dai);
sound/soc/meson/aiu-fifo-spdif.c
108
struct snd_soc_dai *dai)
sound/soc/meson/aiu-fifo-spdif.c
110
struct snd_soc_component *component = dai->component;
sound/soc/meson/aiu-fifo-spdif.c
114
ret = aiu_fifo_hw_params(substream, params, dai);
sound/soc/meson/aiu-fifo-spdif.c
128
dev_err(dai->dev, "Unsupported physical width %u\n",
sound/soc/meson/aiu-fifo-spdif.c
168
int aiu_fifo_spdif_dai_probe(struct snd_soc_dai *dai)
sound/soc/meson/aiu-fifo-spdif.c
170
struct snd_soc_component *component = dai->component;
sound/soc/meson/aiu-fifo-spdif.c
175
ret = aiu_fifo_dai_probe(dai);
sound/soc/meson/aiu-fifo-spdif.c
179
fifo = snd_soc_dai_dma_data_get_playback(dai);
sound/soc/meson/aiu-fifo-spdif.c
58
struct snd_soc_dai *dai)
sound/soc/meson/aiu-fifo-spdif.c
60
struct snd_soc_component *component = dai->component;
sound/soc/meson/aiu-fifo-spdif.c
63
ret = aiu_fifo_trigger(substream, cmd, dai);
sound/soc/meson/aiu-fifo-spdif.c
86
struct snd_soc_dai *dai)
sound/soc/meson/aiu-fifo-spdif.c
88
struct snd_soc_component *component = dai->component;
sound/soc/meson/aiu-fifo-spdif.c
91
ret = aiu_fifo_prepare(substream, dai);
sound/soc/meson/aiu-fifo.c
100
struct snd_soc_component *component = dai->component;
sound/soc/meson/aiu-fifo.c
101
struct aiu_fifo *fifo = snd_soc_dai_dma_data_get_playback(dai);
sound/soc/meson/aiu-fifo.c
133
struct snd_soc_dai *dai)
sound/soc/meson/aiu-fifo.c
135
struct aiu_fifo *fifo = snd_soc_dai_dma_data_get_playback(dai);
sound/soc/meson/aiu-fifo.c
160
ret = request_irq(fifo->irq, aiu_fifo_isr, 0, dev_name(dai->dev),
sound/soc/meson/aiu-fifo.c
169
struct snd_soc_dai *dai)
sound/soc/meson/aiu-fifo.c
171
struct aiu_fifo *fifo = snd_soc_dai_dma_data_get_playback(dai);
sound/soc/meson/aiu-fifo.c
178
struct snd_soc_dai *dai)
sound/soc/meson/aiu-fifo.c
181
struct aiu_fifo *fifo = snd_soc_dai_dma_data_get_playback(dai);
sound/soc/meson/aiu-fifo.c
195
int aiu_fifo_dai_probe(struct snd_soc_dai *dai)
sound/soc/meson/aiu-fifo.c
203
snd_soc_dai_dma_data_set_playback(dai, fifo);
sound/soc/meson/aiu-fifo.c
208
int aiu_fifo_dai_remove(struct snd_soc_dai *dai)
sound/soc/meson/aiu-fifo.c
210
struct aiu_fifo *fifo = snd_soc_dai_dma_data_get_playback(dai);
sound/soc/meson/aiu-fifo.c
36
struct snd_soc_dai *dai = aiu_fifo_dai(substream);
sound/soc/meson/aiu-fifo.c
37
struct aiu_fifo *fifo = snd_soc_dai_dma_data_get_playback(dai);
sound/soc/meson/aiu-fifo.c
46
static void aiu_fifo_enable(struct snd_soc_dai *dai, bool enable)
sound/soc/meson/aiu-fifo.c
48
struct snd_soc_component *component = dai->component;
sound/soc/meson/aiu-fifo.c
49
struct aiu_fifo *fifo = snd_soc_dai_dma_data_get_playback(dai);
sound/soc/meson/aiu-fifo.c
59
struct snd_soc_dai *dai)
sound/soc/meson/aiu-fifo.c
65
aiu_fifo_enable(dai, true);
sound/soc/meson/aiu-fifo.c
70
aiu_fifo_enable(dai, false);
sound/soc/meson/aiu-fifo.c
80
struct snd_soc_dai *dai)
sound/soc/meson/aiu-fifo.c
82
struct snd_soc_component *component = dai->component;
sound/soc/meson/aiu-fifo.c
83
struct aiu_fifo *fifo = snd_soc_dai_dma_data_get_playback(dai);
sound/soc/meson/aiu-fifo.c
97
struct snd_soc_dai *dai)
sound/soc/meson/aiu-fifo.h
28
int aiu_fifo_dai_probe(struct snd_soc_dai *dai);
sound/soc/meson/aiu-fifo.h
29
int aiu_fifo_dai_remove(struct snd_soc_dai *dai);
sound/soc/meson/aiu-fifo.h
35
struct snd_soc_dai *dai);
sound/soc/meson/aiu-fifo.h
37
struct snd_soc_dai *dai);
sound/soc/meson/aiu-fifo.h
40
struct snd_soc_dai *dai);
sound/soc/meson/aiu-fifo.h
42
struct snd_soc_dai *dai);
sound/soc/meson/aiu-fifo.h
44
struct snd_soc_dai *dai);
sound/soc/meson/aiu-fifo.h
46
struct snd_soc_dai *dai);
sound/soc/meson/aiu.c
49
struct snd_soc_dai *dai;
sound/soc/meson/aiu.c
63
for_each_component_dais(component, dai) {
sound/soc/meson/aiu.c
69
*dai_name = dai->driver->name;
sound/soc/meson/aiu.h
54
int aiu_fifo_i2s_dai_probe(struct snd_soc_dai *dai);
sound/soc/meson/aiu.h
55
int aiu_fifo_spdif_dai_probe(struct snd_soc_dai *dai);
sound/soc/meson/axg-fifo.c
56
struct snd_soc_dai *dai = axg_fifo_dai(ss);
sound/soc/meson/axg-fifo.c
58
return snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-fifo.c
63
struct snd_soc_dai *dai = axg_fifo_dai(ss);
sound/soc/meson/axg-fifo.c
65
return dai->dev;
sound/soc/meson/axg-frddr.c
36
struct snd_soc_dai *dai)
sound/soc/meson/axg-frddr.c
38
struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-frddr.c
53
struct snd_soc_dai *dai)
sound/soc/meson/axg-frddr.c
55
struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-frddr.c
70
struct snd_soc_dai *dai)
sound/soc/meson/axg-frddr.c
72
struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-frddr.c
87
struct snd_soc_dai *dai)
sound/soc/meson/axg-frddr.c
89
struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-frddr.c
95
struct snd_soc_dai *dai)
sound/soc/meson/axg-pdm.c
126
struct snd_soc_dai *dai)
sound/soc/meson/axg-pdm.c
128
struct axg_pdm *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-pdm.c
225
struct snd_soc_dai *dai)
sound/soc/meson/axg-pdm.c
227
struct axg_pdm *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-pdm.c
241
dev_err(dai->dev, "unsupported sample width\n");
sound/soc/meson/axg-pdm.c
249
dev_err(dai->dev, "failed to set system clock\n");
sound/soc/meson/axg-pdm.c
255
dev_err(dai->dev, "failed to set dclk\n");
sound/soc/meson/axg-pdm.c
261
dev_err(dai->dev, "invalid clock setting\n");
sound/soc/meson/axg-pdm.c
271
struct snd_soc_dai *dai)
sound/soc/meson/axg-pdm.c
273
struct axg_pdm *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-pdm.c
278
dev_err(dai->dev, "enabling dclk failed\n");
sound/soc/meson/axg-pdm.c
289
struct snd_soc_dai *dai)
sound/soc/meson/axg-pdm.c
291
struct axg_pdm *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-pdm.c
374
static int axg_pdm_dai_probe(struct snd_soc_dai *dai)
sound/soc/meson/axg-pdm.c
376
struct axg_pdm *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-pdm.c
381
dev_err(dai->dev, "enabling pclk failed\n");
sound/soc/meson/axg-pdm.c
391
dev_err(dai->dev, "setting sysclk failed\n");
sound/soc/meson/axg-pdm.c
397
dev_err(dai->dev, "enabling sysclk failed\n");
sound/soc/meson/axg-pdm.c
413
dev_err(dai->dev, "invalid filter configuration\n");
sound/soc/meson/axg-pdm.c
426
static int axg_pdm_dai_remove(struct snd_soc_dai *dai)
sound/soc/meson/axg-pdm.c
428
struct axg_pdm *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-spdifin.c
158
static int axg_spdifin_sample_mode_config(struct snd_soc_dai *dai,
sound/soc/meson/axg-spdifin.c
167
dev_err(dai->dev, "reference clock rate set failed\n");
sound/soc/meson/axg-spdifin.c
212
static int axg_spdifin_dai_probe(struct snd_soc_dai *dai)
sound/soc/meson/axg-spdifin.c
214
struct axg_spdifin *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-spdifin.c
219
dev_err(dai->dev, "failed to enable pclk\n");
sound/soc/meson/axg-spdifin.c
223
ret = axg_spdifin_sample_mode_config(dai, priv);
sound/soc/meson/axg-spdifin.c
225
dev_err(dai->dev, "mode configuration failed\n");
sound/soc/meson/axg-spdifin.c
231
dev_err(dai->dev,
sound/soc/meson/axg-spdifin.c
246
static int axg_spdifin_dai_remove(struct snd_soc_dai *dai)
sound/soc/meson/axg-spdifin.c
248
struct axg_spdifin *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-spdifin.c
96
struct snd_soc_dai *dai)
sound/soc/meson/axg-spdifin.c
98
struct axg_spdifin *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-spdifout.c
111
static int axg_spdifout_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/meson/axg-spdifout.c
113
struct axg_spdifout *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-spdifout.c
123
struct snd_soc_dai *dai)
sound/soc/meson/axg-spdifout.c
125
struct axg_spdifout *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-spdifout.c
137
dev_err(dai->dev, "too many channels for spdif dai: %u\n",
sound/soc/meson/axg-spdifout.c
160
dev_err(dai->dev, "Unsupported physical width: %u\n",
sound/soc/meson/axg-spdifout.c
180
struct snd_soc_dai *dai)
sound/soc/meson/axg-spdifout.c
182
struct axg_spdifout *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-spdifout.c
190
dev_err(dai->dev, "Creating IEC958 channel status failed %d\n",
sound/soc/meson/axg-spdifout.c
217
struct snd_soc_dai *dai)
sound/soc/meson/axg-spdifout.c
219
struct axg_spdifout *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-spdifout.c
226
dev_err(dai->dev, "failed to set spdif clock\n");
sound/soc/meson/axg-spdifout.c
230
ret = axg_spdifout_sample_fmt(params, dai);
sound/soc/meson/axg-spdifout.c
232
dev_err(dai->dev, "failed to setup sample format\n");
sound/soc/meson/axg-spdifout.c
236
ret = axg_spdifout_set_chsts(params, dai);
sound/soc/meson/axg-spdifout.c
238
dev_err(dai->dev, "failed to setup channel status words\n");
sound/soc/meson/axg-spdifout.c
246
struct snd_soc_dai *dai)
sound/soc/meson/axg-spdifout.c
248
struct axg_spdifout *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-spdifout.c
254
dev_err(dai->dev, "failed to enable pclk\n");
sound/soc/meson/axg-spdifout.c
279
struct snd_soc_dai *dai)
sound/soc/meson/axg-spdifout.c
281
struct axg_spdifout *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-spdifout.c
89
struct snd_soc_dai *dai)
sound/soc/meson/axg-spdifout.c
91
struct axg_spdifout *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-tdm-interface.c
100
static int axg_tdm_iface_set_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/meson/axg-tdm-interface.c
103
struct axg_tdm_iface *iface = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-tdm-interface.c
108
dev_warn(dai->dev, "master clock not provided\n");
sound/soc/meson/axg-tdm-interface.c
119
static int axg_tdm_iface_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/meson/axg-tdm-interface.c
121
struct axg_tdm_iface *iface = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-tdm-interface.c
126
dev_err(dai->dev, "cpu clock master: mclk missing\n");
sound/soc/meson/axg-tdm-interface.c
136
dev_err(dai->dev, "only BP_FP and BC_FC are supported\n");
sound/soc/meson/axg-tdm-interface.c
147
struct snd_soc_dai *dai)
sound/soc/meson/axg-tdm-interface.c
149
struct axg_tdm_iface *iface = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-tdm-interface.c
151
snd_soc_dai_get_dma_data(dai, substream);
sound/soc/meson/axg-tdm-interface.c
155
dev_err(dai->dev, "interface has not slots\n");
sound/soc/meson/axg-tdm-interface.c
159
if (snd_soc_component_active(dai->component)) {
sound/soc/meson/axg-tdm-interface.c
175
dev_err(dai->dev, "can't set iface rate constraint\n");
sound/soc/meson/axg-tdm-interface.c
184
struct snd_soc_dai *dai)
sound/soc/meson/axg-tdm-interface.c
186
struct axg_tdm_iface *iface = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-tdm-interface.c
187
struct axg_tdm_stream *ts = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/meson/axg-tdm-interface.c
196
dev_err(dai->dev, "not enough slots for channels\n");
sound/soc/meson/axg-tdm-interface.c
201
dev_err(dai->dev, "incompatible slots width for stream\n");
sound/soc/meson/axg-tdm-interface.c
213
static int axg_tdm_iface_set_lrclk(struct snd_soc_dai *dai,
sound/soc/meson/axg-tdm-interface.c
216
struct axg_tdm_iface *iface = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-tdm-interface.c
222
dev_err(dai->dev, "setting sample clock failed: %d\n", ret);
sound/soc/meson/axg-tdm-interface.c
251
dev_err(dai->dev,
sound/soc/meson/axg-tdm-interface.c
260
dev_err(dai->dev,
sound/soc/meson/axg-tdm-interface.c
268
static int axg_tdm_iface_set_sclk(struct snd_soc_dai *dai,
sound/soc/meson/axg-tdm-interface.c
271
struct axg_tdm_iface *iface = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-tdm-interface.c
283
dev_err(dai->dev,
sound/soc/meson/axg-tdm-interface.c
292
dev_err(dai->dev, "setting bit clock failed: %d\n", ret);
sound/soc/meson/axg-tdm-interface.c
300
dev_err(dai->dev, "setting bit clock phase failed: %d\n", ret);
sound/soc/meson/axg-tdm-interface.c
309
struct snd_soc_dai *dai)
sound/soc/meson/axg-tdm-interface.c
311
struct axg_tdm_iface *iface = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-tdm-interface.c
312
struct axg_tdm_stream *ts = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/meson/axg-tdm-interface.c
320
dev_err(dai->dev, "bad slot number for format: %d\n",
sound/soc/meson/axg-tdm-interface.c
331
dev_err(dai->dev, "unsupported dai format\n");
sound/soc/meson/axg-tdm-interface.c
335
ret = axg_tdm_iface_set_stream(substream, params, dai);
sound/soc/meson/axg-tdm-interface.c
341
ret = axg_tdm_iface_set_sclk(dai, params);
sound/soc/meson/axg-tdm-interface.c
345
ret = axg_tdm_iface_set_lrclk(dai, params);
sound/soc/meson/axg-tdm-interface.c
352
dev_err(dai->dev, "failed to apply continuous clock setting\n");
sound/soc/meson/axg-tdm-interface.c
358
struct snd_soc_dai *dai)
sound/soc/meson/axg-tdm-interface.c
360
struct axg_tdm_stream *ts = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/meson/axg-tdm-interface.c
367
struct snd_soc_dai *dai)
sound/soc/meson/axg-tdm-interface.c
370
snd_soc_dai_get_dma_data(dai, substream);
sound/soc/meson/axg-tdm-interface.c
38
int axg_tdm_set_tdm_slots(struct snd_soc_dai *dai, u32 *tx_mask,
sound/soc/meson/axg-tdm-interface.c
390
static int axg_tdm_iface_remove_dai(struct snd_soc_dai *dai)
sound/soc/meson/axg-tdm-interface.c
395
struct axg_tdm_stream *ts = snd_soc_dai_dma_data_get(dai, stream);
sound/soc/meson/axg-tdm-interface.c
404
static int axg_tdm_iface_probe_dai(struct snd_soc_dai *dai)
sound/soc/meson/axg-tdm-interface.c
406
struct axg_tdm_iface *iface = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-tdm-interface.c
412
if (!snd_soc_dai_get_widget(dai, stream))
sound/soc/meson/axg-tdm-interface.c
417
axg_tdm_iface_remove_dai(dai);
sound/soc/meson/axg-tdm-interface.c
42
struct axg_tdm_iface *iface = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-tdm-interface.c
420
snd_soc_dai_dma_data_set(dai, stream, ts);
sound/soc/meson/axg-tdm-interface.c
43
struct axg_tdm_stream *tx = snd_soc_dai_dma_data_get_playback(dai);
sound/soc/meson/axg-tdm-interface.c
44
struct axg_tdm_stream *rx = snd_soc_dai_dma_data_get_capture(dai);
sound/soc/meson/axg-tdm-interface.c
53
dev_err(dai->dev, "interface has no slot\n");
sound/soc/meson/axg-tdm-interface.c
77
dev_err(dai->dev, "unsupported slot width: %d\n", slot_width);
sound/soc/meson/axg-tdm-interface.c
86
dai->driver->playback.channels_max = tx_slots;
sound/soc/meson/axg-tdm-interface.c
87
dai->driver->playback.formats = fmt;
sound/soc/meson/axg-tdm-interface.c
92
dai->driver->capture.channels_max = rx_slots;
sound/soc/meson/axg-tdm-interface.c
93
dai->driver->capture.formats = fmt;
sound/soc/meson/axg-tdm.h
77
int axg_tdm_set_tdm_slots(struct snd_soc_dai *dai, u32 *tx_mask,
sound/soc/meson/axg-toddr.c
112
struct snd_soc_dai *dai)
sound/soc/meson/axg-toddr.c
114
struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-toddr.c
195
struct snd_soc_dai *dai)
sound/soc/meson/axg-toddr.c
197
struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-toddr.c
200
ret = axg_toddr_dai_startup(substream, dai);
sound/soc/meson/axg-toddr.c
32
struct snd_soc_dai *dai)
sound/soc/meson/axg-toddr.c
38
struct snd_soc_dai *dai)
sound/soc/meson/axg-toddr.c
40
struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-toddr.c
55
struct snd_soc_dai *dai)
sound/soc/meson/axg-toddr.c
57
struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/axg-toddr.c
88
struct snd_soc_dai *dai)
sound/soc/meson/axg-toddr.c
90
struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai);
sound/soc/meson/g12a-toacodec.c
146
struct snd_soc_dai *dai)
sound/soc/meson/g12a-toacodec.c
151
ret = meson_codec_glue_input_hw_params(substream, params, dai);
sound/soc/meson/g12a-toacodec.c
156
data = meson_codec_glue_input_get_data(dai);
sound/soc/meson/meson-codec-glue.c
102
struct snd_soc_dapm_widget *w = snd_soc_dai_get_widget_capture(dai);
sound/soc/meson/meson-codec-glue.c
109
dev_warn(dai->dev, "codec2codec link expected\n");
sound/soc/meson/meson-codec-glue.c
121
int meson_codec_glue_input_dai_probe(struct snd_soc_dai *dai)
sound/soc/meson/meson-codec-glue.c
129
meson_codec_glue_input_set_data(dai, data);
sound/soc/meson/meson-codec-glue.c
134
int meson_codec_glue_input_dai_remove(struct snd_soc_dai *dai)
sound/soc/meson/meson-codec-glue.c
137
meson_codec_glue_input_get_data(dai);
sound/soc/meson/meson-codec-glue.c
39
static void meson_codec_glue_input_set_data(struct snd_soc_dai *dai,
sound/soc/meson/meson-codec-glue.c
42
snd_soc_dai_dma_data_set_playback(dai, data);
sound/soc/meson/meson-codec-glue.c
46
meson_codec_glue_input_get_data(struct snd_soc_dai *dai)
sound/soc/meson/meson-codec-glue.c
48
return snd_soc_dai_dma_data_get_playback(dai);
sound/soc/meson/meson-codec-glue.c
57
struct snd_soc_dai *dai;
sound/soc/meson/meson-codec-glue.c
62
dai = in->priv;
sound/soc/meson/meson-codec-glue.c
64
return meson_codec_glue_input_get_data(dai);
sound/soc/meson/meson-codec-glue.c
69
struct snd_soc_dai *dai)
sound/soc/meson/meson-codec-glue.c
72
meson_codec_glue_input_get_data(dai);
sound/soc/meson/meson-codec-glue.c
80
data->params.sig_bits = dai->driver->playback.sig_bits;
sound/soc/meson/meson-codec-glue.c
86
int meson_codec_glue_input_set_fmt(struct snd_soc_dai *dai,
sound/soc/meson/meson-codec-glue.c
90
meson_codec_glue_input_get_data(dai);
sound/soc/meson/meson-codec-glue.c
99
struct snd_soc_dai *dai)
sound/soc/meson/meson-codec-glue.h
19
meson_codec_glue_input_get_data(struct snd_soc_dai *dai);
sound/soc/meson/meson-codec-glue.h
22
struct snd_soc_dai *dai);
sound/soc/meson/meson-codec-glue.h
23
int meson_codec_glue_input_set_fmt(struct snd_soc_dai *dai,
sound/soc/meson/meson-codec-glue.h
25
int meson_codec_glue_input_dai_probe(struct snd_soc_dai *dai);
sound/soc/meson/meson-codec-glue.h
26
int meson_codec_glue_input_dai_remove(struct snd_soc_dai *dai);
sound/soc/meson/meson-codec-glue.h
30
struct snd_soc_dai *dai);
sound/soc/meson/t9015.c
54
static int t9015_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/meson/t9015.c
56
struct snd_soc_component *component = dai->component;
sound/soc/pxa/mmp-sspa.c
213
struct snd_soc_dai *dai)
sound/soc/pxa/mmp-sspa.c
215
struct sspa_priv *sspa = snd_soc_dai_get_drvdata(dai);
sound/soc/pxa/mmp-sspa.c
216
struct device *dev = dai->component->dev;
sound/soc/pxa/mmp-sspa.c
281
struct snd_soc_dai *dai)
sound/soc/pxa/mmp-sspa.c
283
struct sspa_priv *sspa = snd_soc_dai_get_drvdata(dai);
sound/soc/pxa/mmp-sspa.c
325
static int mmp_sspa_probe(struct snd_soc_dai *dai)
sound/soc/pxa/mmp-sspa.c
327
struct sspa_priv *sspa = dev_get_drvdata(dai->dev);
sound/soc/pxa/mmp-sspa.c
329
snd_soc_dai_init_dma_data(dai,
sound/soc/pxa/mmp-sspa.c
84
struct snd_soc_dai *dai)
sound/soc/pxa/mmp-sspa.c
86
struct sspa_priv *sspa = snd_soc_dai_get_drvdata(dai);
sound/soc/pxa/mmp-sspa.c
95
struct snd_soc_dai *dai)
sound/soc/pxa/mmp-sspa.c
97
struct sspa_priv *sspa = snd_soc_dai_get_drvdata(dai);
sound/soc/pxa/pxa-ssp.c
746
static int pxa_ssp_probe(struct snd_soc_dai *dai)
sound/soc/pxa/pxa-ssp.c
748
struct device *dev = dai->dev;
sound/soc/pxa/pxa-ssp.c
781
priv->ssp = pxa_ssp_request(dai->id + 1, "SoC audio");
sound/soc/pxa/pxa-ssp.c
789
snd_soc_dai_set_drvdata(dai, priv);
sound/soc/pxa/pxa-ssp.c
798
static int pxa_ssp_remove(struct snd_soc_dai *dai)
sound/soc/pxa/pxa-ssp.c
800
struct ssp_priv *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/pxa/pxa2xx-i2s.c
156
struct snd_soc_dai *dai)
sound/soc/pxa/pxa2xx-i2s.c
171
snd_soc_dai_set_dma_data(dai, substream, dma_data);
sound/soc/pxa/pxa2xx-i2s.c
215
struct snd_soc_dai *dai)
sound/soc/pxa/pxa2xx-i2s.c
241
struct snd_soc_dai *dai)
sound/soc/pxa/pxa2xx-i2s.c
295
static int pxa2xx_i2s_probe(struct snd_soc_dai *dai)
sound/soc/pxa/pxa2xx-i2s.c
297
clk_i2s = clk_get(dai->dev, "I2SCLK");
sound/soc/pxa/pxa2xx-i2s.c
314
snd_soc_dai_init_dma_data(dai, &pxa2xx_i2s_pcm_stereo_out,
sound/soc/pxa/pxa2xx-i2s.c
320
static int pxa2xx_i2s_remove(struct snd_soc_dai *dai)
sound/soc/pxa/pxa2xx-i2s.c
94
struct snd_soc_dai *dai)
sound/soc/qcom/lpass-cdc-dma.c
123
static int __lpass_platform_codec_intf_init(struct snd_soc_dai *dai,
sound/soc/qcom/lpass-cdc-dma.c
139
__lpass_get_dmactl_handle(substream, dai, &dmactl, &id);
sound/soc/qcom/lpass-cdc-dma.c
172
struct snd_soc_dai *dai)
sound/soc/qcom/lpass-cdc-dma.c
174
struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai);
sound/soc/qcom/lpass-cdc-dma.c
177
switch (dai->id) {
sound/soc/qcom/lpass-cdc-dma.c
188
dev_err(soc_runtime->dev, "%s: invalid interface: %d\n", __func__, dai->id);
sound/soc/qcom/lpass-cdc-dma.c
195
struct snd_soc_dai *dai)
sound/soc/qcom/lpass-cdc-dma.c
197
struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai);
sound/soc/qcom/lpass-cdc-dma.c
200
switch (dai->id) {
sound/soc/qcom/lpass-cdc-dma.c
209
dev_err(soc_runtime->dev, "%s: invalid interface: %d\n", __func__, dai->id);
sound/soc/qcom/lpass-cdc-dma.c
216
struct snd_soc_dai *dai)
sound/soc/qcom/lpass-cdc-dma.c
246
__lpass_get_dmactl_handle(substream, dai, &dmactl, &id);
sound/soc/qcom/lpass-cdc-dma.c
260
int cmd, struct snd_soc_dai *dai)
sound/soc/qcom/lpass-cdc-dma.c
270
__lpass_platform_codec_intf_init(dai, substream);
sound/soc/qcom/lpass-cdc-dma.c
275
__lpass_get_dmactl_handle(substream, dai, &dmactl, &id);
sound/soc/qcom/lpass-cdc-dma.c
33
static void __lpass_get_dmactl_handle(struct snd_pcm_substream *substream, struct snd_soc_dai *dai,
sound/soc/qcom/lpass-cdc-dma.c
38
struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai);
sound/soc/qcom/lpass-cpu.c
104
struct snd_soc_dai *dai)
sound/soc/qcom/lpass-cpu.c
106
struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai);
sound/soc/qcom/lpass-cpu.c
108
unsigned int id = dai->driver->id;
sound/soc/qcom/lpass-cpu.c
110
clk_disable_unprepare(drvdata->mi2s_osr_clk[dai->driver->id]);
sound/soc/qcom/lpass-cpu.c
126
if (drvdata->mi2s_was_prepared[dai->driver->id]) {
sound/soc/qcom/lpass-cpu.c
127
drvdata->mi2s_was_prepared[dai->driver->id] = false;
sound/soc/qcom/lpass-cpu.c
128
clk_disable(drvdata->mi2s_bit_clk[dai->driver->id]);
sound/soc/qcom/lpass-cpu.c
131
clk_unprepare(drvdata->mi2s_bit_clk[dai->driver->id]);
sound/soc/qcom/lpass-cpu.c
135
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/qcom/lpass-cpu.c
137
struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai);
sound/soc/qcom/lpass-cpu.c
139
unsigned int id = dai->driver->id;
sound/soc/qcom/lpass-cpu.c
149
dev_err(dai->dev, "invalid bit width given: %d\n", bitwidth);
sound/soc/qcom/lpass-cpu.c
156
dev_err(dai->dev, "error updating loopback field: %d\n", ret);
sound/soc/qcom/lpass-cpu.c
163
dev_err(dai->dev, "error updating wssrc field: %d\n", ret);
sound/soc/qcom/lpass-cpu.c
178
dev_err(dai->dev, "invalid bitwidth given: %d\n", bitwidth);
sound/soc/qcom/lpass-cpu.c
184
dev_err(dai->dev, "error updating bitwidth field: %d\n", ret);
sound/soc/qcom/lpass-cpu.c
194
dev_err(dai->dev, "no line is assigned\n");
sound/soc/qcom/lpass-cpu.c
215
dev_err(dai->dev, "cannot configure 4 channels with mode %d\n",
sound/soc/qcom/lpass-cpu.c
229
dev_err(dai->dev, "cannot configure 6 channels with mode %d\n",
sound/soc/qcom/lpass-cpu.c
242
dev_err(dai->dev, "cannot configure 8 channels with mode %d\n",
sound/soc/qcom/lpass-cpu.c
248
dev_err(dai->dev, "invalid channels given: %u\n", channels);
sound/soc/qcom/lpass-cpu.c
256
dev_err(dai->dev, "error writing to i2sctl spkr mode: %d\n",
sound/soc/qcom/lpass-cpu.c
270
dev_err(dai->dev, "error writing to i2sctl mic mode: %d\n",
sound/soc/qcom/lpass-cpu.c
283
dev_err(dai->dev, "error writing to i2sctl channels mode: %d\n",
sound/soc/qcom/lpass-cpu.c
291
dev_err(dai->dev, "error setting mi2s bitclk to %u: %d\n",
sound/soc/qcom/lpass-cpu.c
300
int cmd, struct snd_soc_dai *dai)
sound/soc/qcom/lpass-cpu.c
302
struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai);
sound/soc/qcom/lpass-cpu.c
304
unsigned int id = dai->driver->id;
sound/soc/qcom/lpass-cpu.c
331
dev_err(dai->dev, "error writing to i2sctl reg: %d\n",
sound/soc/qcom/lpass-cpu.c
336
dev_err(dai->dev, "error in enabling mi2s bit clk: %d\n", ret);
sound/soc/qcom/lpass-cpu.c
356
dev_err(dai->dev, "error writing to i2sctl reg: %d\n",
sound/soc/qcom/lpass-cpu.c
359
clk_disable(drvdata->mi2s_bit_clk[dai->driver->id]);
sound/soc/qcom/lpass-cpu.c
368
struct snd_soc_dai *dai)
sound/soc/qcom/lpass-cpu.c
370
struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai);
sound/soc/qcom/lpass-cpu.c
372
unsigned int id = dai->driver->id;
sound/soc/qcom/lpass-cpu.c
387
dev_err(dai->dev, "error writing to i2sctl reg: %d\n", ret);
sound/soc/qcom/lpass-cpu.c
396
if (!drvdata->mi2s_was_prepared[dai->driver->id]) {
sound/soc/qcom/lpass-cpu.c
399
dev_err(dai->dev, "error in enabling mi2s bit clk: %d\n", ret);
sound/soc/qcom/lpass-cpu.c
402
drvdata->mi2s_was_prepared[dai->driver->id] = true;
sound/soc/qcom/lpass-cpu.c
407
static int lpass_cpu_daiops_pcm_new(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai)
sound/soc/qcom/lpass-cpu.c
410
struct snd_soc_dai_driver *drv = dai->driver;
sound/soc/qcom/lpass-cpu.c
411
struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai);
sound/soc/qcom/lpass-cpu.c
413
if (drvdata->mi2s_playback_sd_mode[dai->id] == LPAIF_I2SCTL_MODE_QUAD01) {
sound/soc/qcom/lpass-cpu.c
424
static int lpass_cpu_daiops_probe(struct snd_soc_dai *dai)
sound/soc/qcom/lpass-cpu.c
426
struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai);
sound/soc/qcom/lpass-cpu.c
431
LPAIF_I2SCTL_REG(drvdata->variant, dai->driver->id), 0);
sound/soc/qcom/lpass-cpu.c
433
dev_err(dai->dev, "error writing to i2sctl reg: %d\n", ret);
sound/soc/qcom/lpass-cpu.c
69
static int lpass_cpu_daiops_set_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/qcom/lpass-cpu.c
72
struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai);
sound/soc/qcom/lpass-cpu.c
75
ret = clk_set_rate(drvdata->mi2s_osr_clk[dai->driver->id], freq);
sound/soc/qcom/lpass-cpu.c
77
dev_err(dai->dev, "error setting mi2s osrclk to %u: %d\n",
sound/soc/qcom/lpass-cpu.c
84
struct snd_soc_dai *dai)
sound/soc/qcom/lpass-cpu.c
86
struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai);
sound/soc/qcom/lpass-cpu.c
89
ret = clk_prepare_enable(drvdata->mi2s_osr_clk[dai->driver->id]);
sound/soc/qcom/lpass-cpu.c
91
dev_err(dai->dev, "error in enabling mi2s osr clk: %d\n", ret);
sound/soc/qcom/lpass-cpu.c
94
ret = clk_prepare(drvdata->mi2s_bit_clk[dai->driver->id]);
sound/soc/qcom/lpass-cpu.c
96
dev_err(dai->dev, "error in enabling mi2s bit clk: %d\n", ret);
sound/soc/qcom/lpass-cpu.c
97
clk_disable_unprepare(drvdata->mi2s_osr_clk[dai->driver->id]);
sound/soc/qcom/lpass-hdmi.c
191
struct snd_soc_dai *dai)
sound/soc/qcom/lpass-hdmi.c
194
struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai);
sound/soc/qcom/lpass-hdmi.c
20
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/qcom/lpass-hdmi.c
206
int cmd, struct snd_soc_dai *dai)
sound/soc/qcom/lpass-hdmi.c
208
struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai);
sound/soc/qcom/lpass-hdmi.c
22
struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai);
sound/soc/qcom/lpass-hdmi.c
39
dev_err(dai->dev, "%s invalid bit width given : %d\n",
sound/soc/qcom/lpass-hdmi.c
52
dev_err(dai->dev, "%s invalid bit width given : %d\n",
sound/soc/qcom/lpass-hdmi.c
68
dev_err(dai->dev, "%s invalid bit width given : %d\n",
sound/soc/qcom/qdsp6/q6afe-dai.c
102
struct q6afe_usb_cfg *usb = &dai_data->port_config[dai->id].usb_audio;
sound/soc/qcom/qdsp6/q6afe-dai.c
120
dev_err(dai->dev, "%s: invalid format %d\n",
sound/soc/qcom/qdsp6/q6afe-dai.c
130
struct snd_soc_dai *dai)
sound/soc/qcom/qdsp6/q6afe-dai.c
132
struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev);
sound/soc/qcom/qdsp6/q6afe-dai.c
133
struct q6afe_i2s_cfg *i2s = &dai_data->port_config[dai->id].i2s_cfg;
sound/soc/qcom/qdsp6/q6afe-dai.c
138
i2s->sd_line_mask = dai_data->priv[dai->id].sd_line_mask;
sound/soc/qcom/qdsp6/q6afe-dai.c
143
static int q6i2s_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/qcom/qdsp6/q6afe-dai.c
145
struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev);
sound/soc/qcom/qdsp6/q6afe-dai.c
146
struct q6afe_i2s_cfg *i2s = &dai_data->port_config[dai->id].i2s_cfg;
sound/soc/qcom/qdsp6/q6afe-dai.c
153
static int q6tdm_set_tdm_slot(struct snd_soc_dai *dai,
sound/soc/qcom/qdsp6/q6afe-dai.c
159
struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev);
sound/soc/qcom/qdsp6/q6afe-dai.c
160
struct q6afe_tdm_cfg *tdm = &dai_data->port_config[dai->id].tdm;
sound/soc/qcom/qdsp6/q6afe-dai.c
166
dev_err(dai->dev, "%s: invalid slot_width %d\n",
sound/soc/qcom/qdsp6/q6afe-dai.c
186
dev_err(dai->dev, "%s: invalid slots %d\n",
sound/soc/qcom/qdsp6/q6afe-dai.c
191
switch (dai->id) {
sound/soc/qcom/qdsp6/q6afe-dai.c
196
tdm->slot_mask = ((dai->id & 0x1) ? tx_mask : rx_mask) & cap_mask;
sound/soc/qcom/qdsp6/q6afe-dai.c
199
dev_err(dai->dev, "%s: invalid dai id 0x%x\n",
sound/soc/qcom/qdsp6/q6afe-dai.c
200
__func__, dai->id);
sound/soc/qcom/qdsp6/q6afe-dai.c
207
static int q6tdm_set_channel_map(struct snd_soc_dai *dai,
sound/soc/qcom/qdsp6/q6afe-dai.c
212
struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev);
sound/soc/qcom/qdsp6/q6afe-dai.c
213
struct q6afe_tdm_cfg *tdm = &dai_data->port_config[dai->id].tdm;
sound/soc/qcom/qdsp6/q6afe-dai.c
217
switch (dai->id) {
sound/soc/qcom/qdsp6/q6afe-dai.c
219
if (dai->id & 0x1) {
sound/soc/qcom/qdsp6/q6afe-dai.c
221
dev_err(dai->dev, "tx slot not found\n");
sound/soc/qcom/qdsp6/q6afe-dai.c
225
dev_err(dai->dev, "invalid tx num %d\n",
sound/soc/qcom/qdsp6/q6afe-dai.c
240
dev_err(dai->dev, "rx slot not found\n");
sound/soc/qcom/qdsp6/q6afe-dai.c
244
dev_err(dai->dev, "invalid rx num %d\n",
sound/soc/qcom/qdsp6/q6afe-dai.c
260
dev_err(dai->dev, "%s: invalid dai id 0x%x\n",
sound/soc/qcom/qdsp6/q6afe-dai.c
261
__func__, dai->id);
sound/soc/qcom/qdsp6/q6afe-dai.c
270
struct snd_soc_dai *dai)
sound/soc/qcom/qdsp6/q6afe-dai.c
272
struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev);
sound/soc/qcom/qdsp6/q6afe-dai.c
273
struct q6afe_tdm_cfg *tdm = &dai_data->port_config[dai->id].tdm;
sound/soc/qcom/qdsp6/q6afe-dai.c
278
tdm->data_align_type = dai_data->priv[dai->id].data_align;
sound/soc/qcom/qdsp6/q6afe-dai.c
279
tdm->sync_src = dai_data->priv[dai->id].sync_src;
sound/soc/qcom/qdsp6/q6afe-dai.c
280
tdm->sync_mode = dai_data->priv[dai->id].sync_mode;
sound/soc/qcom/qdsp6/q6afe-dai.c
285
static int q6dma_set_channel_map(struct snd_soc_dai *dai,
sound/soc/qcom/qdsp6/q6afe-dai.c
292
struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev);
sound/soc/qcom/qdsp6/q6afe-dai.c
293
struct q6afe_cdc_dma_cfg *cfg = &dai_data->port_config[dai->id].dma_cfg;
sound/soc/qcom/qdsp6/q6afe-dai.c
297
switch (dai->id) {
sound/soc/qcom/qdsp6/q6afe-dai.c
311
dev_err(dai->dev, "tx slot not found\n");
sound/soc/qcom/qdsp6/q6afe-dai.c
316
dev_err(dai->dev, "invalid tx num %d\n",
sound/soc/qcom/qdsp6/q6afe-dai.c
335
dev_err(dai->dev, "rx slot not found\n");
sound/soc/qcom/qdsp6/q6afe-dai.c
339
dev_err(dai->dev, "invalid rx num %d\n",
sound/soc/qcom/qdsp6/q6afe-dai.c
347
dev_err(dai->dev, "%s: invalid dai id 0x%x\n",
sound/soc/qcom/qdsp6/q6afe-dai.c
348
__func__, dai->id);
sound/soc/qcom/qdsp6/q6afe-dai.c
359
struct snd_soc_dai *dai)
sound/soc/qcom/qdsp6/q6afe-dai.c
361
struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev);
sound/soc/qcom/qdsp6/q6afe-dai.c
362
struct q6afe_cdc_dma_cfg *cfg = &dai_data->port_config[dai->id].dma_cfg;
sound/soc/qcom/qdsp6/q6afe-dai.c
371
struct snd_soc_dai *dai)
sound/soc/qcom/qdsp6/q6afe-dai.c
373
struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev);
sound/soc/qcom/qdsp6/q6afe-dai.c
376
if (!dai_data->is_port_started[dai->id])
sound/soc/qcom/qdsp6/q6afe-dai.c
379
rc = q6afe_port_stop(dai_data->port[dai->id]);
sound/soc/qcom/qdsp6/q6afe-dai.c
381
dev_err(dai->dev, "fail to close AFE port (%d)\n", rc);
sound/soc/qcom/qdsp6/q6afe-dai.c
383
dai_data->is_port_started[dai->id] = false;
sound/soc/qcom/qdsp6/q6afe-dai.c
388
struct snd_soc_dai *dai)
sound/soc/qcom/qdsp6/q6afe-dai.c
39
struct snd_soc_dai *dai)
sound/soc/qcom/qdsp6/q6afe-dai.c
390
struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev);
sound/soc/qcom/qdsp6/q6afe-dai.c
393
if (dai_data->is_port_started[dai->id]) {
sound/soc/qcom/qdsp6/q6afe-dai.c
395
rc = q6afe_port_stop(dai_data->port[dai->id]);
sound/soc/qcom/qdsp6/q6afe-dai.c
397
dev_err(dai->dev, "fail to close AFE port (%d)\n", rc);
sound/soc/qcom/qdsp6/q6afe-dai.c
402
switch (dai->id) {
sound/soc/qcom/qdsp6/q6afe-dai.c
405
q6afe_hdmi_port_prepare(dai_data->port[dai->id],
sound/soc/qcom/qdsp6/q6afe-dai.c
406
&dai_data->port_config[dai->id].hdmi);
sound/soc/qcom/qdsp6/q6afe-dai.c
409
q6afe_slim_port_prepare(dai_data->port[dai->id],
sound/soc/qcom/qdsp6/q6afe-dai.c
410
&dai_data->port_config[dai->id].slim);
sound/soc/qcom/qdsp6/q6afe-dai.c
414
rc = q6afe_i2s_port_prepare(dai_data->port[dai->id],
sound/soc/qcom/qdsp6/q6afe-dai.c
415
&dai_data->port_config[dai->id].i2s_cfg);
sound/soc/qcom/qdsp6/q6afe-dai.c
417
dev_err(dai->dev, "fail to prepare AFE port %x\n",
sound/soc/qcom/qdsp6/q6afe-dai.c
418
dai->id);
sound/soc/qcom/qdsp6/q6afe-dai.c
42
struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev);
sound/soc/qcom/qdsp6/q6afe-dai.c
423
q6afe_tdm_port_prepare(dai_data->port[dai->id],
sound/soc/qcom/qdsp6/q6afe-dai.c
424
&dai_data->port_config[dai->id].tdm);
sound/soc/qcom/qdsp6/q6afe-dai.c
427
q6afe_cdc_dma_port_prepare(dai_data->port[dai->id],
sound/soc/qcom/qdsp6/q6afe-dai.c
428
&dai_data->port_config[dai->id].dma_cfg);
sound/soc/qcom/qdsp6/q6afe-dai.c
43
struct q6afe_slim_cfg *slim = &dai_data->port_config[dai->id].slim;
sound/soc/qcom/qdsp6/q6afe-dai.c
431
q6afe_usb_port_prepare(dai_data->port[dai->id],
sound/soc/qcom/qdsp6/q6afe-dai.c
432
&dai_data->port_config[dai->id].usb_audio);
sound/soc/qcom/qdsp6/q6afe-dai.c
438
rc = q6afe_port_start(dai_data->port[dai->id]);
sound/soc/qcom/qdsp6/q6afe-dai.c
440
dev_err(dai->dev, "fail to start AFE port %x\n", dai->id);
sound/soc/qcom/qdsp6/q6afe-dai.c
443
dai_data->is_port_started[dai->id] = true;
sound/soc/qcom/qdsp6/q6afe-dai.c
448
static int q6slim_set_channel_map(struct snd_soc_dai *dai,
sound/soc/qcom/qdsp6/q6afe-dai.c
454
struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev);
sound/soc/qcom/qdsp6/q6afe-dai.c
455
struct q6afe_port_config *pcfg = &dai_data->port_config[dai->id];
sound/soc/qcom/qdsp6/q6afe-dai.c
458
if (dai->id & 0x1) {
sound/soc/qcom/qdsp6/q6afe-dai.c
487
static int q6afe_mi2s_set_sysclk(struct snd_soc_dai *dai,
sound/soc/qcom/qdsp6/q6afe-dai.c
490
struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev);
sound/soc/qcom/qdsp6/q6afe-dai.c
491
struct q6afe_port *port = dai_data->port[dai->id];
sound/soc/qcom/qdsp6/q6afe-dai.c
667
static int msm_dai_q6_dai_probe(struct snd_soc_dai *dai)
sound/soc/qcom/qdsp6/q6afe-dai.c
669
struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev);
sound/soc/qcom/qdsp6/q6afe-dai.c
672
port = q6afe_port_get_from_id(dai->dev, dai->id);
sound/soc/qcom/qdsp6/q6afe-dai.c
674
dev_err(dai->dev, "Unable to get afe port\n");
sound/soc/qcom/qdsp6/q6afe-dai.c
677
dai_data->port[dai->id] = port;
sound/soc/qcom/qdsp6/q6afe-dai.c
682
static int msm_dai_q6_dai_remove(struct snd_soc_dai *dai)
sound/soc/qcom/qdsp6/q6afe-dai.c
684
struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev);
sound/soc/qcom/qdsp6/q6afe-dai.c
686
q6afe_port_put(dai_data->port[dai->id]);
sound/soc/qcom/qdsp6/q6afe-dai.c
687
dai_data->port[dai->id] = NULL;
sound/soc/qcom/qdsp6/q6afe-dai.c
69
struct snd_soc_dai *dai)
sound/soc/qcom/qdsp6/q6afe-dai.c
71
struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev);
sound/soc/qcom/qdsp6/q6afe-dai.c
73
struct q6afe_hdmi_cfg *hdmi = &dai_data->port_config[dai->id].hdmi;
sound/soc/qcom/qdsp6/q6afe-dai.c
97
struct snd_soc_dai *dai)
sound/soc/qcom/qdsp6/q6afe-dai.c
99
struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev);
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
101
struct q6apm_lpass_dai_data *dai_data = dev_get_drvdata(dai->dev);
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
102
struct audioreach_module_config *cfg = &dai_data->module_config[dai->id];
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
111
switch (dai->id) {
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
116
cfg->dp_idx = dai->id - DISPLAY_PORT_RX_1 + 1;
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
130
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
132
struct q6apm_lpass_dai_data *dai_data = dev_get_drvdata(dai->dev);
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
133
struct audioreach_module_config *cfg = &dai_data->module_config[dai->id];
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
144
static void q6apm_lpass_dai_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
146
struct q6apm_lpass_dai_data *dai_data = dev_get_drvdata(dai->dev);
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
149
if (dai_data->is_port_started[dai->id]) {
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
150
rc = q6apm_graph_stop(dai_data->graph[dai->id]);
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
151
dai_data->is_port_started[dai->id] = false;
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
153
dev_err(dai->dev, "fail to close APM port (%d)\n", rc);
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
156
if (dai_data->graph[dai->id]) {
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
157
q6apm_graph_close(dai_data->graph[dai->id]);
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
158
dai_data->graph[dai->id] = NULL;
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
162
static int q6apm_lpass_dai_prepare(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
164
struct q6apm_lpass_dai_data *dai_data = dev_get_drvdata(dai->dev);
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
165
struct audioreach_module_config *cfg = &dai_data->module_config[dai->id];
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
167
int graph_id = dai->id;
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
170
if (dai_data->is_port_started[dai->id]) {
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
171
q6apm_graph_stop(dai_data->graph[dai->id]);
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
172
dai_data->is_port_started[dai->id] = false;
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
175
q6apm_graph_close(dai_data->graph[dai->id]);
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
176
dai_data->graph[dai->id] = NULL;
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
185
graph = q6apm_graph_open(dai->dev, NULL, dai->dev, graph_id);
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
187
dev_err(dai->dev, "Failed to open graph (%d)\n", graph_id);
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
195
rc = q6apm_graph_media_format_pcm(dai_data->graph[dai->id], cfg);
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
197
dev_err(dai->dev, "Failed to set media format %d\n", rc);
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
201
rc = q6apm_graph_prepare(dai_data->graph[dai->id]);
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
203
dev_err(dai->dev, "Failed to prepare Graph %d\n", rc);
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
207
rc = q6apm_graph_start(dai_data->graph[dai->id]);
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
209
dev_err(dai->dev, "Failed to start APM port %d\n", dai->id);
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
212
dai_data->is_port_started[dai->id] = true;
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
217
q6apm_graph_close(dai_data->graph[dai->id]);
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
218
dai_data->graph[dai->id] = NULL;
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
223
static int q6apm_lpass_dai_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
225
struct q6apm_lpass_dai_data *dai_data = dev_get_drvdata(dai->dev);
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
227
int graph_id = dai->id;
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
230
graph = q6apm_graph_open(dai->dev, NULL, dai->dev, graph_id);
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
232
dev_err(dai->dev, "Failed to open graph (%d)\n", graph_id);
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
241
static int q6i2s_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
243
struct q6apm_lpass_dai_data *dai_data = dev_get_drvdata(dai->dev);
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
244
struct audioreach_module_config *cfg = &dai_data->module_config[dai->id];
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
27
static int q6dma_set_channel_map(struct snd_soc_dai *dai,
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
34
struct q6apm_lpass_dai_data *dai_data = dev_get_drvdata(dai->dev);
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
35
struct audioreach_module_config *cfg = &dai_data->module_config[dai->id];
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
38
switch (dai->id) {
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
52
dev_err(dai->dev, "tx slot not found\n");
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
57
dev_err(dai->dev, "invalid tx num %d\n",
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
77
dev_err(dai->dev, "rx slot not found\n");
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
81
dev_err(dai->dev, "invalid rx num %d\n",
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
90
dev_err(dai->dev, "%s: invalid dai id 0x%x\n",
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
91
__func__, dai->id);
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
99
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/qcom/qdsp6/q6dsp-lpass-ports.h
7
int (*probe)(struct snd_soc_dai *dai);
sound/soc/qcom/qdsp6/q6dsp-lpass-ports.h
8
int (*remove)(struct snd_soc_dai *dai);
sound/soc/qcom/qdsp6/q6usb.c
143
struct snd_soc_dai *dai;
sound/soc/qcom/qdsp6/q6usb.c
146
dai = snd_soc_rtd_to_cpu(rtd, 0);
sound/soc/qcom/qdsp6/q6usb.c
151
if (dai->stream[0].widget == w)
sound/soc/qcom/qdsp6/q6usb.c
54
struct snd_soc_dai *dai)
sound/soc/qcom/qdsp6/q6usb.c
56
struct q6usb_port_data *data = dev_get_drvdata(dai->dev);
sound/soc/renesas/fsi.c
1284
struct snd_soc_dai *dai = fsi_get_dai(io->substream);
sound/soc/renesas/fsi.c
1303
dev_err(dai->dev, "dmaengine_prep_dma_cyclic() fail\n");
sound/soc/renesas/fsi.c
1311
dev_err(dai->dev, "tx_submit() fail\n");
sound/soc/renesas/fsi.c
1554
struct snd_soc_dai *dai)
sound/soc/renesas/fsi.c
1564
struct snd_soc_dai *dai)
sound/soc/renesas/fsi.c
1572
struct snd_soc_dai *dai)
sound/soc/renesas/fsi.c
1582
ret = fsi_hw_startup(fsi, io, dai->dev);
sound/soc/renesas/fsi.c
1590
ret = fsi_hw_shutdown(fsi, dai->dev);
sound/soc/renesas/fsi.c
1630
static int fsi_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/renesas/fsi.c
1632
struct fsi_priv *fsi = fsi_get_priv_frm_dai(dai);
sound/soc/renesas/fsi.c
1669
fsi_clk_init(dai->dev, fsi, 0, 1, 1,
sound/soc/renesas/fsi.c
1672
fsi_clk_init(dai->dev, fsi, 1, 1, 0,
sound/soc/renesas/fsi.c
1687
struct snd_soc_dai *dai)
sound/soc/renesas/fsi.c
406
static struct fsi_priv *fsi_get_priv_frm_dai(struct snd_soc_dai *dai)
sound/soc/renesas/fsi.c
408
struct fsi_master *master = snd_soc_dai_get_drvdata(dai);
sound/soc/renesas/fsi.c
410
if (dai->id == 0)
sound/soc/renesas/fsi.c
529
struct snd_soc_dai *dai = fsi_get_dai(io->substream);
sound/soc/renesas/fsi.c
535
dev_err(dai->dev, "over_run = %d\n", io->oerr_num);
sound/soc/renesas/fsi.c
538
dev_err(dai->dev, "under_run = %d\n", io->uerr_num);
sound/soc/renesas/hac.c
237
struct snd_soc_dai *dai)
sound/soc/renesas/hac.c
239
struct hac_priv *hac = &hac_cpu_data[dai->id];
sound/soc/renesas/rcar/core.c
1016
struct snd_soc_dai *dai)
sound/soc/renesas/rcar/core.c
1018
struct rsnd_dai *rdai = rsnd_dai_to_rdai(dai);
sound/soc/renesas/rcar/core.c
1031
struct snd_soc_dai *dai)
sound/soc/renesas/rcar/core.c
1033
struct rsnd_priv *priv = rsnd_dai_to_priv(dai);
sound/soc/renesas/rcar/core.c
1034
struct rsnd_dai *rdai = rsnd_dai_to_rdai(dai);
sound/soc/renesas/rcar/core.c
1328
static int rsnd_soc_dai_pcm_new(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai)
sound/soc/renesas/rcar/core.c
1330
struct rsnd_dai *rdai = rsnd_dai_to_rdai(dai);
sound/soc/renesas/rcar/core.c
1537
struct snd_soc_dai *dai = rsnd_substream_to_dai(substream);
sound/soc/renesas/rcar/core.c
1538
struct rsnd_dai *rdai = rsnd_dai_to_rdai(dai);
sound/soc/renesas/rcar/core.c
1557
struct snd_soc_dai *dai = rsnd_substream_to_dai(substream);
sound/soc/renesas/rcar/core.c
1558
struct rsnd_dai *rdai = rsnd_dai_to_rdai(dai);
sound/soc/renesas/rcar/core.c
1673
struct snd_soc_dai *dai = rsnd_substream_to_dai(substream);
sound/soc/renesas/rcar/core.c
1674
struct rsnd_dai *rdai = rsnd_dai_to_rdai(dai);
sound/soc/renesas/rcar/core.c
655
#define rsnd_dai_to_priv(dai) snd_soc_dai_get_drvdata(dai)
sound/soc/renesas/rcar/core.c
656
static struct rsnd_dai *rsnd_dai_to_rdai(struct snd_soc_dai *dai)
sound/soc/renesas/rcar/core.c
658
struct rsnd_priv *priv = rsnd_dai_to_priv(dai);
sound/soc/renesas/rcar/core.c
660
return rsnd_rdai_get(priv, dai->id);
sound/soc/renesas/rcar/core.c
693
struct snd_soc_dai *dai)
sound/soc/renesas/rcar/core.c
695
struct rsnd_priv *priv = rsnd_dai_to_priv(dai);
sound/soc/renesas/rcar/core.c
696
struct rsnd_dai *rdai = rsnd_dai_to_rdai(dai);
sound/soc/renesas/rcar/core.c
731
static int rsnd_soc_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/renesas/rcar/core.c
733
struct rsnd_dai *rdai = rsnd_dai_to_rdai(dai);
sound/soc/renesas/rcar/core.c
793
static int rsnd_soc_set_dai_tdm_slot(struct snd_soc_dai *dai,
sound/soc/renesas/rcar/core.c
797
struct rsnd_priv *priv = rsnd_dai_to_priv(dai);
sound/soc/renesas/rcar/core.c
798
struct rsnd_dai *rdai = rsnd_dai_to_rdai(dai);
sound/soc/renesas/rcar/core.c
960
struct snd_soc_dai *dai)
sound/soc/renesas/rcar/core.c
962
struct rsnd_dai *rdai = rsnd_dai_to_rdai(dai);
sound/soc/renesas/rcar/msiof.c
324
static int msiof_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/renesas/rcar/msiof.c
326
struct msiof_priv *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/renesas/rz-ssi.c
1005
struct snd_soc_dai *dai)
sound/soc/renesas/rz-ssi.c
1007
struct rz_ssi_priv *ssi = snd_soc_dai_get_drvdata(dai);
sound/soc/renesas/rz-ssi.c
1081
struct snd_soc_dai *dai = snd_soc_rtd_to_cpu(rtd, 0);
sound/soc/renesas/rz-ssi.c
1082
struct rz_ssi_priv *ssi = snd_soc_dai_get_drvdata(dai);
sound/soc/renesas/rz-ssi.c
842
struct snd_soc_dai *dai)
sound/soc/renesas/rz-ssi.c
844
struct rz_ssi_priv *ssi = snd_soc_dai_get_drvdata(dai);
sound/soc/renesas/rz-ssi.c
903
static int rz_ssi_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/renesas/rz-ssi.c
905
struct rz_ssi_priv *ssi = snd_soc_dai_get_drvdata(dai);
sound/soc/renesas/rz-ssi.c
955
struct snd_soc_dai *dai)
sound/soc/renesas/rz-ssi.c
957
struct rz_ssi_priv *ssi = snd_soc_dai_get_drvdata(dai);
sound/soc/renesas/rz-ssi.c
968
struct snd_soc_dai *dai)
sound/soc/renesas/rz-ssi.c
970
struct rz_ssi_priv *ssi = snd_soc_dai_get_drvdata(dai);
sound/soc/renesas/siu_dai.c
494
struct snd_soc_dai *dai)
sound/soc/renesas/siu_dai.c
496
struct siu_info *info = snd_soc_dai_get_drvdata(dai);
sound/soc/renesas/siu_dai.c
516
struct snd_soc_dai *dai)
sound/soc/renesas/siu_dai.c
518
struct siu_info *info = snd_soc_dai_get_drvdata(dai);
sound/soc/renesas/siu_dai.c
541
struct snd_soc_dai *dai)
sound/soc/renesas/siu_dai.c
543
struct siu_info *info = snd_soc_dai_get_drvdata(dai);
sound/soc/renesas/siu_dai.c
589
static int siu_dai_set_fmt(struct snd_soc_dai *dai,
sound/soc/renesas/siu_dai.c
592
struct siu_info *info = snd_soc_dai_get_drvdata(dai);
sound/soc/renesas/siu_dai.c
596
dev_dbg(dai->dev, "%s: fmt 0x%x on port %d\n",
sound/soc/renesas/siu_dai.c
625
static int siu_dai_set_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/renesas/siu_dai.c
635
dev_dbg(dai->dev, "%s: using clock %d\n", __func__, clk_id);
sound/soc/renesas/siu_dai.c
658
siu_clk = clk_get(dai->dev, siu_name);
sound/soc/renesas/siu_dai.c
660
dev_err(dai->dev, "%s: cannot get a SIU clock: %ld\n", __func__,
sound/soc/renesas/siu_dai.c
665
parent_clk = clk_get(dai->dev, parent_name);
sound/soc/renesas/siu_dai.c
668
dev_err(dai->dev, "cannot get a SIU clock parent: %d\n", ret);
sound/soc/renesas/siu_dai.c
674
dev_err(dai->dev, "cannot reparent the SIU clock: %d\n", ret);
sound/soc/renesas/siu_dai.c
680
dev_err(dai->dev, "cannot set SIU clock rate: %d\n", ret);
sound/soc/renesas/ssi.c
102
struct snd_soc_dai *dai)
sound/soc/renesas/ssi.c
104
struct ssi_priv *ssi = &ssi_cpu_data[dai->id];
sound/soc/renesas/ssi.c
110
struct snd_soc_dai *dai)
sound/soc/renesas/ssi.c
112
struct ssi_priv *ssi = &ssi_cpu_data[dai->id];
sound/soc/renesas/ssi.c
130
struct snd_soc_dai *dai)
sound/soc/renesas/ssi.c
132
struct ssi_priv *ssi = &ssi_cpu_data[dai->id];
sound/soc/renesas/ssi.c
222
static int ssi_set_clkdiv(struct snd_soc_dai *dai, int did, int div)
sound/soc/renesas/ssi.c
224
struct ssi_priv *ssi = &ssi_cpu_data[dai->id];
sound/soc/renesas/ssi.c
245
static int ssi_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/renesas/ssi.c
247
struct ssi_priv *ssi = &ssi_cpu_data[dai->id];
sound/soc/renesas/ssi.c
90
struct snd_soc_dai *dai)
sound/soc/renesas/ssi.c
92
struct ssi_priv *ssi = &ssi_cpu_data[dai->id];
sound/soc/rockchip/rk3399_gru_sound.c
503
struct snd_soc_dai_link *dai;
sound/soc/rockchip/rk3399_gru_sound.c
558
dai = &card->dai_link[card->num_links++];
sound/soc/rockchip/rk3399_gru_sound.c
559
*dai = rockchip_dais[index];
sound/soc/rockchip/rk3399_gru_sound.c
561
if (!dai->codecs->name)
sound/soc/rockchip/rk3399_gru_sound.c
562
dai->codecs->of_node = np_codec;
sound/soc/rockchip/rk3399_gru_sound.c
563
dai->platforms->of_node = np_cpu;
sound/soc/rockchip/rk3399_gru_sound.c
564
dai->cpus->of_node = np_cpu;
sound/soc/rockchip/rockchip_i2s.c
120
static inline struct rk_i2s_dev *to_info(struct snd_soc_dai *dai)
sound/soc/rockchip/rockchip_i2s.c
122
return snd_soc_dai_get_drvdata(dai);
sound/soc/rockchip/rockchip_i2s.c
351
struct snd_soc_dai *dai)
sound/soc/rockchip/rockchip_i2s.c
353
struct rk_i2s_dev *i2s = to_info(dai);
sound/soc/rockchip/rockchip_i2s.c
455
if (dai->driver->symmetric_rate && rtd->dai_link->symmetric_rate)
sound/soc/rockchip/rockchip_i2s.c
465
int cmd, struct snd_soc_dai *dai)
sound/soc/rockchip/rockchip_i2s.c
467
struct rk_i2s_dev *i2s = to_info(dai);
sound/soc/rockchip/rockchip_i2s.c
503
static int rockchip_i2s_set_bclk_ratio(struct snd_soc_dai *dai,
sound/soc/rockchip/rockchip_i2s.c
506
struct rk_i2s_dev *i2s = to_info(dai);
sound/soc/rockchip/rockchip_i2s.c
529
static int rockchip_i2s_dai_probe(struct snd_soc_dai *dai)
sound/soc/rockchip/rockchip_i2s.c
531
struct rk_i2s_dev *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/rockchip/rockchip_i2s.c
533
snd_soc_dai_init_dma_data(dai,
sound/soc/rockchip/rockchip_i2s.c
670
struct snd_soc_dai_driver *dai;
sound/soc/rockchip/rockchip_i2s.c
682
dai = devm_kmemdup(i2s->dev, &rockchip_i2s_dai,
sound/soc/rockchip/rockchip_i2s.c
683
sizeof(*dai), GFP_KERNEL);
sound/soc/rockchip/rockchip_i2s.c
684
if (!dai)
sound/soc/rockchip/rockchip_i2s.c
688
dai->playback.stream_name = "Playback";
sound/soc/rockchip/rockchip_i2s.c
689
dai->playback.channels_min = 2;
sound/soc/rockchip/rockchip_i2s.c
690
dai->playback.channels_max = 8;
sound/soc/rockchip/rockchip_i2s.c
691
dai->playback.rates = SNDRV_PCM_RATE_8000_192000;
sound/soc/rockchip/rockchip_i2s.c
692
dai->playback.formats = SNDRV_PCM_FMTBIT_S8 |
sound/soc/rockchip/rockchip_i2s.c
704
dai->playback.channels_max = val;
sound/soc/rockchip/rockchip_i2s.c
709
dai->capture.stream_name = "Capture";
sound/soc/rockchip/rockchip_i2s.c
710
dai->capture.channels_min = 2;
sound/soc/rockchip/rockchip_i2s.c
711
dai->capture.channels_max = 8;
sound/soc/rockchip/rockchip_i2s.c
712
dai->capture.rates = SNDRV_PCM_RATE_8000_192000;
sound/soc/rockchip/rockchip_i2s.c
713
dai->capture.formats = SNDRV_PCM_FMTBIT_S8 |
sound/soc/rockchip/rockchip_i2s.c
725
dai->capture.channels_max = val;
sound/soc/rockchip/rockchip_i2s.c
730
*dp = dai;
sound/soc/rockchip/rockchip_i2s.c
739
struct snd_soc_dai_driver *dai;
sound/soc/rockchip/rockchip_i2s.c
820
ret = rockchip_i2s_init_dai(i2s, res, &dai);
sound/soc/rockchip/rockchip_i2s.c
826
dai, 1);
sound/soc/rockchip/rockchip_i2s_tdm.c
1050
struct snd_soc_dai_driver *dai;
sound/soc/rockchip/rockchip_i2s_tdm.c
1065
dai = devm_kmemdup(i2s_tdm->dev, &i2s_tdm_dai,
sound/soc/rockchip/rockchip_i2s_tdm.c
1066
sizeof(*dai), GFP_KERNEL);
sound/soc/rockchip/rockchip_i2s_tdm.c
1067
if (!dai)
sound/soc/rockchip/rockchip_i2s_tdm.c
1071
dai->playback.stream_name = "Playback";
sound/soc/rockchip/rockchip_i2s_tdm.c
1072
dai->playback.channels_min = 2;
sound/soc/rockchip/rockchip_i2s_tdm.c
1073
dai->playback.channels_max = 8;
sound/soc/rockchip/rockchip_i2s_tdm.c
1074
dai->playback.rates = SNDRV_PCM_RATE_8000_192000;
sound/soc/rockchip/rockchip_i2s_tdm.c
1075
dai->playback.formats = formats;
sound/soc/rockchip/rockchip_i2s_tdm.c
1079
dai->capture.stream_name = "Capture";
sound/soc/rockchip/rockchip_i2s_tdm.c
1080
dai->capture.channels_min = 2;
sound/soc/rockchip/rockchip_i2s_tdm.c
1081
dai->capture.channels_max = 8;
sound/soc/rockchip/rockchip_i2s_tdm.c
1082
dai->capture.rates = SNDRV_PCM_RATE_8000_192000;
sound/soc/rockchip/rockchip_i2s_tdm.c
1083
dai->capture.formats = formats;
sound/soc/rockchip/rockchip_i2s_tdm.c
1087
dai->symmetric_rate = 1;
sound/soc/rockchip/rockchip_i2s_tdm.c
1089
i2s_tdm->dai = dai;
sound/soc/rockchip/rockchip_i2s_tdm.c
1368
i2s_tdm->dai, 1);
sound/soc/rockchip/rockchip_i2s_tdm.c
168
static inline struct rk_i2s_tdm_dev *to_info(struct snd_soc_dai *dai)
sound/soc/rockchip/rockchip_i2s_tdm.c
170
return snd_soc_dai_get_drvdata(dai);
sound/soc/rockchip/rockchip_i2s_tdm.c
285
struct snd_soc_dai *dai, int on)
sound/soc/rockchip/rockchip_i2s_tdm.c
287
struct rk_i2s_tdm_dev *i2s_tdm = to_info(dai);
sound/soc/rockchip/rockchip_i2s_tdm.c
520
struct snd_soc_dai *dai)
sound/soc/rockchip/rockchip_i2s_tdm.c
522
struct rk_i2s_tdm_dev *i2s_tdm = to_info(dai);
sound/soc/rockchip/rockchip_i2s_tdm.c
584
struct snd_soc_dai *dai,
sound/soc/rockchip/rockchip_i2s_tdm.c
589
struct rk_i2s_tdm_dev *i2s_tdm = to_info(dai);
sound/soc/rockchip/rockchip_i2s_tdm.c
645
struct snd_soc_dai *dai)
sound/soc/rockchip/rockchip_i2s_tdm.c
647
struct rk_i2s_tdm_dev *i2s_tdm = to_info(dai);
sound/soc/rockchip/rockchip_i2s_tdm.c
72
struct snd_soc_dai_driver *dai;
sound/soc/rockchip/rockchip_i2s_tdm.c
729
rockchip_i2s_trcm_mode(substream, dai, div_bclk, div_lrck, val);
sound/soc/rockchip/rockchip_i2s_tdm.c
752
return rockchip_i2s_io_multiplex(substream, dai);
sound/soc/rockchip/rockchip_i2s_tdm.c
756
int cmd, struct snd_soc_dai *dai)
sound/soc/rockchip/rockchip_i2s_tdm.c
758
struct rk_i2s_tdm_dev *i2s_tdm = to_info(dai);
sound/soc/rockchip/rockchip_i2s_tdm.c
765
rockchip_snd_txrxctrl(substream, dai, 1);
sound/soc/rockchip/rockchip_i2s_tdm.c
775
rockchip_snd_txrxctrl(substream, dai, 0);
sound/soc/rockchip/rockchip_i2s_tdm.c
788
static int rockchip_i2s_tdm_dai_probe(struct snd_soc_dai *dai)
sound/soc/rockchip/rockchip_i2s_tdm.c
790
struct rk_i2s_tdm_dev *i2s_tdm = snd_soc_dai_get_drvdata(dai);
sound/soc/rockchip/rockchip_i2s_tdm.c
793
snd_soc_dai_dma_data_set_capture(dai, &i2s_tdm->capture_dma_data);
sound/soc/rockchip/rockchip_i2s_tdm.c
795
snd_soc_dai_dma_data_set_playback(dai, &i2s_tdm->playback_dma_data);
sound/soc/rockchip/rockchip_i2s_tdm.c
800
static int rockchip_dai_tdm_slot(struct snd_soc_dai *dai,
sound/soc/rockchip/rockchip_i2s_tdm.c
804
struct rk_i2s_tdm_dev *i2s_tdm = snd_soc_dai_get_drvdata(dai);
sound/soc/rockchip/rockchip_i2s_tdm.c
820
static int rockchip_i2s_tdm_set_bclk_ratio(struct snd_soc_dai *dai,
sound/soc/rockchip/rockchip_i2s_tdm.c
823
struct rk_i2s_tdm_dev *i2s_tdm = snd_soc_dai_get_drvdata(dai);
sound/soc/rockchip/rockchip_pdm.c
174
static inline struct rk_pdm_dev *to_info(struct snd_soc_dai *dai)
sound/soc/rockchip/rockchip_pdm.c
176
return snd_soc_dai_get_drvdata(dai);
sound/soc/rockchip/rockchip_pdm.c
197
struct snd_soc_dai *dai)
sound/soc/rockchip/rockchip_pdm.c
199
struct rk_pdm_dev *pdm = to_info(dai);
sound/soc/rockchip/rockchip_pdm.c
345
struct snd_soc_dai *dai)
sound/soc/rockchip/rockchip_pdm.c
347
struct rk_pdm_dev *pdm = to_info(dai);
sound/soc/rockchip/rockchip_pdm.c
371
static int rockchip_pdm_dai_probe(struct snd_soc_dai *dai)
sound/soc/rockchip/rockchip_pdm.c
373
struct rk_pdm_dev *pdm = to_info(dai);
sound/soc/rockchip/rockchip_pdm.c
375
snd_soc_dai_dma_data_set_capture(dai, &pdm->capture_dma_data);
sound/soc/rockchip/rockchip_sai.c
1102
struct snd_soc_dai_driver *dai;
sound/soc/rockchip/rockchip_sai.c
1113
dai = devm_kmemdup(sai->dev, &rockchip_sai_dai,
sound/soc/rockchip/rockchip_sai.c
1114
sizeof(*dai), GFP_KERNEL);
sound/soc/rockchip/rockchip_sai.c
1115
if (!dai)
sound/soc/rockchip/rockchip_sai.c
1119
dai->playback.stream_name = "Playback";
sound/soc/rockchip/rockchip_sai.c
1120
dai->playback.channels_min = 1;
sound/soc/rockchip/rockchip_sai.c
1121
dai->playback.channels_max = 512;
sound/soc/rockchip/rockchip_sai.c
1122
dai->playback.rates = SNDRV_PCM_RATE_8000_384000;
sound/soc/rockchip/rockchip_sai.c
1123
dai->playback.formats = SNDRV_PCM_FMTBIT_S8 |
sound/soc/rockchip/rockchip_sai.c
1135
dai->capture.stream_name = "Capture";
sound/soc/rockchip/rockchip_sai.c
1136
dai->capture.channels_min = 1;
sound/soc/rockchip/rockchip_sai.c
1137
dai->capture.channels_max = 512;
sound/soc/rockchip/rockchip_sai.c
1138
dai->capture.rates = SNDRV_PCM_RATE_8000_384000;
sound/soc/rockchip/rockchip_sai.c
1139
dai->capture.formats = SNDRV_PCM_FMTBIT_S8 |
sound/soc/rockchip/rockchip_sai.c
1156
*dp = dai;
sound/soc/rockchip/rockchip_sai.c
1387
struct snd_soc_dai_driver *dai;
sound/soc/rockchip/rockchip_sai.c
1448
ret = rockchip_sai_init_dai(sai, res, &dai);
sound/soc/rockchip/rockchip_sai.c
1476
dai, 1);
sound/soc/rockchip/rockchip_sai.c
481
static int rockchip_sai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/rockchip/rockchip_sai.c
483
struct rk_sai_dev *sai = snd_soc_dai_get_drvdata(dai);
sound/soc/rockchip/rockchip_sai.c
489
pm_runtime_get_sync(dai->dev);
sound/soc/rockchip/rockchip_sai.c
552
pm_runtime_put(dai->dev);
sound/soc/rockchip/rockchip_sai.c
559
struct snd_soc_dai *dai)
sound/soc/rockchip/rockchip_sai.c
561
struct rk_sai_dev *sai = snd_soc_dai_get_drvdata(dai);
sound/soc/rockchip/rockchip_sai.c
570
if (!rockchip_sai_stream_valid(substream, dai))
sound/soc/rockchip/rockchip_sai.c
573
dma_data = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/rockchip/rockchip_sai.c
701
struct snd_soc_dai *dai)
sound/soc/rockchip/rockchip_sai.c
703
struct rk_sai_dev *sai = snd_soc_dai_get_drvdata(dai);
sound/soc/rockchip/rockchip_sai.c
706
if (!rockchip_sai_stream_valid(substream, dai))
sound/soc/rockchip/rockchip_sai.c
71
struct snd_soc_dai *dai)
sound/soc/rockchip/rockchip_sai.c
73
struct rk_sai_dev *sai = snd_soc_dai_get_drvdata(dai);
sound/soc/rockchip/rockchip_sai.c
839
int cmd, struct snd_soc_dai *dai)
sound/soc/rockchip/rockchip_sai.c
841
struct rk_sai_dev *sai = snd_soc_dai_get_drvdata(dai);
sound/soc/rockchip/rockchip_sai.c
844
if (!rockchip_sai_stream_valid(substream, dai))
sound/soc/rockchip/rockchip_sai.c
867
static int rockchip_sai_dai_probe(struct snd_soc_dai *dai)
sound/soc/rockchip/rockchip_sai.c
869
struct rk_sai_dev *sai = snd_soc_dai_get_drvdata(dai);
sound/soc/rockchip/rockchip_sai.c
871
snd_soc_dai_init_dma_data(dai,
sound/soc/rockchip/rockchip_sai.c
879
struct snd_soc_dai *dai)
sound/soc/rockchip/rockchip_sai.c
881
struct rk_sai_dev *sai = snd_soc_dai_get_drvdata(dai);
sound/soc/rockchip/rockchip_sai.c
884
if (!rockchip_sai_stream_valid(substream, dai))
sound/soc/rockchip/rockchip_sai.c
899
struct snd_soc_dai *dai)
sound/soc/rockchip/rockchip_sai.c
901
struct rk_sai_dev *sai = snd_soc_dai_get_drvdata(dai);
sound/soc/rockchip/rockchip_sai.c
903
if (!rockchip_sai_stream_valid(substream, dai))
sound/soc/rockchip/rockchip_sai.c
909
static int rockchip_sai_set_tdm_slot(struct snd_soc_dai *dai,
sound/soc/rockchip/rockchip_sai.c
913
struct rk_sai_dev *sai = snd_soc_dai_get_drvdata(dai);
sound/soc/rockchip/rockchip_sai.c
929
pm_runtime_get_sync(dai->dev);
sound/soc/rockchip/rockchip_sai.c
940
pm_runtime_put(dai->dev);
sound/soc/rockchip/rockchip_sai.c
945
static int rockchip_sai_set_sysclk(struct snd_soc_dai *dai, int stream,
sound/soc/rockchip/rockchip_sai.c
948
struct rk_sai_dev *sai = snd_soc_dai_get_drvdata(dai);
sound/soc/rockchip/rockchip_spdif.c
106
struct snd_soc_dai *dai)
sound/soc/rockchip/rockchip_spdif.c
108
struct rk_spdif_dev *spdif = snd_soc_dai_get_drvdata(dai);
sound/soc/rockchip/rockchip_spdif.c
171
int cmd, struct snd_soc_dai *dai)
sound/soc/rockchip/rockchip_spdif.c
173
struct rk_spdif_dev *spdif = snd_soc_dai_get_drvdata(dai);
sound/soc/rockchip/rockchip_spdif.c
215
static int rk_spdif_dai_probe(struct snd_soc_dai *dai)
sound/soc/rockchip/rockchip_spdif.c
217
struct rk_spdif_dev *spdif = snd_soc_dai_get_drvdata(dai);
sound/soc/rockchip/rockchip_spdif.c
219
snd_soc_dai_dma_data_set_playback(dai, &spdif->playback_dma_data);
sound/soc/rockchip/rockchip_spdif.c
224
static int rk_spdif_set_sysclk(struct snd_soc_dai *dai,
sound/soc/rockchip/rockchip_spdif.c
227
struct rk_spdif_dev *spdif = snd_soc_dai_get_drvdata(dai);
sound/soc/samsung/i2s.c
1002
pm_runtime_put(dai->dev);
sound/soc/samsung/i2s.c
1008
pm_runtime_put(dai->dev);
sound/soc/samsung/i2s.c
1020
i2s_delay(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/samsung/i2s.c
1022
struct samsung_i2s_priv *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/samsung/i2s.c
1023
struct i2s_dai *i2s = to_info(dai);
sound/soc/samsung/i2s.c
1027
WARN_ON(!pm_runtime_active(dai->dev));
sound/soc/samsung/i2s.c
1054
static int samsung_i2s_dai_probe(struct snd_soc_dai *dai)
sound/soc/samsung/i2s.c
1056
struct samsung_i2s_priv *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/samsung/i2s.c
1057
struct i2s_dai *i2s = to_info(dai);
sound/soc/samsung/i2s.c
1061
pm_runtime_get_sync(dai->dev);
sound/soc/samsung/i2s.c
1065
snd_soc_dai_init_dma_data(dai, &i2s->dma_playback, NULL);
sound/soc/samsung/i2s.c
1067
snd_soc_dai_init_dma_data(dai, &i2s->dma_playback,
sound/soc/samsung/i2s.c
1092
i2s_set_sysclk(dai, SAMSUNG_I2S_CDCLK,
sound/soc/samsung/i2s.c
1094
pm_runtime_put(dai->dev);
sound/soc/samsung/i2s.c
1099
static int samsung_i2s_dai_remove(struct snd_soc_dai *dai)
sound/soc/samsung/i2s.c
1101
struct samsung_i2s_priv *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/samsung/i2s.c
1102
struct i2s_dai *i2s = to_info(dai);
sound/soc/samsung/i2s.c
1105
pm_runtime_get_sync(dai->dev);
sound/soc/samsung/i2s.c
1115
pm_runtime_put(dai->dev);
sound/soc/samsung/i2s.c
117
struct snd_soc_dai *dai);
sound/soc/samsung/i2s.c
1178
priv->dai = devm_kcalloc(&priv->pdev->dev, num_dais,
sound/soc/samsung/i2s.c
1180
if (!priv->dai)
sound/soc/samsung/i2s.c
119
struct snd_soc_dai *dai);
sound/soc/samsung/i2s.c
1203
priv->dai[i].drv = &priv->dai_drv[i];
sound/soc/samsung/i2s.c
1204
priv->dai[i].pdev = priv->pdev;
sound/soc/samsung/i2s.c
1441
pri_dai = &priv->dai[SAMSUNG_I2S_ID_PRIMARY - 1];
sound/soc/samsung/i2s.c
1496
sec_dai = &priv->dai[SAMSUNG_I2S_ID_SECONDARY - 1];
sound/soc/samsung/i2s.c
1577
struct snd_soc_dai *dai)
sound/soc/samsung/i2s.c
1584
i2s_set_sysclk(dai, SAMSUNG_I2S_CDCLK, 0, SND_SOC_CLOCK_OUT);
sound/soc/samsung/i2s.c
1585
i2s_set_sysclk(dai, SAMSUNG_I2S_OPCLK, 0, MOD_OPCLK_PCLK);
sound/soc/samsung/i2s.c
1590
struct snd_soc_dai *dai)
sound/soc/samsung/i2s.c
1593
struct samsung_i2s_priv *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/samsung/i2s.c
225
static inline struct i2s_dai *to_info(struct snd_soc_dai *dai)
sound/soc/samsung/i2s.c
227
struct samsung_i2s_priv *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/samsung/i2s.c
229
return &priv->dai[dai->id - 1];
sound/soc/samsung/i2s.c
503
static int i2s_set_sysclk(struct snd_soc_dai *dai, int clk_id, unsigned int rfs,
sound/soc/samsung/i2s.c
506
struct samsung_i2s_priv *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/samsung/i2s.c
507
struct i2s_dai *i2s = to_info(dai);
sound/soc/samsung/i2s.c
516
pm_runtime_get_sync(dai->dev);
sound/soc/samsung/i2s.c
52
struct snd_soc_dai *dai);
sound/soc/samsung/i2s.c
54
struct snd_soc_dai *dai);
sound/soc/samsung/i2s.c
621
pm_runtime_put(dai->dev);
sound/soc/samsung/i2s.c
625
pm_runtime_put(dai->dev);
sound/soc/samsung/i2s.c
629
static int i2s_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/samsung/i2s.c
631
struct samsung_i2s_priv *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/samsung/i2s.c
632
struct i2s_dai *i2s = to_info(dai);
sound/soc/samsung/i2s.c
691
i2s_set_sysclk(dai, SAMSUNG_I2S_RCLKSRC_0,
sound/soc/samsung/i2s.c
699
pm_runtime_get_sync(dai->dev);
sound/soc/samsung/i2s.c
709
pm_runtime_put(dai->dev);
sound/soc/samsung/i2s.c
720
pm_runtime_put(dai->dev);
sound/soc/samsung/i2s.c
726
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
sound/soc/samsung/i2s.c
728
struct samsung_i2s_priv *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/samsung/i2s.c
729
struct i2s_dai *i2s = to_info(dai);
sound/soc/samsung/i2s.c
734
WARN_ON(!pm_runtime_active(dai->dev));
sound/soc/samsung/i2s.c
810
snd_soc_dai_init_dma_data(dai, &i2s->dma_playback, &i2s->dma_capture);
sound/soc/samsung/i2s.c
823
struct snd_soc_dai *dai)
sound/soc/samsung/i2s.c
825
struct samsung_i2s_priv *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/samsung/i2s.c
826
struct i2s_dai *i2s = to_info(dai);
sound/soc/samsung/i2s.c
830
pm_runtime_get_sync(dai->dev);
sound/soc/samsung/i2s.c
850
struct snd_soc_dai *dai)
sound/soc/samsung/i2s.c
852
struct samsung_i2s_priv *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/samsung/i2s.c
853
struct i2s_dai *i2s = to_info(dai);
sound/soc/samsung/i2s.c
871
pm_runtime_put(dai->dev);
sound/soc/samsung/i2s.c
936
int cmd, struct snd_soc_dai *dai)
sound/soc/samsung/i2s.c
938
struct samsung_i2s_priv *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/samsung/i2s.c
948
pm_runtime_get_sync(dai->dev);
sound/soc/samsung/i2s.c
951
priv->fixup_early(substream, dai);
sound/soc/samsung/i2s.c
961
priv->fixup_late(substream, dai);
sound/soc/samsung/i2s.c
97
struct i2s_dai *dai;
sound/soc/samsung/i2s.c
984
pm_runtime_put(dai->dev);
sound/soc/samsung/i2s.c
991
static int i2s_set_clkdiv(struct snd_soc_dai *dai,
sound/soc/samsung/i2s.c
994
struct i2s_dai *i2s = to_info(dai);
sound/soc/samsung/i2s.c
999
pm_runtime_get_sync(dai->dev);
sound/soc/samsung/pcm.c
217
struct snd_soc_dai *dai)
sound/soc/samsung/pcm.c
435
static int s3c_pcm_dai_probe(struct snd_soc_dai *dai)
sound/soc/samsung/pcm.c
437
struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(dai);
sound/soc/samsung/pcm.c
439
snd_soc_dai_init_dma_data(dai, pcm->dma_playback, pcm->dma_capture);
sound/soc/samsung/spdif.c
142
struct snd_soc_dai *dai)
sound/soc/samsung/spdif.c
280
struct snd_soc_dai *dai)
sound/soc/samsung/speyside.c
133
struct snd_soc_dai *dai = snd_soc_rtd_to_codec(rtd, 0);
sound/soc/samsung/speyside.c
136
ret = snd_soc_dai_set_sysclk(dai, 0, MCLK_AUDIO_RATE, 0);
sound/soc/samsung/speyside.c
145
struct snd_soc_dai *dai = snd_soc_rtd_to_codec(rtd, 0);
sound/soc/samsung/speyside.c
146
struct snd_soc_component *component = dai->component;
sound/soc/samsung/speyside.c
150
ret = snd_soc_dai_set_sysclk(dai, WM8996_SYSCLK_MCLK2, 32768, 0);
sound/soc/sdca/sdca_asoc.c
1311
struct snd_soc_dai *dai)
sound/soc/sdca/sdca_asoc.c
1317
struct sdca_entity *entity = &function->entities[dai->id];
sound/soc/sdca/sdca_asoc.c
1369
dai->priv = constraint;
sound/soc/sdca/sdca_asoc.c
1383
struct snd_soc_dai *dai)
sound/soc/sdca/sdca_asoc.c
1385
struct snd_pcm_hw_constraint_list *constraint = dai->priv;
sound/soc/sdca/sdca_asoc.c
1405
struct snd_soc_dai *dai)
sound/soc/sdca/sdca_asoc.c
1407
struct sdca_entity *entity = &function->entities[dai->id];
sound/soc/sdca/sdca_asoc.c
1605
struct snd_soc_dai *dai)
sound/soc/sdca/sdca_asoc.c
1607
struct sdca_entity *entity = &function->entities[dai->id];
sound/soc/sdca/sdca_class_function.c
120
struct snd_soc_dai *dai)
sound/soc/sdca/sdca_class_function.c
122
struct class_function_drv *drv = snd_soc_component_get_drvdata(dai->component);
sound/soc/sdca/sdca_class_function.c
125
substream, dai);
sound/soc/sdca/sdca_class_function.c
130
struct snd_soc_dai *dai)
sound/soc/sdca/sdca_class_function.c
132
struct class_function_drv *drv = snd_soc_component_get_drvdata(dai->component);
sound/soc/sdca/sdca_class_function.c
133
struct sdw_stream_runtime *sdw_stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/sdca/sdca_class_function.c
148
ret = sdca_asoc_get_port(drv->dev, drv->regmap, drv->function, dai);
sound/soc/sdca/sdca_class_function.c
161
substream, params, dai);
sound/soc/sdca/sdca_class_function.c
165
struct snd_soc_dai *dai)
sound/soc/sdca/sdca_class_function.c
167
struct class_function_drv *drv = snd_soc_component_get_drvdata(dai->component);
sound/soc/sdca/sdca_class_function.c
168
struct sdw_stream_runtime *sdw_stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/sdca/sdca_class_function.c
177
static int class_function_sdw_set_stream(struct snd_soc_dai *dai, void *sdw_stream,
sound/soc/sdca/sdca_class_function.c
180
snd_soc_dai_dma_data_set(dai, direction, sdw_stream);
sound/soc/sdw_utils/soc_sdw_cs42l42.c
40
int asoc_sdw_cs42l42_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai)
sound/soc/sdw_utils/soc_sdw_cs42l42.c
49
component = dai->component;
sound/soc/sdw_utils/soc_sdw_cs42l43.c
108
int asoc_sdw_cs42l43_spk_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai)
sound/soc/sdw_utils/soc_sdw_cs42l43.c
156
int asoc_sdw_cs42l43_dmic_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai)
sound/soc/sdw_utils/soc_sdw_cs42l43.c
55
int asoc_sdw_cs42l43_hs_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai)
sound/soc/sdw_utils/soc_sdw_cs42l45.c
38
int asoc_sdw_cs42l45_hs_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai)
sound/soc/sdw_utils/soc_sdw_cs42l45.c
69
int asoc_sdw_cs42l45_dmic_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai)
sound/soc/sdw_utils/soc_sdw_cs_amp.c
38
int asoc_sdw_cs_spk_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai)
sound/soc/sdw_utils/soc_sdw_cs_amp.c
67
int asoc_sdw_cs_spk_feedback_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai)
sound/soc/sdw_utils/soc_sdw_maxim.c
26
int asoc_sdw_maxim_spk_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai)
sound/soc/sdw_utils/soc_sdw_rt5682.c
40
int asoc_sdw_rt5682_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai)
sound/soc/sdw_utils/soc_sdw_rt5682.c
49
component = dai->component;
sound/soc/sdw_utils/soc_sdw_rt700.c
38
int asoc_sdw_rt700_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai)
sound/soc/sdw_utils/soc_sdw_rt700.c
47
component = dai->component;
sound/soc/sdw_utils/soc_sdw_rt711.c
64
int asoc_sdw_rt711_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai)
sound/soc/sdw_utils/soc_sdw_rt711.c
73
component = dai->component;
sound/soc/sdw_utils/soc_sdw_rt_amp.c
170
static const struct snd_soc_dapm_route *get_codec_name_and_route(struct snd_soc_dai *dai,
sound/soc/sdw_utils/soc_sdw_rt_amp.c
174
snprintf(codec_name, CODEC_NAME_SIZE, "%s", dai->name);
sound/soc/sdw_utils/soc_sdw_rt_amp.c
187
int asoc_sdw_rt_amp_spk_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai)
sound/soc/sdw_utils/soc_sdw_rt_amp.c
197
rt_amp_map = get_codec_name_and_route(dai, codec_name);
sound/soc/sdw_utils/soc_sdw_rt_dmic.c
16
int asoc_sdw_rt_dmic_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai)
sound/soc/sdw_utils/soc_sdw_rt_dmic.c
22
component = dai->component;
sound/soc/sdw_utils/soc_sdw_rt_mf_sdca.c
59
int asoc_sdw_rt_mf_sdca_spk_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai)
sound/soc/sdw_utils/soc_sdw_rt_mf_sdca.c
67
snprintf(codec_name, CODEC_NAME_SIZE, "%s", dai->name);
sound/soc/sdw_utils/soc_sdw_rt_sdca_jack_common.c
103
component = dai->component;
sound/soc/sdw_utils/soc_sdw_rt_sdca_jack_common.c
93
int asoc_sdw_rt_sdca_jack_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai)
sound/soc/sdw_utils/soc_sdw_ti_amp.c
41
struct snd_soc_dai *dai)
sound/soc/sdw_utils/soc_sdw_utils.c
1035
struct snd_soc_dai *dai;
sound/soc/sdw_utils/soc_sdw_utils.c
1038
dai = snd_soc_rtd_to_cpu(rtd, 0);
sound/soc/sdw_utils/soc_sdw_utils.c
1040
sdw_stream = snd_soc_dai_get_stream(dai, substream->stream);
sound/soc/sdw_utils/soc_sdw_utils.c
1042
dev_err(rtd->dev, "no stream found for DAI %s\n", dai->name);
sound/soc/sdw_utils/soc_sdw_utils.c
1054
struct snd_soc_dai *dai;
sound/soc/sdw_utils/soc_sdw_utils.c
1058
dai = snd_soc_rtd_to_cpu(rtd, 0);
sound/soc/sdw_utils/soc_sdw_utils.c
1060
sdw_stream = snd_soc_dai_get_stream(dai, substream->stream);
sound/soc/sdw_utils/soc_sdw_utils.c
1062
dev_err(rtd->dev, "no stream found for DAI %s\n", dai->name);
sound/soc/sdw_utils/soc_sdw_utils.c
1137
struct snd_soc_dai *dai;
sound/soc/sdw_utils/soc_sdw_utils.c
1140
dai = snd_soc_rtd_to_cpu(rtd, 0);
sound/soc/sdw_utils/soc_sdw_utils.c
1142
sdw_stream = snd_soc_dai_get_stream(dai, substream->stream);
sound/soc/sdw_utils/soc_sdw_utils.c
1144
dev_err(rtd->dev, "no stream found for DAI %s\n", dai->name);
sound/soc/sdw_utils/soc_sdw_utils.c
923
struct snd_soc_dai *dai;
sound/soc/sdw_utils/soc_sdw_utils.c
930
for_each_rtd_codec_dais(rtd, i, dai) {
sound/soc/sdw_utils/soc_sdw_utils.c
931
if (is_sdw_slave(dai->component->dev))
sound/soc/sdw_utils/soc_sdw_utils.c
932
sdw_peripheral = dev_to_sdw_dev(dai->component->dev);
sound/soc/sdw_utils/soc_sdw_utils.c
933
else if (dai->component->dev->parent && is_sdw_slave(dai->component->dev->parent))
sound/soc/sdw_utils/soc_sdw_utils.c
934
sdw_peripheral = dev_to_sdw_dev(dai->component->dev->parent);
sound/soc/sdw_utils/soc_sdw_utils.c
942
dai_index = asoc_sdw_find_codec_info_dai_index(codec_info, dai->name);
sound/soc/sdw_utils/soc_sdw_utils.c
956
dai->component->name, dai->name);
sound/soc/sdw_utils/soc_sdw_utils.c
988
ret = codec_info->dais[dai_index].rtd_init(rtd, dai);
sound/soc/soc-card.c
14
#define soc_card_ret(dai, ret) _soc_card_ret(dai, __func__, ret)
sound/soc/soc-component.c
16
#define soc_component_ret(dai, ret) _soc_component_ret(dai, __func__, ret)
sound/soc/soc-component.c
23
#define soc_component_ret_reg_rw(dai, ret, reg) _soc_component_ret_reg_rw(dai, __func__, ret, reg)
sound/soc/soc-component.c
901
struct snd_soc_dai *dai;
sound/soc/soc-component.c
904
for_each_rtd_codec_dais(rtd, i, dai) {
sound/soc/soc-component.c
905
if (dai->component == component)
sound/soc/soc-core.c
1292
struct snd_soc_dai *dai, *not_used;
sound/soc/soc-core.c
1337
for_each_rtd_dais(rtd, i, dai) {
sound/soc/soc-core.c
1341
fmt = snd_soc_dai_get_fmt(dai, pri);
sound/soc/soc-core.c
1606
struct snd_soc_dai *dai;
sound/soc/soc-core.c
1644
for_each_component_dais(component, dai) {
sound/soc/soc-core.c
1645
ret = snd_soc_dapm_new_dai_widgets(dapm, dai);
sound/soc/soc-core.c
169
struct snd_soc_dai *dai;
sound/soc/soc-core.c
174
for_each_component_dais(component, dai)
sound/soc/soc-core.c
175
seq_printf(m, "%s\n", dai->name);
sound/soc/soc-core.c
2541
int snd_soc_add_dai_controls(struct snd_soc_dai *dai,
sound/soc/soc-core.c
2544
struct snd_card *card = dai->component->card->snd_card;
sound/soc/soc-core.c
2546
return snd_soc_add_controls(card, dai->dev, controls, num_controls,
sound/soc/soc-core.c
2547
NULL, dai);
sound/soc/soc-core.c
2685
void snd_soc_unregister_dai(struct snd_soc_dai *dai)
sound/soc/soc-core.c
2689
dev_dbg(dai->dev, "ASoC: Unregistered DAI '%s'\n", dai->name);
sound/soc/soc-core.c
2690
list_del(&dai->list);
sound/soc/soc-core.c
2711
struct snd_soc_dai *dai;
sound/soc/soc-core.c
2715
dai = devm_kzalloc(dev, sizeof(*dai), GFP_KERNEL);
sound/soc/soc-core.c
2716
if (dai == NULL)
sound/soc/soc-core.c
2729
dai->name = fmt_single_name(dev, &dai->id);
sound/soc/soc-core.c
2731
dai->name = fmt_multiple_name(dev, dai_drv);
sound/soc/soc-core.c
2733
dai->id = dai_drv->id;
sound/soc/soc-core.c
2735
dai->id = component->num_dai;
sound/soc/soc-core.c
2737
if (!dai->name)
sound/soc/soc-core.c
274
struct snd_soc_dai *dai)
sound/soc/soc-core.c
2740
dai->component = component;
sound/soc/soc-core.c
2741
dai->dev = dev;
sound/soc/soc-core.c
2742
dai->driver = dai_drv;
sound/soc/soc-core.c
2745
list_add_tail(&dai->list, &component->dai_list);
sound/soc/soc-core.c
2748
dev_dbg(dev, "ASoC: Registered DAI '%s'\n", dai->name);
sound/soc/soc-core.c
2749
return dai;
sound/soc/soc-core.c
2760
struct snd_soc_dai *dai, *_dai;
sound/soc/soc-core.c
2762
for_each_component_dais_safe(component, dai, _dai)
sound/soc/soc-core.c
2763
snd_soc_unregister_dai(dai);
sound/soc/soc-core.c
2777
struct snd_soc_dai *dai;
sound/soc/soc-core.c
2782
dai = snd_soc_register_dai(component, dai_drv + i, count == 1 &&
sound/soc/soc-core.c
2784
if (dai == NULL) {
sound/soc/soc-core.c
280
return snd_soc_is_match_dai_args(dai->driver->dai_args, dlc->dai_args);
sound/soc/soc-core.c
287
if (dai->driver->name &&
sound/soc/soc-core.c
288
strcmp(dlc->dai_name, dai->driver->name) == 0)
sound/soc/soc-core.c
291
if (strcmp(dlc->dai_name, dai->name) == 0)
sound/soc/soc-core.c
294
if (dai->component->name &&
sound/soc/soc-core.c
295
strcmp(dlc->dai_name, dai->component->name) == 0)
sound/soc/soc-core.c
301
const char *snd_soc_dai_name_get(const struct snd_soc_dai *dai)
sound/soc/soc-core.c
304
if (dai->driver->name)
sound/soc/soc-core.c
305
return dai->driver->name;
sound/soc/soc-core.c
307
if (dai->name)
sound/soc/soc-core.c
308
return dai->name;
sound/soc/soc-core.c
310
if (dai->component->name)
sound/soc/soc-core.c
311
return dai->component->name;
sound/soc/soc-core.c
3552
struct snd_soc_dai *dai;
sound/soc/soc-core.c
3575
for_each_component_dais(pos, dai) {
sound/soc/soc-core.c
3581
dlc->dai_name = snd_soc_dai_name_get(dai);
sound/soc/soc-core.c
3651
struct snd_soc_dai *dai;
sound/soc/soc-core.c
3656
for_each_component_dais(component, dai)
sound/soc/soc-core.c
3657
if (snd_soc_is_match_dai_args(dai->driver->dai_args, dai_args))
sound/soc/soc-core.c
3660
dai = NULL;
sound/soc/soc-core.c
3663
return dai;
sound/soc/soc-core.c
622
struct snd_soc_dai *dai;
sound/soc/soc-core.c
631
for_each_rtd_dais(rtd, i, dai) {
sound/soc/soc-core.c
632
if (snd_soc_dai_stream_active(dai, playback))
sound/soc/soc-core.c
633
snd_soc_dai_digital_mute(dai, mute, playback);
sound/soc/soc-core.c
866
struct snd_soc_dai *dai;
sound/soc/soc-core.c
868
for_each_component_dais(component, dai)
sound/soc/soc-core.c
869
if (snd_soc_is_matching_dai(dlc, dai))
sound/soc/soc-core.c
921
struct snd_soc_dai *dai;
sound/soc/soc-core.c
928
for_each_component_dais(component, dai)
sound/soc/soc-core.c
929
if (snd_soc_is_matching_dai(dlc, dai))
sound/soc/soc-core.c
930
return dai;
sound/soc/soc-core.c
939
struct snd_soc_dai *dai;
sound/soc/soc-core.c
942
dai = snd_soc_find_dai(dlc);
sound/soc/soc-core.c
945
return dai;
sound/soc/soc-dai.c
100
return soc_dai_ret(dai, ret);
sound/soc/soc-dai.c
111
int snd_soc_dai_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio)
sound/soc/soc-dai.c
115
if (dai->driver->ops &&
sound/soc/soc-dai.c
116
dai->driver->ops->set_bclk_ratio)
sound/soc/soc-dai.c
117
ret = dai->driver->ops->set_bclk_ratio(dai, ratio);
sound/soc/soc-dai.c
119
return soc_dai_ret(dai, ret);
sound/soc/soc-dai.c
125
struct snd_soc_dai *dai;
sound/soc/soc-dai.c
13
#define soc_dai_ret(dai, ret) _soc_dai_ret(dai, __func__, ret)
sound/soc/soc-dai.c
131
for_each_rtd_dais(rtd, i, dai) {
sound/soc/soc-dai.c
132
if (dai->driver->ops &&
sound/soc/soc-dai.c
133
dai->driver->ops->num_auto_selectable_formats)
sound/soc/soc-dai.c
134
max = max(max, dai->driver->ops->num_auto_selectable_formats);
sound/soc/soc-dai.c
14
static inline int _soc_dai_ret(const struct snd_soc_dai *dai,
sound/soc/soc-dai.c
155
u64 snd_soc_dai_get_fmt(const struct snd_soc_dai *dai, int priority)
sound/soc/soc-dai.c
157
const struct snd_soc_dai_ops *ops = dai->driver->ops;
sound/soc/soc-dai.c
17
return snd_soc_ret(dai->dev, ret,
sound/soc/soc-dai.c
18
"at %s() on %s\n", func, dai->name);
sound/soc/soc-dai.c
194
int snd_soc_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/soc-dai.c
198
if (dai->driver->ops && dai->driver->ops->set_fmt)
sound/soc/soc-dai.c
199
ret = dai->driver->ops->set_fmt(dai, fmt);
sound/soc/soc-dai.c
201
return soc_dai_ret(dai, ret);
sound/soc/soc-dai.c
25
#define soc_dai_mark_push(dai, substream, tgt) ((dai)->mark_##tgt = substream)
sound/soc/soc-dai.c
252
int snd_soc_dai_set_tdm_slot(struct snd_soc_dai *dai,
sound/soc/soc-dai.c
26
#define soc_dai_mark_pop(dai, tgt) ((dai)->mark_##tgt = NULL)
sound/soc/soc-dai.c
264
if (dai->driver->ops &&
sound/soc/soc-dai.c
265
dai->driver->ops->xlate_tdm_slot_mask)
sound/soc/soc-dai.c
266
ret = dai->driver->ops->xlate_tdm_slot_mask(slots, &tx_mask, &rx_mask);
sound/soc/soc-dai.c
27
#define soc_dai_mark_match(dai, substream, tgt) ((dai)->mark_##tgt == substream)
sound/soc/soc-dai.c
274
snd_soc_dai_tdm_mask_set(dai, stream, *tdm_mask[stream]);
sound/soc/soc-dai.c
276
if (dai->driver->ops &&
sound/soc/soc-dai.c
277
dai->driver->ops->set_tdm_slot)
sound/soc/soc-dai.c
278
ret = dai->driver->ops->set_tdm_slot(dai, tx_mask, rx_mask,
sound/soc/soc-dai.c
281
return soc_dai_ret(dai, ret);
sound/soc/soc-dai.c
297
int snd_soc_dai_set_channel_map(struct snd_soc_dai *dai,
sound/soc/soc-dai.c
303
if (dai->driver->ops &&
sound/soc/soc-dai.c
304
dai->driver->ops->set_channel_map)
sound/soc/soc-dai.c
305
ret = dai->driver->ops->set_channel_map(dai, tx_num, tx_slot,
sound/soc/soc-dai.c
307
return soc_dai_ret(dai, ret);
sound/soc/soc-dai.c
321
int snd_soc_dai_get_channel_map(const struct snd_soc_dai *dai,
sound/soc/soc-dai.c
327
if (dai->driver->ops &&
sound/soc/soc-dai.c
328
dai->driver->ops->get_channel_map)
sound/soc/soc-dai.c
329
ret = dai->driver->ops->get_channel_map(dai, tx_num, tx_slot,
sound/soc/soc-dai.c
331
return soc_dai_ret(dai, ret);
sound/soc/soc-dai.c
342
int snd_soc_dai_set_tristate(struct snd_soc_dai *dai, int tristate)
sound/soc/soc-dai.c
346
if (dai->driver->ops &&
sound/soc/soc-dai.c
347
dai->driver->ops->set_tristate)
sound/soc/soc-dai.c
348
ret = dai->driver->ops->set_tristate(dai, tristate);
sound/soc/soc-dai.c
350
return soc_dai_ret(dai, ret);
sound/soc/soc-dai.c
354
int snd_soc_dai_prepare(struct snd_soc_dai *dai,
sound/soc/soc-dai.c
359
if (!snd_soc_dai_stream_valid(dai, substream->stream))
sound/soc/soc-dai.c
362
if (dai->driver->ops &&
sound/soc/soc-dai.c
363
dai->driver->ops->prepare)
sound/soc/soc-dai.c
364
ret = dai->driver->ops->prepare(substream, dai);
sound/soc/soc-dai.c
366
return soc_dai_ret(dai, ret);
sound/soc/soc-dai.c
370
int snd_soc_dai_mute_is_ctrled_at_trigger(struct snd_soc_dai *dai)
sound/soc/soc-dai.c
372
if (dai->driver->ops)
sound/soc/soc-dai.c
373
return dai->driver->ops->mute_unmute_on_trigger;
sound/soc/soc-dai.c
38
int snd_soc_dai_set_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/soc-dai.c
386
int snd_soc_dai_digital_mute(struct snd_soc_dai *dai, int mute,
sound/soc/soc-dai.c
395
if (dai->driver->ops &&
sound/soc/soc-dai.c
396
dai->driver->ops->mute_stream &&
sound/soc/soc-dai.c
398
!dai->driver->ops->no_capture_mute))
sound/soc/soc-dai.c
399
ret = dai->driver->ops->mute_stream(dai, mute, direction);
sound/soc/soc-dai.c
401
return soc_dai_ret(dai, ret);
sound/soc/soc-dai.c
405
int snd_soc_dai_hw_params(struct snd_soc_dai *dai,
sound/soc/soc-dai.c
411
if (dai->driver->ops &&
sound/soc/soc-dai.c
412
dai->driver->ops->hw_params)
sound/soc/soc-dai.c
413
ret = dai->driver->ops->hw_params(substream, params, dai);
sound/soc/soc-dai.c
417
soc_dai_mark_push(dai, substream, hw_params);
sound/soc/soc-dai.c
419
return soc_dai_ret(dai, ret);
sound/soc/soc-dai.c
422
void snd_soc_dai_hw_free(struct snd_soc_dai *dai,
sound/soc/soc-dai.c
426
if (rollback && !soc_dai_mark_match(dai, substream, hw_params))
sound/soc/soc-dai.c
429
if (dai->driver->ops &&
sound/soc/soc-dai.c
43
if (dai->driver->ops &&
sound/soc/soc-dai.c
430
dai->driver->ops->hw_free)
sound/soc/soc-dai.c
431
dai->driver->ops->hw_free(substream, dai);
sound/soc/soc-dai.c
434
soc_dai_mark_pop(dai, hw_params);
sound/soc/soc-dai.c
437
int snd_soc_dai_startup(struct snd_soc_dai *dai,
sound/soc/soc-dai.c
44
dai->driver->ops->set_sysclk)
sound/soc/soc-dai.c
442
if (!snd_soc_dai_stream_valid(dai, substream->stream))
sound/soc/soc-dai.c
445
if (dai->driver->ops &&
sound/soc/soc-dai.c
446
dai->driver->ops->startup)
sound/soc/soc-dai.c
447
ret = dai->driver->ops->startup(substream, dai);
sound/soc/soc-dai.c
45
ret = dai->driver->ops->set_sysclk(dai, clk_id, freq, dir);
sound/soc/soc-dai.c
451
soc_dai_mark_push(dai, substream, startup);
sound/soc/soc-dai.c
453
return soc_dai_ret(dai, ret);
sound/soc/soc-dai.c
456
void snd_soc_dai_shutdown(struct snd_soc_dai *dai,
sound/soc/soc-dai.c
460
if (!snd_soc_dai_stream_valid(dai, substream->stream))
sound/soc/soc-dai.c
463
if (rollback && !soc_dai_mark_match(dai, substream, startup))
sound/soc/soc-dai.c
466
if (dai->driver->ops &&
sound/soc/soc-dai.c
467
dai->driver->ops->shutdown)
sound/soc/soc-dai.c
468
dai->driver->ops->shutdown(substream, dai);
sound/soc/soc-dai.c
47
ret = snd_soc_component_set_sysclk(dai->component, clk_id, 0,
sound/soc/soc-dai.c
471
soc_dai_mark_pop(dai, startup);
sound/soc/soc-dai.c
474
int snd_soc_dai_compress_new(struct snd_soc_dai *dai,
sound/soc/soc-dai.c
478
if (dai->driver->ops &&
sound/soc/soc-dai.c
479
dai->driver->ops->compress_new)
sound/soc/soc-dai.c
480
ret = dai->driver->ops->compress_new(rtd);
sound/soc/soc-dai.c
481
return soc_dai_ret(dai, ret);
sound/soc/soc-dai.c
489
bool snd_soc_dai_stream_valid(const struct snd_soc_dai *dai, int dir)
sound/soc/soc-dai.c
491
const struct snd_soc_pcm_stream *stream = snd_soc_dai_get_pcm_stream(dai, dir);
sound/soc/soc-dai.c
497
void snd_soc_dai_action(struct snd_soc_dai *dai,
sound/soc/soc-dai.c
50
return soc_dai_ret(dai, ret);
sound/soc/soc-dai.c
501
dai->stream[stream].active += action;
sound/soc/soc-dai.c
504
dai->component->active += action;
sound/soc/soc-dai.c
508
int snd_soc_dai_active(const struct snd_soc_dai *dai)
sound/soc/soc-dai.c
514
active += dai->stream[stream].active;
sound/soc/soc-dai.c
522
struct snd_soc_dai *dai;
sound/soc/soc-dai.c
525
for_each_rtd_dais(rtd, i, dai) {
sound/soc/soc-dai.c
526
if (dai->probed)
sound/soc/soc-dai.c
529
if (dai->driver->ops) {
sound/soc/soc-dai.c
530
if (dai->driver->ops->probe_order != order)
sound/soc/soc-dai.c
533
if (dai->driver->ops->probe) {
sound/soc/soc-dai.c
534
int ret = dai->driver->ops->probe(dai);
sound/soc/soc-dai.c
537
return soc_dai_ret(dai, ret);
sound/soc/soc-dai.c
540
dai->probed = 1;
sound/soc/soc-dai.c
548
struct snd_soc_dai *dai;
sound/soc/soc-dai.c
551
for_each_rtd_dais(rtd, i, dai) {
sound/soc/soc-dai.c
552
if (!dai->probed)
sound/soc/soc-dai.c
555
if (dai->driver->ops) {
sound/soc/soc-dai.c
556
if (dai->driver->ops->remove_order != order)
sound/soc/soc-dai.c
559
if (dai->driver->ops->remove) {
sound/soc/soc-dai.c
560
r = dai->driver->ops->remove(dai);
sound/soc/soc-dai.c
565
dai->probed = 0;
sound/soc/soc-dai.c
573
struct snd_soc_dai *dai;
sound/soc/soc-dai.c
576
for_each_rtd_dais(rtd, i, dai) {
sound/soc/soc-dai.c
577
if (dai->driver->ops &&
sound/soc/soc-dai.c
578
dai->driver->ops->pcm_new) {
sound/soc/soc-dai.c
579
int ret = dai->driver->ops->pcm_new(rtd, dai);
sound/soc/soc-dai.c
581
return soc_dai_ret(dai, ret);
sound/soc/soc-dai.c
591
struct snd_soc_dai *dai;
sound/soc/soc-dai.c
594
for_each_rtd_dais(rtd, i, dai) {
sound/soc/soc-dai.c
595
ret = snd_soc_dai_prepare(dai, substream);
sound/soc/soc-dai.c
603
static int soc_dai_trigger(struct snd_soc_dai *dai,
sound/soc/soc-dai.c
608
if (!snd_soc_dai_stream_valid(dai, substream->stream))
sound/soc/soc-dai.c
611
if (dai->driver->ops &&
sound/soc/soc-dai.c
612
dai->driver->ops->trigger)
sound/soc/soc-dai.c
613
ret = dai->driver->ops->trigger(substream, cmd, dai);
sound/soc/soc-dai.c
615
return soc_dai_ret(dai, ret);
sound/soc/soc-dai.c
622
struct snd_soc_dai *dai;
sound/soc/soc-dai.c
629
for_each_rtd_dais(rtd, i, dai) {
sound/soc/soc-dai.c
630
ret = soc_dai_trigger(dai, substream, cmd);
sound/soc/soc-dai.c
634
if (snd_soc_dai_mute_is_ctrled_at_trigger(dai))
sound/soc/soc-dai.c
635
snd_soc_dai_digital_mute(dai, 0, substream->stream);
sound/soc/soc-dai.c
637
soc_dai_mark_push(dai, substream, trigger);
sound/soc/soc-dai.c
64
int snd_soc_dai_set_clkdiv(struct snd_soc_dai *dai,
sound/soc/soc-dai.c
643
for_each_rtd_dais(rtd, i, dai) {
sound/soc/soc-dai.c
644
if (rollback && !soc_dai_mark_match(dai, substream, trigger))
sound/soc/soc-dai.c
647
if (snd_soc_dai_mute_is_ctrled_at_trigger(dai))
sound/soc/soc-dai.c
648
snd_soc_dai_digital_mute(dai, 1, substream->stream);
sound/soc/soc-dai.c
650
r = soc_dai_trigger(dai, substream, cmd);
sound/soc/soc-dai.c
653
soc_dai_mark_pop(dai, trigger);
sound/soc/soc-dai.c
665
struct snd_soc_dai *dai;
sound/soc/soc-dai.c
676
for_each_rtd_cpu_dais(rtd, i, dai)
sound/soc/soc-dai.c
677
if (dai->driver->ops &&
sound/soc/soc-dai.c
678
dai->driver->ops->delay)
sound/soc/soc-dai.c
679
*cpu_delay = max(*cpu_delay, dai->driver->ops->delay(substream, dai));
sound/soc/soc-dai.c
682
for_each_rtd_codec_dais(rtd, i, dai)
sound/soc/soc-dai.c
683
if (dai->driver->ops &&
sound/soc/soc-dai.c
684
dai->driver->ops->delay)
sound/soc/soc-dai.c
685
*codec_delay = max(*codec_delay, dai->driver->ops->delay(substream, dai));
sound/soc/soc-dai.c
688
int snd_soc_dai_compr_startup(struct snd_soc_dai *dai,
sound/soc/soc-dai.c
69
if (dai->driver->ops &&
sound/soc/soc-dai.c
693
if (dai->driver->cops &&
sound/soc/soc-dai.c
694
dai->driver->cops->startup)
sound/soc/soc-dai.c
695
ret = dai->driver->cops->startup(cstream, dai);
sound/soc/soc-dai.c
699
soc_dai_mark_push(dai, cstream, compr_startup);
sound/soc/soc-dai.c
70
dai->driver->ops->set_clkdiv)
sound/soc/soc-dai.c
701
return soc_dai_ret(dai, ret);
sound/soc/soc-dai.c
705
void snd_soc_dai_compr_shutdown(struct snd_soc_dai *dai,
sound/soc/soc-dai.c
709
if (rollback && !soc_dai_mark_match(dai, cstream, compr_startup))
sound/soc/soc-dai.c
71
ret = dai->driver->ops->set_clkdiv(dai, div_id, div);
sound/soc/soc-dai.c
712
if (dai->driver->cops &&
sound/soc/soc-dai.c
713
dai->driver->cops->shutdown)
sound/soc/soc-dai.c
714
dai->driver->cops->shutdown(cstream, dai);
sound/soc/soc-dai.c
717
soc_dai_mark_pop(dai, compr_startup);
sound/soc/soc-dai.c
721
int snd_soc_dai_compr_trigger(struct snd_soc_dai *dai,
sound/soc/soc-dai.c
726
if (dai->driver->cops &&
sound/soc/soc-dai.c
727
dai->driver->cops->trigger)
sound/soc/soc-dai.c
728
ret = dai->driver->cops->trigger(cstream, cmd, dai);
sound/soc/soc-dai.c
73
return soc_dai_ret(dai, ret);
sound/soc/soc-dai.c
730
return soc_dai_ret(dai, ret);
sound/soc/soc-dai.c
734
int snd_soc_dai_compr_set_params(struct snd_soc_dai *dai,
sound/soc/soc-dai.c
740
if (dai->driver->cops &&
sound/soc/soc-dai.c
741
dai->driver->cops->set_params)
sound/soc/soc-dai.c
742
ret = dai->driver->cops->set_params(cstream, params, dai);
sound/soc/soc-dai.c
744
return soc_dai_ret(dai, ret);
sound/soc/soc-dai.c
748
int snd_soc_dai_compr_get_params(struct snd_soc_dai *dai,
sound/soc/soc-dai.c
754
if (dai->driver->cops &&
sound/soc/soc-dai.c
755
dai->driver->cops->get_params)
sound/soc/soc-dai.c
756
ret = dai->driver->cops->get_params(cstream, params, dai);
sound/soc/soc-dai.c
758
return soc_dai_ret(dai, ret);
sound/soc/soc-dai.c
762
int snd_soc_dai_compr_ack(struct snd_soc_dai *dai,
sound/soc/soc-dai.c
768
if (dai->driver->cops &&
sound/soc/soc-dai.c
769
dai->driver->cops->ack)
sound/soc/soc-dai.c
770
ret = dai->driver->cops->ack(cstream, bytes, dai);
sound/soc/soc-dai.c
772
return soc_dai_ret(dai, ret);
sound/soc/soc-dai.c
776
int snd_soc_dai_compr_pointer(struct snd_soc_dai *dai,
sound/soc/soc-dai.c
782
if (dai->driver->cops &&
sound/soc/soc-dai.c
783
dai->driver->cops->pointer)
sound/soc/soc-dai.c
784
ret = dai->driver->cops->pointer(cstream, tstamp, dai);
sound/soc/soc-dai.c
786
return soc_dai_ret(dai, ret);
sound/soc/soc-dai.c
790
int snd_soc_dai_compr_set_metadata(struct snd_soc_dai *dai,
sound/soc/soc-dai.c
796
if (dai->driver->cops &&
sound/soc/soc-dai.c
797
dai->driver->cops->set_metadata)
sound/soc/soc-dai.c
798
ret = dai->driver->cops->set_metadata(cstream, metadata, dai);
sound/soc/soc-dai.c
800
return soc_dai_ret(dai, ret);
sound/soc/soc-dai.c
804
int snd_soc_dai_compr_get_metadata(struct snd_soc_dai *dai,
sound/soc/soc-dai.c
810
if (dai->driver->cops &&
sound/soc/soc-dai.c
811
dai->driver->cops->get_metadata)
sound/soc/soc-dai.c
812
ret = dai->driver->cops->get_metadata(cstream, metadata, dai);
sound/soc/soc-dai.c
814
return soc_dai_ret(dai, ret);
sound/soc/soc-dai.c
87
int snd_soc_dai_set_pll(struct snd_soc_dai *dai, int pll_id, int source,
sound/soc/soc-dai.c
92
if (dai->driver->ops &&
sound/soc/soc-dai.c
93
dai->driver->ops->set_pll)
sound/soc/soc-dai.c
94
ret = dai->driver->ops->set_pll(dai, pll_id, source,
sound/soc/soc-dai.c
97
ret = snd_soc_component_set_pll(dai->component, pll_id, source,
sound/soc/soc-dapm.c
1596
int snd_soc_dapm_dai_get_connected_widgets(struct snd_soc_dai *dai, int stream,
sound/soc/soc-dapm.c
1601
struct snd_soc_card *card = dai->component->card;
sound/soc/soc-dapm.c
1602
struct snd_soc_dapm_widget *w = snd_soc_dai_get_widget(dai, stream);
sound/soc/soc-dapm.c
3044
struct snd_soc_dai *dai)
sound/soc/soc-dapm.c
3052
w = snd_soc_dai_get_widget(dai, dir);
sound/soc/soc-dapm.c
3057
dev_dbg(dai->dev, "Update DAI routes for %s %s\n", dai->name, snd_pcm_direction_name(dir));
sound/soc/soc-dapm.c
3076
struct snd_soc_dai *dai)
sound/soc/soc-dapm.c
3082
ret = dapm_update_dai_unlocked(substream, params, dai);
sound/soc/soc-dapm.c
4360
struct snd_soc_dai *dai)
sound/soc/soc-dapm.c
4366
WARN_ON(dev != dai->dev);
sound/soc/soc-dapm.c
4371
if (dai->driver->playback.stream_name) {
sound/soc/soc-dapm.c
4373
template.name = dai->driver->playback.stream_name;
sound/soc/soc-dapm.c
4374
template.sname = dai->driver->playback.stream_name;
sound/soc/soc-dapm.c
4376
dev_dbg(dai->dev, "ASoC: adding %s widget\n",
sound/soc/soc-dapm.c
4383
w->priv = dai;
sound/soc/soc-dapm.c
4384
snd_soc_dai_set_widget_playback(dai, w);
sound/soc/soc-dapm.c
4387
if (dai->driver->capture.stream_name) {
sound/soc/soc-dapm.c
4389
template.name = dai->driver->capture.stream_name;
sound/soc/soc-dapm.c
4390
template.sname = dai->driver->capture.stream_name;
sound/soc/soc-dapm.c
4392
dev_dbg(dai->dev, "ASoC: adding %s widget\n",
sound/soc/soc-dapm.c
4399
w->priv = dai;
sound/soc/soc-dapm.c
4400
snd_soc_dai_set_widget_capture(dai, w);
sound/soc/soc-dapm.c
4411
struct snd_soc_dai *dai;
sound/soc/soc-dapm.c
4430
dai = dai_w->priv;
sound/soc/soc-dapm.c
4455
dev_dbg(dai->dev, "%s -> %s\n", src->name, sink->name);
sound/soc/soc-dapm.c
4466
struct snd_soc_dapm_widget *dai,
sound/soc/soc-dapm.c
4476
if (dai) {
sound/soc/soc-dapm.c
4477
dapm_add_path(dapm, src, dai, NULL, NULL);
sound/soc/soc-dapm.c
4478
src = dai;
sound/soc/soc-dapm.c
4515
struct snd_soc_dapm_widget *dai = dapm_new_dai(card, substream,
sound/soc/soc-dapm.c
4518
if (IS_ERR(dai))
sound/soc/soc-dapm.c
4521
rtd->c2c_widget[stream] = dai;
sound/soc/soc-dapm.c
4530
static void dapm_dai_stream_event(struct snd_soc_dai *dai, int stream, int event)
sound/soc/soc-dapm.c
4534
w = snd_soc_dai_get_widget(dai, stream);
sound/soc/soc-dapm.c
4600
struct snd_soc_dai *dai;
sound/soc/soc-dapm.c
4603
for_each_rtd_dais(rtd, i, dai)
sound/soc/soc-dapm.c
4604
dapm_dai_stream_event(dai, stream, event);
sound/soc/soc-pcm.c
1011
struct snd_soc_dai *dai;
sound/soc/soc-pcm.c
1017
for_each_rtd_dais(rtd, i, dai) {
sound/soc/soc-pcm.c
1018
if (snd_soc_dai_active(dai) == 1)
sound/soc/soc-pcm.c
1019
soc_pcm_set_dai_params(dai, NULL);
sound/soc/soc-pcm.c
1021
if (snd_soc_dai_stream_active(dai, substream->stream) == 1) {
sound/soc/soc-pcm.c
1022
if (!snd_soc_dai_mute_is_ctrled_at_trigger(dai))
sound/soc/soc-pcm.c
1023
snd_soc_dai_digital_mute(dai, 1, substream->stream);
sound/soc/soc-pcm.c
1037
for_each_rtd_dais(rtd, i, dai)
sound/soc/soc-pcm.c
1038
if (snd_soc_dai_stream_valid(dai, substream->stream))
sound/soc/soc-pcm.c
1039
snd_soc_dai_hw_free(dai, substream, rollback);
sound/soc/soc-pcm.c
1422
struct snd_soc_dai *dai;
sound/soc/soc-pcm.c
1435
for_each_rtd_dais(be, i, dai) {
sound/soc/soc-pcm.c
1436
w = snd_soc_dai_get_widget(dai, stream);
sound/soc/soc-pcm.c
1517
struct snd_soc_dai *dai;
sound/soc/soc-pcm.c
1521
for_each_rtd_dais(dpcm->be, i, dai) {
sound/soc/soc-pcm.c
1522
struct snd_soc_dapm_widget *widget = snd_soc_dai_get_widget(dai, stream);
sound/soc/soc-pcm.c
1751
struct snd_soc_dai *dai;
sound/soc/soc-pcm.c
1757
for_each_rtd_cpu_dais(fe, i, dai) {
sound/soc/soc-pcm.c
1764
if (!snd_soc_dai_stream_valid(dai, stream))
sound/soc/soc-pcm.c
1767
cpu_stream = snd_soc_dai_get_pcm_stream(dai, stream);
sound/soc/soc-pcm.c
1782
struct snd_soc_dai *dai;
sound/soc/soc-pcm.c
1798
for_each_rtd_codec_dais(be, i, dai) {
sound/soc/soc-pcm.c
1803
if (!snd_soc_dai_stream_valid(dai, stream))
sound/soc/soc-pcm.c
1806
codec_stream = snd_soc_dai_get_pcm_stream(dai, stream);
sound/soc/soc-pcm.c
1832
struct snd_soc_dai *dai;
sound/soc/soc-pcm.c
1835
for_each_rtd_cpu_dais(be, i, dai) {
sound/soc/soc-pcm.c
1840
if (!snd_soc_dai_stream_valid(dai, stream))
sound/soc/soc-pcm.c
1843
cpu_stream = snd_soc_dai_get_pcm_stream(dai, stream);
sound/soc/soc-pcm.c
1880
struct snd_soc_dai *dai;
sound/soc/soc-pcm.c
1883
for_each_rtd_dais(be, i, dai) {
sound/soc/soc-pcm.c
1888
if (!snd_soc_dai_stream_valid(dai, stream))
sound/soc/soc-pcm.c
1891
pcm = snd_soc_dai_get_pcm_stream(dai, stream);
sound/soc/soc-pcm.c
1923
struct snd_soc_dai *dai;
sound/soc/soc-pcm.c
1936
for_each_rtd_dais(rtd, i, dai) {
sound/soc/soc-pcm.c
1937
err = soc_pcm_apply_symmetry(fe_substream, dai);
sound/soc/soc-pcm.c
360
struct snd_soc_dai *dai;
sound/soc/soc-pcm.c
365
for_each_rtd_dais(rtd, i, dai)
sound/soc/soc-pcm.c
366
snd_soc_dai_action(dai, stream, action);
sound/soc/soc-pcm.c
426
static void soc_pcm_set_dai_params(struct snd_soc_dai *dai,
sound/soc/soc-pcm.c
430
dai->symmetric_rate = params_rate(params);
sound/soc/soc-pcm.c
431
dai->symmetric_channels = params_channels(params);
sound/soc/soc-pcm.c
432
dai->symmetric_sample_bits = snd_pcm_format_physical_width(params_format(params));
sound/soc/soc-pcm.c
434
dai->symmetric_rate = 0;
sound/soc/soc-pcm.c
435
dai->symmetric_channels = 0;
sound/soc/soc-pcm.c
436
dai->symmetric_sample_bits = 0;
sound/soc/soc-pcm.c
475
struct snd_soc_dai *dai;
sound/soc/soc-pcm.c
484
for_each_rtd_dais(rtd, i, dai) \
sound/soc/soc-pcm.c
485
symmetry |= dai->driver->symmetric_##xxx; \
sound/soc/soc-pcm.c
509
struct snd_soc_dai *dai;
sound/soc/soc-pcm.c
516
for_each_rtd_dais(rtd, i, dai)
sound/soc/soc-pcm.c
518
dai->driver->symmetric_rate ||
sound/soc/soc-pcm.c
519
dai->driver->symmetric_channels ||
sound/soc/soc-pcm.c
520
dai->driver->symmetric_sample_bits;
sound/soc/soc-pcm.c
759
struct snd_soc_dai *dai;
sound/soc/soc-pcm.c
768
for_each_rtd_dais(rtd, i, dai) {
sound/soc/soc-pcm.c
769
if (snd_soc_dai_active(dai) == 0)
sound/soc/soc-pcm.c
770
soc_pcm_set_dai_params(dai, NULL);
sound/soc/soc-pcm.c
774
for_each_rtd_dais_reverse(rtd, i, dai)
sound/soc/soc-pcm.c
775
snd_soc_dai_shutdown(dai, substream, rollback);
sound/soc/soc-pcm.c
858
struct snd_soc_dai *dai;
sound/soc/soc-pcm.c
879
for_each_rtd_dais(rtd, i, dai) {
sound/soc/soc-pcm.c
880
ret = snd_soc_dai_startup(dai, substream);
sound/soc/soc-pcm.c
901
for_each_rtd_dais(rtd, i, dai) {
sound/soc/soc-pcm.c
902
ret = soc_pcm_apply_symmetry(substream, dai);
sound/soc/soc-pcm.c
936
struct snd_soc_dai *dai;
sound/soc/soc-pcm.c
963
for_each_rtd_dais(rtd, i, dai) {
sound/soc/soc-pcm.c
964
if (!snd_soc_dai_mute_is_ctrled_at_trigger(dai))
sound/soc/soc-pcm.c
965
snd_soc_dai_digital_mute(dai, 0, substream->stream);
sound/soc/soc-topology.c
1370
struct snd_soc_dai *dai;
sound/soc/soc-topology.c
1420
dai = snd_soc_register_dai(tplg->comp, dai_drv, false);
sound/soc/soc-topology.c
1421
if (!dai)
sound/soc/soc-topology.c
1425
ret = snd_soc_dapm_new_dai_widgets(dapm, dai);
sound/soc/soc-topology.c
1427
dev_err(dai->dev, "Failed to create DAI widgets %d\n", ret);
sound/soc/soc-topology.c
1428
snd_soc_unregister_dai(dai);
sound/soc/soc-topology.c
1838
struct snd_soc_dai *dai;
sound/soc/soc-topology.c
1847
dai = snd_soc_find_dai(&dai_component);
sound/soc/soc-topology.c
1848
if (!dai) {
sound/soc/soc-topology.c
1854
if (le32_to_cpu(d->dai_id) != dai->id) {
sound/soc/soc-topology.c
1860
dai_drv = dai->driver;
sound/soc/soc-topology.c
1886
ret = soc_tplg_dai_load(tplg, dai_drv, NULL, dai);
sound/soc/soc-topology.c
1906
struct snd_soc_tplg_dai *dai = (struct snd_soc_tplg_dai *)tplg->pos;
sound/soc/soc-topology.c
1909
if (le32_to_cpu(dai->size) != sizeof(*dai)) {
sound/soc/soc-topology.c
1914
ret = soc_tplg_dai_config(tplg, dai);
sound/soc/soc-topology.c
1920
tplg->pos += (sizeof(*dai) + le32_to_cpu(dai->priv.size));
sound/soc/soc-topology.c
282
struct snd_soc_tplg_pcm *pcm, struct snd_soc_dai *dai)
sound/soc/soc-topology.c
286
pcm, dai);
sound/soc/soc-topology.c
403
struct snd_soc_dai *dai, *_dai;
sound/soc/soc-topology.c
411
for_each_component_dais_safe(comp, dai, _dai)
sound/soc/soc-topology.c
412
if (dai->driver == dai_drv)
sound/soc/soc-topology.c
413
snd_soc_unregister_dai(dai);
sound/soc/soc-utils.c
244
int snd_soc_dai_is_dummy(const struct snd_soc_dai *dai)
sound/soc/soc-utils.c
246
if (dai->driver == &dummy_dai)
sound/soc/sof/amd/acp-probes.c
103
int cmd, struct snd_soc_dai *dai)
sound/soc/sof/amd/acp-probes.c
112
struct snd_soc_dai *dai)
sound/soc/sof/amd/acp-probes.c
117
pstream = &dai->driver->capture;
sound/soc/sof/amd/acp-probes.c
25
struct snd_soc_dai *dai, u32 *stream_id)
sound/soc/sof/amd/acp-probes.c
47
struct snd_soc_dai *dai)
sound/soc/sof/amd/acp-probes.c
71
struct snd_soc_dai *dai)
sound/soc/sof/intel/hda-dai.c
242
struct snd_soc_dai *dai,
sound/soc/sof/intel/hda-dai.c
246
struct snd_soc_dapm_widget *w = snd_soc_dai_get_widget(dai, substream->stream);
sound/soc/sof/intel/hda-dai.c
247
const struct hda_dai_widget_dma_ops *ops = hda_dai_get_ops(substream, dai);
sound/soc/sof/intel/hda-dai.c
257
hext_stream = ops->get_hext_stream(sdev, dai, substream);
sound/soc/sof/intel/hda-dai.c
261
ret = hda_link_dma_hw_params(substream, params, dai);
sound/soc/sof/intel/hda-dai.c
265
hext_stream = ops->get_hext_stream(sdev, dai, substream);
sound/soc/sof/intel/hda-dai.c
275
struct snd_soc_dai *dai)
sound/soc/sof/intel/hda-dai.c
280
return hda_dai_hw_params_data(substream, params, dai, &data, flags);
sound/soc/sof/intel/hda-dai.c
288
struct snd_soc_dai *dai)
sound/soc/sof/intel/hda-dai.c
290
const struct hda_dai_widget_dma_ops *ops = hda_dai_get_ops(substream, dai);
sound/soc/sof/intel/hda-dai.c
296
dev_err(dai->dev, "DAI widget ops not set\n");
sound/soc/sof/intel/hda-dai.c
300
dev_dbg(dai->dev, "cmd=%d dai %s direction %d\n", cmd,
sound/soc/sof/intel/hda-dai.c
301
dai->name, substream->stream);
sound/soc/sof/intel/hda-dai.c
303
sdev = dai_to_sdev(substream, dai);
sound/soc/sof/intel/hda-dai.c
305
hext_stream = ops->get_hext_stream(sdev, dai, substream);
sound/soc/sof/intel/hda-dai.c
310
ret = ops->pre_trigger(sdev, dai, substream, cmd);
sound/soc/sof/intel/hda-dai.c
316
ret = ops->trigger(sdev, dai, substream, cmd);
sound/soc/sof/intel/hda-dai.c
322
ret = ops->post_trigger(sdev, dai, substream, cmd);
sound/soc/sof/intel/hda-dai.c
330
ret = hda_link_dma_cleanup(substream, hext_stream, dai,
sound/soc/sof/intel/hda-dai.c
346
static int hda_dai_prepare(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
sound/soc/sof/intel/hda-dai.c
351
return hda_dai_hw_params(substream, &rtd->dpcm[stream].hw_params, dai);
sound/soc/sof/intel/hda-dai.c
387
struct snd_soc_dai *dai;
sound/soc/sof/intel/hda-dai.c
434
for_each_rtd_cpu_dais(rtd, cpu_dai_id, dai) {
sound/soc/sof/intel/hda-dai.c
435
if (dai == cpu_dai)
sound/soc/sof/intel/hda-dai.c
508
struct snd_soc_dai *dai;
sound/soc/sof/intel/hda-dai.c
564
for_each_rtd_cpu_dais(rtd, cpu_dai_id, dai) {
sound/soc/sof/intel/hda-dai.c
565
if (dai == cpu_dai) {
sound/soc/sof/intel/hda-dai.c
599
for_each_rtd_cpu_dais(rtd, i, dai) {
sound/soc/sof/intel/hda-dai.c
600
w = snd_soc_dai_get_widget(dai, substream->stream);
sound/soc/sof/intel/hda-dai.c
604
dai->name);
sound/soc/sof/intel/hda-probes.c
105
int cmd, struct snd_soc_dai *dai)
sound/soc/sof/intel/hda-probes.c
116
struct snd_soc_dai *dai)
sound/soc/sof/intel/hda-probes.c
121
pstream = &dai->driver->capture;
sound/soc/sof/intel/hda-probes.c
30
struct snd_soc_dai *dai, u32 *stream_id)
sound/soc/sof/intel/hda-probes.c
50
struct snd_soc_dai *dai)
sound/soc/sof/intel/hda-probes.c
72
struct snd_soc_dai *dai)
sound/soc/sof/intel/hda.c
113
params_data->dai,
sound/soc/sof/intel/hda.c
122
free_data->dai,
sound/soc/sof/intel/hda.c
126
static int sdw_ace2x_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai)
sound/soc/sof/intel/hda.c
128
return sdw_hda_dai_trigger(substream, cmd, dai);
sound/soc/sof/intel/hda.c
64
struct snd_soc_dai *d = params_data->dai;
sound/soc/sof/intel/hda.c
82
struct snd_soc_dai *d = free_data->dai;
sound/soc/sof/intel/hda.c
88
struct snd_sof_dai *dai = swidget->private;
sound/soc/sof/intel/hda.c
92
ipc4_copier = dai->private;
sound/soc/sof/ipc3-pcm.c
187
struct snd_sof_dai *dai;
sound/soc/sof/ipc3-pcm.c
194
list_for_each_entry(dai, &sdev->dai_list, list) {
sound/soc/sof/ipc3-pcm.c
195
if (!dai->name || strcmp(link_name, dai->name))
sound/soc/sof/ipc3-pcm.c
197
for (i = 0; i < dai->number_configs; i++) {
sound/soc/sof/ipc3-pcm.c
198
struct sof_dai_private_data *private = dai->private;
sound/soc/sof/ipc3-pcm.c
203
dai->current_config = i;
sound/soc/sof/ipc3-pcm.c
215
struct snd_sof_dai *dai = snd_sof_find_dai(component, (char *)rtd->dai_link->name);
sound/soc/sof/ipc3-pcm.c
222
if (!dai) {
sound/soc/sof/ipc3-pcm.c
228
private = dai->private;
sound/soc/sof/ipc3-pcm.c
259
rate->min = private->dai_config[dai->current_config].ssp.fsync_rate;
sound/soc/sof/ipc3-pcm.c
260
rate->max = private->dai_config[dai->current_config].ssp.fsync_rate;
sound/soc/sof/ipc3-pcm.c
261
channels->min = private->dai_config[dai->current_config].ssp.tdm_slots;
sound/soc/sof/ipc3-pcm.c
262
channels->max = private->dai_config[dai->current_config].ssp.tdm_slots;
sound/soc/sof/ipc3-topology.c
1002
struct sof_ipc_dai_config *config, struct snd_sof_dai *dai)
sound/soc/sof/ipc3-topology.c
1004
struct sof_dai_private_data *private = dai->private;
sound/soc/sof/ipc3-topology.c
1023
dai->number_configs = 1;
sound/soc/sof/ipc3-topology.c
1024
dai->current_config = 0;
sound/soc/sof/ipc3-topology.c
1067
struct sof_ipc_dai_config *config, struct snd_sof_dai *dai)
sound/soc/sof/ipc3-topology.c
1070
struct sof_dai_private_data *private = dai->private;
sound/soc/sof/ipc3-topology.c
1108
dai->number_configs = 1;
sound/soc/sof/ipc3-topology.c
1109
dai->current_config = 0;
sound/soc/sof/ipc3-topology.c
1118
struct sof_ipc_dai_config *config, struct snd_sof_dai *dai)
sound/soc/sof/ipc3-topology.c
1121
struct sof_dai_private_data *private = dai->private;
sound/soc/sof/ipc3-topology.c
1158
dai->number_configs = 1;
sound/soc/sof/ipc3-topology.c
1159
dai->current_config = 0;
sound/soc/sof/ipc3-topology.c
1168
struct sof_ipc_dai_config *config, struct snd_sof_dai *dai)
sound/soc/sof/ipc3-topology.c
1171
struct sof_dai_private_data *private = dai->private;
sound/soc/sof/ipc3-topology.c
1189
dai->number_configs = 1;
sound/soc/sof/ipc3-topology.c
1190
dai->current_config = 0;
sound/soc/sof/ipc3-topology.c
1199
struct sof_ipc_dai_config *config, struct snd_sof_dai *dai)
sound/soc/sof/ipc3-topology.c
1202
struct sof_dai_private_data *private = dai->private;
sound/soc/sof/ipc3-topology.c
1221
dai->number_configs = 1;
sound/soc/sof/ipc3-topology.c
1222
dai->current_config = 0;
sound/soc/sof/ipc3-topology.c
1231
struct sof_ipc_dai_config *config, struct snd_sof_dai *dai)
sound/soc/sof/ipc3-topology.c
1234
struct sof_dai_private_data *private = dai->private;
sound/soc/sof/ipc3-topology.c
1254
dai->number_configs = 1;
sound/soc/sof/ipc3-topology.c
1255
dai->current_config = 0;
sound/soc/sof/ipc3-topology.c
1264
struct sof_ipc_dai_config *config, struct snd_sof_dai *dai)
sound/soc/sof/ipc3-topology.c
1267
struct sof_dai_private_data *private = dai->private;
sound/soc/sof/ipc3-topology.c
1288
dai->number_configs = 1;
sound/soc/sof/ipc3-topology.c
1289
dai->current_config = 0;
sound/soc/sof/ipc3-topology.c
1298
struct sof_ipc_dai_config *config, struct snd_sof_dai *dai)
sound/soc/sof/ipc3-topology.c
1301
struct sof_dai_private_data *private = dai->private;
sound/soc/sof/ipc3-topology.c
1321
dai->number_configs = 1;
sound/soc/sof/ipc3-topology.c
1322
dai->current_config = 0;
sound/soc/sof/ipc3-topology.c
1331
struct sof_ipc_dai_config *config, struct snd_sof_dai *dai)
sound/soc/sof/ipc3-topology.c
1333
struct sof_dai_private_data *private = dai->private;
sound/soc/sof/ipc3-topology.c
1349
dai->number_configs = 1;
sound/soc/sof/ipc3-topology.c
1350
dai->current_config = 0;
sound/soc/sof/ipc3-topology.c
1359
struct sof_ipc_dai_config *config, struct snd_sof_dai *dai)
sound/soc/sof/ipc3-topology.c
1361
struct sof_dai_private_data *private = dai->private;
sound/soc/sof/ipc3-topology.c
1378
dai->number_configs = 1;
sound/soc/sof/ipc3-topology.c
1379
dai->current_config = 0;
sound/soc/sof/ipc3-topology.c
1388
struct sof_ipc_dai_config *config, struct snd_sof_dai *dai)
sound/soc/sof/ipc3-topology.c
1392
struct sof_dai_private_data *private = dai->private;
sound/soc/sof/ipc3-topology.c
1451
dai->number_configs = slink->num_hw_configs;
sound/soc/sof/ipc3-topology.c
1452
dai->current_config = current_config;
sound/soc/sof/ipc3-topology.c
1461
struct sof_ipc_dai_config *config, struct snd_sof_dai *dai)
sound/soc/sof/ipc3-topology.c
1464
struct sof_dai_private_data *private = dai->private;
sound/soc/sof/ipc3-topology.c
1523
dai->number_configs = 1;
sound/soc/sof/ipc3-topology.c
1524
dai->current_config = 0;
sound/soc/sof/ipc3-topology.c
1533
struct sof_ipc_dai_config *config, struct snd_sof_dai *dai)
sound/soc/sof/ipc3-topology.c
1535
struct sof_dai_private_data *private = dai->private;
sound/soc/sof/ipc3-topology.c
1549
dai->number_configs = 1;
sound/soc/sof/ipc3-topology.c
1550
dai->current_config = 0;
sound/soc/sof/ipc3-topology.c
1562
struct snd_sof_dai *dai = swidget->private;
sound/soc/sof/ipc3-topology.c
1574
dai->private = private;
sound/soc/sof/ipc3-topology.c
1621
if (strcmp(slink->link->name, dai->name))
sound/soc/sof/ipc3-topology.c
1647
ret = sof_link_ssp_load(scomp, slink, config, dai);
sound/soc/sof/ipc3-topology.c
1650
ret = sof_link_dmic_load(scomp, slink, config, dai);
sound/soc/sof/ipc3-topology.c
1653
ret = sof_link_hda_load(scomp, slink, config, dai);
sound/soc/sof/ipc3-topology.c
1656
ret = sof_link_alh_load(scomp, slink, config, dai);
sound/soc/sof/ipc3-topology.c
1659
ret = sof_link_sai_load(scomp, slink, config, dai);
sound/soc/sof/ipc3-topology.c
1662
ret = sof_link_esai_load(scomp, slink, config, dai);
sound/soc/sof/ipc3-topology.c
1665
ret = sof_link_micfil_load(scomp, slink, config, dai);
sound/soc/sof/ipc3-topology.c
1668
ret = sof_link_acp_bt_load(scomp, slink, config, dai);
sound/soc/sof/ipc3-topology.c
1672
ret = sof_link_acp_sp_load(scomp, slink, config, dai);
sound/soc/sof/ipc3-topology.c
1676
ret = sof_link_acp_hs_load(scomp, slink, config, dai);
sound/soc/sof/ipc3-topology.c
1679
ret = sof_link_acp_dmic_load(scomp, slink, config, dai);
sound/soc/sof/ipc3-topology.c
1682
ret = sof_link_afe_load(scomp, slink, config, dai);
sound/soc/sof/ipc3-topology.c
1685
ret = sof_link_acp_sdw_load(scomp, slink, config, dai);
sound/soc/sof/ipc3-topology.c
1691
dev_err(scomp->dev, "failed to load config for dai %s\n", dai->name);
sound/soc/sof/ipc3-topology.c
1705
dai->private = NULL;
sound/soc/sof/ipc3-topology.c
1715
struct snd_sof_dai *dai = swidget->private;
sound/soc/sof/ipc3-topology.c
1718
if (!dai)
sound/soc/sof/ipc3-topology.c
1721
dai_data = dai->private;
sound/soc/sof/ipc3-topology.c
1727
kfree(dai);
sound/soc/sof/ipc3-topology.c
2145
struct snd_sof_dai *dai = swidget->private;
sound/soc/sof/ipc3-topology.c
2150
if (!dai || !dai->private) {
sound/soc/sof/ipc3-topology.c
2155
private = dai->private;
sound/soc/sof/ipc3-topology.c
2157
dev_err(sdev->dev, "No config for DAI %s\n", dai->name);
sound/soc/sof/ipc3-topology.c
2161
config = &private->dai_config[dai->current_config];
sound/soc/sof/ipc3-topology.c
2163
dev_err(sdev->dev, "Invalid current config for DAI %s\n", dai->name);
sound/soc/sof/ipc3-topology.c
2234
dev_err(sdev->dev, "Failed to set dai config for %s\n", dai->name);
sound/soc/sof/ipc3-topology.c
2254
struct snd_sof_dai *dai = swidget->private;
sound/soc/sof/ipc3-topology.c
2255
struct sof_dai_private_data *dai_data = dai->private;
sound/soc/sof/ipc3-topology.c
2307
struct snd_sof_dai *dai = swidget->private;
sound/soc/sof/ipc3-topology.c
2311
if (!dai || !dai->private)
sound/soc/sof/ipc3-topology.c
2313
private = dai->private;
sound/soc/sof/ipc3-topology.c
2514
static int sof_ipc3_dai_get_param(struct snd_sof_dev *sdev, struct snd_sof_dai *dai, int param_type)
sound/soc/sof/ipc3-topology.c
2516
struct sof_dai_private_data *private = dai->private;
sound/soc/sof/ipc4-pcm.c
626
struct snd_sof_dai *dai;
sound/soc/sof/ipc4-pcm.c
679
list_for_each_entry(dai, &sdev->dai_list, list)
sound/soc/sof/ipc4-pcm.c
680
if (!strcmp(slink->link->name, dai->name))
sound/soc/sof/ipc4-pcm.c
681
dai->current_config = current_config;
sound/soc/sof/ipc4-pcm.c
798
struct snd_sof_dai *dai = snd_sof_find_dai(component, rtd->dai_link->name);
sound/soc/sof/ipc4-pcm.c
808
if (!dai) {
sound/soc/sof/ipc4-pcm.c
814
ipc4_copier = dai->private;
sound/soc/sof/ipc4-pcm.c
864
dev_dbg(component->dev, "Set %s to %d bit format\n", dai->name, valid_bits);
sound/soc/sof/ipc4-pcm.c
972
struct snd_sof_dai *dai;
sound/soc/sof/ipc4-pcm.c
985
dai = swidget->private;
sound/soc/sof/ipc4-pcm.c
986
dai_copier = dai->private;
sound/soc/sof/ipc4-topology.c
1666
struct snd_sof_dai *dai = swidget->private;
sound/soc/sof/ipc4-topology.c
1668
ipc4_copier = dai->private;
sound/soc/sof/ipc4-topology.c
1702
static int snd_sof_get_hw_config_params(struct snd_sof_dev *sdev, struct snd_sof_dai *dai,
sound/soc/sof/ipc4-topology.c
1713
if (!strcmp(slink->link->name, dai->name)) {
sound/soc/sof/ipc4-topology.c
1720
dev_err(sdev->dev, "%s: no DAI link found for DAI %s\n", __func__, dai->name);
sound/soc/sof/ipc4-topology.c
1726
if (dai->current_config == le32_to_cpu(hw_config->id)) {
sound/soc/sof/ipc4-topology.c
1734
dai->name);
sound/soc/sof/ipc4-topology.c
1749
snd_sof_get_nhlt_endpoint_data(struct snd_sof_dev *sdev, struct snd_sof_dai *dai,
sound/soc/sof/ipc4-topology.c
1779
ret = snd_sof_get_hw_config_params(sdev, dai, &sample_rate, &channel_count,
sound/soc/sof/ipc4-topology.c
1882
snd_sof_get_nhlt_endpoint_data(struct snd_sof_dev *sdev, struct snd_sof_dai *dai,
sound/soc/sof/ipc4-topology.c
1966
sof_ipc4_prepare_dai_copier(struct snd_sof_dev *sdev, struct snd_sof_dai *dai,
sound/soc/sof/ipc4-topology.c
1978
ipc4_copier = dai->private;
sound/soc/sof/ipc4-topology.c
2002
ret = snd_sof_get_nhlt_endpoint_data(sdev, dai, single_bitdepth,
sound/soc/sof/ipc4-topology.c
2047
struct snd_sof_dai *dai;
sound/soc/sof/ipc4-topology.c
2153
dai = swidget->private;
sound/soc/sof/ipc4-topology.c
2155
ipc4_copier = (struct sof_ipc4_copier *)dai->private;
sound/soc/sof/ipc4-topology.c
2171
ret = sof_ipc4_prepare_dai_copier(sdev, dai, ref_params, dir);
sound/soc/sof/ipc4-topology.c
2347
dai = w->private;
sound/soc/sof/ipc4-topology.c
2348
if (dai->type != SOF_DAI_INTEL_ALH)
sound/soc/sof/ipc4-topology.c
2350
alh_copier = (struct sof_ipc4_copier *)dai->private;
sound/soc/sof/ipc4-topology.c
3159
struct snd_sof_dai *dai = swidget->private;
sound/soc/sof/ipc4-topology.c
3160
struct sof_ipc4_copier *ipc4_copier = dai->private;
sound/soc/sof/ipc4-topology.c
3435
struct snd_sof_dai *dai = src_widget->private;
sound/soc/sof/ipc4-topology.c
3437
src_config = dai->private;
sound/soc/sof/ipc4-topology.c
3633
struct snd_sof_dai *dai = swidget->private;
sound/soc/sof/ipc4-topology.c
3638
if (!dai || !dai->private) {
sound/soc/sof/ipc4-topology.c
3644
ipc4_copier = (struct sof_ipc4_copier *)dai->private;
sound/soc/sof/ipc4-topology.c
3770
static int sof_ipc4_dai_get_param(struct snd_sof_dev *sdev, struct snd_sof_dai *dai, int param_type)
sound/soc/sof/ipc4-topology.c
3772
struct sof_ipc4_copier *ipc4_copier = dai->private;
sound/soc/sof/ipc4-topology.c
3783
if (!strcmp(slink->link->name, dai->name)) {
sound/soc/sof/ipc4-topology.c
3790
dev_err(sdev->dev, "no DAI link found for DAI %s\n", dai->name);
sound/soc/sof/ipc4-topology.c
3796
if (dai->current_config == le32_to_cpu(hw_config->id)) {
sound/soc/sof/ipc4-topology.c
3803
dev_err(sdev->dev, "no matching hw_config found for DAI %s\n", dai->name);
sound/soc/sof/ipc4-topology.c
753
struct snd_sof_dai *dai = swidget->private;
sound/soc/sof/ipc4-topology.c
792
dai->type = ipc4_copier->dai_type;
sound/soc/sof/ipc4-topology.c
878
dai->scomp = scomp;
sound/soc/sof/ipc4-topology.c
879
dai->private = ipc4_copier;
sound/soc/sof/ipc4-topology.c
894
dai->private = NULL;
sound/soc/sof/ipc4-topology.c
895
dai->scomp = NULL;
sound/soc/sof/ipc4-topology.c
902
struct snd_sof_dai *dai = swidget->private;
sound/soc/sof/ipc4-topology.c
905
if (!dai)
sound/soc/sof/ipc4-topology.c
908
if (!dai->private) {
sound/soc/sof/ipc4-topology.c
909
kfree(dai);
sound/soc/sof/ipc4-topology.c
914
ipc4_copier = dai->private;
sound/soc/sof/ipc4-topology.c
921
kfree(dai->private);
sound/soc/sof/ipc4-topology.c
922
kfree(dai);
sound/soc/sof/pcm.c
504
snd_pcm_uframes_t host, dai;
sound/soc/sof/pcm.c
528
dai = bytes_to_frames(substream->runtime,
sound/soc/sof/pcm.c
531
trace_sof_pcm_pointer_position(sdev, spcm, substream, host, dai);
sound/soc/sof/pcm.c
728
struct snd_sof_dai *dai =
sound/soc/sof/pcm.c
734
if (!dai) {
sound/soc/sof/pcm.c
74
struct snd_soc_dai *dai;
sound/soc/sof/pcm.c
78
for_each_rtd_cpu_dais(rtd, j, dai) {
sound/soc/sof/pcm.c
81
ret = snd_soc_dapm_dai_get_connected_widgets(dai, dir, &list,
sound/soc/sof/pcm.c
85
dai->name, snd_pcm_direction_name(dir));
sound/soc/sof/sof-audio.c
1000
if (dai->name && (strcmp(name, dai->name) == 0))
sound/soc/sof/sof-audio.c
1001
return dai;
sound/soc/sof/sof-audio.c
1011
struct snd_sof_dai *dai =
sound/soc/sof/sof-audio.c
1017
if (!dai)
sound/soc/sof/sof-audio.c
1021
return tplg_ops->dai_get_param(sdev, dai, param_type);
sound/soc/sof/sof-audio.c
997
struct snd_sof_dai *dai;
sound/soc/sof/sof-audio.c
999
list_for_each_entry(dai, &sdev->dai_list, list) {
sound/soc/sof/sof-audio.h
236
int (*dai_get_param)(struct snd_sof_dev *sdev, struct snd_sof_dai *dai, int param_type);
sound/soc/sof/sof-client-probes.c
106
struct snd_soc_dai *dai)
sound/soc/sof/sof-client-probes.c
108
struct snd_soc_card *card = snd_soc_component_get_drvdata(dai->component);
sound/soc/sof/sof-client-probes.c
122
ret = ops->set_params(cdev, cstream, params, dai);
sound/soc/sof/sof-client-probes.c
132
dev_err(dai->dev, "Failed to init probe: %d\n", ret);
sound/soc/sof/sof-client-probes.c
140
struct snd_soc_dai *dai)
sound/soc/sof/sof-client-probes.c
142
struct snd_soc_card *card = snd_soc_component_get_drvdata(dai->component);
sound/soc/sof/sof-client-probes.c
147
return ops->trigger(cdev, cstream, cmd, dai);
sound/soc/sof/sof-client-probes.c
152
struct snd_soc_dai *dai)
sound/soc/sof/sof-client-probes.c
154
struct snd_soc_card *card = snd_soc_component_get_drvdata(dai->component);
sound/soc/sof/sof-client-probes.c
159
return ops->pointer(cdev, cstream, tstamp, dai);
sound/soc/sof/sof-client-probes.c
40
struct snd_soc_dai *dai)
sound/soc/sof/sof-client-probes.c
42
struct snd_soc_card *card = snd_soc_component_get_drvdata(dai->component);
sound/soc/sof/sof-client-probes.c
55
ret = ops->startup(cdev, cstream, dai, &priv->extractor_stream_tag);
sound/soc/sof/sof-client-probes.c
57
dev_err(dai->dev, "Failed to startup probe stream: %d\n", ret);
sound/soc/sof/sof-client-probes.c
66
struct snd_soc_dai *dai)
sound/soc/sof/sof-client-probes.c
68
struct snd_soc_card *card = snd_soc_component_get_drvdata(dai->component);
sound/soc/sof/sof-client-probes.c
81
dev_err(dai->dev, "Failed to get probe points: %d\n", ret);
sound/soc/sof/sof-client-probes.c
92
dev_err(dai->dev, "Failed to deinit probe: %d\n", ret);
sound/soc/sof/sof-client-probes.c
97
ret = ops->shutdown(cdev, cstream, dai);
sound/soc/sof/sof-client-probes.h
18
struct snd_soc_dai *dai, u32 *stream_id);
sound/soc/sof/sof-client-probes.h
20
struct snd_soc_dai *dai);
sound/soc/sof/sof-client-probes.h
23
struct snd_soc_dai *dai);
sound/soc/sof/sof-client-probes.h
25
int cmd, struct snd_soc_dai *dai);
sound/soc/sof/sof-client-probes.h
28
struct snd_soc_dai *dai);
sound/soc/sof/topology.c
1071
struct snd_sof_dai *dai)
sound/soc/sof/topology.c
1124
dai->name = rtd->dai_link->name;
sound/soc/sof/topology.c
1130
if (!dai->name) {
sound/soc/sof/topology.c
1419
struct snd_sof_dai *dai;
sound/soc/sof/topology.c
1499
dai = kzalloc_obj(*dai);
sound/soc/sof/topology.c
1500
if (!dai) {
sound/soc/sof/topology.c
1507
ret = sof_connect_dai_widget(scomp, w, tw, dai);
sound/soc/sof/topology.c
1509
kfree(dai);
sound/soc/sof/topology.c
1512
list_add(&dai->list, &sdev->dai_list);
sound/soc/sof/topology.c
1513
swidget->private = dai;
sound/soc/sof/topology.c
1640
struct snd_sof_dai *dai;
sound/soc/sof/topology.c
1653
dai = swidget->private;
sound/soc/sof/topology.c
1655
if (dai)
sound/soc/sof/topology.c
1656
list_del(&dai->list);
sound/soc/sof/topology.c
1728
struct snd_soc_tplg_pcm *pcm, struct snd_soc_dai *dai)
sound/soc/sophgo/cv1800b-sound-adc.c
160
struct snd_soc_dai *dai)
sound/soc/sophgo/cv1800b-sound-adc.c
162
struct cv1800b_priv *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/sophgo/cv1800b-sound-adc.c
183
struct snd_soc_dai *dai)
sound/soc/sophgo/cv1800b-sound-adc.c
185
struct cv1800b_priv *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/sophgo/cv1800b-sound-adc.c
205
static int cv1800b_adc_dai_set_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/sophgo/cv1800b-sound-adc.c
208
struct cv1800b_priv *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/sophgo/cv1800b-sound-dac.c
102
struct snd_soc_dai *dai)
sound/soc/sophgo/cv1800b-sound-dac.c
104
struct cv1800b_priv *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/sophgo/cv1800b-sound-dac.c
130
struct snd_soc_dai *dai)
sound/soc/sophgo/cv1800b-sound-dac.c
132
struct cv1800b_priv *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/sophgo/cv1800b-tdm.c
368
struct snd_soc_dai *dai)
sound/soc/sophgo/cv1800b-tdm.c
370
struct cv1800b_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/sophgo/cv1800b-tdm.c
432
struct snd_soc_dai *dai)
sound/soc/sophgo/cv1800b-tdm.c
434
struct cv1800b_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/sophgo/cv1800b-tdm.c
459
struct snd_soc_dai *dai)
sound/soc/sophgo/cv1800b-tdm.c
462
struct cv1800b_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/sophgo/cv1800b-tdm.c
465
dev_dbg(i2s->dev, "%s: dai=%s substream=%d\n", __func__, dai->name,
sound/soc/sophgo/cv1800b-tdm.c
475
static int cv1800b_i2s_dai_probe(struct snd_soc_dai *dai)
sound/soc/sophgo/cv1800b-tdm.c
477
struct cv1800b_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/sophgo/cv1800b-tdm.c
480
dev_err(dai->dev, "no drvdata in DAI probe\n");
sound/soc/sophgo/cv1800b-tdm.c
484
snd_soc_dai_init_dma_data(dai, &i2s->playback_dma, &i2s->capture_dma);
sound/soc/sophgo/cv1800b-tdm.c
488
static int cv1800b_i2s_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/sophgo/cv1800b-tdm.c
490
struct cv1800b_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/sophgo/cv1800b-tdm.c
518
static int cv1800b_i2s_dai_set_bclk_ratio(struct snd_soc_dai *dai,
sound/soc/sophgo/cv1800b-tdm.c
521
struct cv1800b_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/sophgo/cv1800b-tdm.c
530
static int cv1800b_i2s_dai_set_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/sophgo/cv1800b-tdm.c
533
struct cv1800b_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/sophgo/cv1800b-tdm.c
639
struct snd_soc_dai_driver *dai;
sound/soc/sophgo/cv1800b-tdm.c
669
dai = devm_kmemdup(dev, &cv1800b_i2s_dai_template, sizeof(*dai),
sound/soc/sophgo/cv1800b-tdm.c
671
if (!dai)
sound/soc/sophgo/cv1800b-tdm.c
674
ret = devm_snd_soc_register_component(dev, &cv1800b_i2s_component, dai,
sound/soc/spacemit/k1_i2s.c
111
struct snd_soc_dai *dai)
sound/soc/spacemit/k1_i2s.c
113
struct spacemit_i2s_dev *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/spacemit/k1_i2s.c
244
int cmd, struct snd_soc_dai *dai)
sound/soc/spacemit/k1_i2s.c
246
struct spacemit_i2s_dev *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/spacemit/k1_i2s.c
279
static int spacemit_i2s_dai_probe(struct snd_soc_dai *dai)
sound/soc/spacemit/k1_i2s.c
281
struct spacemit_i2s_dev *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/spacemit/k1_i2s.c
283
snd_soc_dai_init_dma_data(dai,
sound/soc/spacemit/k1_i2s.c
294
static int spacemit_i2s_dai_remove(struct snd_soc_dai *dai)
sound/soc/spacemit/k1_i2s.c
296
struct spacemit_i2s_dev *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/spacemit/k1_i2s.c
338
struct snd_soc_dai_driver *dai;
sound/soc/spacemit/k1_i2s.c
349
dai = devm_kmemdup(i2s->dev, &spacemit_i2s_dai,
sound/soc/spacemit/k1_i2s.c
350
sizeof(*dai), GFP_KERNEL);
sound/soc/spacemit/k1_i2s.c
351
if (!dai)
sound/soc/spacemit/k1_i2s.c
355
dai->playback.stream_name = "Playback";
sound/soc/spacemit/k1_i2s.c
356
dai->playback.channels_min = 1;
sound/soc/spacemit/k1_i2s.c
357
dai->playback.channels_max = 2;
sound/soc/spacemit/k1_i2s.c
358
dai->playback.rates = SPACEMIT_PCM_RATES;
sound/soc/spacemit/k1_i2s.c
359
dai->playback.formats = SPACEMIT_PCM_FORMATS;
sound/soc/spacemit/k1_i2s.c
367
dai->capture.stream_name = "Capture";
sound/soc/spacemit/k1_i2s.c
368
dai->capture.channels_min = 1;
sound/soc/spacemit/k1_i2s.c
369
dai->capture.channels_max = 2;
sound/soc/spacemit/k1_i2s.c
370
dai->capture.rates = SPACEMIT_PCM_RATES;
sound/soc/spacemit/k1_i2s.c
371
dai->capture.formats = SPACEMIT_PCM_FORMATS;
sound/soc/spacemit/k1_i2s.c
379
*dp = dai;
sound/soc/spacemit/k1_i2s.c
391
struct snd_soc_dai_driver *dai;
sound/soc/spacemit/k1_i2s.c
432
ret = spacemit_i2s_init_dai(i2s, &dai, res->start + SSDATR);
sound/soc/spacemit/k1_i2s.c
438
dai, 1);
sound/soc/spear/spdif_in.c
111
struct snd_soc_dai *dai)
sound/soc/spear/spdif_in.c
113
struct spdif_in_dev *host = snd_soc_dai_get_drvdata(dai);
sound/soc/spear/spdif_in.c
56
static int spdif_in_dai_probe(struct snd_soc_dai *dai)
sound/soc/spear/spdif_in.c
58
struct spdif_in_dev *host = snd_soc_dai_get_drvdata(dai);
sound/soc/spear/spdif_in.c
61
dai->capture_dma_data = &host->dma_params_rx;
sound/soc/spear/spdif_in.c
67
struct snd_soc_dai *dai)
sound/soc/spear/spdif_in.c
69
struct spdif_in_dev *host = snd_soc_dai_get_drvdata(dai);
sound/soc/spear/spdif_in.c
96
struct snd_soc_dai *dai)
sound/soc/spear/spdif_in.c
98
struct spdif_in_dev *host = snd_soc_dai_get_drvdata(dai);
sound/soc/spear/spdif_out.c
107
struct snd_soc_dai *dai)
sound/soc/spear/spdif_out.c
109
struct spdif_out_dev *host = snd_soc_dai_get_drvdata(dai);
sound/soc/spear/spdif_out.c
152
struct snd_soc_dai *dai)
sound/soc/spear/spdif_out.c
154
struct spdif_out_dev *host = snd_soc_dai_get_drvdata(dai);
sound/soc/spear/spdif_out.c
191
static int spdif_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/spear/spdif_out.c
193
struct spdif_out_dev *host = snd_soc_dai_get_drvdata(dai);
sound/soc/spear/spdif_out.c
242
static int spdif_soc_dai_probe(struct snd_soc_dai *dai)
sound/soc/spear/spdif_out.c
244
struct spdif_out_dev *host = snd_soc_dai_get_drvdata(dai);
sound/soc/spear/spdif_out.c
248
snd_soc_dai_dma_data_set_playback(dai, &host->dma_params_tx);
sound/soc/spear/spdif_out.c
250
return snd_soc_add_dai_controls(dai, spdif_out_controls,
sound/soc/spear/spdif_out.c
80
struct snd_soc_dai *dai)
sound/soc/spear/spdif_out.c
82
struct spdif_out_dev *host = snd_soc_dai_get_drvdata(dai);
sound/soc/starfive/jh7110_pwmdac.c
214
struct snd_soc_dai *dai)
sound/soc/starfive/jh7110_pwmdac.c
226
struct snd_soc_dai *dai)
sound/soc/starfive/jh7110_pwmdac.c
228
struct jh7110_pwmdac_dev *dev = dev_get_drvdata(dai->dev);
sound/soc/starfive/jh7110_pwmdac.c
262
dev_err(dai->dev, "%d rate not supported\n",
sound/soc/starfive/jh7110_pwmdac.c
275
dev_err(dai->dev, "%d channels not supported\n",
sound/soc/starfive/jh7110_pwmdac.c
289
return dev_err_probe(dai->dev, ret,
sound/soc/starfive/jh7110_pwmdac.c
297
struct snd_soc_dai *dai)
sound/soc/starfive/jh7110_pwmdac.c
299
struct jh7110_pwmdac_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/starfive/jh7110_pwmdac.c
349
static int jh7110_pwmdac_dai_probe(struct snd_soc_dai *dai)
sound/soc/starfive/jh7110_pwmdac.c
351
struct jh7110_pwmdac_dev *dev = dev_get_drvdata(dai->dev);
sound/soc/starfive/jh7110_pwmdac.c
353
snd_soc_dai_init_dma_data(dai, &dev->play_dma_data, NULL);
sound/soc/starfive/jh7110_pwmdac.c
354
snd_soc_dai_set_drvdata(dai, dev);
sound/soc/starfive/jh7110_tdm.c
331
struct snd_soc_dai *dai)
sound/soc/starfive/jh7110_tdm.c
333
struct jh7110_tdm_dev *tdm = snd_soc_dai_get_drvdata(dai);
sound/soc/starfive/jh7110_tdm.c
390
snd_soc_dai_set_dma_data(dai, substream, dma_data);
sound/soc/starfive/jh7110_tdm.c
401
int cmd, struct snd_soc_dai *dai)
sound/soc/starfive/jh7110_tdm.c
403
struct jh7110_tdm_dev *tdm = snd_soc_dai_get_drvdata(dai);
sound/soc/starfive/jh7110_tdm.c
459
static int jh7110_tdm_dai_probe(struct snd_soc_dai *dai)
sound/soc/starfive/jh7110_tdm.c
461
struct jh7110_tdm_dev *tdm = snd_soc_dai_get_drvdata(dai);
sound/soc/starfive/jh7110_tdm.c
463
snd_soc_dai_init_dma_data(dai, &tdm->play_dma_data, &tdm->capture_dma_data);
sound/soc/starfive/jh7110_tdm.c
464
snd_soc_dai_set_drvdata(dai, tdm);
sound/soc/sti/sti_uniperif.c
124
int sti_uniperiph_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/sti/sti_uniperif.c
128
struct sti_uniperiph_data *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/sti/sti_uniperif.c
256
static int sti_uniperiph_dai_create_ctrl(struct snd_soc_dai *dai)
sound/soc/sti/sti_uniperif.c
258
struct sti_uniperiph_data *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/sti/sti_uniperif.c
276
return snd_soc_add_dai_controls(dai, uni->snd_ctrls, uni->num_ctrls);
sound/soc/sti/sti_uniperif.c
284
struct snd_soc_dai *dai)
sound/soc/sti/sti_uniperif.c
286
struct sti_uniperiph_data *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/sti/sti_uniperif.c
297
dma_data = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/sti/sti_uniperif.c
303
int sti_uniperiph_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/sti/sti_uniperif.c
305
struct sti_uniperiph_data *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/sti/sti_uniperif.c
355
int sti_uniperiph_dai_probe(struct snd_soc_dai *dai)
sound/soc/sti/sti_uniperif.c
357
struct sti_uniperiph_data *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/sti/sti_uniperif.c
362
snd_soc_dai_init_dma_data(dai, &dai_data->dma_data, NULL);
sound/soc/sti/sti_uniperif.c
364
snd_soc_dai_init_dma_data(dai, NULL, &dai_data->dma_data);
sound/soc/sti/sti_uniperif.c
369
return sti_uniperiph_dai_create_ctrl(dai);
sound/soc/sti/sti_uniperif.c
392
struct snd_soc_dai_driver *dai = priv->dai;
sound/soc/sti/sti_uniperif.c
415
*dai = sti_uniperiph_dai_template;
sound/soc/sti/sti_uniperif.c
416
dai->name = dev_data->dai_names;
sound/soc/sti/sti_uniperif.c
445
stream = &dai->playback;
sound/soc/sti/sti_uniperif.c
448
stream = &dai->capture;
sound/soc/sti/sti_uniperif.c
453
dai->ops = uni->dai_ops;
sound/soc/sti/sti_uniperif.c
455
stream->stream_name = dai->name;
sound/soc/sti/sti_uniperif.c
474
priv->dai = devm_kzalloc(&pdev->dev, sizeof(*priv->dai), GFP_KERNEL);
sound/soc/sti/sti_uniperif.c
475
if (!priv->dai)
sound/soc/sti/sti_uniperif.c
488
priv->dai, 1);
sound/soc/sti/uniperif.h
1347
struct snd_soc_dai_driver *dai;
sound/soc/sti/uniperif.h
1383
int sti_uniperiph_dai_probe(struct snd_soc_dai *dai);
sound/soc/sti/uniperif.h
1384
int sti_uniperiph_dai_set_fmt(struct snd_soc_dai *dai,
sound/soc/sti/uniperif.h
1389
struct snd_soc_dai *dai);
sound/soc/sti/uniperif.h
1404
int sti_uniperiph_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
sound/soc/sti/uniperif_player.c
573
struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol);
sound/soc/sti/uniperif_player.c
574
struct sti_uniperiph_data *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/sti/uniperif_player.c
590
struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol);
sound/soc/sti/uniperif_player.c
591
struct sti_uniperiph_data *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/sti/uniperif_player.c
641
struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol);
sound/soc/sti/uniperif_player.c
642
struct sti_uniperiph_data *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/sti/uniperif_player.c
655
struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol);
sound/soc/sti/uniperif_player.c
656
struct sti_uniperiph_data *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/sti/uniperif_player.c
692
struct snd_soc_dai *dai)
sound/soc/sti/uniperif_player.c
694
struct sti_uniperiph_data *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/sti/uniperif_player.c
724
static int uni_player_set_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/sti/uniperif_player.c
727
struct sti_uniperiph_data *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/sti/uniperif_player.c
747
struct snd_soc_dai *dai)
sound/soc/sti/uniperif_player.c
749
struct sti_uniperiph_data *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/sti/uniperif_player.c
977
int cmd, struct snd_soc_dai *dai)
sound/soc/sti/uniperif_player.c
979
struct sti_uniperiph_data *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/sti/uniperif_player.c
995
struct snd_soc_dai *dai)
sound/soc/sti/uniperif_player.c
997
struct sti_uniperiph_data *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/sti/uniperif_reader.c
187
struct snd_soc_dai *dai)
sound/soc/sti/uniperif_reader.c
189
struct sti_uniperiph_data *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/sti/uniperif_reader.c
338
int cmd, struct snd_soc_dai *dai)
sound/soc/sti/uniperif_reader.c
340
struct sti_uniperiph_data *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/sti/uniperif_reader.c
354
struct snd_soc_dai *dai)
sound/soc/sti/uniperif_reader.c
356
struct sti_uniperiph_data *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/sti/uniperif_reader.c
385
struct snd_soc_dai *dai)
sound/soc/sti/uniperif_reader.c
387
struct sti_uniperiph_data *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/stm/stm32_adfsdm.c
109
static int stm32_adfsdm_set_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/stm/stm32_adfsdm.c
112
struct stm32_adfsdm_priv *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/stm/stm32_adfsdm.c
116
dev_dbg(dai->dev, "%s: Enter for freq %d\n", __func__, freq);
sound/soc/stm/stm32_adfsdm.c
124
dev_err(dai->dev, "%s: Failed to set SPI clock\n",
sound/soc/stm/stm32_adfsdm.c
61
struct snd_soc_dai *dai)
sound/soc/stm/stm32_adfsdm.c
63
struct stm32_adfsdm_priv *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/stm/stm32_adfsdm.c
74
struct snd_soc_dai *dai)
sound/soc/stm/stm32_adfsdm.c
76
struct stm32_adfsdm_priv *priv = snd_soc_dai_get_drvdata(dai);
sound/soc/stm/stm32_adfsdm.c
89
dev_err(dai->dev, "%s: Failed to set %d sampling rate\n",
sound/soc/stm/stm32_adfsdm.c
99
dev_err(dai->dev, "%s: IIO channel start failed (%d)\n",
sound/soc/sunxi/sun4i-codec.c
1552
static int sun4i_codec_dai_probe(struct snd_soc_dai *dai)
sound/soc/sunxi/sun4i-codec.c
1554
struct snd_soc_card *card = snd_soc_dai_get_drvdata(dai);
sound/soc/sunxi/sun4i-codec.c
1557
snd_soc_dai_init_dma_data(dai, &scodec->playback_dma_data,
sound/soc/sunxi/sun4i-codec.c
379
struct snd_soc_dai *dai)
sound/soc/sunxi/sun4i-codec.c
411
struct snd_soc_dai *dai)
sound/soc/sunxi/sun4i-codec.c
452
struct snd_soc_dai *dai)
sound/soc/sunxi/sun4i-codec.c
486
struct snd_soc_dai *dai)
sound/soc/sunxi/sun4i-codec.c
489
return sun4i_codec_prepare_playback(substream, dai);
sound/soc/sunxi/sun4i-codec.c
491
return sun4i_codec_prepare_capture(substream, dai);
sound/soc/sunxi/sun4i-codec.c
653
struct snd_soc_dai *dai)
sound/soc/sunxi/sun4i-codec.c
681
struct snd_soc_dai *dai)
sound/soc/sunxi/sun4i-codec.c
697
struct snd_soc_dai *dai)
sound/soc/sunxi/sun4i-i2s.c
1031
struct snd_soc_dai *dai)
sound/soc/sunxi/sun4i-i2s.c
1033
struct sun4i_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/sunxi/sun4i-i2s.c
1061
static int sun4i_i2s_set_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/sunxi/sun4i-i2s.c
1064
struct sun4i_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/sunxi/sun4i-i2s.c
1074
static int sun4i_i2s_set_tdm_slot(struct snd_soc_dai *dai,
sound/soc/sunxi/sun4i-i2s.c
1078
struct sun4i_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/sunxi/sun4i-i2s.c
1089
static int sun4i_i2s_dai_probe(struct snd_soc_dai *dai)
sound/soc/sunxi/sun4i-i2s.c
1091
struct sun4i_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/sunxi/sun4i-i2s.c
1093
snd_soc_dai_init_dma_data(dai,
sound/soc/sunxi/sun4i-i2s.c
1100
static int sun4i_i2s_dai_startup(struct snd_pcm_substream *sub, struct snd_soc_dai *dai)
sound/soc/sunxi/sun4i-i2s.c
1102
struct sun4i_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/sunxi/sun4i-i2s.c
338
static int sun4i_i2s_set_clk_rate(struct snd_soc_dai *dai,
sound/soc/sunxi/sun4i-i2s.c
343
struct sun4i_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/sunxi/sun4i-i2s.c
371
dev_err(dai->dev, "Unsupported sample rate: %u\n", rate);
sound/soc/sunxi/sun4i-i2s.c
381
dev_err(dai->dev, "Unsupported oversample rate: %d\n",
sound/soc/sunxi/sun4i-i2s.c
390
dev_err(dai->dev, "Unsupported BCLK divider: %d\n", bclk_div);
sound/soc/sunxi/sun4i-i2s.c
396
dev_err(dai->dev, "Unsupported MCLK divider: %d\n", mclk_div);
sound/soc/sunxi/sun4i-i2s.c
595
struct snd_soc_dai *dai)
sound/soc/sunxi/sun4i-i2s.c
597
struct sun4i_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/sunxi/sun4i-i2s.c
615
dev_err(dai->dev, "Invalid channel configuration\n");
sound/soc/sunxi/sun4i-i2s.c
634
dev_err(dai->dev, "Unsupported physical sample width: %d\n",
sound/soc/sunxi/sun4i-i2s.c
651
return sun4i_i2s_set_clk_rate(dai, params_rate(params),
sound/soc/sunxi/sun4i-i2s.c
946
static int sun4i_i2s_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/sunxi/sun4i-i2s.c
948
struct sun4i_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/sunxi/sun4i-i2s.c
953
dev_err(dai->dev, "Unsupported format configuration\n");
sound/soc/sunxi/sun4i-spdif.c
372
struct snd_soc_dai *dai)
sound/soc/sunxi/sun4i-spdif.c
375
struct sun4i_spdif_dev *host = snd_soc_dai_get_drvdata(dai);
sound/soc/sunxi/sun4i-spdif.c
508
static int sun4i_spdif_soc_dai_probe(struct snd_soc_dai *dai)
sound/soc/sunxi/sun4i-spdif.c
510
struct sun4i_spdif_dev *host = snd_soc_dai_get_drvdata(dai);
sound/soc/sunxi/sun4i-spdif.c
512
snd_soc_dai_init_dma_data(dai, &host->dma_params_tx, NULL);
sound/soc/sunxi/sun4i-spdif.c
513
snd_soc_add_dai_controls(dai, sun4i_spdif_controls,
sound/soc/sunxi/sun50i-dmic.c
203
struct snd_soc_dai *dai)
sound/soc/sunxi/sun50i-dmic.c
206
struct sun50i_dmic_dev *host = snd_soc_dai_get_drvdata(dai);
sound/soc/sunxi/sun50i-dmic.c
241
static int sun50i_dmic_soc_dai_probe(struct snd_soc_dai *dai)
sound/soc/sunxi/sun50i-dmic.c
243
struct sun50i_dmic_dev *host = snd_soc_dai_get_drvdata(dai);
sound/soc/sunxi/sun50i-dmic.c
245
snd_soc_dai_init_dma_data(dai, NULL, &host->dma_params_rx);
sound/soc/sunxi/sun8i-codec.c
342
static int sun8i_codec_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/sunxi/sun8i-codec.c
344
struct sun8i_codec *scodec = snd_soc_dai_get_drvdata(dai);
sound/soc/sunxi/sun8i-codec.c
359
if (dai->id == SUN8I_CODEC_AIF3) {
sound/soc/sunxi/sun8i-codec.c
365
regmap_update_bits(scodec->regmap, SUN8I_AIF_CLK_CTRL(dai->id),
sound/soc/sunxi/sun8i-codec.c
369
regmap_update_bits(scodec->regmap, SUN8I_AIF_CLK_CTRL(dai->id),
sound/soc/sunxi/sun8i-codec.c
397
if (dai->id == SUN8I_CODEC_AIF3) {
sound/soc/sunxi/sun8i-codec.c
402
regmap_update_bits(scodec->regmap, SUN8I_AIF_CLK_CTRL(dai->id),
sound/soc/sunxi/sun8i-codec.c
446
regmap_update_bits(scodec->regmap, SUN8I_AIF_CLK_CTRL(dai->id),
sound/soc/sunxi/sun8i-codec.c
453
static int sun8i_codec_set_tdm_slot(struct snd_soc_dai *dai,
sound/soc/sunxi/sun8i-codec.c
457
struct sun8i_codec *scodec = snd_soc_dai_get_drvdata(dai);
sound/soc/sunxi/sun8i-codec.c
458
struct sun8i_codec_aif *aif = &scodec->aifs[dai->id];
sound/soc/sunxi/sun8i-codec.c
492
struct snd_soc_dai *dai)
sound/soc/sunxi/sun8i-codec.c
494
struct sun8i_codec *scodec = snd_soc_dai_get_drvdata(dai);
sound/soc/sunxi/sun8i-codec.c
498
if (dai->id != SUN8I_CODEC_AIF1)
sound/soc/sunxi/sun8i-codec.c
571
struct snd_soc_dai *dai)
sound/soc/sunxi/sun8i-codec.c
573
struct sun8i_codec *scodec = snd_soc_dai_get_drvdata(dai);
sound/soc/sunxi/sun8i-codec.c
574
struct sun8i_codec_aif *aif = &scodec->aifs[dai->id];
sound/soc/sunxi/sun8i-codec.c
600
regmap_update_bits(scodec->regmap, SUN8I_AIF_CLK_CTRL(dai->id),
sound/soc/sunxi/sun8i-codec.c
609
if (dai->id == SUN8I_CODEC_AIF2 || dai->id == SUN8I_CODEC_AIF3) {
sound/soc/sunxi/sun8i-codec.c
611
int partner = (SUN8I_CODEC_AIF2 + SUN8I_CODEC_AIF3) - dai->id;
sound/soc/sunxi/sun8i-codec.c
618
dev_err(dai->dev,
sound/soc/sunxi/sun8i-codec.c
620
dai->name, partner_name);
sound/soc/sunxi/sun8i-codec.c
626
clk_reg = SUN8I_AIF_CLK_CTRL(dai->id);
sound/soc/sunxi/sun8i-codec.c
654
dev_err(dai->dev,
sound/soc/sunxi/sun8i-codec.c
656
dai->name, sample_rate);
sound/soc/sunxi/sun8i-codec.c
672
struct snd_soc_dai *dai)
sound/soc/sunxi/sun8i-codec.c
674
struct sun8i_codec *scodec = snd_soc_dai_get_drvdata(dai);
sound/soc/sunxi/sun8i-codec.c
675
struct sun8i_codec_aif *aif = &scodec->aifs[dai->id];
sound/soc/tegra/tegra186_asrc.c
163
struct snd_soc_dai *dai)
sound/soc/tegra/tegra186_asrc.c
165
struct device *dev = dai->dev;
sound/soc/tegra/tegra186_asrc.c
166
struct tegra186_asrc *asrc = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra186_asrc.c
167
int ret, id = dai->id;
sound/soc/tegra/tegra186_asrc.c
171
ASRC_STREAM_REG(TEGRA186_ASRC_RX_THRESHOLD, dai->id),
sound/soc/tegra/tegra186_asrc.c
175
ASRC_STREAM_REG(TEGRA186_ASRC_RX_CIF_CTRL, dai->id));
sound/soc/tegra/tegra186_asrc.c
177
dev_err(dev, "Can't set ASRC RX%d CIF: %d\n", dai->id, ret);
sound/soc/tegra/tegra186_asrc.c
186
struct snd_soc_dai *dai)
sound/soc/tegra/tegra186_asrc.c
188
struct device *dev = dai->dev;
sound/soc/tegra/tegra186_asrc.c
189
struct tegra186_asrc *asrc = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra186_asrc.c
190
int ret, id = dai->id - 7;
sound/soc/tegra/tegra186_dspk.c
215
struct snd_soc_dai *dai)
sound/soc/tegra/tegra186_dspk.c
217
struct tegra186_dspk *dspk = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra186_dspk.c
219
struct device *dev = dai->dev;
sound/soc/tegra/tegra20_ac97.c
177
struct snd_soc_dai *dai)
sound/soc/tegra/tegra20_ac97.c
179
struct tegra20_ac97 *ac97 = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra20_ac97.c
205
static int tegra20_ac97_probe(struct snd_soc_dai *dai)
sound/soc/tegra/tegra20_ac97.c
207
struct tegra20_ac97 *ac97 = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra20_ac97.c
209
snd_soc_dai_init_dma_data(dai, &ac97->playback_dma_data,
sound/soc/tegra/tegra20_i2s.c
142
struct snd_soc_dai *dai)
sound/soc/tegra/tegra20_i2s.c
144
struct device *dev = dai->dev;
sound/soc/tegra/tegra20_i2s.c
145
struct tegra20_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra20_i2s.c
227
struct snd_soc_dai *dai)
sound/soc/tegra/tegra20_i2s.c
229
struct tegra20_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra20_i2s.c
255
static int tegra20_i2s_probe(struct snd_soc_dai *dai)
sound/soc/tegra/tegra20_i2s.c
257
struct tegra20_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra20_i2s.c
259
snd_soc_dai_init_dma_data(dai, &i2s->playback_dma_data,
sound/soc/tegra/tegra20_i2s.c
273
struct snd_soc_dai *dai = rule->private;
sound/soc/tegra/tegra20_i2s.c
274
struct tegra20_i2s *i2s = dev_get_drvdata(dai->dev);
sound/soc/tegra/tegra20_i2s.c
280
dev_err(dai->dev, "Can't get parent clock rate\n");
sound/soc/tegra/tegra20_i2s.c
301
struct snd_soc_dai *dai)
sound/soc/tegra/tegra20_i2s.c
303
if (!device_property_read_bool(dai->dev, "nvidia,fixed-parent-rate"))
sound/soc/tegra/tegra20_i2s.c
308
tegra20_i2s_filter_rates, dai,
sound/soc/tegra/tegra20_i2s.c
413
i2s->dai = tegra20_i2s_dai_template;
sound/soc/tegra/tegra20_i2s.c
414
i2s->dai.name = dev_name(&pdev->dev);
sound/soc/tegra/tegra20_i2s.c
454
&i2s->dai, 1);
sound/soc/tegra/tegra20_i2s.c
84
static int tegra20_i2s_set_fmt(struct snd_soc_dai *dai,
sound/soc/tegra/tegra20_i2s.c
87
struct tegra20_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra20_i2s.h
142
struct snd_soc_dai_driver dai;
sound/soc/tegra/tegra20_spdif.c
133
dev_err(dai->dev, "Can't set SPDIF clock rate: %d\n", ret);
sound/soc/tegra/tegra20_spdif.c
139
dev_warn_once(dai->dev,
sound/soc/tegra/tegra20_spdif.c
160
struct snd_soc_dai *dai)
sound/soc/tegra/tegra20_spdif.c
162
struct tegra20_spdif *spdif = dev_get_drvdata(dai->dev);
sound/soc/tegra/tegra20_spdif.c
186
struct snd_soc_dai *dai = rule->private;
sound/soc/tegra/tegra20_spdif.c
187
struct tegra20_spdif *spdif = dev_get_drvdata(dai->dev);
sound/soc/tegra/tegra20_spdif.c
194
dev_err(dai->dev, "Can't get parent clock rate\n");
sound/soc/tegra/tegra20_spdif.c
214
struct snd_soc_dai *dai)
sound/soc/tegra/tegra20_spdif.c
216
if (!device_property_read_bool(dai->dev, "nvidia,fixed-parent-rate"))
sound/soc/tegra/tegra20_spdif.c
230
tegra20_spdif_filter_rates, dai,
sound/soc/tegra/tegra20_spdif.c
234
static int tegra20_spdif_probe(struct snd_soc_dai *dai)
sound/soc/tegra/tegra20_spdif.c
236
struct tegra20_spdif *spdif = dev_get_drvdata(dai->dev);
sound/soc/tegra/tegra20_spdif.c
238
snd_soc_dai_init_dma_data(dai, &spdif->playback_dma_data, NULL);
sound/soc/tegra/tegra20_spdif.c
77
struct snd_soc_dai *dai)
sound/soc/tegra/tegra20_spdif.c
79
struct tegra20_spdif *spdif = dev_get_drvdata(dai->dev);
sound/soc/tegra/tegra210_admaif.c
320
struct snd_soc_dai *dai)
sound/soc/tegra/tegra210_admaif.c
322
return tegra_isomgr_adma_setbw(substream, dai, true);
sound/soc/tegra/tegra210_admaif.c
326
struct snd_soc_dai *dai)
sound/soc/tegra/tegra210_admaif.c
328
tegra_isomgr_adma_setbw(substream, dai, false);
sound/soc/tegra/tegra210_admaif.c
333
struct snd_soc_dai *dai)
sound/soc/tegra/tegra210_admaif.c
335
struct device *dev = dai->dev;
sound/soc/tegra/tegra210_admaif.c
336
struct tegra_admaif *admaif = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra210_admaif.c
375
reg = CH_TX_REG(TEGRA_ADMAIF_CH_ACIF_TX_CTRL, dai->id);
sound/soc/tegra/tegra210_admaif.c
378
reg = CH_RX_REG(TEGRA_ADMAIF_CH_ACIF_RX_CTRL, dai->id);
sound/soc/tegra/tegra210_admaif.c
381
cif_conf.mono_conv = admaif->mono_to_stereo[path][dai->id];
sound/soc/tegra/tegra210_admaif.c
382
cif_conf.stereo_conv = admaif->stereo_to_mono[path][dai->id];
sound/soc/tegra/tegra210_admaif.c
394
static int tegra_admaif_start(struct snd_soc_dai *dai, int direction)
sound/soc/tegra/tegra210_admaif.c
396
struct tegra_admaif *admaif = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra210_admaif.c
403
reg = CH_TX_REG(TEGRA_ADMAIF_TX_ENABLE, dai->id);
sound/soc/tegra/tegra210_admaif.c
408
reg = CH_RX_REG(TEGRA_ADMAIF_RX_ENABLE, dai->id);
sound/soc/tegra/tegra210_admaif.c
419
static int tegra_admaif_stop(struct snd_soc_dai *dai, int direction)
sound/soc/tegra/tegra210_admaif.c
421
struct tegra_admaif *admaif = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra210_admaif.c
431
enable_reg = CH_TX_REG(TEGRA_ADMAIF_TX_ENABLE, dai->id);
sound/soc/tegra/tegra210_admaif.c
432
status_reg = CH_TX_REG(TEGRA_ADMAIF_TX_STATUS, dai->id);
sound/soc/tegra/tegra210_admaif.c
433
reset_reg = CH_TX_REG(TEGRA_ADMAIF_TX_SOFT_RESET, dai->id);
sound/soc/tegra/tegra210_admaif.c
439
enable_reg = CH_RX_REG(TEGRA_ADMAIF_RX_ENABLE, dai->id);
sound/soc/tegra/tegra210_admaif.c
440
status_reg = CH_RX_REG(TEGRA_ADMAIF_RX_STATUS, dai->id);
sound/soc/tegra/tegra210_admaif.c
441
reset_reg = CH_RX_REG(TEGRA_ADMAIF_RX_SOFT_RESET, dai->id);
sound/soc/tegra/tegra210_admaif.c
454
dev_warn(dai->dev, "timeout: failed to disable ADMAIF%d_%s\n",
sound/soc/tegra/tegra210_admaif.c
455
dai->id + 1, dir_name);
sound/soc/tegra/tegra210_admaif.c
465
dev_err(dai->dev, "timeout: SW reset failed for ADMAIF%d_%s\n",
sound/soc/tegra/tegra210_admaif.c
466
dai->id + 1, dir_name);
sound/soc/tegra/tegra210_admaif.c
474
struct snd_soc_dai *dai)
sound/soc/tegra/tegra210_admaif.c
486
return tegra_admaif_start(dai, substream->stream);
sound/soc/tegra/tegra210_admaif.c
490
return tegra_admaif_stop(dai, substream->stream);
sound/soc/tegra/tegra210_admaif.c
612
static int tegra_admaif_dai_probe(struct snd_soc_dai *dai)
sound/soc/tegra/tegra210_admaif.c
614
struct tegra_admaif *admaif = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra210_admaif.c
616
snd_soc_dai_init_dma_data(dai, &admaif->playback_dma_data[dai->id],
sound/soc/tegra/tegra210_admaif.c
617
&admaif->capture_dma_data[dai->id]);
sound/soc/tegra/tegra210_adx.c
126
static int tegra210_adx_set_audio_cif(struct snd_soc_dai *dai,
sound/soc/tegra/tegra210_adx.c
131
struct tegra210_adx *adx = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra210_adx.c
170
struct snd_soc_dai *dai)
sound/soc/tegra/tegra210_adx.c
172
return tegra210_adx_set_audio_cif(dai, params_channels(params),
sound/soc/tegra/tegra210_adx.c
174
TEGRA210_ADX_TX1_CIF_CTRL + ((dai->id - 1) * TEGRA210_ADX_AUDIOCIF_CH_STRIDE));
sound/soc/tegra/tegra210_adx.c
179
struct snd_soc_dai *dai)
sound/soc/tegra/tegra210_adx.c
181
return tegra210_adx_set_audio_cif(dai, params_channels(params),
sound/soc/tegra/tegra210_adx.c
70
struct snd_soc_dai *dai)
sound/soc/tegra/tegra210_adx.c
72
struct tegra210_adx *adx = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra210_adx.c
80
dev_err(dai->dev, "failed to stop ADX, err = %d\n", err);
sound/soc/tegra/tegra210_adx.c
97
dev_err(dai->dev, "failed to reset ADX, err = %d\n", err);
sound/soc/tegra/tegra210_amx.c
108
dev_err(dai->dev, "failed to reset AMX, err = %d\n", err);
sound/soc/tegra/tegra210_amx.c
142
static int tegra210_amx_set_audio_cif(struct snd_soc_dai *dai,
sound/soc/tegra/tegra210_amx.c
146
struct tegra210_amx *amx = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra210_amx.c
184
struct snd_soc_dai *dai)
sound/soc/tegra/tegra210_amx.c
186
struct tegra210_amx *amx = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra210_amx.c
190
AMX_CH_REG(dai->id, TEGRA194_AMX_RX1_FRAME_PERIOD +
sound/soc/tegra/tegra210_amx.c
196
return tegra210_amx_set_audio_cif(dai, params,
sound/soc/tegra/tegra210_amx.c
197
AMX_CH_REG(dai->id, TEGRA210_AMX_RX1_CIF_CTRL));
sound/soc/tegra/tegra210_amx.c
202
struct snd_soc_dai *dai)
sound/soc/tegra/tegra210_amx.c
204
return tegra210_amx_set_audio_cif(dai, params,
sound/soc/tegra/tegra210_amx.c
81
struct snd_soc_dai *dai)
sound/soc/tegra/tegra210_amx.c
83
struct tegra210_amx *amx = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra210_amx.c
91
dev_err(dai->dev, "failed to stop AMX, err = %d\n", err);
sound/soc/tegra/tegra210_dmic.c
111
dev_err(dai->dev, "can't set DMIC clock rate %u, err: %d\n",
sound/soc/tegra/tegra210_dmic.c
147
dev_err(dai->dev, "unsupported format!\n");
sound/soc/tegra/tegra210_dmic.c
74
struct snd_soc_dai *dai)
sound/soc/tegra/tegra210_dmic.c
76
struct tegra210_dmic *dmic = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra210_dmic.c
97
dev_err(dai->dev, "invalid DMIC client channels\n");
sound/soc/tegra/tegra210_i2s.c
223
static int tegra210_i2s_set_fmt(struct snd_soc_dai *dai,
sound/soc/tegra/tegra210_i2s.c
226
struct tegra210_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra210_i2s.c
304
static int tegra210_i2s_set_tdm_slot(struct snd_soc_dai *dai,
sound/soc/tegra/tegra210_i2s.c
308
struct tegra210_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra210_i2s.c
542
static int tegra210_i2s_set_dai_bclk_ratio(struct snd_soc_dai *dai,
sound/soc/tegra/tegra210_i2s.c
545
struct tegra210_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra210_i2s.c
614
struct snd_soc_dai *dai)
sound/soc/tegra/tegra210_i2s.c
616
struct device *dev = dai->dev;
sound/soc/tegra/tegra210_i2s.c
617
struct tegra210_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra210_mixer.c
273
struct snd_soc_dai *dai)
sound/soc/tegra/tegra210_mixer.c
275
struct tegra210_mixer *mixer = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra210_mixer.c
280
dai->id);
sound/soc/tegra/tegra210_mixer.c
284
return tegra210_mixer_configure_gain(dai->component, dai->id, false);
sound/soc/tegra/tegra210_mixer.c
289
struct snd_soc_dai *dai)
sound/soc/tegra/tegra210_mixer.c
291
struct tegra210_mixer *mixer = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra210_mixer.c
295
dai->id - TEGRA210_MIXER_RX_MAX);
sound/soc/tegra/tegra210_mvc.c
464
struct snd_soc_dai *dai)
sound/soc/tegra/tegra210_mvc.c
466
struct device *dev = dai->dev;
sound/soc/tegra/tegra210_mvc.c
467
struct tegra210_mvc *mvc = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra210_ope.c
70
struct snd_soc_dai *dai)
sound/soc/tegra/tegra210_ope.c
72
struct device *dev = dai->dev;
sound/soc/tegra/tegra210_ope.c
73
struct tegra210_ope *ope = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra210_ope.c
91
tegra210_mbdrc_hw_params(dai->component);
sound/soc/tegra/tegra210_sfc.c
3201
struct snd_soc_dai *dai)
sound/soc/tegra/tegra210_sfc.c
3203
struct tegra210_sfc *sfc = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra210_sfc.c
3211
dev_err(dai->dev, "Failed to reset SFC in %s, err = %d\n",
sound/soc/tegra/tegra210_sfc.c
3222
struct snd_soc_dai *dai)
sound/soc/tegra/tegra210_sfc.c
3224
struct tegra210_sfc *sfc = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra210_sfc.c
3225
struct device *dev = dai->dev;
sound/soc/tegra/tegra210_sfc.c
3246
struct snd_soc_dai *dai)
sound/soc/tegra/tegra210_sfc.c
3248
struct tegra210_sfc *sfc = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra210_sfc.c
3249
struct device *dev = dai->dev;
sound/soc/tegra/tegra30_i2s.c
126
pm_runtime_get_sync(dai->dev);
sound/soc/tegra/tegra30_i2s.c
128
pm_runtime_put(dai->dev);
sound/soc/tegra/tegra30_i2s.c
135
struct snd_soc_dai *dai)
sound/soc/tegra/tegra30_i2s.c
137
struct device *dev = dai->dev;
sound/soc/tegra/tegra30_i2s.c
138
struct tegra30_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra30_i2s.c
239
struct snd_soc_dai *dai)
sound/soc/tegra/tegra30_i2s.c
241
struct tegra30_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra30_i2s.c
267
static int tegra30_i2s_set_tdm(struct snd_soc_dai *dai,
sound/soc/tegra/tegra30_i2s.c
271
struct tegra30_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra30_i2s.c
274
dev_dbg(dai->dev, "%s: txmask=0x%08x rxmask=0x%08x slots=%d width=%d\n",
sound/soc/tegra/tegra30_i2s.c
285
pm_runtime_get_sync(dai->dev);
sound/soc/tegra/tegra30_i2s.c
290
pm_runtime_put(dai->dev);
sound/soc/tegra/tegra30_i2s.c
295
static int tegra30_i2s_probe(struct snd_soc_dai *dai)
sound/soc/tegra/tegra30_i2s.c
297
struct tegra30_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra30_i2s.c
299
snd_soc_dai_init_dma_data(dai, &i2s->playback_dma_data,
sound/soc/tegra/tegra30_i2s.c
429
i2s->dai = tegra30_i2s_dai_template;
sound/soc/tegra/tegra30_i2s.c
430
i2s->dai.name = dev_name(&pdev->dev);
sound/soc/tegra/tegra30_i2s.c
500
&i2s->dai, 1);
sound/soc/tegra/tegra30_i2s.c
75
static int tegra30_i2s_set_fmt(struct snd_soc_dai *dai,
sound/soc/tegra/tegra30_i2s.c
78
struct tegra30_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra30_i2s.h
225
struct snd_soc_dai_driver dai;
sound/soc/tegra/tegra_audio_graph_card.c
47
static bool need_clk_update(struct snd_soc_dai *dai)
sound/soc/tegra/tegra_audio_graph_card.c
49
if (snd_soc_dai_is_dummy(dai) ||
sound/soc/tegra/tegra_audio_graph_card.c
50
!dai->driver->ops ||
sound/soc/tegra/tegra_audio_graph_card.c
51
!dai->driver->name)
sound/soc/tegra/tegra_audio_graph_card.c
54
if (strstr(dai->driver->name, "I2S") ||
sound/soc/tegra/tegra_audio_graph_card.c
55
strstr(dai->driver->name, "DMIC") ||
sound/soc/tegra/tegra_audio_graph_card.c
56
strstr(dai->driver->name, "DSPK"))
sound/soc/tegra/tegra_isomgr_bw.c
18
struct snd_soc_dai *dai, bool is_running)
sound/soc/tegra/tegra_isomgr_bw.c
20
struct device *dev = dai->dev;
sound/soc/tegra/tegra_isomgr_bw.c
21
struct tegra_admaif *admaif = snd_soc_dai_get_drvdata(dai);
sound/soc/tegra/tegra_isomgr_bw.h
29
struct snd_soc_dai *dai, bool is_running);
sound/soc/ti/ams-delta.c
422
static int ams_delta_mute(struct snd_soc_dai *dai, int mute, int direction)
sound/soc/ti/davinci-evm.c
179
struct snd_soc_dai_link *dai;
sound/soc/ti/davinci-evm.c
184
dai = (struct snd_soc_dai_link *) device_get_match_data(&pdev->dev);
sound/soc/ti/davinci-evm.c
185
if (!dai) {
sound/soc/ti/davinci-evm.c
190
evm_soc_card.dai_link = dai;
sound/soc/ti/davinci-evm.c
192
dai->codecs->of_node = of_parse_phandle(np, "ti,audio-codec", 0);
sound/soc/ti/davinci-evm.c
193
if (!dai->codecs->of_node)
sound/soc/ti/davinci-evm.c
196
dai->cpus->of_node = of_parse_phandle(np, "ti,mcasp-controller", 0);
sound/soc/ti/davinci-evm.c
197
if (!dai->cpus->of_node) {
sound/soc/ti/davinci-evm.c
202
dai->platforms->of_node = dai->cpus->of_node;
sound/soc/ti/davinci-evm.c
257
dai->platforms->of_node = NULL;
sound/soc/ti/davinci-evm.c
259
if (dai->cpus->of_node) {
sound/soc/ti/davinci-evm.c
260
of_node_put(dai->cpus->of_node);
sound/soc/ti/davinci-evm.c
261
dai->cpus->of_node = NULL;
sound/soc/ti/davinci-evm.c
264
if (dai->codecs->of_node) {
sound/soc/ti/davinci-evm.c
265
of_node_put(dai->codecs->of_node);
sound/soc/ti/davinci-evm.c
266
dai->codecs->of_node = NULL;
sound/soc/ti/davinci-i2s.c
458
struct snd_soc_dai *dai)
sound/soc/ti/davinci-i2s.c
460
struct davinci_mcbsp_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/ti/davinci-i2s.c
656
struct snd_soc_dai *dai)
sound/soc/ti/davinci-i2s.c
658
struct davinci_mcbsp_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/ti/davinci-i2s.c
699
struct snd_soc_dai *dai)
sound/soc/ti/davinci-i2s.c
701
struct davinci_mcbsp_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/ti/davinci-i2s.c
723
struct snd_soc_dai *dai)
sound/soc/ti/davinci-i2s.c
725
struct davinci_mcbsp_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/ti/davinci-i2s.c
735
static int davinci_i2s_dai_probe(struct snd_soc_dai *dai)
sound/soc/ti/davinci-i2s.c
737
struct davinci_mcbsp_dev *dev = snd_soc_dai_get_drvdata(dai);
sound/soc/ti/davinci-i2s.c
741
snd_soc_dai_dma_data_set(dai, stream, &dev->dma_data[stream]);
sound/soc/ti/davinci-mcasp.c
1938
static int davinci_mcasp_dai_probe(struct snd_soc_dai *dai)
sound/soc/ti/davinci-mcasp.c
1940
struct davinci_mcasp *mcasp = snd_soc_dai_get_drvdata(dai);
sound/soc/ti/davinci-mcasp.c
1944
snd_soc_dai_dma_data_set(dai, stream, &mcasp->dma_data[stream]);
sound/soc/ti/davinci-mcasp.c
1948
snd_soc_add_dai_controls(dai, davinci_mcasp_iec958_ctls,
sound/soc/ti/davinci-mcasp.c
788
static int davinci_mcasp_set_clkdiv(struct snd_soc_dai *dai, int div_id,
sound/soc/ti/davinci-mcasp.c
791
struct davinci_mcasp *mcasp = snd_soc_dai_get_drvdata(dai);
sound/soc/ti/davinci-mcasp.c
796
static int davinci_mcasp_set_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/ti/davinci-mcasp.c
799
struct davinci_mcasp *mcasp = snd_soc_dai_get_drvdata(dai);
sound/soc/ti/davinci-mcasp.c
934
static int davinci_mcasp_set_tdm_slot(struct snd_soc_dai *dai,
sound/soc/ti/davinci-mcasp.c
939
struct davinci_mcasp *mcasp = snd_soc_dai_get_drvdata(dai);
sound/soc/ti/omap-dmic.c
109
struct snd_soc_dai *dai)
sound/soc/ti/omap-dmic.c
111
struct omap_dmic *dmic = snd_soc_dai_get_drvdata(dai);
sound/soc/ti/omap-dmic.c
117
if (!snd_soc_dai_active(dai))
sound/soc/ti/omap-dmic.c
188
struct snd_soc_dai *dai)
sound/soc/ti/omap-dmic.c
190
struct omap_dmic *dmic = snd_soc_dai_get_drvdata(dai);
sound/soc/ti/omap-dmic.c
219
dma_data = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/ti/omap-dmic.c
228
struct snd_soc_dai *dai)
sound/soc/ti/omap-dmic.c
230
struct omap_dmic *dmic = snd_soc_dai_get_drvdata(dai);
sound/soc/ti/omap-dmic.c
261
int cmd, struct snd_soc_dai *dai)
sound/soc/ti/omap-dmic.c
263
struct omap_dmic *dmic = snd_soc_dai_get_drvdata(dai);
sound/soc/ti/omap-dmic.c
390
static int omap_dmic_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/ti/omap-dmic.c
393
struct omap_dmic *dmic = snd_soc_dai_get_drvdata(dai);
sound/soc/ti/omap-dmic.c
404
static int omap_dmic_probe(struct snd_soc_dai *dai)
sound/soc/ti/omap-dmic.c
406
struct omap_dmic *dmic = snd_soc_dai_get_drvdata(dai);
sound/soc/ti/omap-dmic.c
418
snd_soc_dai_init_dma_data(dai, NULL, &dmic->dma_data);
sound/soc/ti/omap-dmic.c
423
static int omap_dmic_remove(struct snd_soc_dai *dai)
sound/soc/ti/omap-dmic.c
425
struct omap_dmic *dmic = snd_soc_dai_get_drvdata(dai);
sound/soc/ti/omap-dmic.c
91
struct snd_soc_dai *dai)
sound/soc/ti/omap-dmic.c
93
struct omap_dmic *dmic = snd_soc_dai_get_drvdata(dai);
sound/soc/ti/omap-dmic.c
98
if (!snd_soc_dai_active(dai))
sound/soc/ti/omap-hdmi.c
106
struct snd_soc_dai *dai)
sound/soc/ti/omap-hdmi.c
122
dev_err(dai->dev, "format not supported!\n");
sound/soc/ti/omap-hdmi.c
173
dev_err(dai->dev, "rate not supported!\n");
sound/soc/ti/omap-hdmi.c
195
dev_err(dai->dev, "format not supported!\n");
sound/soc/ti/omap-hdmi.c
231
struct snd_soc_dai *dai)
sound/soc/ti/omap-hdmi.c
256
struct snd_soc_dai *dai)
sound/soc/ti/omap-hdmi.c
64
struct snd_soc_dai *dai)
sound/soc/ti/omap-hdmi.c
75
dev_err(dai->dev, "Could not apply period constraint: %d\n",
sound/soc/ti/omap-hdmi.c
82
dev_err(dai->dev, "Could not apply buffer constraint: %d\n",
sound/soc/ti/omap-hdmi.c
87
snd_soc_dai_set_dma_data(dai, substream, &ad->dma_data);
sound/soc/ti/omap-mcbsp.c
1258
static int omap_mcbsp_probe(struct snd_soc_dai *dai)
sound/soc/ti/omap-mcbsp.c
1260
struct omap_mcbsp *mcbsp = snd_soc_dai_get_drvdata(dai);
sound/soc/ti/omap-mcbsp.c
1264
snd_soc_dai_init_dma_data(dai,
sound/soc/ti/omap-mcbsp.c
1271
static int omap_mcbsp_remove(struct snd_soc_dai *dai)
sound/soc/ti/omap-mcbsp.c
1273
struct omap_mcbsp *mcbsp = snd_soc_dai_get_drvdata(dai);
sound/soc/ti/omap-mcbsp.c
887
struct snd_soc_dai *dai)
sound/soc/ti/omap-mcpdm.c
250
struct snd_soc_dai *dai)
sound/soc/ti/omap-mcpdm.c
252
struct omap_mcpdm *mcpdm = snd_soc_dai_get_drvdata(dai);
sound/soc/ti/omap-mcpdm.c
256
if (!snd_soc_dai_active(dai))
sound/soc/ti/omap-mcpdm.c
265
struct snd_soc_dai *dai)
sound/soc/ti/omap-mcpdm.c
267
struct omap_mcpdm *mcpdm = snd_soc_dai_get_drvdata(dai);
sound/soc/ti/omap-mcpdm.c
274
if (!snd_soc_dai_active(dai)) {
sound/soc/ti/omap-mcpdm.c
296
struct snd_soc_dai *dai)
sound/soc/ti/omap-mcpdm.c
298
struct omap_mcpdm *mcpdm = snd_soc_dai_get_drvdata(dai);
sound/soc/ti/omap-mcpdm.c
333
dma_data = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/ti/omap-mcpdm.c
376
struct snd_soc_dai *dai)
sound/soc/ti/omap-mcpdm.c
378
struct omap_mcpdm *mcpdm = snd_soc_dai_get_drvdata(dai);
sound/soc/ti/omap-mcpdm.c
407
static int omap_mcpdm_probe(struct snd_soc_dai *dai)
sound/soc/ti/omap-mcpdm.c
409
struct omap_mcpdm *mcpdm = snd_soc_dai_get_drvdata(dai);
sound/soc/ti/omap-mcpdm.c
433
snd_soc_dai_init_dma_data(dai,
sound/soc/ti/omap-mcpdm.c
440
static int omap_mcpdm_remove(struct snd_soc_dai *dai)
sound/soc/ti/omap-mcpdm.c
442
struct omap_mcpdm *mcpdm = snd_soc_dai_get_drvdata(dai);
sound/soc/uniphier/aio-cpu.c
146
static int uniphier_aio_set_sysclk(struct snd_soc_dai *dai, int clk_id,
sound/soc/uniphier/aio-cpu.c
149
struct uniphier_aio *aio = uniphier_priv(dai);
sound/soc/uniphier/aio-cpu.c
217
static int uniphier_aio_set_pll(struct snd_soc_dai *dai, int pll_id,
sound/soc/uniphier/aio-cpu.c
221
struct uniphier_aio *aio = uniphier_priv(dai);
sound/soc/uniphier/aio-cpu.c
234
static int uniphier_aio_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
sound/soc/uniphier/aio-cpu.c
236
struct uniphier_aio *aio = uniphier_priv(dai);
sound/soc/uniphier/aio-cpu.c
255
struct snd_soc_dai *dai)
sound/soc/uniphier/aio-cpu.c
257
struct uniphier_aio *aio = uniphier_priv(dai);
sound/soc/uniphier/aio-cpu.c
268
struct snd_soc_dai *dai)
sound/soc/uniphier/aio-cpu.c
270
struct uniphier_aio *aio = uniphier_priv(dai);
sound/soc/uniphier/aio-cpu.c
278
struct snd_soc_dai *dai)
sound/soc/uniphier/aio-cpu.c
280
struct uniphier_aio *aio = uniphier_priv(dai);
sound/soc/uniphier/aio-cpu.c
300
ret = snd_soc_dai_set_sysclk(dai, AUD_CLK_A,
sound/soc/uniphier/aio-cpu.c
316
struct snd_soc_dai *dai)
sound/soc/uniphier/aio-cpu.c
318
struct uniphier_aio *aio = uniphier_priv(dai);
sound/soc/uniphier/aio-cpu.c
327
struct snd_soc_dai *dai)
sound/soc/uniphier/aio-cpu.c
329
struct uniphier_aio *aio = uniphier_priv(dai);
sound/soc/uniphier/aio-cpu.c
358
static int uniphier_aio_dai_probe(struct snd_soc_dai *dai)
sound/soc/uniphier/aio-cpu.c
360
struct uniphier_aio *aio = uniphier_priv(dai);
sound/soc/uniphier/aio-cpu.c
367
spec = find_spec(aio, dai->name, i);
sound/soc/uniphier/aio-cpu.c
384
static int uniphier_aio_dai_remove(struct snd_soc_dai *dai)
sound/soc/uniphier/aio-cpu.c
386
struct uniphier_aio *aio = uniphier_priv(dai);
sound/soc/uniphier/aio-cpu.c
393
static int uniphier_aio_ld11_probe(struct snd_soc_dai *dai)
sound/soc/uniphier/aio-cpu.c
397
ret = uniphier_aio_dai_probe(dai);
sound/soc/uniphier/aio-cpu.c
401
ret = snd_soc_dai_set_pll(dai, AUD_PLL_A1, 0, 0, 36864000);
sound/soc/uniphier/aio-cpu.c
404
ret = snd_soc_dai_set_pll(dai, AUD_PLL_F1, 0, 0, 36864000);
sound/soc/uniphier/aio-cpu.c
408
ret = snd_soc_dai_set_pll(dai, AUD_PLL_A2, 0, 0, 33868800);
sound/soc/uniphier/aio-cpu.c
411
ret = snd_soc_dai_set_pll(dai, AUD_PLL_F2, 0, 0, 33868800);
sound/soc/uniphier/aio-cpu.c
418
static int uniphier_aio_pxs2_probe(struct snd_soc_dai *dai)
sound/soc/uniphier/aio-cpu.c
422
ret = uniphier_aio_dai_probe(dai);
sound/soc/uniphier/aio-cpu.c
426
ret = snd_soc_dai_set_pll(dai, AUD_PLL_A1, 0, 0, 36864000);
sound/soc/uniphier/aio-cpu.c
429
ret = snd_soc_dai_set_pll(dai, AUD_PLL_F1, 0, 0, 36864000);
sound/soc/uniphier/aio-cpu.c
433
ret = snd_soc_dai_set_pll(dai, AUD_PLL_A2, 0, 0, 33868800);
sound/soc/uniphier/aio-cpu.c
436
ret = snd_soc_dai_set_pll(dai, AUD_PLL_F2, 0, 0, 33868800);
sound/soc/uniphier/aio-cpu.c
525
static void uniphier_aio_dai_suspend(struct snd_soc_dai *dai)
sound/soc/uniphier/aio-cpu.c
527
struct uniphier_aio *aio = uniphier_priv(dai);
sound/soc/uniphier/aio-cpu.c
529
if (!snd_soc_dai_active(dai))
sound/soc/uniphier/aio-cpu.c
541
struct snd_soc_dai *dai;
sound/soc/uniphier/aio-cpu.c
543
for_each_component_dais(component, dai)
sound/soc/uniphier/aio-cpu.c
544
uniphier_aio_dai_suspend(dai);
sound/soc/uniphier/aio-cpu.c
548
static int uniphier_aio_dai_resume(struct snd_soc_dai *dai)
sound/soc/uniphier/aio-cpu.c
550
struct uniphier_aio *aio = uniphier_priv(dai);
sound/soc/uniphier/aio-cpu.c
553
if (!snd_soc_dai_active(dai))
sound/soc/uniphier/aio-cpu.c
604
struct snd_soc_dai *dai;
sound/soc/uniphier/aio-cpu.c
607
for_each_component_dais(component, dai)
sound/soc/uniphier/aio-cpu.c
608
ret |= uniphier_aio_dai_resume(dai);
sound/soc/uniphier/aio.h
299
static inline struct uniphier_aio *uniphier_priv(struct snd_soc_dai *dai)
sound/soc/uniphier/aio.h
301
struct uniphier_aio_chip *chip = snd_soc_dai_get_drvdata(dai);
sound/soc/uniphier/aio.h
303
return &chip->aios[dai->id];
sound/soc/ux500/ux500_msp_dai.c
108
dev_err(dai->dev,
sound/soc/ux500/ux500_msp_dai.c
117
dev_dbg(dai->dev, "%s: Clocks per frame: %u\n",
sound/soc/ux500/ux500_msp_dai.c
124
static int setup_pcm_framing(struct snd_soc_dai *dai, unsigned int rate,
sound/soc/ux500/ux500_msp_dai.c
127
struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev);
sound/soc/ux500/ux500_msp_dai.c
150
dev_err(dai->dev,
sound/soc/ux500/ux500_msp_dai.c
166
return setup_frameper(dai, rate, prot_desc);
sound/soc/ux500/ux500_msp_dai.c
169
static int setup_clocking(struct snd_soc_dai *dai,
sound/soc/ux500/ux500_msp_dai.c
184
dev_err(dai->dev,
sound/soc/ux500/ux500_msp_dai.c
193
dev_dbg(dai->dev, "%s: Codec is master.\n", __func__);
sound/soc/ux500/ux500_msp_dai.c
205
dev_dbg(dai->dev, "%s: Codec is slave.\n", __func__);
sound/soc/ux500/ux500_msp_dai.c
216
dev_err(dai->dev, "%s: Error: Unsupported master (fmt = 0x%x)!\n",
sound/soc/ux500/ux500_msp_dai.c
225
static int setup_pcm_protdesc(struct snd_soc_dai *dai,
sound/soc/ux500/ux500_msp_dai.c
239
dev_dbg(dai->dev, "%s: DSP_A.\n", __func__);
sound/soc/ux500/ux500_msp_dai.c
246
dev_dbg(dai->dev, "%s: DSP_B.\n", __func__);
sound/soc/ux500/ux500_msp_dai.c
27
static int setup_pcm_multichan(struct snd_soc_dai *dai,
sound/soc/ux500/ux500_msp_dai.c
299
struct snd_soc_dai *dai,
sound/soc/ux500/ux500_msp_dai.c
30
struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev);
sound/soc/ux500/ux500_msp_dai.c
302
struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev);
sound/soc/ux500/ux500_msp_dai.c
320
dev_dbg(dai->dev, "%s: f_inputclk = %u, frame_freq = %u.\n",
sound/soc/ux500/ux500_msp_dai.c
325
dev_dbg(dai->dev, "%s: rate: %u, channels: %d.\n", __func__,
sound/soc/ux500/ux500_msp_dai.c
330
dev_dbg(dai->dev, "%s: SND_SOC_DAIFMT_I2S.\n", __func__);
sound/soc/ux500/ux500_msp_dai.c
337
dev_dbg(dai->dev, "%s: SND_SOC_DAIFMT_I2S.\n", __func__);
sound/soc/ux500/ux500_msp_dai.c
352
dev_dbg(dai->dev, "%s: PCM format.\n", __func__);
sound/soc/ux500/ux500_msp_dai.c
357
ret = setup_pcm_protdesc(dai, fmt, prot_desc);
sound/soc/ux500/ux500_msp_dai.c
361
ret = setup_pcm_multichan(dai, msp_config);
sound/soc/ux500/ux500_msp_dai.c
365
ret = setup_pcm_framing(dai, runtime->rate, prot_desc);
sound/soc/ux500/ux500_msp_dai.c
372
dev_err(dai->dev, "%s: Error: Unsupported format (%d)!\n",
sound/soc/ux500/ux500_msp_dai.c
377
return setup_clocking(dai, fmt, msp_config);
sound/soc/ux500/ux500_msp_dai.c
381
struct snd_soc_dai *dai)
sound/soc/ux500/ux500_msp_dai.c
384
struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev);
sound/soc/ux500/ux500_msp_dai.c
386
dev_dbg(dai->dev, "%s: MSP %d (%s): Enter.\n", __func__, dai->id,
sound/soc/ux500/ux500_msp_dai.c
398
dev_dbg(dai->dev, "%s: Enabling MSP-clocks.\n", __func__);
sound/soc/ux500/ux500_msp_dai.c
422
struct snd_soc_dai *dai)
sound/soc/ux500/ux500_msp_dai.c
425
struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev);
sound/soc/ux500/ux500_msp_dai.c
428
dev_dbg(dai->dev, "%s: MSP %d (%s): Enter.\n", __func__, dai->id,
sound/soc/ux500/ux500_msp_dai.c
439
dev_err(dai->dev,
sound/soc/ux500/ux500_msp_dai.c
441
__func__, dai->id, snd_pcm_stream_str(substream));
sound/soc/ux500/ux500_msp_dai.c
451
dev_err(dai->dev,
sound/soc/ux500/ux500_msp_dai.c
457
struct snd_soc_dai *dai)
sound/soc/ux500/ux500_msp_dai.c
460
struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev);
sound/soc/ux500/ux500_msp_dai.c
464
dev_dbg(dai->dev, "%s: MSP %d (%s): Enter (rate = %d).\n", __func__,
sound/soc/ux500/ux500_msp_dai.c
465
dai->id, snd_pcm_stream_str(substream), runtime->rate);
sound/soc/ux500/ux500_msp_dai.c
467
setup_msp_config(substream, dai, &msp_config);
sound/soc/ux500/ux500_msp_dai.c
471
dev_err(dai->dev, "%s: Error: msp_setup failed (ret = %d)!\n",
sound/soc/ux500/ux500_msp_dai.c
496
struct snd_soc_dai *dai)
sound/soc/ux500/ux500_msp_dai.c
500
struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev);
sound/soc/ux500/ux500_msp_dai.c
502
dev_dbg(dai->dev, "%s: MSP %d (%s): Enter.\n",
sound/soc/ux500/ux500_msp_dai.c
503
__func__, dai->id, snd_pcm_stream_str(substream));
sound/soc/ux500/ux500_msp_dai.c
51
dev_dbg(dai->dev,
sound/soc/ux500/ux500_msp_dai.c
519
dev_dbg(dai->dev, "TDM-slots active: %d", slots_active);
sound/soc/ux500/ux500_msp_dai.c
527
dev_err(dai->dev,
sound/soc/ux500/ux500_msp_dai.c
536
static int ux500_msp_dai_set_dai_fmt(struct snd_soc_dai *dai,
sound/soc/ux500/ux500_msp_dai.c
539
struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev);
sound/soc/ux500/ux500_msp_dai.c
541
dev_dbg(dai->dev, "%s: MSP %d: Enter.\n", __func__, dai->id);
sound/soc/ux500/ux500_msp_dai.c
554
dev_err(dai->dev,
sound/soc/ux500/ux500_msp_dai.c
567
dev_err(dai->dev,
sound/soc/ux500/ux500_msp_dai.c
577
static int ux500_msp_dai_set_tdm_slot(struct snd_soc_dai *dai,
sound/soc/ux500/ux500_msp_dai.c
582
struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev);
sound/soc/ux500/ux500_msp_dai.c
599
dev_err(dai->dev, "%s: Error: Unsupported slot-count (%d)!\n",
sound/soc/ux500/ux500_msp_dai.c
60
static int setup_frameper(struct snd_soc_dai *dai, unsigned int rate,
sound/soc/ux500/ux500_msp_dai.c
606
dev_err(dai->dev, "%s: Error: Unsupported slot-width (%d)!\n",
sound/soc/ux500/ux500_msp_dai.c
618
static int ux500_msp_dai_set_dai_sysclk(struct snd_soc_dai *dai,
sound/soc/ux500/ux500_msp_dai.c
621
struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev);
sound/soc/ux500/ux500_msp_dai.c
623
dev_dbg(dai->dev, "%s: MSP %d: Enter. clk-id: %d, freq: %u.\n",
sound/soc/ux500/ux500_msp_dai.c
624
__func__, dai->id, clk_id, freq);
sound/soc/ux500/ux500_msp_dai.c
63
struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev);
sound/soc/ux500/ux500_msp_dai.c
632
dev_err(dai->dev, "%s: MSP %d: Invalid clk-id (%d)!\n",
sound/soc/ux500/ux500_msp_dai.c
633
__func__, dai->id, clk_id);
sound/soc/ux500/ux500_msp_dai.c
641
int cmd, struct snd_soc_dai *dai)
sound/soc/ux500/ux500_msp_dai.c
644
struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev);
sound/soc/ux500/ux500_msp_dai.c
646
dev_dbg(dai->dev, "%s: MSP %d (%s): Enter (msp->id = %d, cmd = %d).\n",
sound/soc/ux500/ux500_msp_dai.c
647
__func__, dai->id, snd_pcm_stream_str(substream),
sound/soc/ux500/ux500_msp_dai.c
655
static int ux500_msp_dai_of_probe(struct snd_soc_dai *dai)
sound/soc/ux500/ux500_msp_dai.c
657
struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev);
sound/soc/ux500/ux500_msp_dai.c
661
playback_dma_data = devm_kzalloc(dai->dev,
sound/soc/ux500/ux500_msp_dai.c
667
capture_dma_data = devm_kzalloc(dai->dev,
sound/soc/ux500/ux500_msp_dai.c
679
snd_soc_dai_init_dma_data(dai, playback_dma_data, capture_dma_data);
sound/soc/ux500/ux500_msp_dai.c
89
dev_err(dai->dev,
sound/soc/ux500/ux500_msp_dai.h
64
int ux500_msp_dai_set_data_delay(struct snd_soc_dai *dai, int delay);
sound/soc/xilinx/xlnx_i2s.c
53
static int xlnx_i2s_set_sysclk(struct snd_soc_dai *dai,
sound/soc/xilinx/xlnx_i2s.c
56
struct xlnx_i2s_drv_data *drv_data = snd_soc_dai_get_drvdata(dai);
sound/soc/xilinx/xlnx_i2s.c
78
struct snd_soc_dai *dai)
sound/soc/xilinx/xlnx_i2s.c
80
struct xlnx_i2s_drv_data *drv_data = snd_soc_dai_get_drvdata(dai);
sound/soc/xilinx/xlnx_spdif.c
100
struct spdif_dev_data *ctx = dev_get_drvdata(dai->dev);
sound/soc/xilinx/xlnx_spdif.c
107
struct snd_soc_dai *dai)
sound/soc/xilinx/xlnx_spdif.c
110
struct spdif_dev_data *ctx = dev_get_drvdata(dai->dev);
sound/soc/xilinx/xlnx_spdif.c
149
static int rx_stream_detect(struct snd_soc_dai *dai)
sound/soc/xilinx/xlnx_spdif.c
152
struct spdif_dev_data *ctx = dev_get_drvdata(dai->dev);
sound/soc/xilinx/xlnx_spdif.c
160
dev_err(dai->dev, "No streaming audio detected!\n");
sound/soc/xilinx/xlnx_spdif.c
169
struct snd_soc_dai *dai)
sound/soc/xilinx/xlnx_spdif.c
173
struct spdif_dev_data *ctx = dev_get_drvdata(dai->dev);
sound/soc/xilinx/xlnx_spdif.c
183
ret = rx_stream_detect(dai);
sound/soc/xilinx/xlnx_spdif.c
78
struct snd_soc_dai *dai)
sound/soc/xilinx/xlnx_spdif.c
81
struct spdif_dev_data *ctx = dev_get_drvdata(dai->dev);
sound/soc/xilinx/xlnx_spdif.c
98
struct snd_soc_dai *dai)
sound/soc/xtensa/xtfpga-i2s.c
271
struct snd_soc_dai *dai)
sound/soc/xtensa/xtfpga-i2s.c
273
struct xtfpga_i2s *i2s = snd_soc_dai_get_drvdata(dai);
sound/soc/xtensa/xtfpga-i2s.c
275
snd_soc_dai_set_dma_data(dai, substream, i2s);
sound/soc/xtensa/xtfpga-i2s.c
281
struct snd_soc_dai *dai)
sound/soc/xtensa/xtfpga-i2s.c
283
struct xtfpga_i2s *i2s = snd_soc_dai_get_drvdata(dai);