Home
last modified time | relevance | path

Searched full:rtd (Results 1 – 25 of 299) sorted by relevance

12345678910>>...12

/linux/sound/soc/amd/
H A 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/drivers/rtc/
H A 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()
53 rtd->alarm.expires = expires; in test_rtc_set_alarm()
56 add_timer(&rtd->alarm); in test_rtc_set_alarm()
58 rtd->alarm_en = alrm->enabled; in test_rtc_set_alarm()
[all …]
/linux/sound/soc/amd/raven/
H A 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 …]
H A Dacp3x-pcm-dma.c107 static void config_acp3x_dma(struct i2s_stream_instance *rtd, int direction) in config_acp3x_dma() argument
114 addr = rtd->dma_addr; in config_acp3x_dma()
117 switch (rtd->i2s_instance) { in config_acp3x_dma()
126 switch (rtd->i2s_instance) { in config_acp3x_dma()
136 rv_writel(ACP_SRAM_PTE_OFFSET | BIT(31), rtd->acp3x_base + in config_acp3x_dma()
138 rv_writel(PAGE_SIZE_4K_ENABLE, rtd->acp3x_base + in config_acp3x_dma()
141 for (page_idx = 0; page_idx < rtd->num_pages; page_idx++) { in config_acp3x_dma()
146 rv_writel(low, rtd->acp3x_base + mmACP_SCRATCH_REG_0 + val); in config_acp3x_dma()
148 rv_writel(high, rtd->acp3x_base + mmACP_SCRATCH_REG_0 + val in config_acp3x_dma()
156 switch (rtd->i2s_instance) { in config_acp3x_dma()
[all …]
/linux/sound/soc/amd/vangogh/
H A Dacp5x-pcm-dma.c103 static void config_acp5x_dma(struct i2s_stream_instance *rtd, int direction) in config_acp5x_dma() argument
110 addr = rtd->dma_addr; in config_acp5x_dma()
112 switch (rtd->i2s_instance) { in config_acp5x_dma()
121 switch (rtd->i2s_instance) { in config_acp5x_dma()
131 acp_writel(ACP_SRAM_PTE_OFFSET | BIT(31), rtd->acp5x_base + in config_acp5x_dma()
133 acp_writel(PAGE_SIZE_4K_ENABLE, rtd->acp5x_base + in config_acp5x_dma()
136 for (page_idx = 0; page_idx < rtd->num_pages; page_idx++) { in config_acp5x_dma()
141 acp_writel(low, rtd->acp5x_base + ACP_SCRATCH_REG_0 + val); in config_acp5x_dma()
143 acp_writel(high, rtd->acp5x_base + ACP_SCRATCH_REG_0 + val + 4); in config_acp5x_dma()
150 switch (rtd->i2s_instance) { in config_acp5x_dma()
[all …]
H A Dacp5x-i2s.c86 struct i2s_stream_instance *rtd; in acp5x_i2s_hwparams() local
99 rtd = substream->runtime->private_data; in acp5x_i2s_hwparams()
105 rtd->i2s_instance = pinfo->play_i2s_instance; in acp5x_i2s_hwparams()
107 rtd->i2s_instance = pinfo->cap_i2s_instance; in acp5x_i2s_hwparams()
114 rtd->xfer_resolution = 0x0; in acp5x_i2s_hwparams()
117 rtd->xfer_resolution = 0x02; in acp5x_i2s_hwparams()
120 rtd->xfer_resolution = 0x04; in acp5x_i2s_hwparams()
123 rtd->xfer_resolution = 0x05; in acp5x_i2s_hwparams()
129 switch (rtd->i2s_instance) { in acp5x_i2s_hwparams()
140 switch (rtd->i2s_instance) { in acp5x_i2s_hwparams()
[all …]
H A Dacp5x.h152 static inline u64 acp_get_byte_count(struct i2s_stream_instance *rtd, in acp_get_byte_count() argument
158 switch (rtd->i2s_instance) { in acp_get_byte_count()
161 acp_readl(rtd->acp5x_base + in acp_get_byte_count()
164 acp_readl(rtd->acp5x_base + in acp_get_byte_count()
170 acp_readl(rtd->acp5x_base + in acp_get_byte_count()
173 acp_readl(rtd->acp5x_base + in acp_get_byte_count()
177 switch (rtd->i2s_instance) { in acp_get_byte_count()
180 acp_readl(rtd->acp5x_base + in acp_get_byte_count()
183 acp_readl(rtd->acp5x_base + in acp_get_byte_count()
189 acp_readl(rtd->acp5x_base + in acp_get_byte_count()
[all …]
/linux/sound/soc/qcom/
H A Dsc7180.c57 static int sc7180_headset_init(struct snd_soc_pcm_runtime *rtd) in sc7180_headset_init() argument
59 struct snd_soc_card *card = rtd->card; in sc7180_headset_init()
61 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in sc7180_headset_init()
93 static int sc7180_hdmi_init(struct snd_soc_pcm_runtime *rtd) in sc7180_hdmi_init() argument
95 struct snd_soc_card *card = rtd->card; in sc7180_hdmi_init()
97 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in sc7180_hdmi_init()
119 static int sc7180_init(struct snd_soc_pcm_runtime *rtd) in sc7180_init() argument
121 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sc7180_init()
125 return sc7180_headset_init(rtd); in sc7180_init()
129 return sc7180_hdmi_init(rtd); in sc7180_init()
[all …]
H A Dsc7280.c60 static int sc7280_headset_init(struct snd_soc_pcm_runtime *rtd) in sc7280_headset_init() argument
62 struct snd_soc_card *card = rtd->card; in sc7280_headset_init()
64 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in sc7280_headset_init()
65 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sc7280_headset_init()
102 for_each_rtd_codec_dais(rtd, i, codec_dai) { in sc7280_headset_init()
117 static int sc7280_hdmi_init(struct snd_soc_pcm_runtime *rtd) in sc7280_hdmi_init() argument
119 struct snd_soc_card *card = rtd->card; in sc7280_hdmi_init()
121 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in sc7280_hdmi_init()
141 static int sc7280_rt5682_init(struct snd_soc_pcm_runtime *rtd) in sc7280_rt5682_init() argument
143 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sc7280_rt5682_init()
[all …]
H A Dsdm845.c62 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sdm845_slim_snd_hw_params() local
63 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sdm845_slim_snd_hw_params()
65 struct sdm845_snd_data *pdata = snd_soc_card_get_drvdata(rtd->card); in sdm845_slim_snd_hw_params()
71 for_each_rtd_codec_dais(rtd, i, codec_dai) { in sdm845_slim_snd_hw_params()
102 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sdm845_tdm_snd_hw_params() local
103 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sdm845_tdm_snd_hw_params()
113 dev_err(rtd->dev, "%s: invalid param format 0x%x\n", in sdm845_tdm_snd_hw_params()
123 dev_err(rtd->dev, "%s: failed to set tdm slot, err:%d\n", in sdm845_tdm_snd_hw_params()
131 dev_err(rtd->dev, "%s: failed to set channel map, err:%d\n", in sdm845_tdm_snd_hw_params()
139 dev_err(rtd->dev, "%s: failed to set tdm slot, err:%d\n", in sdm845_tdm_snd_hw_params()
[all …]
H A Dsm8250.c28 static int sm8250_snd_init(struct snd_soc_pcm_runtime *rtd) in sm8250_snd_init() argument
30 struct sm8250_snd_data *data = snd_soc_card_get_drvdata(rtd->card); in sm8250_snd_init()
32 return qcom_snd_wcd_jack_setup(rtd, &data->jack, &data->jack_setup); in sm8250_snd_init()
35 static int sm8250_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, in sm8250_be_hw_params_fixup() argument
53 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sm8250_snd_startup() local
54 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sm8250_snd_startup()
55 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in sm8250_snd_startup()
91 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sm8250_snd_shutdown() local
92 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sm8250_snd_shutdown()
93 struct sm8250_snd_data *data = snd_soc_card_get_drvdata(rtd->card); in sm8250_snd_shutdown()
[all …]
/linux/sound/soc/
H A Dsoc-pcm.c29 #define soc_pcm_ret(rtd, ret) _soc_pcm_ret(rtd, __func__, ret) argument
30 static inline int _soc_pcm_ret(struct snd_soc_pcm_runtime *rtd, in _soc_pcm_ret() argument
44 dev_err(rtd->dev, in _soc_pcm_ret()
46 func, rtd->dai_link->name, ret); in _soc_pcm_ret()
153 static inline const char *soc_cpu_dai_name(struct snd_soc_pcm_runtime *rtd) in soc_cpu_dai_name() argument
155 return (rtd)->dai_link->num_cpus == 1 ? snd_soc_rtd_to_cpu(rtd, 0)->name : "multicpu"; in soc_cpu_dai_name()
157 static inline const char *soc_codec_dai_name(struct snd_soc_pcm_runtime *rtd) in soc_codec_dai_name() argument
159 return (rtd)->dai_link->num_codecs == 1 ? snd_soc_rtd_to_codec(rtd, 0)->name : "multicodec"; in soc_codec_dai_name()
286 void soc_dpcm_debugfs_add(struct snd_soc_pcm_runtime *rtd) in soc_dpcm_debugfs_add() argument
288 if (!rtd->dai_link->dynamic) in soc_dpcm_debugfs_add()
[all …]
H A Dsoc-component.c524 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in snd_soc_component_compr_trigger() local
528 for_each_rtd_components(rtd, i, component) { in snd_soc_component_compr_trigger()
545 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in snd_soc_component_compr_set_params() local
549 for_each_rtd_components(rtd, i, component) { in snd_soc_component_compr_set_params()
566 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in snd_soc_component_compr_get_params() local
570 for_each_rtd_components(rtd, i, component) { in snd_soc_component_compr_get_params()
586 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in snd_soc_component_compr_get_caps() local
590 snd_soc_dpcm_mutex_lock(rtd); in snd_soc_component_compr_get_caps()
592 for_each_rtd_components(rtd, i, component) { in snd_soc_component_compr_get_caps()
601 snd_soc_dpcm_mutex_unlock(rtd); in snd_soc_component_compr_get_caps()
[all …]
H A Dsoc-core.c73 struct snd_soc_pcm_runtime *rtd = dev_get_drvdata(dev); in pmdown_time_show() local
75 return sysfs_emit(buf, "%ld\n", rtd->pmdown_time); in pmdown_time_show()
82 struct snd_soc_pcm_runtime *rtd = dev_get_drvdata(dev); in pmdown_time_store() local
85 ret = kstrtol(buf, 10, &rtd->pmdown_time); in pmdown_time_store()
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->dai_link->num_codecs ? attr->mode : 0; /* enabled only with codec */ in soc_dev_attr_is_visible()
316 static int snd_soc_rtd_add_component(struct snd_soc_pcm_runtime *rtd, in snd_soc_rtd_add_component() argument
322 for_each_rtd_components(rtd, i, comp) { in snd_soc_rtd_add_component()
329 rtd->num_components++; // increment flex array count at first in snd_soc_rtd_add_component()
[all …]
/linux/sound/soc/amd/renoir/
H A 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/sound/soc/amd/yc/
H A Dacp6x-pdm-dma.c153 static void acp6x_config_dma(struct pdm_stream_instance *rtd, int direction) in acp6x_config_dma() argument
159 addr = rtd->dma_addr; in acp6x_config_dma()
163 acp6x_writel(ACP_SRAM_PTE_OFFSET | BIT(31), rtd->acp6x_base + in acp6x_config_dma()
165 acp6x_writel(PAGE_SIZE_4K_ENABLE, rtd->acp6x_base + in acp6x_config_dma()
167 for (page_idx = 0; page_idx < rtd->num_pages; page_idx++) { in acp6x_config_dma()
172 acp6x_writel(low, rtd->acp6x_base + ACP_SCRATCH_REG_0 + val); in acp6x_config_dma()
174 acp6x_writel(high, rtd->acp6x_base + ACP_SCRATCH_REG_0 + val + 4); in acp6x_config_dma()
219 struct pdm_stream_instance *rtd; in acp6x_pdm_dma_hw_params() local
222 rtd = substream->runtime->private_data; in acp6x_pdm_dma_hw_params()
223 if (!rtd) in acp6x_pdm_dma_hw_params()
[all …]
/linux/sound/soc/amd/ps/
H A Dps-pdm-dma.c157 static void acp63_config_dma(struct pdm_stream_instance *rtd, int direction) in acp63_config_dma() argument
163 addr = rtd->dma_addr; in acp63_config_dma()
167 writel(ACP_SRAM_PTE_OFFSET | BIT(31), rtd->acp63_base + ACPAXI2AXI_ATU_BASE_ADDR_GRP_1); in acp63_config_dma()
168 writel(PAGE_SIZE_4K_ENABLE, rtd->acp63_base + ACPAXI2AXI_ATU_PAGE_SIZE_GRP_1); in acp63_config_dma()
169 for (page_idx = 0; page_idx < rtd->num_pages; page_idx++) { in acp63_config_dma()
174 writel(low, rtd->acp63_base + ACP_SCRATCH_REG_0 + val); in acp63_config_dma()
176 writel(high, rtd->acp63_base + ACP_SCRATCH_REG_0 + val + 4); in acp63_config_dma()
221 struct pdm_stream_instance *rtd; in acp63_pdm_dma_hw_params() local
224 rtd = substream->runtime->private_data; in acp63_pdm_dma_hw_params()
225 if (!rtd) in acp63_pdm_dma_hw_params()
[all …]
/linux/sound/soc/amd/acp/
H A Dacp-mach-common.c116 static int acp_card_rt5682_init(struct snd_soc_pcm_runtime *rtd) in acp_card_rt5682_init() argument
118 struct snd_soc_card *card = rtd->card; in acp_card_rt5682_init()
120 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in acp_card_rt5682_init()
124 dev_info(rtd->dev, "codec dai name = %s\n", codec_dai->name); in acp_card_rt5682_init()
135 dev_err(rtd->dev, "unable to add widget dapm controls, ret %d\n", ret); in acp_card_rt5682_init()
142 dev_err(rtd->dev, "unable to add card controls, ret %d\n", ret); in acp_card_rt5682_init()
165 dev_err(rtd->dev, "Headset Jack call-back failed: %d\n", ret); in acp_card_rt5682_init()
169 return snd_soc_dapm_add_routes(&rtd->card->dapm, rt5682_map, ARRAY_SIZE(rt5682_map)); in acp_card_rt5682_init()
175 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in acp_card_hs_startup() local
176 struct snd_soc_card *card = rtd->card; in acp_card_hs_startup()
[all …]
/linux/sound/soc/sof/
H A Dcompress.c50 struct snd_soc_pcm_runtime *rtd; in snd_sof_compr_fragment_elapsed() local
59 rtd = cstream->private_data; in snd_sof_compr_fragment_elapsed()
62 component = snd_soc_rtdcom_lookup(rtd, SOF_AUDIO_PCM_DRV_NAME); in snd_sof_compr_fragment_elapsed()
64 spcm = snd_sof_find_spcm_dai(component, rtd); in snd_sof_compr_fragment_elapsed()
83 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in create_page_table() local
87 spcm = snd_sof_find_spcm_dai(component, rtd); in create_page_table()
98 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in sof_compr_open() local
108 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_compr_open()
136 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in sof_compr_free() local
141 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_compr_free()
[all …]
/linux/sound/soc/intel/boards/
H A Dsof_realtek_common.c139 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in rt1011_hw_params() local
145 for_each_rtd_codec_dais(rtd, i, codec_dai) { in rt1011_hw_params()
186 static int rt1011_init(struct snd_soc_pcm_runtime *rtd) in rt1011_init() argument
188 struct snd_soc_card *card = rtd->card; in rt1011_init()
198 dev_err(rtd->dev, "fail to add rt1011 widgets, ret %d\n", in rt1011_init()
206 dev_err(rtd->dev, "fail to add rt1011 kcontrols, ret %d\n", in rt1011_init()
214 dev_err(rtd->dev, "fail to add rt1011 routes, ret %d\n", in rt1011_init()
231 dev_err(rtd->dev, "fail to add rt1011 widgets, ret %d\n", in rt1011_init()
239 dev_err(rtd->dev, "fail to add rt1011 controls, ret %d\n", in rt1011_init()
247 dev_err(rtd->dev, "fail to add rt1011 routes, ret %d\n", in rt1011_init()
[all …]
H A Dsof_maxim_common.c113 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in max_98373_hw_params() local
114 struct snd_soc_dai_link *dai_link = rtd->dai_link; in max_98373_hw_params()
122 for_each_rtd_codec_dais(rtd, i, codec_dai) { in max_98373_hw_params()
132 tdm_slots = sof_dai_get_tdm_slots(rtd); in max_98373_hw_params()
134 dev_err(rtd->dev, "invalid tdm slots %d\n", in max_98373_hw_params()
192 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in max_98373_trigger() local
202 cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in max_98373_trigger()
203 for_each_rtd_codec_dais(rtd, j, codec_dai) { in max_98373_trigger()
239 static int max_98373_spk_codec_init(struct snd_soc_pcm_runtime *rtd) in max_98373_spk_codec_init() argument
241 struct snd_soc_card *card = rtd->card; in max_98373_spk_codec_init()
[all …]
/linux/sound/soc/tegra/
H A Dtegra_pcm.c79 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in tegra_pcm_open() local
82 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in tegra_pcm_open()
85 if (rtd->dai_link->no_pcm) in tegra_pcm_open()
97 dev_err(rtd->dev, "failed to set constraint %d\n", ret); in tegra_pcm_open()
111 dev_err(rtd->dev, in tegra_pcm_open()
130 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in tegra_pcm_close() local
132 if (rtd->dai_link->no_pcm) in tegra_pcm_close()
145 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in tegra_pcm_hw_params() local
151 if (rtd->dai_link->no_pcm) in tegra_pcm_hw_params()
154 dmap = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream); in tegra_pcm_hw_params()
[all …]
/linux/sound/soc/uniphier/
H A 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(snd_soc_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(snd_soc_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(snd_soc_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/sound/soc/mediatek/common/
H A Dmtk-dsp-sof-common.c13 int mtk_sof_dai_link_fixup(struct snd_soc_pcm_runtime *rtd, in mtk_sof_dai_link_fixup() argument
16 struct snd_soc_card *card = rtd->card; in mtk_sof_dai_link_fixup()
27 if (conn->normal_link && strcmp(rtd->dai_link->name, conn->normal_link)) in mtk_sof_dai_link_fixup()
71 static struct snd_soc_pcm_runtime *mtk_sof_find_tplg_be(struct snd_soc_pcm_runtime *rtd) in mtk_sof_find_tplg_be() argument
73 struct snd_soc_card *card = rtd->card; in mtk_sof_find_tplg_be()
83 for_each_dpcm_fe(rtd, stream, dpcm) { in mtk_sof_find_tplg_be()
94 if (be == rtd) in mtk_sof_find_tplg_be()
110 static int mtk_sof_check_tplg_be_dai_link_fixup(struct snd_soc_pcm_runtime *rtd, in mtk_sof_check_tplg_be_dai_link_fixup() argument
113 struct snd_soc_card *card = rtd->card; in mtk_sof_check_tplg_be_dai_link_fixup()
120 sof_be = mtk_sof_find_tplg_be(rtd); in mtk_sof_check_tplg_be_dai_link_fixup()
[all …]
/linux/include/sound/
H A Dsoc_sdw_utils.h60 int (*rtd_init)(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai);
156 int (*init)(struct snd_soc_pcm_runtime *rtd),
164 int (*init)(struct snd_soc_pcm_runtime *rtd),
177 int asoc_sdw_rtd_init(struct snd_soc_pcm_runtime *rtd);
180 int asoc_sdw_dmic_init(struct snd_soc_pcm_runtime *rtd);
235 int asoc_sdw_rt_dmic_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai);
236 int asoc_sdw_rt_sdca_jack_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai);
237 int asoc_sdw_rt_amp_spk_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai);
238 int asoc_sdw_rt700_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai);
239 int asoc_sdw_rt711_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai);
[all …]

12345678910>>...12