Home
last modified time | relevance | path

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

12345678910>>...15

/Linux-v6.1/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.c27 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in snd_soc_compr_components_open() local
32 for_each_rtd_components(rtd, i, component) { in snd_soc_compr_components_open()
48 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in snd_soc_compr_components_free() local
52 for_each_rtd_components(rtd, i, component) { in snd_soc_compr_components_free()
60 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in soc_compr_clean() local
61 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); in soc_compr_clean()
62 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in soc_compr_clean()
65 mutex_lock_nested(&rtd->card->pcm_mutex, rtd->card->pcm_subclass); in soc_compr_clean()
68 snd_soc_runtime_deactivate(rtd, stream); in soc_compr_clean()
85 snd_soc_dapm_stream_stop(rtd, stream); in soc_compr_clean()
[all …]
Dsoc-pcm.c30 #define soc_pcm_ret(rtd, ret) _soc_pcm_ret(rtd, __func__, ret) argument
31 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()
52 static inline void snd_soc_dpcm_mutex_lock(struct snd_soc_pcm_runtime *rtd) in snd_soc_dpcm_mutex_lock() argument
54 mutex_lock_nested(&rtd->card->pcm_mutex, rtd->card->pcm_subclass); in snd_soc_dpcm_mutex_lock()
57 static inline void snd_soc_dpcm_mutex_unlock(struct snd_soc_pcm_runtime *rtd) in snd_soc_dpcm_mutex_unlock() argument
59 mutex_unlock(&rtd->card->pcm_mutex); in snd_soc_dpcm_mutex_unlock()
62 #define snd_soc_dpcm_mutex_assert_held(rtd) \ argument
63 lockdep_assert_held(&(rtd)->card->pcm_mutex)
[all …]
Dsoc-component.c467 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in snd_soc_component_compr_trigger() local
471 for_each_rtd_components(rtd, i, component) { in snd_soc_component_compr_trigger()
488 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in snd_soc_component_compr_set_params() local
492 for_each_rtd_components(rtd, i, component) { in snd_soc_component_compr_set_params()
509 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in snd_soc_component_compr_get_params() local
513 for_each_rtd_components(rtd, i, component) { in snd_soc_component_compr_get_params()
529 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in snd_soc_component_compr_get_caps() local
533 mutex_lock_nested(&rtd->card->pcm_mutex, rtd->card->pcm_subclass); in snd_soc_component_compr_get_caps()
535 for_each_rtd_components(rtd, i, component) { in snd_soc_component_compr_get_caps()
544 mutex_unlock(&rtd->card->pcm_mutex); in snd_soc_component_compr_get_caps()
[all …]
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()
241 static int snd_soc_rtd_add_component(struct snd_soc_pcm_runtime *rtd, in snd_soc_rtd_add_component() argument
247 for_each_rtd_components(rtd, i, comp) { in snd_soc_rtd_add_component()
254 rtd->components[rtd->num_components] = component; in snd_soc_rtd_add_component()
[all …]
/Linux-v6.1/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-v6.1/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()
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-v6.1/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.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-v6.1/sound/soc/amd/vangogh/
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 …]
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 …]
Dacp5x.h150 static inline u64 acp_get_byte_count(struct i2s_stream_instance *rtd, in acp_get_byte_count() argument
156 switch (rtd->i2s_instance) { in acp_get_byte_count()
159 acp_readl(rtd->acp5x_base + in acp_get_byte_count()
162 acp_readl(rtd->acp5x_base + in acp_get_byte_count()
168 acp_readl(rtd->acp5x_base + in acp_get_byte_count()
171 acp_readl(rtd->acp5x_base + in acp_get_byte_count()
175 switch (rtd->i2s_instance) { in acp_get_byte_count()
178 acp_readl(rtd->acp5x_base + in acp_get_byte_count()
181 acp_readl(rtd->acp5x_base + in acp_get_byte_count()
187 acp_readl(rtd->acp5x_base + in acp_get_byte_count()
[all …]
/Linux-v6.1/sound/soc/qcom/
Dsc7280.c45 static int sc7280_headset_init(struct snd_soc_pcm_runtime *rtd) in sc7280_headset_init() argument
47 struct snd_soc_card *card = rtd->card; in sc7280_headset_init()
49 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in sc7280_headset_init()
50 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); in sc7280_headset_init()
85 for_each_rtd_codec_dais(rtd, i, codec_dai) { in sc7280_headset_init()
100 static int sc7280_hdmi_init(struct snd_soc_pcm_runtime *rtd) in sc7280_hdmi_init() argument
102 struct snd_soc_card *card = rtd->card; in sc7280_hdmi_init()
104 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in sc7280_hdmi_init()
124 static int sc7280_rt5682_init(struct snd_soc_pcm_runtime *rtd) in sc7280_rt5682_init() argument
126 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); in sc7280_rt5682_init()
[all …]
Dsc7180.c45 static int sc7180_headset_init(struct snd_soc_pcm_runtime *rtd) in sc7180_headset_init() argument
47 struct snd_soc_card *card = rtd->card; in sc7180_headset_init()
49 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in sc7180_headset_init()
80 static int sc7180_hdmi_init(struct snd_soc_pcm_runtime *rtd) in sc7180_hdmi_init() argument
82 struct snd_soc_card *card = rtd->card; in sc7180_hdmi_init()
84 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in sc7180_hdmi_init()
106 static int sc7180_init(struct snd_soc_pcm_runtime *rtd) in sc7180_init() argument
108 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); in sc7180_init()
112 return sc7180_headset_init(rtd); in sc7180_init()
116 return sc7180_hdmi_init(rtd); in sc7180_init()
[all …]
Dsdm845.c50 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in sdm845_slim_snd_hw_params() local
51 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); in sdm845_slim_snd_hw_params()
53 struct sdm845_snd_data *pdata = snd_soc_card_get_drvdata(rtd->card); in sdm845_slim_snd_hw_params()
59 for_each_rtd_codec_dais(rtd, i, codec_dai) { in sdm845_slim_snd_hw_params()
90 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in sdm845_tdm_snd_hw_params() local
91 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); in sdm845_tdm_snd_hw_params()
101 dev_err(rtd->dev, "%s: invalid param format 0x%x\n", in sdm845_tdm_snd_hw_params()
111 dev_err(rtd->dev, "%s: failed to set tdm slot, err:%d\n", in sdm845_tdm_snd_hw_params()
119 dev_err(rtd->dev, "%s: failed to set channel map, err:%d\n", in sdm845_tdm_snd_hw_params()
127 dev_err(rtd->dev, "%s: failed to set tdm slot, err:%d\n", in sdm845_tdm_snd_hw_params()
[all …]
Dsm8250.c27 static int sm8250_snd_init(struct snd_soc_pcm_runtime *rtd) in sm8250_snd_init() argument
29 struct sm8250_snd_data *data = snd_soc_card_get_drvdata(rtd->card); in sm8250_snd_init()
31 return qcom_snd_wcd_jack_setup(rtd, &data->jack, &data->jack_setup); in sm8250_snd_init()
34 static int sm8250_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, in sm8250_be_hw_params_fixup() argument
52 struct snd_soc_pcm_runtime *rtd = substream->private_data; in sm8250_snd_startup() local
53 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); in sm8250_snd_startup()
54 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in sm8250_snd_startup()
74 struct snd_soc_pcm_runtime *rtd = substream->private_data; in sm8250_snd_hw_params() local
75 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); in sm8250_snd_hw_params()
76 struct sm8250_snd_data *pdata = snd_soc_card_get_drvdata(rtd->card); in sm8250_snd_hw_params()
[all …]
Dsc8280xp.c26 static int sc8280xp_snd_init(struct snd_soc_pcm_runtime *rtd) in sc8280xp_snd_init() argument
28 struct sc8280xp_snd_data *data = snd_soc_card_get_drvdata(rtd->card); in sc8280xp_snd_init()
30 return qcom_snd_wcd_jack_setup(rtd, &data->jack, &data->jack_setup); in sc8280xp_snd_init()
33 static int sc8280xp_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, in sc8280xp_be_hw_params_fixup() argument
36 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); in sc8280xp_be_hw_params_fixup()
63 struct snd_soc_pcm_runtime *rtd = substream->private_data; in sc8280xp_snd_hw_params() local
64 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); in sc8280xp_snd_hw_params()
65 struct sc8280xp_snd_data *pdata = snd_soc_card_get_drvdata(rtd->card); in sc8280xp_snd_hw_params()
72 struct snd_soc_pcm_runtime *rtd = substream->private_data; in sc8280xp_snd_prepare() local
73 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); in sc8280xp_snd_prepare()
[all …]
/Linux-v6.1/sound/soc/amd/yc/
Dacp6x-pdm-dma.c147 static void acp6x_config_dma(struct pdm_stream_instance *rtd, int direction) in acp6x_config_dma() argument
153 addr = rtd->dma_addr; in acp6x_config_dma()
157 acp6x_writel(ACP_SRAM_PTE_OFFSET | BIT(31), rtd->acp6x_base + in acp6x_config_dma()
159 acp6x_writel(PAGE_SIZE_4K_ENABLE, rtd->acp6x_base + in acp6x_config_dma()
161 for (page_idx = 0; page_idx < rtd->num_pages; page_idx++) { in acp6x_config_dma()
166 acp6x_writel(low, rtd->acp6x_base + ACP_SCRATCH_REG_0 + val); in acp6x_config_dma()
168 acp6x_writel(high, rtd->acp6x_base + ACP_SCRATCH_REG_0 + val + 4); in acp6x_config_dma()
213 struct pdm_stream_instance *rtd; in acp6x_pdm_dma_hw_params() local
216 rtd = substream->runtime->private_data; in acp6x_pdm_dma_hw_params()
217 if (!rtd) in acp6x_pdm_dma_hw_params()
[all …]
/Linux-v6.1/sound/soc/amd/ps/
Dps-pdm-dma.c147 static void acp62_config_dma(struct pdm_stream_instance *rtd, int direction) in acp62_config_dma() argument
153 addr = rtd->dma_addr; in acp62_config_dma()
157 acp62_writel(ACP_SRAM_PTE_OFFSET | BIT(31), rtd->acp62_base + in acp62_config_dma()
159 acp62_writel(PAGE_SIZE_4K_ENABLE, rtd->acp62_base + in acp62_config_dma()
161 for (page_idx = 0; page_idx < rtd->num_pages; page_idx++) { in acp62_config_dma()
166 acp62_writel(low, rtd->acp62_base + ACP_SCRATCH_REG_0 + val); in acp62_config_dma()
168 acp62_writel(high, rtd->acp62_base + ACP_SCRATCH_REG_0 + val + 4); in acp62_config_dma()
213 struct pdm_stream_instance *rtd; in acp62_pdm_dma_hw_params() local
216 rtd = substream->runtime->private_data; in acp62_pdm_dma_hw_params()
217 if (!rtd) in acp62_pdm_dma_hw_params()
[all …]
/Linux-v6.1/sound/soc/amd/renoir/
Dacp3x-pdm-dma.c170 static void config_acp_dma(struct pdm_stream_instance *rtd, int direction) in config_acp_dma() argument
176 addr = rtd->dma_addr; in config_acp_dma()
180 rn_writel(ACP_SRAM_PTE_OFFSET | BIT(31), rtd->acp_base + in config_acp_dma()
182 rn_writel(PAGE_SIZE_4K_ENABLE, rtd->acp_base + in config_acp_dma()
185 for (page_idx = 0; page_idx < rtd->num_pages; page_idx++) { in config_acp_dma()
190 rn_writel(low, rtd->acp_base + ACP_SCRATCH_REG_0 + val); in config_acp_dma()
192 rn_writel(high, rtd->acp_base + ACP_SCRATCH_REG_0 + val + 4); in config_acp_dma()
237 struct pdm_stream_instance *rtd; in acp_pdm_dma_hw_params() local
240 rtd = substream->runtime->private_data; in acp_pdm_dma_hw_params()
241 if (!rtd) in acp_pdm_dma_hw_params()
[all …]
/Linux-v6.1/sound/soc/sof/
Dcompress.c49 struct snd_soc_pcm_runtime *rtd; in snd_sof_compr_fragment_elapsed() local
58 rtd = cstream->private_data; in snd_sof_compr_fragment_elapsed()
61 component = snd_soc_rtdcom_lookup(rtd, SOF_AUDIO_PCM_DRV_NAME); in snd_sof_compr_fragment_elapsed()
63 spcm = snd_sof_find_spcm_dai(component, rtd); in snd_sof_compr_fragment_elapsed()
82 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in create_page_table() local
86 spcm = snd_sof_find_spcm_dai(component, rtd); in create_page_table()
97 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in sof_compr_open() local
107 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_compr_open()
135 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 …]
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()
63 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in snd_sof_pcm_period_elapsed() local
65 snd_soc_rtdcom_lookup(rtd, SOF_AUDIO_PCM_DRV_NAME); in snd_sof_pcm_period_elapsed()
68 spcm = snd_sof_find_spcm_dai(component, rtd); in snd_sof_pcm_period_elapsed()
88 sof_pcm_setup_connected_widgets(struct snd_sof_dev *sdev, struct snd_soc_pcm_runtime *rtd, in sof_pcm_setup_connected_widgets() argument
96 for_each_rtd_cpu_dais(rtd, j, dai) { in sof_pcm_setup_connected_widgets()
127 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in sof_pcm_hw_params() local
135 if (rtd->dai_link->no_pcm) in sof_pcm_hw_params()
138 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_pcm_hw_params()
[all …]
/Linux-v6.1/sound/soc/tegra/
Dtegra_pcm.c79 struct snd_soc_pcm_runtime *rtd = substream->private_data; in tegra_pcm_open() local
82 struct snd_soc_dai *cpu_dai = asoc_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()
127 struct snd_soc_pcm_runtime *rtd = substream->private_data; in tegra_pcm_close() local
129 if (rtd->dai_link->no_pcm) in tegra_pcm_close()
142 struct snd_soc_pcm_runtime *rtd = substream->private_data; in tegra_pcm_hw_params() local
148 if (rtd->dai_link->no_pcm) in tegra_pcm_hw_params()
151 dmap = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream); in tegra_pcm_hw_params()
[all …]
/Linux-v6.1/sound/soc/intel/boards/
Dsof_realtek_common.c71 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in rt1011_hw_params() local
77 for_each_rtd_codec_dais(rtd, i, codec_dai) { in rt1011_hw_params()
118 static int rt1011_init(struct snd_soc_pcm_runtime *rtd) in rt1011_init() argument
120 struct snd_soc_card *card = rtd->card; in rt1011_init()
126 dev_err(rtd->dev, "Speaker map addition failed: %d\n", ret); in rt1011_init()
217 static int rt1015p_init(struct snd_soc_pcm_runtime *rtd) in rt1015p_init() argument
219 struct snd_soc_card *card = rtd->card; in rt1015p_init()
229 dev_err(rtd->dev, "Speaker map addition failed: %d\n", ret); in rt1015p_init()
267 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in rt1015_hw_params() local
268 struct snd_soc_dai_link *dai_link = rtd->dai_link; in rt1015_hw_params()
[all …]
/Linux-v6.1/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 …]

12345678910>>...15