Home
last modified time | relevance | path

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

12345678910>>...14

/linux-6.1.9/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-6.1.9/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-6.1.9/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-6.1.9/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-6.1.9/sound/soc/amd/vangogh/
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-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.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-6.1.9/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.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 = substream->private_data; in sm8250_snd_startup() local
54 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); in sm8250_snd_startup()
55 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in sm8250_snd_startup()
75 struct snd_soc_pcm_runtime *rtd = substream->private_data; in sm8250_snd_hw_params() local
76 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); in sm8250_snd_hw_params()
77 struct sm8250_snd_data *pdata = snd_soc_card_get_drvdata(rtd->card); in sm8250_snd_hw_params()
[all …]
Dsc8280xp.c27 static int sc8280xp_snd_init(struct snd_soc_pcm_runtime *rtd) in sc8280xp_snd_init() argument
29 struct sc8280xp_snd_data *data = snd_soc_card_get_drvdata(rtd->card); in sc8280xp_snd_init()
31 return qcom_snd_wcd_jack_setup(rtd, &data->jack, &data->jack_setup); in sc8280xp_snd_init()
34 static int sc8280xp_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, in sc8280xp_be_hw_params_fixup() argument
37 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); in sc8280xp_be_hw_params_fixup()
64 struct snd_soc_pcm_runtime *rtd = substream->private_data; in sc8280xp_snd_hw_params() local
65 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); in sc8280xp_snd_hw_params()
66 struct sc8280xp_snd_data *pdata = snd_soc_card_get_drvdata(rtd->card); in sc8280xp_snd_hw_params()
73 struct snd_soc_pcm_runtime *rtd = substream->private_data; in sc8280xp_snd_prepare() local
74 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); in sc8280xp_snd_prepare()
[all …]
/linux-6.1.9/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-6.1.9/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-6.1.9/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-6.1.9/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 …]
/linux-6.1.9/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-6.1.9/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 …]
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_maxim_common.c49 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in max_98373_hw_params() local
53 for_each_rtd_codec_dais(rtd, j, codec_dai) { in max_98373_hw_params()
68 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in max_98373_trigger() local
78 cpu_dai = asoc_rtd_to_cpu(rtd, 0); in max_98373_trigger()
79 for_each_rtd_codec_dais(rtd, j, codec_dai) { in max_98373_trigger()
117 int max_98373_spk_codec_init(struct snd_soc_pcm_runtime *rtd) in max_98373_spk_codec_init() argument
119 struct snd_soc_card *card = rtd->card; in max_98373_spk_codec_init()
125 dev_err(rtd->dev, "Speaker map addition failed: %d\n", ret); in max_98373_spk_codec_init()
227 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in max_98390_hw_params() local
231 for_each_rtd_codec_dais(rtd, i, codec_dai) { in max_98390_hw_params()
[all …]

12345678910>>...14