Home
last modified time | relevance | path

Searched refs:rtd (Results 1 – 25 of 285) sorted by relevance

12345678910>>...12

/Linux-v5.10/sound/soc/
Dsoc-link.c11 #define soc_link_ret(rtd, ret) _soc_link_ret(rtd, __func__, ret) argument
12 static inline int _soc_link_ret(struct snd_soc_pcm_runtime *rtd, in _soc_link_ret() argument
25 dev_err(rtd->dev, in _soc_link_ret()
27 func, rtd->dai_link->name, ret); in _soc_link_ret()
37 #define soc_link_mark_push(rtd, substream, tgt) ((rtd)->mark_##tgt = substream) argument
38 #define soc_link_mark_pop(rtd, substream, tgt) ((rtd)->mark_##tgt = NULL) argument
39 #define soc_link_mark_match(rtd, substream, tgt) ((rtd)->mark_##tgt == substream) argument
41 int snd_soc_link_init(struct snd_soc_pcm_runtime *rtd) in snd_soc_link_init() argument
45 if (rtd->dai_link->init) in snd_soc_link_init()
46 ret = rtd->dai_link->init(rtd); in snd_soc_link_init()
[all …]
Dsoc-compress.c28 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in soc_compr_components_open() local
32 for_each_rtd_components(rtd, i, component) { in soc_compr_components_open()
55 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in soc_compr_components_free() local
59 for_each_rtd_components(rtd, i, component) { in soc_compr_components_free()
75 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in soc_compr_open() local
77 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); in soc_compr_open()
80 ret = snd_soc_pcm_component_pm_runtime_get(rtd, cstream); in soc_compr_open()
84 mutex_lock_nested(&rtd->card->pcm_mutex, rtd->card->pcm_subclass); in soc_compr_open()
98 snd_soc_runtime_activate(rtd, cstream->direction); in soc_compr_open()
100 mutex_unlock(&rtd->card->pcm_mutex); in soc_compr_open()
[all …]
Dsoc-pcm.c157 void soc_dpcm_debugfs_add(struct snd_soc_pcm_runtime *rtd) in soc_dpcm_debugfs_add() argument
159 if (!rtd->dai_link) in soc_dpcm_debugfs_add()
162 if (!rtd->dai_link->dynamic) in soc_dpcm_debugfs_add()
165 if (!rtd->card->debugfs_card_root) in soc_dpcm_debugfs_add()
168 rtd->debugfs_dpcm_root = debugfs_create_dir(rtd->dai_link->name, in soc_dpcm_debugfs_add()
169 rtd->card->debugfs_card_root); in soc_dpcm_debugfs_add()
171 debugfs_create_file("state", 0444, rtd->debugfs_dpcm_root, in soc_dpcm_debugfs_add()
172 rtd, &dpcm_state_fops); in soc_dpcm_debugfs_add()
219 void snd_soc_runtime_action(struct snd_soc_pcm_runtime *rtd, in snd_soc_runtime_action() argument
225 lockdep_assert_held(&rtd->card->pcm_mutex); in snd_soc_runtime_action()
[all …]
Dsoc-core.c73 struct snd_soc_pcm_runtime *rtd = dev_get_drvdata(dev); in pmdown_time_show() local
75 return sprintf(buf, "%ld\n", rtd->pmdown_time); in pmdown_time_show()
82 struct snd_soc_pcm_runtime *rtd = dev_get_drvdata(dev); in pmdown_time_set() local
85 ret = kstrtol(buf, 10, &rtd->pmdown_time); in pmdown_time_set()
103 struct snd_soc_pcm_runtime *rtd = dev_get_drvdata(dev); in soc_dev_attr_is_visible() local
105 if (!rtd) in soc_dev_attr_is_visible()
110 return rtd->num_codecs ? attr->mode : 0; /* enabled only with codec */ in soc_dev_attr_is_visible()
260 static int snd_soc_rtd_add_component(struct snd_soc_pcm_runtime *rtd, in snd_soc_rtd_add_component() argument
266 for_each_rtd_components(rtd, i, comp) { in snd_soc_rtd_add_component()
273 rtd->components[rtd->num_components] = component; in snd_soc_rtd_add_component()
[all …]
/Linux-v5.10/drivers/rtc/
Drtc-test.c26 struct rtc_test_data *rtd = dev_get_drvdata(dev); in test_rtc_read_alarm() local
29 alarm = (rtd->alarm.expires - jiffies) / HZ; in test_rtc_read_alarm()
30 alarm += ktime_get_real_seconds() + rtd->offset; in test_rtc_read_alarm()
33 alrm->enabled = rtd->alarm_en; in test_rtc_read_alarm()
40 struct rtc_test_data *rtd = dev_get_drvdata(dev); in test_rtc_set_alarm() local
45 timeout -= rtd->offset; in test_rtc_set_alarm()
47 del_timer(&rtd->alarm); in test_rtc_set_alarm()
54 rtd->alarm.expires = expires; in test_rtc_set_alarm()
57 add_timer(&rtd->alarm); in test_rtc_set_alarm()
59 rtd->alarm_en = alrm->enabled; in test_rtc_set_alarm()
[all …]
/Linux-v5.10/sound/soc/amd/
Dacp-pcm-dma.c331 struct audio_substream_data *rtd, in config_acp_dma() argument
336 acp_pte_config(acp_mmio, rtd->dma_addr, rtd->num_of_pages, in config_acp_dma()
337 rtd->pte_offset); in config_acp_dma()
339 if (rtd->direction == SNDRV_PCM_STREAM_PLAYBACK) { in config_acp_dma()
340 ch_acp_sysmem = rtd->ch1; in config_acp_dma()
341 ch_acp_i2s = rtd->ch2; in config_acp_dma()
343 ch_acp_i2s = rtd->ch1; in config_acp_dma()
344 ch_acp_sysmem = rtd->ch2; in config_acp_dma()
347 set_acp_sysmem_dma_descriptors(acp_mmio, rtd->size, in config_acp_dma()
348 rtd->direction, rtd->pte_offset, in config_acp_dma()
[all …]
/Linux-v5.10/sound/soc/amd/raven/
Dacp3x-i2s.c75 struct i2s_stream_instance *rtd; in acp3x_i2s_hwparams() local
84 rtd = substream->runtime->private_data; in acp3x_i2s_hwparams()
90 rtd->i2s_instance = pinfo->play_i2s_instance; in acp3x_i2s_hwparams()
92 rtd->i2s_instance = pinfo->cap_i2s_instance; in acp3x_i2s_hwparams()
99 rtd->xfer_resolution = 0x0; in acp3x_i2s_hwparams()
102 rtd->xfer_resolution = 0x02; in acp3x_i2s_hwparams()
105 rtd->xfer_resolution = 0x04; in acp3x_i2s_hwparams()
108 rtd->xfer_resolution = 0x05; in acp3x_i2s_hwparams()
114 switch (rtd->i2s_instance) { in acp3x_i2s_hwparams()
125 switch (rtd->i2s_instance) { in acp3x_i2s_hwparams()
[all …]
Dacp3x-pcm-dma.c109 static void config_acp3x_dma(struct i2s_stream_instance *rtd, int direction) in config_acp3x_dma() argument
116 addr = rtd->dma_addr; in config_acp3x_dma()
119 switch (rtd->i2s_instance) { in config_acp3x_dma()
128 switch (rtd->i2s_instance) { in config_acp3x_dma()
138 rv_writel(ACP_SRAM_PTE_OFFSET | BIT(31), rtd->acp3x_base + in config_acp3x_dma()
140 rv_writel(PAGE_SIZE_4K_ENABLE, rtd->acp3x_base + in config_acp3x_dma()
143 for (page_idx = 0; page_idx < rtd->num_pages; page_idx++) { in config_acp3x_dma()
148 rv_writel(low, rtd->acp3x_base + mmACP_SCRATCH_REG_0 + val); in config_acp3x_dma()
150 rv_writel(high, rtd->acp3x_base + mmACP_SCRATCH_REG_0 + val in config_acp3x_dma()
158 switch (rtd->i2s_instance) { in config_acp3x_dma()
[all …]
Dacp3x.h123 static inline u64 acp_get_byte_count(struct i2s_stream_instance *rtd, in acp_get_byte_count() argument
129 switch (rtd->i2s_instance) { in acp_get_byte_count()
131 byte_count = rv_readl(rtd->acp3x_base + in acp_get_byte_count()
133 byte_count |= rv_readl(rtd->acp3x_base + in acp_get_byte_count()
138 byte_count = rv_readl(rtd->acp3x_base + in acp_get_byte_count()
140 byte_count |= rv_readl(rtd->acp3x_base + in acp_get_byte_count()
145 switch (rtd->i2s_instance) { in acp_get_byte_count()
147 byte_count = rv_readl(rtd->acp3x_base + in acp_get_byte_count()
149 byte_count |= rv_readl(rtd->acp3x_base + in acp_get_byte_count()
154 byte_count = rv_readl(rtd->acp3x_base + in acp_get_byte_count()
[all …]
/Linux-v5.10/sound/soc/qcom/
Dsdm845.c49 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in sdm845_slim_snd_hw_params() local
50 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); in sdm845_slim_snd_hw_params()
52 struct sdm845_snd_data *pdata = snd_soc_card_get_drvdata(rtd->card); in sdm845_slim_snd_hw_params()
58 for_each_rtd_codec_dais(rtd, i, codec_dai) { in sdm845_slim_snd_hw_params()
89 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in sdm845_tdm_snd_hw_params() local
90 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); in sdm845_tdm_snd_hw_params()
100 dev_err(rtd->dev, "%s: invalid param format 0x%x\n", in sdm845_tdm_snd_hw_params()
110 dev_err(rtd->dev, "%s: failed to set tdm slot, err:%d\n", in sdm845_tdm_snd_hw_params()
118 dev_err(rtd->dev, "%s: failed to set channel map, err:%d\n", in sdm845_tdm_snd_hw_params()
126 dev_err(rtd->dev, "%s: failed to set tdm slot, err:%d\n", in sdm845_tdm_snd_hw_params()
[all …]
/Linux-v5.10/sound/soc/amd/renoir/
Dacp3x-pdm-dma.c176 static void config_acp_dma(struct pdm_stream_instance *rtd, int direction) in config_acp_dma() argument
182 addr = rtd->dma_addr; in config_acp_dma()
186 rn_writel(ACP_SRAM_PTE_OFFSET | BIT(31), rtd->acp_base + in config_acp_dma()
188 rn_writel(PAGE_SIZE_4K_ENABLE, rtd->acp_base + in config_acp_dma()
191 for (page_idx = 0; page_idx < rtd->num_pages; page_idx++) { in config_acp_dma()
196 rn_writel(low, rtd->acp_base + ACP_SCRATCH_REG_0 + val); in config_acp_dma()
198 rn_writel(high, rtd->acp_base + ACP_SCRATCH_REG_0 + val + 4); in config_acp_dma()
243 struct pdm_stream_instance *rtd; in acp_pdm_dma_hw_params() local
246 rtd = substream->runtime->private_data; in acp_pdm_dma_hw_params()
247 if (!rtd) in acp_pdm_dma_hw_params()
[all …]
/Linux-v5.10/sound/soc/tegra/
Dtegra_pcm.c73 struct snd_soc_pcm_runtime *rtd = substream->private_data; in tegra_pcm_open() local
76 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); in tegra_pcm_open()
79 if (rtd->dai_link->no_pcm) in tegra_pcm_open()
91 dev_err(rtd->dev, "failed to set constraint %d\n", ret); in tegra_pcm_open()
105 dev_err(rtd->dev, in tegra_pcm_open()
121 struct snd_soc_pcm_runtime *rtd = substream->private_data; in tegra_pcm_close() local
123 if (rtd->dai_link->no_pcm) in tegra_pcm_close()
136 struct snd_soc_pcm_runtime *rtd = substream->private_data; in tegra_pcm_hw_params() local
142 if (rtd->dai_link->no_pcm) in tegra_pcm_hw_params()
145 dmap = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream); in tegra_pcm_hw_params()
[all …]
/Linux-v5.10/sound/soc/intel/boards/
Dsof_sdw_rt1308.c38 static int first_spk_init(struct snd_soc_pcm_runtime *rtd) in first_spk_init() argument
40 struct snd_soc_card *card = rtd->card; in first_spk_init()
65 dev_err(rtd->dev, "failed to add first SPK map: %d\n", ret); in first_spk_init()
70 static int second_spk_init(struct snd_soc_pcm_runtime *rtd) in second_spk_init() argument
72 struct snd_soc_card *card = rtd->card; in second_spk_init()
77 dev_err(rtd->dev, "failed to add second SPK map: %d\n", ret); in second_spk_init()
82 static int all_spk_init(struct snd_soc_pcm_runtime *rtd) in all_spk_init() argument
86 ret = first_spk_init(rtd); in all_spk_init()
90 return second_spk_init(rtd); in all_spk_init()
96 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in rt1308_i2s_hw_params() local
[all …]
Dsof_sdw_rt1316.c37 static int first_spk_init(struct snd_soc_pcm_runtime *rtd) in first_spk_init() argument
39 struct snd_soc_card *card = rtd->card; in first_spk_init()
64 dev_err(rtd->dev, "failed to add first SPK map: %d\n", ret); in first_spk_init()
69 static int second_spk_init(struct snd_soc_pcm_runtime *rtd) in second_spk_init() argument
71 struct snd_soc_card *card = rtd->card; in second_spk_init()
76 dev_err(rtd->dev, "failed to add second SPK map: %d\n", ret); in second_spk_init()
81 static int all_spk_init(struct snd_soc_pcm_runtime *rtd) in all_spk_init() argument
85 ret = first_spk_init(rtd); in all_spk_init()
89 return second_spk_init(rtd); in all_spk_init()
Dcml_rt1011_rt5682.c124 static int cml_rt5682_codec_init(struct snd_soc_pcm_runtime *rtd) in cml_rt5682_codec_init() argument
126 struct card_private *ctx = snd_soc_card_get_drvdata(rtd->card); in cml_rt5682_codec_init()
127 struct snd_soc_component *component = asoc_rtd_to_codec(rtd, 0)->component; in cml_rt5682_codec_init()
140 ret = snd_soc_card_jack_new(rtd->card, "Headset Jack", in cml_rt5682_codec_init()
146 dev_err(rtd->dev, "Headset Jack creation failed: %d\n", ret); in cml_rt5682_codec_init()
158 dev_err(rtd->dev, "Headset Jack call-back failed: %d\n", ret); in cml_rt5682_codec_init()
163 static void cml_rt5682_codec_exit(struct snd_soc_pcm_runtime *rtd) in cml_rt5682_codec_exit() argument
165 struct snd_soc_component *component = asoc_rtd_to_codec(rtd, 0)->component; in cml_rt5682_codec_exit()
170 static int cml_rt1011_spk_init(struct snd_soc_pcm_runtime *rtd) in cml_rt1011_spk_init() argument
173 struct snd_soc_card *card = rtd->card; in cml_rt1011_spk_init()
[all …]
Dkbl_rt5660.c136 static int kabylake_ssp0_fixup(struct snd_soc_pcm_runtime *rtd, in kabylake_ssp0_fixup() argument
156 static int kabylake_rt5660_codec_init(struct snd_soc_pcm_runtime *rtd) in kabylake_rt5660_codec_init() argument
159 struct kbl_codec_private *ctx = snd_soc_card_get_drvdata(rtd->card); in kabylake_rt5660_codec_init()
160 struct snd_soc_component *component = asoc_rtd_to_codec(rtd, 0)->component; in kabylake_rt5660_codec_init()
176 ret = snd_soc_card_jack_new(rtd->card, "Lineout Jack", in kabylake_rt5660_codec_init()
190 ret = snd_soc_card_jack_new(rtd->card, "Mic Jack", in kabylake_rt5660_codec_init()
210 static void kabylake_rt5660_codec_exit(struct snd_soc_pcm_runtime *rtd) in kabylake_rt5660_codec_exit() argument
212 struct kbl_codec_private *ctx = snd_soc_card_get_drvdata(rtd->card); in kabylake_rt5660_codec_exit()
222 static int kabylake_hdmi_init(struct snd_soc_pcm_runtime *rtd, int device) in kabylake_hdmi_init() argument
224 struct kbl_codec_private *ctx = snd_soc_card_get_drvdata(rtd->card); in kabylake_hdmi_init()
[all …]
Dkbl_rt5663_max98927.c241 static int kabylake_rt5663_fe_init(struct snd_soc_pcm_runtime *rtd) in kabylake_rt5663_fe_init() argument
245 struct snd_soc_component *component = asoc_rtd_to_cpu(rtd, 0)->component; in kabylake_rt5663_fe_init()
250 dev_err(rtd->dev, "Ref Cap ignore suspend failed %d\n", ret); in kabylake_rt5663_fe_init()
257 static int kabylake_rt5663_codec_init(struct snd_soc_pcm_runtime *rtd) in kabylake_rt5663_codec_init() argument
260 struct kbl_rt5663_private *ctx = snd_soc_card_get_drvdata(rtd->card); in kabylake_rt5663_codec_init()
261 struct snd_soc_component *component = asoc_rtd_to_codec(rtd, 0)->component; in kabylake_rt5663_codec_init()
273 dev_err(rtd->dev, "Headset Jack creation failed %d\n", ret); in kabylake_rt5663_codec_init()
288 static int kabylake_rt5663_max98927_codec_init(struct snd_soc_pcm_runtime *rtd) in kabylake_rt5663_max98927_codec_init() argument
292 ret = kabylake_rt5663_codec_init(rtd); in kabylake_rt5663_max98927_codec_init()
296 ret = snd_soc_dapm_ignore_suspend(&rtd->card->dapm, "SoC DMIC"); in kabylake_rt5663_max98927_codec_init()
[all …]
Dkbl_rt5663_rt5514_max98927.c206 static int kabylake_rt5663_fe_init(struct snd_soc_pcm_runtime *rtd) in kabylake_rt5663_fe_init() argument
209 struct snd_soc_component *component = asoc_rtd_to_cpu(rtd, 0)->component; in kabylake_rt5663_fe_init()
215 dev_err(rtd->dev, "Ref Cap -Ignore suspend failed = %d\n", ret); in kabylake_rt5663_fe_init()
220 static int kabylake_rt5663_codec_init(struct snd_soc_pcm_runtime *rtd) in kabylake_rt5663_codec_init() argument
223 struct kbl_codec_private *ctx = snd_soc_card_get_drvdata(rtd->card); in kabylake_rt5663_codec_init()
224 struct snd_soc_component *component = asoc_rtd_to_codec(rtd, 0)->component; in kabylake_rt5663_codec_init()
236 dev_err(rtd->dev, "Headset Jack creation failed %d\n", ret); in kabylake_rt5663_codec_init()
248 ret = snd_soc_dapm_ignore_suspend(&rtd->card->dapm, "DMIC"); in kabylake_rt5663_codec_init()
250 dev_err(rtd->dev, "DMIC - Ignore suspend failed = %d\n", ret); in kabylake_rt5663_codec_init()
255 static int kabylake_hdmi_init(struct snd_soc_pcm_runtime *rtd, int device) in kabylake_hdmi_init() argument
[all …]
/Linux-v5.10/sound/soc/samsung/
Dlittlemill.c21 struct snd_soc_pcm_runtime *rtd; in littlemill_set_bias_level() local
25 rtd = snd_soc_get_pcm_runtime(card, &card->dai_link[0]); in littlemill_set_bias_level()
26 aif1_dai = asoc_rtd_to_codec(rtd, 0); in littlemill_set_bias_level()
68 struct snd_soc_pcm_runtime *rtd; in littlemill_set_bias_level_post() local
72 rtd = snd_soc_get_pcm_runtime(card, &card->dai_link[0]); in littlemill_set_bias_level_post()
73 aif1_dai = asoc_rtd_to_codec(rtd, 0); in littlemill_set_bias_level_post()
107 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in littlemill_hw_params() local
108 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in littlemill_hw_params()
179 struct snd_soc_pcm_runtime *rtd; in bbclk_ev() local
183 rtd = snd_soc_get_pcm_runtime(card, &card->dai_link[1]); in bbclk_ev()
[all …]
Ds3c24xx_uda134x.c52 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in s3c24xx_uda134x_startup() local
53 struct s3c24xx_uda134x *priv = snd_soc_card_get_drvdata(rtd->card); in s3c24xx_uda134x_startup()
54 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); in s3c24xx_uda134x_startup()
60 priv->xtal = clk_get(rtd->dev, "xtal"); in s3c24xx_uda134x_startup()
62 dev_err(rtd->dev, "%s cannot get xtal\n", __func__); in s3c24xx_uda134x_startup()
67 dev_err(rtd->dev, "%s cannot get pclk\n", in s3c24xx_uda134x_startup()
95 dev_err(rtd->dev, "%s cannot set constraints\n", in s3c24xx_uda134x_startup()
104 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in s3c24xx_uda134x_shutdown() local
105 struct s3c24xx_uda134x *priv = snd_soc_card_get_drvdata(rtd->card); in s3c24xx_uda134x_shutdown()
121 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in s3c24xx_uda134x_hw_params() local
[all …]
/Linux-v5.10/sound/soc/uniphier/
Daio-compress.c24 static int uniphier_aio_comprdma_new(struct snd_soc_pcm_runtime *rtd) in uniphier_aio_comprdma_new() argument
26 struct snd_compr *compr = rtd->compr; in uniphier_aio_comprdma_new()
28 struct uniphier_aio *aio = uniphier_priv(asoc_rtd_to_cpu(rtd, 0)); in uniphier_aio_comprdma_new()
57 static int uniphier_aio_comprdma_free(struct snd_soc_pcm_runtime *rtd) in uniphier_aio_comprdma_free() argument
59 struct snd_compr *compr = rtd->compr; in uniphier_aio_comprdma_free()
61 struct uniphier_aio *aio = uniphier_priv(asoc_rtd_to_cpu(rtd, 0)); in uniphier_aio_comprdma_free()
78 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in uniphier_aio_compr_open() local
79 struct uniphier_aio *aio = uniphier_priv(asoc_rtd_to_cpu(rtd, 0)); in uniphier_aio_compr_open()
90 ret = uniphier_aio_comprdma_new(rtd); in uniphier_aio_compr_open()
104 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in uniphier_aio_compr_free() local
[all …]
/Linux-v5.10/sound/soc/sh/
Ddma-sh7760.c121 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in camelot_pcm_open() local
122 struct camelot_pcm *cam = &cam_pcm_data[asoc_rtd_to_cpu(rtd, 0)->id]; in camelot_pcm_open()
135 asoc_rtd_to_cpu(rtd, 0)->id); in camelot_pcm_open()
144 asoc_rtd_to_cpu(rtd, 0)->id); in camelot_pcm_open()
155 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in camelot_pcm_close() local
156 struct camelot_pcm *cam = &cam_pcm_data[asoc_rtd_to_cpu(rtd, 0)->id]; in camelot_pcm_close()
177 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in camelot_hw_params() local
178 struct camelot_pcm *cam = &cam_pcm_data[asoc_rtd_to_cpu(rtd, 0)->id]; in camelot_hw_params()
196 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in camelot_prepare() local
197 struct camelot_pcm *cam = &cam_pcm_data[asoc_rtd_to_cpu(rtd, 0)->id]; in camelot_prepare()
[all …]
/Linux-v5.10/sound/soc/sof/
Dcompress.c74 struct snd_compr_runtime *rtd = cstream->runtime; in sof_probe_compr_set_params() local
81 ret = snd_compr_malloc_pages(cstream, rtd->buffer_size); in sof_probe_compr_set_params()
90 rtd->dma_bytes); in sof_probe_compr_set_params()
124 struct snd_compr_runtime *rtd = cstream->runtime; in sof_probe_compr_copy() local
129 if (count > rtd->buffer_size) in sof_probe_compr_copy()
130 count = rtd->buffer_size; in sof_probe_compr_copy()
132 div_u64_rem(rtd->total_bytes_transferred, rtd->buffer_size, &offset); in sof_probe_compr_copy()
133 ptr = rtd->dma_area + offset; in sof_probe_compr_copy()
134 n = rtd->buffer_size - offset; in sof_probe_compr_copy()
140 ret += copy_to_user(buf + n, rtd->dma_area, count - n); in sof_probe_compr_copy()
Dpcm.c28 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in create_page_table() local
33 spcm = snd_sof_find_spcm_dai(component, rtd); in create_page_table()
74 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in snd_sof_pcm_period_elapsed() local
76 snd_soc_rtdcom_lookup(rtd, SOF_AUDIO_PCM_DRV_NAME); in snd_sof_pcm_period_elapsed()
79 spcm = snd_sof_find_spcm_dai(component, rtd); in snd_sof_pcm_period_elapsed()
123 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in sof_pcm_hw_params() local
132 if (rtd->dai_link->no_pcm) in sof_pcm_hw_params()
135 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_pcm_hw_params()
240 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in sof_pcm_hw_free() local
246 if (rtd->dai_link->no_pcm) in sof_pcm_hw_free()
[all …]
/Linux-v5.10/sound/soc/generic/
Dsimple-card-utils.c196 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in asoc_simple_startup() local
197 struct asoc_simple_priv *priv = snd_soc_card_get_drvdata(rtd->card); in asoc_simple_startup()
198 struct simple_dai_props *dai_props = simple_priv_to_props(priv, rtd->num); in asoc_simple_startup()
215 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in asoc_simple_shutdown() local
216 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in asoc_simple_shutdown()
217 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); in asoc_simple_shutdown()
218 struct asoc_simple_priv *priv = snd_soc_card_get_drvdata(rtd->card); in asoc_simple_shutdown()
220 simple_priv_to_props(priv, rtd->num); in asoc_simple_shutdown()
251 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in asoc_simple_hw_params() local
252 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in asoc_simple_hw_params()
[all …]

12345678910>>...12