/linux-master/sound/soc/intel/boards/ |
H A D | sof_sdw_rt712_sdca.c | 29 int rt712_spk_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai) argument
|
H A D | sof_sdw_rt722_sdca.c | 22 int rt722_spk_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai) argument
|
/linux-master/sound/soc/tegra/ |
H A D | tegra210_adx.c | 53 struct snd_soc_dai *dai) 55 struct tegra210_adx *adx = snd_soc_dai_get_drvdata(dai); 63 dev_err(dai->dev, "failed to stop ADX, err = %d\n", err); 80 dev_err(dai->dev, "failed to reset ADX, err = %d\n", err); 109 static int tegra210_adx_set_audio_cif(struct snd_soc_dai *dai, argument 114 struct tegra210_adx *adx = snd_soc_dai_get_drvdata(dai); 149 struct snd_soc_dai *dai) 151 return tegra210_adx_set_audio_cif(dai, params_channels(params), 153 TEGRA210_ADX_TX1_CIF_CTRL + ((dai->id - 1) * TEGRA210_ADX_AUDIOCIF_CH_STRIDE)); 158 struct snd_soc_dai *dai) 52 tegra210_adx_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument 147 tegra210_adx_out_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) argument 156 tegra210_adx_in_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) argument [all...] |
/linux-master/sound/soc/codecs/ |
H A D | mt6660.c | 330 struct snd_pcm_hw_params *hw_params, struct snd_soc_dai *dai) 337 dev_dbg(dai->dev, "%s: ++\n", __func__); 338 dev_dbg(dai->dev, "format: 0x%08x\n", params_format(hw_params)); 339 dev_dbg(dai->dev, "rate: 0x%08x\n", params_rate(hw_params)); 340 dev_dbg(dai->dev, "word_len: %d, aud_bit: %d\n", word_len, aud_bit); 342 dev_err(dai->dev, "not supported word length\n"); 362 ret = snd_soc_component_update_bits(dai->component, 365 dev_err(dai->dev, "config aud bit fail\n"); 368 ret = snd_soc_component_update_bits(dai->component, 371 dev_err(dai 329 mt6660_component_aif_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *hw_params, struct snd_soc_dai *dai) argument [all...] |
H A D | hda.c | 42 dev_info(dev, "skipping playback dai for %s\n", pcm->name); 62 dev_info(dev, "skipping capture dai for %s\n", pcm->name); 102 struct snd_soc_dai *dai; local 104 dai = snd_soc_register_dai(component, drvs, false); 105 if (!dai) { 106 dev_err(component->dev, "register dai for %s failed\n", pcm->name); 110 ret = snd_soc_dapm_new_dai_widgets(dapm, dai); 113 snd_soc_unregister_dai(dai); 117 snd_soc_dai_init_dma_data(dai, &pcm->stream[0], &pcm->stream[1]); 127 struct snd_soc_dai *dai, *sav local [all...] |
H A D | ak5558.c | 173 struct snd_soc_dai *dai) 175 struct snd_soc_component *component = dai->component; 196 static int ak5558_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt) argument 198 struct snd_soc_component *component = dai->component; 209 dev_err(dai->dev, "Clock mode unsupported"); 233 static int ak5558_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, argument 237 struct snd_soc_component *component = dai->component; 282 struct snd_soc_dai *dai) 171 ak5558_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) argument 281 ak5558_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument
|
H A D | wm8711.c | 157 struct snd_soc_dai *dai) 159 struct snd_soc_component *component = dai->component; 185 struct snd_soc_dai *dai) 187 struct snd_soc_component *component = dai->component; 196 struct snd_soc_dai *dai) 198 struct snd_soc_component *component = dai->component; 207 static int wm8711_mute(struct snd_soc_dai *dai, int mute, int direction) argument 209 struct snd_soc_component *component = dai->component; 155 wm8711_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) argument 184 wm8711_pcm_prepare(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument 195 wm8711_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument
|
H A D | max98504.c | 199 static int max98504_set_tdm_slot(struct snd_soc_dai *dai, argument 203 struct max98504_priv *max98504 = snd_soc_dai_get_drvdata(dai); 207 switch (dai->id) { 222 static int max98504_set_channel_map(struct snd_soc_dai *dai, argument 226 struct max98504_priv *max98504 = snd_soc_dai_get_drvdata(dai); 234 switch (dai->id) {
|
H A D | uda1334.c | 91 struct snd_soc_dai *dai) 93 struct snd_soc_component *component = dai->component; 116 struct snd_soc_dai *dai) 118 struct snd_soc_component *component = dai->component; 183 static int uda1334_mute_stream(struct snd_soc_dai *dai, int mute, int stream) argument 185 struct uda1334_priv *uda1334 = snd_soc_component_get_drvdata(dai->component); 90 uda1334_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument 115 uda1334_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument
|
H A D | cs4341.c | 46 static int cs4341_set_fmt(struct snd_soc_dai *dai, unsigned int format) argument 48 struct snd_soc_component *component = dai->component; 80 struct snd_soc_dai *dai) 82 struct snd_soc_component *component = dai->component; 119 static int cs4341_mute(struct snd_soc_dai *dai, int mute, int direction) argument 121 struct snd_soc_component *component = dai->component; 78 cs4341_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) argument
|
H A D | tfa9879.c | 25 struct snd_soc_dai *dai) 27 struct snd_soc_component *component = dai->component; 96 static int tfa9879_mute_stream(struct snd_soc_dai *dai, int mute, int direction) argument 98 struct snd_soc_component *component = dai->component; 107 static int tfa9879_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) argument 109 struct snd_soc_component *component = dai->component; 23 tfa9879_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) argument
|
H A D | wm8995.c | 1420 static int wm8995_aif_mute(struct snd_soc_dai *dai, int mute, int direction) argument 1422 struct snd_soc_component *component = dai->component; 1425 switch (dai->id) { 1441 static int wm8995_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt) argument 1447 component = dai->component; 1457 dev_err(dai->dev, "Unknown master/slave configuration\n"); 1478 dev_err(dai->dev, "Unknown dai format\n"); 1545 struct snd_soc_dai *dai) 1558 component = dai 1543 wm8995_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) argument 1794 wm8995_set_fll(struct snd_soc_dai *dai, int id, int src, unsigned int freq_in, unsigned int freq_out) argument 1905 wm8995_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id, unsigned int freq, int dir) argument [all...] |
H A D | rt1308-sdw.c | 493 static int rt1308_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, argument 496 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); 502 struct snd_soc_dai *dai) 504 snd_soc_dai_set_dma_data(dai, substream, NULL); 507 static int rt1308_sdw_set_tdm_slot(struct snd_soc_dai *dai, argument 512 struct snd_soc_component *component = dai->component; 530 struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) 532 struct snd_soc_component *component = dai->component; 540 dev_dbg(dai->dev, "%s %s", __func__, dai 501 rt1308_sdw_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument 529 rt1308_sdw_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) argument 573 rt1308_sdw_pcm_hw_free(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument [all...] |
H A D | wm8983.c | 560 static int wm8983_dac_mute(struct snd_soc_dai *dai, int mute, int direction) argument 562 struct snd_soc_component *component = dai->component; 569 static int wm8983_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) argument 571 struct snd_soc_component *component = dai->component; 589 dev_err(dai->dev, "Unknown dai format\n"); 604 dev_err(dai->dev, "Unknown master/slave configuration\n"); 615 dev_err(dai->dev, "DSP A/B modes are not supported\n"); 635 dev_err(dai->dev, "Unknown polarity configuration\n"); 648 struct snd_soc_dai *dai) 646 wm8983_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) argument 784 wm8983_set_pll(struct snd_soc_dai *dai, int pll_id, int source, unsigned int freq_in, unsigned int freq_out) argument 823 wm8983_set_sysclk(struct snd_soc_dai *dai, int clk_id, unsigned int freq, int dir) argument [all...] |
H A D | rk3328_codec.c | 65 static int rk3328_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt) argument 68 snd_soc_component_get_drvdata(dai->component); 109 static int rk3328_mute_stream(struct snd_soc_dai *dai, int mute, int direction) argument 112 snd_soc_component_get_drvdata(dai->component); 266 struct snd_soc_dai *dai) 269 snd_soc_component_get_drvdata(dai->component); 298 struct snd_soc_dai *dai) 301 snd_soc_component_get_drvdata(dai->component); 307 struct snd_soc_dai *dai) 310 snd_soc_component_get_drvdata(dai 264 rk3328_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) argument 297 rk3328_pcm_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument 306 rk3328_pcm_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument [all...] |
H A D | arizona.c | 1442 static int arizona_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) argument 1444 struct snd_soc_component *component = dai->component; 1449 base = dai->driver->base; 1461 arizona_aif_err(dai, "DSP_B not valid in slave mode\n"); 1472 arizona_aif_err(dai, "LEFT_J not valid in slave mode\n"); 1478 arizona_aif_err(dai, "Unsupported DAI format %d\n", 1497 arizona_aif_err(dai, "Unsupported master mode %d\n", 1617 struct snd_soc_dai *dai) 1619 struct snd_soc_component *component = dai->component; 1621 struct arizona_dai_priv *dai_priv = &priv->dai[da 1616 arizona_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument 1675 arizona_hw_params_rate(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) argument 1775 arizona_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) argument 1910 arizona_dai_set_sysclk(struct snd_soc_dai *dai, int clk_id, unsigned int freq, int dir) argument 1956 arizona_set_tristate(struct snd_soc_dai *dai, int tristate) argument 1972 arizona_set_channels_to_mask(struct snd_soc_dai *dai, unsigned int base, int channels, unsigned int mask) argument 1995 arizona_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) argument [all...] |
H A D | wm8985.c | 652 static int wm8985_dac_mute(struct snd_soc_dai *dai, int mute, int direction) argument 654 struct snd_soc_component *component = dai->component; 661 static int wm8985_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) argument 666 component = dai->component; 683 dev_err(dai->dev, "Unknown dai format\n"); 698 dev_err(dai->dev, "Unknown master/slave configuration\n"); 735 dev_err(dai->dev, "Unknown polarity configuration\n"); 748 struct snd_soc_dai *dai) 757 component = dai 746 wm8985_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) argument 882 wm8985_set_pll(struct snd_soc_dai *dai, int pll_id, int source, unsigned int freq_in, unsigned int freq_out) argument 918 wm8985_set_sysclk(struct snd_soc_dai *dai, int clk_id, unsigned int freq, int dir) argument [all...] |
H A D | rtq9128.c | 442 static int rtq9128_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) argument 444 struct rtq9128_data *data = snd_soc_dai_get_drvdata(dai); 445 struct device *dev = dai->dev; 461 static int rtq9128_dai_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, argument 464 struct rtq9128_data *data = snd_soc_dai_get_drvdata(dai); 465 struct snd_soc_component *comp = dai->component; 466 struct device *dev = dai->dev; 528 struct snd_soc_dai *dai) 530 struct rtq9128_data *data = snd_soc_dai_get_drvdata(dai); 532 struct snd_soc_component *comp = dai 527 rtq9128_dai_hw_params(struct snd_pcm_substream *stream, struct snd_pcm_hw_params *param, struct snd_soc_dai *dai) argument 631 rtq9128_dai_mute_stream(struct snd_soc_dai *dai, int mute, int stream) argument [all...] |
H A D | rt1017-sdca-sdw.c | 558 static int rt1017_sdca_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, argument 561 snd_soc_dai_dma_data_set(dai, direction, sdw_stream); 567 struct snd_soc_dai *dai) 569 snd_soc_dai_set_dma_data(dai, substream, NULL); 574 struct snd_soc_dai *dai) 576 struct snd_soc_component *component = dai->component; 585 dev_dbg(dai->dev, "%s %s", __func__, dai->name); 586 sdw_stream = snd_soc_dai_get_dma_data(dai, substream); 615 dev_dbg(dai 566 rt1017_sdca_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument 572 rt1017_sdca_pcm_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) argument 655 rt1017_sdca_pcm_hw_free(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument [all...] |
/linux-master/sound/soc/sti/ |
H A D | uniperif_reader.c | 187 struct snd_soc_dai *dai) 189 struct sti_uniperiph_data *priv = snd_soc_dai_get_drvdata(dai); 338 int cmd, struct snd_soc_dai *dai) 340 struct sti_uniperiph_data *priv = snd_soc_dai_get_drvdata(dai); 354 struct snd_soc_dai *dai) 356 struct sti_uniperiph_data *priv = snd_soc_dai_get_drvdata(dai); 385 struct snd_soc_dai *dai) 387 struct sti_uniperiph_data *priv = snd_soc_dai_get_drvdata(dai); 186 uni_reader_prepare(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument 337 uni_reader_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai) argument 353 uni_reader_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument 384 uni_reader_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument
|
/linux-master/sound/soc/bcm/ |
H A D | bcm63xx-i2s-whistler.c | 76 struct snd_soc_dai *dai) 79 struct bcm_i2s_priv *i2s_priv = snd_soc_dai_get_drvdata(dai); 90 struct snd_soc_dai *dai) 93 struct bcm_i2s_priv *i2s_priv = snd_soc_dai_get_drvdata(dai); 143 struct snd_soc_dai *dai) 146 struct bcm_i2s_priv *i2s_priv = snd_soc_dai_get_drvdata(dai); 262 dev_err(&pdev->dev, "failed to register the dai\n"); 74 bcm63xx_i2s_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) argument 89 bcm63xx_i2s_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument 142 bcm63xx_i2s_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument
|
/linux-master/sound/soc/mediatek/mt8183/ |
H A D | mt8183-dai-i2s.c | 177 /* dai component */ 695 /* dai ops */ 774 struct snd_soc_dai *dai) 776 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); 778 return mtk_dai_i2s_config(afe, params, dai->id); 781 static int mtk_dai_i2s_set_sysclk(struct snd_soc_dai *dai, argument 784 struct mtk_base_afe *afe = dev_get_drvdata(dai->dev); 786 struct mtk_afe_i2s_priv *i2s_priv = afe_priv->dai_priv[dai->id]; 834 static int mtk_dai_i2s_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) argument 836 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); 772 mtk_dai_i2s_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) argument 1038 struct mtk_base_afe_dai *dai; local [all...] |
/linux-master/sound/soc/mediatek/mt8188/ |
H A D | mt8188-dai-etdm.c | 107 int cowork_source_id; //dai id 246 static int is_cowork_mode(struct snd_soc_dai *dai) argument 248 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); 252 if (!is_valid_etdm_dai(dai->id)) 254 etdm_data = afe_priv->dai_priv[dai->id]; 278 static int get_etdm_cowork_master_id(struct snd_soc_dai *dai) argument 280 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); 285 if (!is_valid_etdm_dai(dai->id)) 287 etdm_data = afe_priv->dai_priv[dai->id]; 291 dai_id = dai 2173 mtk_dai_etdm_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) argument 2273 mtk_dai_etdm_set_sysclk(struct snd_soc_dai *dai, int clk_id, unsigned int freq, int dir) argument 2295 mtk_dai_etdm_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) argument 2321 mtk_dai_etdm_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) argument 2414 mtk_dai_hdmitx_dptx_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) argument 2458 mtk_dai_hdmitx_dptx_set_sysclk(struct snd_soc_dai *dai, int clk_id, unsigned int freq, int dir) argument 2697 struct mtk_base_afe_dai *dai; local [all...] |
/linux-master/sound/soc/apple/ |
H A D | mca.c | 179 static struct mca_cluster *mca_dai_to_cluster(struct snd_soc_dai *dai) argument 181 struct mca_data *mca = snd_soc_dai_get_drvdata(dai); 186 int cluster_no = dai->id % mca->nclusters; 193 struct snd_soc_dai *dai) 195 struct mca_cluster *cl = mca_dai_to_cluster(dai); 230 struct snd_soc_dai *dai) 232 struct mca_cluster *cl = mca_dai_to_cluster(dai); 329 struct snd_soc_dai *dai) 331 struct mca_cluster *cl = mca_dai_to_cluster(dai); 359 struct snd_soc_dai *dai) 192 mca_fe_early_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai) argument 229 mca_fe_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai) argument 328 mca_be_prepare(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument 358 mca_be_hw_free(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument 467 mca_fe_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) argument 480 mca_fe_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) argument 538 mca_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) argument 565 mca_fe_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) argument 700 mca_be_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument 753 mca_be_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument [all...] |
/linux-master/sound/soc/atmel/ |
H A D | mchp-spdiftx.c | 284 struct snd_soc_dai *dai) 286 struct mchp_spdiftx_dev *dev = snd_soc_dai_get_drvdata(dai); 296 struct snd_soc_dai *dai) 298 struct mchp_spdiftx_dev *dev = snd_soc_dai_get_drvdata(dai); 305 struct snd_soc_dai *dai) 307 struct mchp_spdiftx_dev *dev = snd_soc_dai_get_drvdata(dai); 347 struct snd_soc_dai *dai) 350 struct mchp_spdiftx_dev *dev = snd_soc_dai_get_drvdata(dai); 511 struct snd_soc_dai *dai) 513 struct mchp_spdiftx_dev *dev = snd_soc_dai_get_drvdata(dai); 283 mchp_spdiftx_dai_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument 295 mchp_spdiftx_dai_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument 304 mchp_spdiftx_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai) argument 345 mchp_spdiftx_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) argument 510 mchp_spdiftx_hw_free(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument 549 struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol); local 565 struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol); local 608 struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol); local 625 struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol); local 685 mchp_spdiftx_dai_probe(struct snd_soc_dai *dai) argument [all...] |