/linux-master/sound/soc/amd/acp/ |
H A D | acp-mach-common.c | 116 static int acp_card_rt5682_init(struct snd_soc_pcm_runtime *rtd) argument 118 struct snd_soc_card *card = rtd->card; 120 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); 124 dev_info(rtd->dev, "codec dai name = %s\n", codec_dai->name); 135 dev_err(rtd->dev, "unable to add widget dapm controls, ret %d\n", ret); 142 dev_err(rtd->dev, "unable to add card controls, ret %d\n", ret); 165 dev_err(rtd->dev, "Headset Jack call-back failed: %d\n", ret); 169 return snd_soc_dapm_add_routes(&rtd->card->dapm, rt5682_map, ARRAY_SIZE(rt5682_map)); 175 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 176 struct snd_soc_card *card = rtd 209 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 220 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 357 acp_card_rt5682s_init(struct snd_soc_pcm_runtime *rtd) argument 418 struct snd_soc_pcm_runtime *rtd = substream->private_data; local 581 acp_card_rt1019_init(struct snd_soc_pcm_runtime *rtd) argument 611 struct snd_soc_pcm_runtime *rtd = substream->private_data; local 746 acp_card_maxim_init(struct snd_soc_pcm_runtime *rtd) argument 776 struct snd_soc_pcm_runtime *rtd = substream->private_data; local 882 acp_card_max98388_init(struct snd_soc_pcm_runtime *rtd) argument 914 struct snd_soc_pcm_runtime *rtd = substream->private_data; local 966 acp_card_nau8825_init(struct snd_soc_pcm_runtime *rtd) argument 1022 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 1181 acp_8821_init(struct snd_soc_pcm_runtime *rtd) argument 1246 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local [all...] |
/linux-master/sound/soc/intel/boards/ |
H A D | hda_dsp_common.c | 23 struct snd_soc_pcm_runtime *rtd; local 27 for_each_card_rtds(card, rtd) { 28 spcm = rtd->pcm ? 29 rtd->pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].pcm : NULL; 32 return rtd->pcm;
|
H A D | sof_cirrus_common.c | 48 static int cs35l41_init(struct snd_soc_pcm_runtime *rtd) argument 50 struct snd_soc_card *card = rtd->card; 56 dev_err(rtd->dev, "fail to add dapm controls, ret %d\n", ret); 63 dev_err(rtd->dev, "fail to add card controls, ret %d\n", ret); 71 dev_err(rtd->dev, "fail to add dapm routes, ret %d\n", ret); 94 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 98 clk_freq = sof_dai_get_bclk(rtd); /* BCLK freq */ 101 dev_err(rtd->dev, "fail to get bclk freq, ret %d\n", clk_freq); 105 for_each_rtd_codec_dais(rtd, i, codec_dai) {
|
H A D | sof_sdw_maxim.c | 24 int maxim_spk_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai) argument 26 struct snd_soc_card *card = rtd->card; 40 dev_err(rtd->dev, "failed to add first SPK map: %d\n", ret); 47 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 57 cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); 58 for_each_rtd_codec_dais(rtd, j, codec_dai) {
|
H A D | sof_cs42l42.c | 40 static int sof_cs42l42_init(struct snd_soc_pcm_runtime *rtd) argument 42 struct sof_card_private *ctx = snd_soc_card_get_drvdata(rtd->card); 43 struct snd_soc_component *component = snd_soc_rtd_to_codec(rtd, 0)->component; 51 ret = snd_soc_card_jack_new_pins(rtd->card, "Headset Jack", 59 dev_err(rtd->dev, "Headset Jack creation failed: %d\n", ret); 70 dev_err(rtd->dev, "Headset Jack call-back failed: %d\n", ret); 77 static void sof_cs42l42_exit(struct snd_soc_pcm_runtime *rtd) argument 79 struct snd_soc_component *component = snd_soc_rtd_to_codec(rtd, 0)->component; 87 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 88 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, [all...] |
H A D | sof_rt5682.c | 141 static int sof_rt5682_codec_init(struct snd_soc_pcm_runtime *rtd) argument 143 struct sof_card_private *ctx = snd_soc_card_get_drvdata(rtd->card); 144 struct snd_soc_component *component = snd_soc_rtd_to_codec(rtd, 0)->component; 150 mclk_freq = sof_dai_get_mclk(rtd); 152 dev_err(rtd->dev, "invalid mclk freq %d\n", mclk_freq); 158 dev_info(rtd->dev, "enable ASRC\n"); 184 dev_err(rtd->dev, "invalid codec type %d\n", 208 dev_err(rtd->dev, "unable to set MCLK rate\n"); 216 ret = snd_soc_card_jack_new_pins(rtd->card, "Headset Jack", 224 dev_err(rtd 247 sof_rt5682_codec_exit(struct snd_soc_pcm_runtime *rtd) argument 257 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 458 rt5650_spk_init(struct snd_soc_pcm_runtime *rtd) argument [all...] |
H A D | sof_sdw_cs42l43.c | 51 int cs42l43_hs_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai) argument 53 struct snd_soc_component *component = snd_soc_rtd_to_codec(rtd, 0)->component; 54 struct mc_private *ctx = snd_soc_card_get_drvdata(rtd->card); 56 struct snd_soc_card *card = rtd->card; 102 int cs42l43_spk_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai) argument 104 struct snd_soc_card *card = rtd->card; 138 int cs42l43_dmic_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai) argument 140 struct snd_soc_card *card = rtd->card;
|
H A D | kbl_da7219_max98357a.c | 159 static int kabylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd, argument 179 static int kabylake_da7219_codec_init(struct snd_soc_pcm_runtime *rtd) argument 181 struct kbl_codec_private *ctx = snd_soc_card_get_drvdata(rtd->card); 182 struct snd_soc_component *component = snd_soc_rtd_to_codec(rtd, 0)->component; 183 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); 191 dev_err(rtd->dev, "can't set codec sysclk configuration\n"); 206 dev_err(rtd->dev, "Headset Jack creation failed: %d\n", ret); 218 ret = snd_soc_dapm_ignore_suspend(&rtd->card->dapm, "SoC DMIC"); 220 dev_err(rtd->dev, "SoC DMIC - Ignore suspend failed %d\n", ret); 225 static int kabylake_hdmi_init(struct snd_soc_pcm_runtime *rtd, in argument 243 kabylake_hdmi1_init(struct snd_soc_pcm_runtime *rtd) argument 248 kabylake_hdmi2_init(struct snd_soc_pcm_runtime *rtd) argument 253 kabylake_hdmi3_init(struct snd_soc_pcm_runtime *rtd) argument 258 kabylake_da7219_fe_init(struct snd_soc_pcm_runtime *rtd) argument 327 kabylake_dmic_fixup(struct snd_soc_pcm_runtime *rtd, struct snd_pcm_hw_params *params) argument [all...] |
H A D | bytcht_cx2072x.c | 70 static int byt_cht_cx2072x_init(struct snd_soc_pcm_runtime *rtd) argument 72 struct snd_soc_card *card = rtd->card; 73 struct snd_soc_component *codec = snd_soc_rtd_to_codec(rtd, 0)->component; 78 dev_warn(rtd->dev, "Unable to add GPIO mapping table\n"); 83 ret = snd_soc_dai_set_sysclk(snd_soc_rtd_to_codec(rtd, 0), CX2072X_MCLK_EXTERNAL_PLL, 86 dev_err(rtd->dev, "Could not set sysclk\n"); 100 snd_soc_dai_set_bclk_ratio(snd_soc_rtd_to_codec(rtd, 0), 50); 105 static int byt_cht_cx2072x_fixup(struct snd_soc_pcm_runtime *rtd, argument 126 ret = snd_soc_dai_set_fmt(snd_soc_rtd_to_cpu(rtd, 0), 131 dev_err(rtd [all...] |
H A D | sof_nau8825.c | 41 static int sof_nau8825_codec_init(struct snd_soc_pcm_runtime *rtd) argument 43 struct sof_card_private *ctx = snd_soc_card_get_drvdata(rtd->card); 44 struct snd_soc_component *component = snd_soc_rtd_to_codec(rtd, 0)->component; 52 ret = snd_soc_card_jack_new_pins(rtd->card, "Headset Jack", 60 dev_err(rtd->dev, "Headset Jack creation failed: %d\n", ret); 71 dev_err(rtd->dev, "Headset Jack call-back failed: %d\n", ret); 78 static void sof_nau8825_codec_exit(struct snd_soc_pcm_runtime *rtd) argument 80 struct snd_soc_component *component = snd_soc_rtd_to_codec(rtd, 0)->component; 88 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 89 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, [all...] |
H A D | kbl_rt5660.c | 136 static int kabylake_ssp0_fixup(struct snd_soc_pcm_runtime *rtd, argument 156 static int kabylake_rt5660_codec_init(struct snd_soc_pcm_runtime *rtd) argument 159 struct kbl_codec_private *ctx = snd_soc_card_get_drvdata(rtd->card); 160 struct snd_soc_component *component = snd_soc_rtd_to_codec(rtd, 0)->component; 176 ret = snd_soc_card_jack_new_pins(rtd->card, "Lineout Jack", 190 ret = snd_soc_card_jack_new_pins(rtd->card, "Mic Jack", 210 static void kabylake_rt5660_codec_exit(struct snd_soc_pcm_runtime *rtd) argument 212 struct kbl_codec_private *ctx = snd_soc_card_get_drvdata(rtd->card); 222 static int kabylake_hdmi_init(struct snd_soc_pcm_runtime *rtd, int device) argument 224 struct kbl_codec_private *ctx = snd_soc_card_get_drvdata(rtd 240 kabylake_hdmi1_init(struct snd_soc_pcm_runtime *rtd) argument 245 kabylake_hdmi2_init(struct snd_soc_pcm_runtime *rtd) argument 250 kabylake_hdmi3_init(struct snd_soc_pcm_runtime *rtd) argument 258 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local [all...] |
/linux-master/sound/soc/uniphier/ |
H A D | aio-compress.c | 24 static int uniphier_aio_comprdma_new(struct snd_soc_pcm_runtime *rtd) argument 26 struct snd_compr *compr = rtd->compr; 28 struct uniphier_aio *aio = uniphier_priv(snd_soc_rtd_to_cpu(rtd, 0)); 57 static int uniphier_aio_comprdma_free(struct snd_soc_pcm_runtime *rtd) argument 59 struct snd_compr *compr = rtd->compr; 61 struct uniphier_aio *aio = uniphier_priv(snd_soc_rtd_to_cpu(rtd, 0)); 78 struct snd_soc_pcm_runtime *rtd = cstream->private_data; local 79 struct uniphier_aio *aio = uniphier_priv(snd_soc_rtd_to_cpu(rtd, 0)); 90 ret = uniphier_aio_comprdma_new(rtd); 104 struct snd_soc_pcm_runtime *rtd local 125 struct snd_soc_pcm_runtime *rtd = cstream->private_data; local 138 struct snd_soc_pcm_runtime *rtd = cstream->private_data; local 169 struct snd_soc_pcm_runtime *rtd = cstream->private_data; local 181 struct snd_soc_pcm_runtime *rtd = cstream->private_data; local 220 struct snd_soc_pcm_runtime *rtd = cstream->private_data; local 254 struct snd_soc_pcm_runtime *rtd = cstream->private_data; local 328 struct snd_soc_pcm_runtime *rtd = cstream->private_data; local [all...] |
/linux-master/sound/soc/sof/ |
H A D | pcm.c | 28 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 33 spcm = snd_sof_find_spcm_dai(component, rtd); 63 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 65 snd_soc_rtdcom_lookup(rtd, SOF_AUDIO_PCM_DRV_NAME); 68 spcm = snd_sof_find_spcm_dai(component, rtd); 88 sof_pcm_setup_connected_widgets(struct snd_sof_dev *sdev, struct snd_soc_pcm_runtime *rtd, argument 96 for_each_rtd_cpu_dais(rtd, j, dai) { 127 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 135 if (rtd->dai_link->no_pcm) 138 spcm = snd_sof_find_spcm_dai(component, rtd); 197 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 223 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 271 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 384 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 423 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 488 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 522 sof_pcm_new(struct snd_soc_component *component, struct snd_soc_pcm_runtime *rtd) argument 587 sof_pcm_dai_link_fixup(struct snd_soc_pcm_runtime *rtd, struct snd_pcm_hw_params *params) argument [all...] |
/linux-master/sound/soc/mediatek/mt8188/ |
H A D | mt8188-mt6359.c | 341 static int mt8188_mt6359_mtkaif_calibration(struct snd_soc_pcm_runtime *rtd) argument 344 snd_soc_rtdcom_lookup(rtd, AFE_PCM_NAME); 346 snd_soc_rtd_to_codec(rtd, 0)->component; 387 for_each_card_widgets(rtd->card, w) { 505 static int mt8188_mt6359_init(struct snd_soc_pcm_runtime *rtd) argument 508 snd_soc_rtd_to_codec(rtd, 0)->component; 515 mt8188_mt6359_mtkaif_calibration(rtd); 560 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 564 struct snd_soc_dai *dai = snd_soc_rtd_to_cpu(rtd, 0); 573 static int mt8188_dptx_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, argument 585 mt8188_hdmi_codec_init(struct snd_soc_pcm_runtime *rtd) argument 611 mt8188_dptx_codec_init(struct snd_soc_pcm_runtime *rtd) argument 636 mt8188_dumb_amp_init(struct snd_soc_pcm_runtime *rtd) argument 661 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 689 mt8188_max98390_codec_init(struct snd_soc_pcm_runtime *rtd) argument 731 mt8188_headset_codec_init(struct snd_soc_pcm_runtime *rtd) argument 779 mt8188_headset_codec_exit(struct snd_soc_pcm_runtime *rtd) argument 790 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 824 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 869 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 895 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local [all...] |
/linux-master/sound/soc/tegra/ |
H A D | tegra_wm8903.c | 55 static int tegra_wm8903_init(struct snd_soc_pcm_runtime *rtd) argument 57 struct tegra_machine *machine = snd_soc_card_get_drvdata(rtd->card); 58 struct snd_soc_card *card = rtd->card; 73 err = tegra_asoc_machine_init(rtd); 78 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); 82 err = snd_soc_card_jack_new_pins(rtd->card, "Mic Jack", 88 dev_err(rtd->dev, "Mic Jack creation failed: %d\n", err); 107 struct snd_soc_pcm_runtime *rtd = snd_soc_get_pcm_runtime(card, link); local 108 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0);
|
/linux-master/sound/arm/ |
H A D | pxa2xx-pcm-lib.c | 36 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 41 dma_params = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream); 50 snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream), 82 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 89 dma_params = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream); 114 substream, dma_request_slave_channel(snd_soc_rtd_to_cpu(rtd, 0)->dev, 135 struct snd_soc_pcm_runtime *rtd) 137 struct snd_card *card = rtd->card->snd_card; 138 struct snd_pcm *pcm = rtd->pcm; 134 pxa2xx_soc_pcm_new(struct snd_soc_component *component, struct snd_soc_pcm_runtime *rtd) argument
|
/linux-master/sound/soc/amd/ |
H A D | acp-da7219-max98357a.c | 53 static int cz_da7219_init(struct snd_soc_pcm_runtime *rtd) argument 56 struct snd_soc_card *card = rtd->card; 57 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); 60 dev_info(rtd->dev, "codec dai name = %s\n", codec_dai->name); 65 dev_err(rtd->dev, "can't set codec sysclk: %d\n", ret); 72 dev_err(rtd->dev, "can't set codec pll: %d\n", ret); 109 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 121 dev_err(rtd->dev, "can't enable master clock %d\n", ret); 133 static int cz_rt5682_init(struct snd_soc_pcm_runtime *rtd) argument 136 struct snd_soc_card *card = rtd 194 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 248 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 269 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 291 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 312 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 333 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 360 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 381 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 403 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 424 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 445 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local [all...] |
/linux-master/sound/soc/bcm/ |
H A D | bcm63xx-pcm-whistler.c | 49 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 55 snd_soc_dai_set_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream, dma_desc); 64 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 66 dma_desc = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream); 76 struct snd_soc_pcm_runtime *rtd; local 80 rtd = snd_soc_substream_to_rtd(substream); 81 i2s_priv = dev_get_drvdata(snd_soc_rtd_to_cpu(rtd, 0)->dev); 147 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 151 dma_desc = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream); 164 i2s_priv = dev_get_drvdata(snd_soc_rtd_to_cpu(rtd, 241 struct snd_soc_pcm_runtime *rtd; local 348 bcm63xx_soc_pcm_new(struct snd_soc_component *component, struct snd_soc_pcm_runtime *rtd) argument [all...] |
/linux-master/sound/soc/qcom/ |
H A D | apq8096.c | 16 static int apq8096_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, argument 33 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 34 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); 35 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); 67 static int apq8096_init(struct snd_soc_pcm_runtime *rtd) argument 69 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0);
|
H A D | apq8016_sbc.c | 59 static int apq8016_dai_init(struct snd_soc_pcm_runtime *rtd, int mi2s) argument 63 struct snd_soc_card *card = rtd->card; 129 for_each_rtd_codec_dais(rtd, i, codec_dai) { 149 static int apq8016_sbc_dai_init(struct snd_soc_pcm_runtime *rtd) argument 151 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); 153 return apq8016_dai_init(rtd, cpu_dai->id); 185 static int msm8916_qdsp6_dai_init(struct snd_soc_pcm_runtime *rtd) argument 187 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); 190 return apq8016_dai_init(rtd, qdsp6_dai_get_lpass_id(cpu_dai)); 195 struct snd_soc_pcm_runtime *rtd local 216 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 239 msm8916_qdsp6_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, struct snd_pcm_hw_params *params) argument [all...] |
/linux-master/sound/soc/ |
H A D | soc-core.c | 73 struct snd_soc_pcm_runtime *rtd = dev_get_drvdata(dev); local 75 return sysfs_emit(buf, "%ld\n", rtd->pmdown_time); 82 struct snd_soc_pcm_runtime *rtd = dev_get_drvdata(dev); local 85 ret = kstrtol(buf, 10, &rtd->pmdown_time); 103 struct snd_soc_pcm_runtime *rtd = dev_get_drvdata(dev); local 105 if (!rtd) 110 return rtd->dai_link->num_codecs ? attr->mode : 0; /* enabled only with codec */ 316 static int snd_soc_rtd_add_component(struct snd_soc_pcm_runtime *rtd, argument 322 for_each_rtd_components(rtd, i, comp) { 329 rtd 335 snd_soc_rtdcom_lookup(struct snd_soc_pcm_runtime *rtd, const char *driver_name) argument 405 struct snd_soc_pcm_runtime *rtd; local 421 snd_soc_close_delayed_work(struct snd_soc_pcm_runtime *rtd) argument 452 soc_free_pcm_runtime(struct snd_soc_pcm_runtime *rtd) argument 485 struct snd_soc_pcm_runtime *rtd = local 496 struct snd_soc_pcm_runtime *rtd; local 603 struct snd_soc_pcm_runtime *rtd; local 612 struct snd_soc_pcm_runtime *rtd; local 631 struct snd_soc_pcm_runtime *rtd; local 649 struct snd_soc_pcm_runtime *rtd; local 1139 snd_soc_remove_pcm_runtime(struct snd_soc_card *card, struct snd_soc_pcm_runtime *rtd) argument 1167 struct snd_soc_pcm_runtime *rtd; local 1256 snd_soc_runtime_get_dai_fmt(struct snd_soc_pcm_runtime *rtd) argument 1426 snd_soc_runtime_set_dai_fmt(struct snd_soc_pcm_runtime *rtd, unsigned int dai_fmt) argument 1456 soc_init_pcm_runtime(struct snd_soc_card *card, struct snd_soc_pcm_runtime *rtd) argument 1669 struct snd_soc_pcm_runtime *rtd; local 1682 struct snd_soc_pcm_runtime *rtd; local 1700 struct snd_soc_pcm_runtime *rtd; local 1718 struct snd_soc_pcm_runtime *rtd; local 2105 struct snd_soc_pcm_runtime *rtd, *n; local 2156 struct snd_soc_pcm_runtime *rtd; local [all...] |
/linux-master/sound/soc/ux500/ |
H A D | mop500_ab8500.c | 191 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 194 return mop500_ab8500_set_mclk(rtd->card->dev, 195 snd_soc_card_get_drvdata(rtd->card)); 200 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 201 struct device *dev = rtd->card->dev; 215 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 216 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); 217 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); 218 struct device *dev = rtd->card->dev; 288 ret = snd_soc_runtime_set_dai_fmt(rtd, fm 339 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 358 mop500_ab8500_machine_init(struct snd_soc_pcm_runtime *rtd) argument [all...] |
/linux-master/sound/soc/rockchip/ |
H A D | rk3399_gru_sound.c | 69 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 75 ret = snd_soc_dai_set_sysclk(snd_soc_rtd_to_cpu(rtd, 0), 0, mclk, 0); 77 dev_err(rtd->card->dev, "%s() error setting sysclk to %u: %d\n", 88 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 89 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); 90 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); 99 dev_err(rtd->card->dev, "Can't set cpu clock out %d\n", ret); 106 dev_err(rtd->card->dev, "%s() error setting sysclk to %u: %d\n", 120 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 121 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 171 rockchip_sound_cdndp_init(struct snd_soc_pcm_runtime *rtd) argument 188 rockchip_sound_da7219_init(struct snd_soc_pcm_runtime *rtd) argument 239 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local [all...] |
/linux-master/sound/soc/mediatek/mt8186/ |
H A D | mt8186-mt6366.c | 140 static int primary_codec_init(struct snd_soc_pcm_runtime *rtd) argument 142 struct snd_soc_card *card = rtd->card; 147 ret = mt8186_mt6366_init(rtd); 176 static int mt8186_headset_codec_init(struct snd_soc_pcm_runtime *rtd) argument 179 snd_soc_rtdcom_lookup(rtd, AFE_PCM_NAME); 182 snd_soc_card_get_drvdata(rtd->card); 185 snd_soc_rtd_to_codec(rtd, 0)->component; 198 dev_err(rtd->dev, "Failed to set up shared clocks\n"); 202 ret = snd_soc_card_jack_new_pins(rtd->card, "Headset Jack", 209 dev_err(rtd 230 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 274 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 300 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 347 mt8186_mt6366_rt1019_rt5682s_hdmi_init(struct snd_soc_pcm_runtime *rtd) argument 374 mt8186_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, struct snd_pcm_hw_params *params, snd_pcm_format_t fmt) argument 396 mt8186_i2s_hw_params_24le_fixup(struct snd_soc_pcm_runtime *rtd, struct snd_pcm_hw_params *params) argument 402 mt8186_i2s_hw_params_32le_fixup(struct snd_soc_pcm_runtime *rtd, struct snd_pcm_hw_params *params) argument 409 mt8186_sof_dai_link_fixup(struct snd_soc_pcm_runtime *rtd, struct snd_pcm_hw_params *params) argument [all...] |
/linux-master/sound/soc/mediatek/mt8183/ |
H A D | mt8183-mt6358-ts3a227-max98357.c | 46 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 51 return snd_soc_dai_set_sysclk(snd_soc_rtd_to_cpu(rtd, 0), 63 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 67 struct snd_soc_card *card = rtd->card; 71 for_each_rtd_codec_dais(rtd, i, codec_dai) { 87 return snd_soc_dai_set_sysclk(snd_soc_rtd_to_cpu(rtd, 0), 95 static int mt8183_i2s_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, argument 98 dev_dbg(rtd->dev, "%s(), fix format to S32_LE\n", __func__); 108 static int mt8183_rt1015_i2s_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, argument 111 dev_dbg(rtd 305 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 324 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 348 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 361 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 380 mt8183_mt6358_ts3a227_max98357_hdmi_init(struct snd_soc_pcm_runtime *rtd) argument 395 mt8183_bt_init(struct snd_soc_pcm_runtime *rtd) argument 410 mt8183_i2s2_init(struct snd_soc_pcm_runtime *rtd) argument [all...] |