Searched refs:rtd (Results 101 - 125 of 332) sorted by relevance

1234567891011>>

/linux-master/sound/soc/samsung/
H A Dsmdk_wm8994.c37 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
38 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0);
70 static int smdk_wm8994_init_paiftx(struct snd_soc_pcm_runtime *rtd) argument
72 struct snd_soc_dapm_context *dapm = &rtd->card->dapm;
H A Dtm2_wm5110.c95 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
96 struct snd_soc_component *component = snd_soc_rtd_to_codec(rtd, 0)->component;
97 struct tm2_machine_priv *priv = snd_soc_card_get_drvdata(rtd->card);
126 return tm2_start_sysclk(rtd->card);
136 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
137 struct snd_soc_component *component = snd_soc_rtd_to_codec(rtd, 0)->component;
190 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
191 struct snd_soc_component *component = snd_soc_rtd_to_codec(rtd, 0)->component;
211 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
212 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd,
283 struct snd_soc_pcm_runtime *rtd; local
312 struct snd_soc_pcm_runtime *rtd; local
[all...]
H A Dmidas_wm1811.c50 static int midas_start_fll1(struct snd_soc_pcm_runtime *rtd, unsigned int rate) argument
52 struct snd_soc_card *card = rtd->card;
54 struct snd_soc_dai *aif1_dai = snd_soc_rtd_to_codec(rtd, 0);
55 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0);
102 static int midas_stop_fll1(struct snd_soc_pcm_runtime *rtd) argument
104 struct snd_soc_card *card = rtd->card;
106 struct snd_soc_dai *aif1_dai = snd_soc_rtd_to_codec(rtd, 0);
130 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
139 return midas_start_fll1(rtd, pll_out);
283 struct snd_soc_pcm_runtime *rtd local
304 struct snd_soc_pcm_runtime *rtd = snd_soc_get_pcm_runtime(card, local
[all...]
H A Dodroid.c37 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
38 struct odroid_priv *priv = snd_soc_card_get_drvdata(rtd->card);
58 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
59 struct odroid_priv *priv = snd_soc_card_get_drvdata(rtd->card);
99 if (rtd->dai_link->num_codecs > 1) {
100 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 1);
117 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
118 struct odroid_priv *priv = snd_soc_card_get_drvdata(rtd->card);
H A Darndale.c23 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
24 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0);
25 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0);
58 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
59 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0);
/linux-master/sound/soc/amd/
H A Dacp-es8336.c59 static int st_es8336_init(struct snd_soc_pcm_runtime *rtd) argument
65 codec = snd_soc_rtd_to_codec(rtd, 0)->component;
66 card = rtd->card;
78 dev_err(rtd->dev, "Headset Jack call-back failed: %d\n", ret);
107 struct snd_soc_pcm_runtime *rtd; local
114 rtd = snd_soc_substream_to_rtd(substream);
115 card = rtd->card;
117 codec_dai = snd_soc_rtd_to_codec(rtd, 0);
120 dev_err(rtd->dev, "can't set codec sysclk: %d\n", ret);
/linux-master/sound/soc/tegra/
H A Dtegra_audio_graph_card.c67 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
68 struct simple_util_priv *simple = snd_soc_card_get_drvdata(rtd->card);
70 struct device *dev = rtd->card->dev;
95 dev_err(rtd->card->dev, "Unsupported sample rate %u\n",
127 dev_dbg(rtd->card->dev,
134 dev_err(rtd->card->dev,
143 dev_err(rtd->card->dev,
155 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
156 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0);
/linux-master/sound/soc/intel/boards/
H A Dbytcht_da7213.c60 static int codec_fixup(struct snd_soc_pcm_runtime *rtd, argument
81 ret = snd_soc_dai_set_fmt(snd_soc_rtd_to_cpu(rtd, 0),
86 dev_err(rtd->dev, "can't set format to I2S, err %d\n", ret);
90 ret = snd_soc_dai_set_tdm_slot(snd_soc_rtd_to_cpu(rtd, 0), 0x3, 0x3, 2, 24);
92 dev_err(rtd->dev, "can't set I2S config, err %d\n", ret);
108 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
109 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0);
129 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
130 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0);
H A Dbdw_rt286.c62 static int codec_link_init(struct snd_soc_pcm_runtime *rtd) argument
64 struct snd_soc_component *codec = snd_soc_rtd_to_codec(rtd, 0)->component;
67 ret = snd_soc_card_jack_new_pins(rtd->card, "Headset", SND_JACK_HEADSET | SND_JACK_BTN_0,
76 static void codec_link_exit(struct snd_soc_pcm_runtime *rtd) argument
78 struct snd_soc_component *codec = snd_soc_rtd_to_codec(rtd, 0)->component;
83 static int codec_link_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, argument
101 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
102 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0);
107 dev_err(rtd->dev, "set codec sysclk failed: %d\n", ret);
H A Dbridge_cs35l56.c28 static int bridge_cs35l56_asp_init(struct snd_soc_pcm_runtime *rtd) argument
30 struct snd_soc_card *card = rtd->card;
57 for_each_rtd_codec_dais(rtd, i, codec_dai) {
67 for_each_rtd_cpu_dais(rtd, i, cpu_dai) {
H A Dkbl_rt5663_max98927.c258 static int kabylake_rt5663_fe_init(struct snd_soc_pcm_runtime *rtd) argument
262 struct snd_soc_component *component = snd_soc_rtd_to_cpu(rtd, 0)->component;
267 dev_err(rtd->dev, "Ref Cap ignore suspend failed %d\n", ret);
274 static int kabylake_rt5663_codec_init(struct snd_soc_pcm_runtime *rtd) argument
277 struct kbl_rt5663_private *ctx = snd_soc_card_get_drvdata(rtd->card);
278 struct snd_soc_component *component = snd_soc_rtd_to_codec(rtd, 0)->component;
292 dev_err(rtd->dev, "Headset Jack creation failed %d\n", ret);
307 static int kabylake_rt5663_max98927_codec_init(struct snd_soc_pcm_runtime *rtd) argument
311 ret = kabylake_rt5663_codec_init(rtd);
315 ret = snd_soc_dapm_ignore_suspend(&rtd
324 kabylake_hdmi_init(struct snd_soc_pcm_runtime *rtd, int device) argument
342 kabylake_hdmi1_init(struct snd_soc_pcm_runtime *rtd) argument
347 kabylake_hdmi2_init(struct snd_soc_pcm_runtime *rtd) argument
352 kabylake_hdmi3_init(struct snd_soc_pcm_runtime *rtd) argument
357 kabylake_5663_hdmi1_init(struct snd_soc_pcm_runtime *rtd) argument
362 kabylake_5663_hdmi2_init(struct snd_soc_pcm_runtime *rtd) argument
415 kabylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd, struct snd_pcm_hw_params *params) argument
475 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
496 kabylake_dmic_fixup(struct snd_soc_pcm_runtime *rtd, struct snd_pcm_hw_params *params) argument
513 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
[all...]
H A Dskl_nau88l25_max98357a.c148 static int skylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd, argument
168 static int skylake_nau8825_codec_init(struct snd_soc_pcm_runtime *rtd) argument
171 struct snd_soc_component *component = snd_soc_rtd_to_codec(rtd, 0)->component;
183 dev_err(rtd->dev, "Headset Jack creation failed %d\n", ret);
189 snd_soc_dapm_ignore_suspend(&rtd->card->dapm, "SoC DMIC");
194 static int skylake_hdmi1_init(struct snd_soc_pcm_runtime *rtd) argument
196 struct skl_nau8825_private *ctx = snd_soc_card_get_drvdata(rtd->card);
197 struct snd_soc_dai *dai = snd_soc_rtd_to_codec(rtd, 0);
200 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL);
212 static int skylake_hdmi2_init(struct snd_soc_pcm_runtime *rtd) argument
230 skylake_hdmi3_init(struct snd_soc_pcm_runtime *rtd) argument
248 skylake_nau8825_fe_init(struct snd_soc_pcm_runtime *rtd) argument
310 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
327 skylake_dmic_fixup(struct snd_soc_pcm_runtime *rtd, struct snd_pcm_hw_params *params) argument
[all...]
H A Dbxt_rt298.c155 static int broxton_rt298_fe_init(struct snd_soc_pcm_runtime *rtd) argument
158 struct snd_soc_component *component = snd_soc_rtd_to_cpu(rtd, 0)->component;
166 static int broxton_rt298_codec_init(struct snd_soc_pcm_runtime *rtd) argument
168 struct snd_soc_component *component = snd_soc_rtd_to_codec(rtd, 0)->component;
171 ret = snd_soc_card_jack_new_pins(rtd->card, "Headset",
181 snd_soc_dapm_ignore_suspend(&rtd->card->dapm, "SoC DMIC");
186 static int broxton_hdmi_init(struct snd_soc_pcm_runtime *rtd) argument
188 struct bxt_rt286_private *ctx = snd_soc_card_get_drvdata(rtd->card);
189 struct snd_soc_dai *dai = snd_soc_rtd_to_codec(rtd, 0);
192 pcm = devm_kzalloc(rtd
204 broxton_ssp5_fixup(struct snd_soc_pcm_runtime *rtd, struct snd_pcm_hw_params *params) argument
227 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
255 broxton_dmic_fixup(struct snd_soc_pcm_runtime *rtd, struct snd_pcm_hw_params *params) argument
[all...]
H A Dskl_rt286.c112 static int skylake_rt286_fe_init(struct snd_soc_pcm_runtime *rtd) argument
115 struct snd_soc_component *component = snd_soc_rtd_to_cpu(rtd, 0)->component;
123 static int skylake_rt286_codec_init(struct snd_soc_pcm_runtime *rtd) argument
125 struct snd_soc_component *component = snd_soc_rtd_to_codec(rtd, 0)->component;
128 ret = snd_soc_card_jack_new_pins(rtd->card, "Headset",
138 snd_soc_dapm_ignore_suspend(&rtd->card->dapm, "SoC DMIC");
143 static int skylake_hdmi_init(struct snd_soc_pcm_runtime *rtd) argument
145 struct skl_rt286_private *ctx = snd_soc_card_get_drvdata(rtd->card);
146 struct snd_soc_dai *dai = snd_soc_rtd_to_codec(rtd, 0);
149 pcm = devm_kzalloc(rtd
209 skylake_ssp0_fixup(struct snd_soc_pcm_runtime *rtd, struct snd_pcm_hw_params *params) argument
231 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
247 skylake_dmic_fixup(struct snd_soc_pcm_runtime *rtd, struct snd_pcm_hw_params *params) argument
[all...]
H A Dehl_rt5660.c74 static int hdmi_init(struct snd_soc_pcm_runtime *rtd) argument
76 struct sof_card_private *ctx = snd_soc_card_get_drvdata(rtd->card);
77 struct snd_soc_dai *dai = snd_soc_rtd_to_codec(rtd, 0);
80 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL);
85 pcm->device = rtd->dai_link->id;
112 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
113 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0);
121 dev_err(rtd->dev, "snd_soc_dai_set_sysclk err = %d\n", ret);
H A Dbytcht_nocodec.c40 static int codec_fixup(struct snd_soc_pcm_runtime *rtd, argument
61 ret = snd_soc_dai_set_fmt(snd_soc_rtd_to_cpu(rtd, 0),
67 dev_err(rtd->dev, "can't set format to I2S, err %d\n", ret);
71 ret = snd_soc_dai_set_tdm_slot(snd_soc_rtd_to_cpu(rtd, 0), 0x3, 0x3, 2, 24);
73 dev_err(rtd->dev, "can't set I2S config, err %d\n", ret);
/linux-master/include/sound/
H A Dsoc-card.h117 struct snd_soc_pcm_runtime *rtd; local
119 for_each_card_rtds(card, rtd) {
120 if (!strcmp(snd_soc_rtd_to_codec(rtd, 0)->name, dai_name))
121 return snd_soc_rtd_to_codec(rtd, 0);
H A Dsof.h174 int sof_dai_get_mclk(struct snd_soc_pcm_runtime *rtd);
175 int sof_dai_get_bclk(struct snd_soc_pcm_runtime *rtd);
/linux-master/sound/soc/generic/
H A Dsimple-card-utils.c280 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
281 struct simple_util_priv *priv = snd_soc_card_get_drvdata(rtd->card);
282 struct simple_dai_props *props = simple_priv_to_props(priv, rtd->num);
292 ret = simple_check_fixed_sysclk(rtd->dev, dai, &fixed_sysclk);
301 ret = simple_check_fixed_sysclk(rtd->dev, dai, &fixed_sysclk);
310 dev_err(rtd->dev, "fixed sysclk %u not divisible by mclk_fs %u\n",
341 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
342 struct simple_util_priv *priv = snd_soc_card_get_drvdata(rtd->card);
343 struct simple_dai_props *props = simple_priv_to_props(priv, rtd->num);
348 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd,
430 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
499 simple_util_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, struct snd_pcm_hw_params *params) argument
559 simple_init_for_codec2codec(struct snd_soc_pcm_runtime *rtd, struct simple_dai_props *dai_props) argument
611 simple_util_dai_init(struct snd_soc_pcm_runtime *rtd) argument
[all...]
/linux-master/sound/soc/intel/avs/
H A Dprobes.c128 struct snd_compr_runtime *rtd = cstream->runtime; local
141 ret = snd_compr_malloc_pages(cstream, rtd->buffer_size);
168 ret = avs_dsp_init_probe(adev, node_id, rtd->dma_bytes);
231 struct snd_compr_runtime *rtd = cstream->runtime; local
236 if (count > rtd->buffer_size)
237 count = rtd->buffer_size;
239 div_u64_rem(rtd->total_bytes_transferred, rtd->buffer_size, &offset);
240 ptr = rtd->dma_area + offset;
241 n = rtd
[all...]
/linux-master/sound/soc/
H A Dsoc-dai.c137 int snd_soc_dai_get_fmt_max_priority(struct snd_soc_pcm_runtime *rtd) argument
145 for_each_rtd_dais(rtd, i, dai) {
460 struct snd_soc_pcm_runtime *rtd, int num)
465 ret = dai->driver->ops->compress_new(rtd, num);
543 int snd_soc_pcm_dai_probe(struct snd_soc_pcm_runtime *rtd, int order) argument
548 for_each_rtd_dais(rtd, i, dai) {
569 int snd_soc_pcm_dai_remove(struct snd_soc_pcm_runtime *rtd, int order) argument
574 for_each_rtd_dais(rtd, i, dai) {
594 int snd_soc_pcm_dai_new(struct snd_soc_pcm_runtime *rtd) argument
599 for_each_rtd_dais(rtd,
459 snd_soc_dai_compress_new(struct snd_soc_dai *dai, struct snd_soc_pcm_runtime *rtd, int num) argument
613 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
649 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
691 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
712 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
[all...]
/linux-master/sound/soc/ux500/
H A Dux500_pcm.c35 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
40 snd_dma_params = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream);
/linux-master/sound/soc/amd/vangogh/
H A Dacp5x-mach.c93 static int acp5x_8821_init(struct snd_soc_pcm_runtime *rtd) argument
95 struct snd_soc_component *component = snd_soc_rtd_to_codec(rtd, 0)->component;
102 ret = snd_soc_card_jack_new_pins(rtd->card, "Headset Jack",
107 dev_err(rtd->dev, "Headset Jack creation failed %d\n", ret);
147 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
148 struct acp5x_platform_info *machine = snd_soc_card_get_drvdata(rtd->card);
168 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
169 struct snd_soc_card *card = rtd->card;
200 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
201 struct acp5x_platform_info *machine = snd_soc_card_get_drvdata(rtd
218 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
337 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
[all...]
/linux-master/sound/soc/sh/
H A Dmigor.c48 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
49 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0);
70 ret = snd_soc_dai_set_sysclk(snd_soc_rtd_to_cpu(rtd, 0), SIU_CLKB_EXT,
81 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
82 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0);
/linux-master/sound/soc/atmel/
H A Datmel-pcm-pdc.c38 struct snd_soc_pcm_runtime *rtd)
40 struct snd_card *card = rtd->card->snd_card;
47 snd_pcm_set_managed_buffer_all(rtd->pcm, SNDRV_DMA_TYPE_DEV,
143 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local
148 prtd->params = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream);
195 struct snd_pcm_runtime *rtd = substream->runtime; local
196 struct atmel_runtime_data *prtd = rtd->private_data;
202 rtd->buffer_size, rtd->dma_area, rtd
37 atmel_pcm_new(struct snd_soc_component *component, struct snd_soc_pcm_runtime *rtd) argument
[all...]

Completed in 216 milliseconds

1234567891011>>