/linux-master/sound/soc/ |
H A D | soc-link.c | 11 #define soc_link_ret(rtd, ret) _soc_link_ret(rtd, __func__, ret) 12 static inline int _soc_link_ret(struct snd_soc_pcm_runtime *rtd, argument 25 dev_err(rtd->dev, 27 func, rtd->dai_link->name, ret); 37 #define soc_link_mark_push(rtd, substream, tgt) ((rtd)->mark_##tgt = substream) 38 #define soc_link_mark_pop(rtd, substream, tgt) ((rtd)->mark_##tgt = NULL) 39 #define soc_link_mark_match(rtd, substrea 41 snd_soc_link_init(struct snd_soc_pcm_runtime *rtd) argument 51 snd_soc_link_exit(struct snd_soc_pcm_runtime *rtd) argument 57 snd_soc_link_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, struct snd_pcm_hw_params *params) argument 70 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 87 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 102 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 115 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 131 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 146 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 159 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 186 struct snd_soc_pcm_runtime *rtd = cstream->private_data; local 203 struct snd_soc_pcm_runtime *rtd = cstream->private_data; local 218 struct snd_soc_pcm_runtime *rtd = cstream->private_data; local [all...] |
H A D | soc-compress.c | 26 struct snd_soc_pcm_runtime *rtd = cstream->private_data; local 31 for_each_rtd_components(rtd, i, component) { 47 struct snd_soc_pcm_runtime *rtd = cstream->private_data; local 51 for_each_rtd_components(rtd, i, component) { 59 struct snd_soc_pcm_runtime *rtd = cstream->private_data; local 60 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); 61 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); 64 snd_soc_dpcm_mutex_lock(rtd); 67 snd_soc_runtime_deactivate(rtd, stream); 84 snd_soc_dapm_stream_stop(rtd, strea 100 struct snd_soc_pcm_runtime *rtd = cstream->private_data; local 246 struct snd_soc_pcm_runtime *rtd = cstream->private_data; local 325 struct snd_soc_pcm_runtime *rtd = cstream->private_data; local 425 struct snd_soc_pcm_runtime *rtd = cstream->private_data; local 443 struct snd_soc_pcm_runtime *rtd = cstream->private_data; local 462 struct snd_soc_pcm_runtime *rtd = cstream->private_data; local 481 struct snd_soc_pcm_runtime *rtd = cstream->private_data; local 495 struct snd_soc_pcm_runtime *rtd = cstream->private_data; local 544 snd_soc_new_compress(struct snd_soc_pcm_runtime *rtd, int num) argument [all...] |
/linux-master/drivers/rtc/ |
H A D | rtc-test.c | 26 struct rtc_test_data *rtd = dev_get_drvdata(dev); local 29 alarm = (rtd->alarm.expires - jiffies) / HZ; 30 alarm += ktime_get_real_seconds() + rtd->offset; 33 alrm->enabled = rtd->alarm_en; 40 struct rtc_test_data *rtd = dev_get_drvdata(dev); local 45 timeout -= rtd->offset; 47 del_timer(&rtd->alarm); 53 rtd->alarm.expires = expires; 56 add_timer(&rtd->alarm); 58 rtd 65 struct rtc_test_data *rtd = dev_get_drvdata(dev); local 74 struct rtc_test_data *rtd = dev_get_drvdata(dev); local 83 struct rtc_test_data *rtd = dev_get_drvdata(dev); local 110 struct rtc_test_data *rtd = from_timer(rtd, t, alarm); local 117 struct rtc_test_data *rtd; local [all...] |
/linux-master/sound/soc/ux500/ |
H A D | mop500_ab8500.h | 14 int mop500_ab8500_machine_init(struct snd_soc_pcm_runtime *rtd);
|
/linux-master/sound/soc/mediatek/mt8186/ |
H A D | mt8186-mt6366-common.h | 12 int mt8186_mt6366_init(struct snd_soc_pcm_runtime *rtd);
|
H A D | mt8186-mt6366-common.c | 16 int mt8186_mt6366_init(struct snd_soc_pcm_runtime *rtd) argument 19 snd_soc_rtdcom_lookup(rtd, AFE_PCM_NAME); 21 snd_soc_rtd_to_codec(rtd, 0)->component; 24 struct snd_soc_dapm_context *dapm = &rtd->card->dapm; 34 dev_err(rtd->dev, "failed to snd_soc_dapm_sync\n");
|
/linux-master/sound/soc/qcom/ |
H A D | common.h | 10 int qcom_snd_wcd_jack_setup(struct snd_soc_pcm_runtime *rtd,
|
H A D | sc7180.c | 57 static int sc7180_headset_init(struct snd_soc_pcm_runtime *rtd) argument 59 struct snd_soc_card *card = rtd->card; 61 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); 93 static int sc7180_hdmi_init(struct snd_soc_pcm_runtime *rtd) argument 95 struct snd_soc_card *card = rtd->card; 97 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); 119 static int sc7180_init(struct snd_soc_pcm_runtime *rtd) argument 121 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); 125 return sc7180_headset_init(rtd); 129 return sc7180_hdmi_init(rtd); 138 sc7180_qdsp_init(struct snd_soc_pcm_runtime *rtd) argument 158 sc7180_startup_realtek_codec(struct snd_soc_pcm_runtime *rtd) argument 203 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 237 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 310 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 371 sc7180_adau7002_init(struct snd_soc_pcm_runtime *rtd) argument 392 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 419 sc7180_qdsp_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, struct snd_pcm_hw_params *params) argument [all...] |
H A D | x1e80100.c | 25 static int x1e80100_snd_init(struct snd_soc_pcm_runtime *rtd) argument 27 struct x1e80100_snd_data *data = snd_soc_card_get_drvdata(rtd->card); 29 return qcom_snd_wcd_jack_setup(rtd, &data->jack, &data->jack_setup); 34 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 35 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); 36 struct x1e80100_snd_data *data = snd_soc_card_get_drvdata(rtd->card); 43 static int x1e80100_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, argument 46 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); 70 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 71 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 79 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 90 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local [all...] |
H A D | sdw.c | 24 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 25 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); 34 for_each_rtd_codec_dais(rtd, i, codec_dai) { 38 dev_err(rtd->dev, "Failed to set sdw stream on %s\n", 57 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 58 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); 108 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 110 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); 122 for_each_rtd_codec_dais(rtd, i, codec_dai) { 138 struct snd_soc_pcm_runtime *rtd local [all...] |
H A D | sc7280.c | 59 static int sc7280_headset_init(struct snd_soc_pcm_runtime *rtd) argument 61 struct snd_soc_card *card = rtd->card; 63 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); 64 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); 101 for_each_rtd_codec_dais(rtd, i, codec_dai) { 116 static int sc7280_hdmi_init(struct snd_soc_pcm_runtime *rtd) argument 118 struct snd_soc_card *card = rtd->card; 120 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); 140 static int sc7280_rt5682_init(struct snd_soc_pcm_runtime *rtd) argument 142 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 179 sc7280_init(struct snd_soc_pcm_runtime *rtd) argument 208 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 240 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 271 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 290 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 315 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 342 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 384 sc7280_snd_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, struct snd_pcm_hw_params *params) argument [all...] |
/linux-master/sound/soc/amd/vangogh/ |
H A D | acp5x-i2s.c | 86 struct i2s_stream_instance *rtd; local 99 rtd = substream->runtime->private_data; 105 rtd->i2s_instance = pinfo->play_i2s_instance; 107 rtd->i2s_instance = pinfo->cap_i2s_instance; 114 rtd->xfer_resolution = 0x0; 117 rtd->xfer_resolution = 0x02; 120 rtd->xfer_resolution = 0x04; 123 rtd->xfer_resolution = 0x05; 129 switch (rtd->i2s_instance) { 140 switch (rtd 235 struct i2s_stream_instance *rtd; local [all...] |
H A D | acp5x.h | 152 static inline u64 acp_get_byte_count(struct i2s_stream_instance *rtd, argument 158 switch (rtd->i2s_instance) { 161 acp_readl(rtd->acp5x_base + 164 acp_readl(rtd->acp5x_base + 170 acp_readl(rtd->acp5x_base + 173 acp_readl(rtd->acp5x_base + 177 switch (rtd->i2s_instance) { 180 acp_readl(rtd->acp5x_base + 183 acp_readl(rtd->acp5x_base + 189 acp_readl(rtd 199 acp5x_set_i2s_clk(struct i2s_dev_data *adata, struct i2s_stream_instance *rtd) argument [all...] |
/linux-master/sound/soc/amd/ |
H A D | acp-pcm-dma.c | 331 struct audio_substream_data *rtd, 336 acp_pte_config(acp_mmio, rtd->dma_addr, rtd->num_of_pages, 337 rtd->pte_offset); 339 if (rtd->direction == SNDRV_PCM_STREAM_PLAYBACK) { 340 ch_acp_sysmem = rtd->ch1; 341 ch_acp_i2s = rtd->ch2; 343 ch_acp_i2s = rtd->ch1; 344 ch_acp_sysmem = rtd->ch2; 347 set_acp_sysmem_dma_descriptors(acp_mmio, rtd 330 config_acp_dma(void __iomem *acp_mmio, struct audio_substream_data *rtd, u32 asic_type) argument 851 struct audio_substream_data *rtd; local 1019 acp_get_byte_count(struct audio_substream_data *rtd) argument 1040 struct audio_substream_data *rtd = runtime->private_data; local 1089 struct audio_substream_data *rtd = runtime->private_data; local 1119 struct audio_substream_data *rtd = runtime->private_data; local 1160 acp_dma_new(struct snd_soc_component *component, struct snd_soc_pcm_runtime *rtd) argument 1190 struct audio_substream_data *rtd = runtime->private_data; local 1341 struct audio_substream_data *rtd; local [all...] |
/linux-master/sound/soc/amd/raven/ |
H A D | acp3x-i2s.c | 75 struct i2s_stream_instance *rtd; local 84 rtd = substream->runtime->private_data; 90 rtd->i2s_instance = pinfo->play_i2s_instance; 92 rtd->i2s_instance = pinfo->cap_i2s_instance; 99 rtd->xfer_resolution = 0x0; 102 rtd->xfer_resolution = 0x02; 105 rtd->xfer_resolution = 0x04; 108 rtd->xfer_resolution = 0x05; 114 switch (rtd->i2s_instance) { 125 switch (rtd 151 struct i2s_stream_instance *rtd; local [all...] |
H A D | acp3x-pcm-dma.c | 107 static void config_acp3x_dma(struct i2s_stream_instance *rtd, int direction) argument 114 addr = rtd->dma_addr; 117 switch (rtd->i2s_instance) { 126 switch (rtd->i2s_instance) { 136 rv_writel(ACP_SRAM_PTE_OFFSET | BIT(31), rtd->acp3x_base + 138 rv_writel(PAGE_SIZE_4K_ENABLE, rtd->acp3x_base + 141 for (page_idx = 0; page_idx < rtd->num_pages; page_idx++) { 146 rv_writel(low, rtd->acp3x_base + mmACP_SCRATCH_REG_0 + val); 148 rv_writel(high, rtd->acp3x_base + mmACP_SCRATCH_REG_0 + val 156 switch (rtd 248 struct i2s_stream_instance *rtd; local 298 struct i2s_stream_instance *rtd; local 314 acp3x_dma_new(struct snd_soc_component *component, struct snd_soc_pcm_runtime *rtd) argument 440 struct i2s_stream_instance *rtd = local 457 struct i2s_stream_instance *rtd = local [all...] |
/linux-master/include/sound/ |
H A D | soc-link.h | 11 int snd_soc_link_init(struct snd_soc_pcm_runtime *rtd); 12 void snd_soc_link_exit(struct snd_soc_pcm_runtime *rtd); 13 int snd_soc_link_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
|
/linux-master/sound/soc/mediatek/common/ |
H A D | mtk-dsp-sof-common.h | 23 int (*be_hw_params_fixup)(struct snd_soc_pcm_runtime *rtd, 31 int (*sof_dai_link_fixup)(struct snd_soc_pcm_runtime *rtd, 35 int mtk_sof_dai_link_fixup(struct snd_soc_pcm_runtime *rtd,
|
/linux-master/sound/soc/tegra/ |
H A D | tegra_pcm.c | 79 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 82 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); 85 if (rtd->dai_link->no_pcm) 97 dev_err(rtd->dev, "failed to set constraint %d\n", ret); 111 dev_err(rtd->dev, 130 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 132 if (rtd->dai_link->no_pcm) 145 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 151 if (rtd->dai_link->no_pcm) 154 dmap = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 194 tegra_pcm_dma_allocate(struct device *dev, struct snd_soc_pcm_runtime *rtd, size_t size) argument 207 tegra_pcm_construct(struct snd_soc_component *component, struct snd_soc_pcm_runtime *rtd) argument [all...] |
/linux-master/sound/soc/ti/ |
H A D | omap-mcbsp.h | 30 int omap_mcbsp_st_add_controls(struct snd_soc_pcm_runtime *rtd, int port_id);
|
/linux-master/drivers/pinctrl/realtek/ |
H A D | Makefile | 3 obj-$(CONFIG_PINCTRL_RTD) += pinctrl-rtd.o
|
/linux-master/sound/soc/intel/boards/ |
H A D | sof_realtek_common.c | 139 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 145 for_each_rtd_codec_dais(rtd, i, codec_dai) { 186 static int rt1011_init(struct snd_soc_pcm_runtime *rtd) argument 188 struct snd_soc_card *card = rtd->card; 198 dev_err(rtd->dev, "fail to add rt1011 widgets, ret %d\n", 206 dev_err(rtd->dev, "fail to add rt1011 kcontrols, ret %d\n", 214 dev_err(rtd->dev, "fail to add rt1011 routes, ret %d\n", 231 dev_err(rtd->dev, "fail to add rt1011 widgets, ret %d\n", 239 dev_err(rtd->dev, "fail to add rt1011 controls, ret %d\n", 247 dev_err(rtd 344 rt1015p_init(struct snd_soc_pcm_runtime *rtd) argument 399 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 481 speaker_codec_init_lr(struct snd_soc_pcm_runtime *rtd) argument 561 rt1308_init(struct snd_soc_pcm_runtime *rtd) argument 592 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 650 rt1019p_init(struct snd_soc_pcm_runtime *rtd) argument [all...] |
H A D | sof_maxim_common.c | 78 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 83 for_each_rtd_codec_dais(rtd, j, codec_dai) { 102 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 112 cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); 113 for_each_rtd_codec_dais(rtd, j, codec_dai) { 149 static int max_98373_spk_codec_init(struct snd_soc_pcm_runtime *rtd) argument 151 struct snd_soc_card *card = rtd->card; 160 dev_err(rtd->dev, "fail to add max98373 widgets, ret %d\n", 168 dev_err(rtd->dev, "fail to add max98373 kcontrols, ret %d\n", 176 dev_err(rtd 292 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); local 326 max_98390_init(struct snd_soc_pcm_runtime *rtd) argument 474 max_98357a_init(struct snd_soc_pcm_runtime *rtd) argument [all...] |
/linux-master/sound/soc/amd/renoir/ |
H A D | acp3x-pdm-dma.c | 176 static void config_acp_dma(struct pdm_stream_instance *rtd, int direction) argument 182 addr = rtd->dma_addr; 186 rn_writel(ACP_SRAM_PTE_OFFSET | BIT(31), rtd->acp_base + 188 rn_writel(PAGE_SIZE_4K_ENABLE, rtd->acp_base + 191 for (page_idx = 0; page_idx < rtd->num_pages; page_idx++) { 196 rn_writel(low, rtd->acp_base + ACP_SCRATCH_REG_0 + val); 198 rn_writel(high, rtd->acp_base + ACP_SCRATCH_REG_0 + val + 4); 243 struct pdm_stream_instance *rtd; local 246 rtd = substream->runtime->private_data; 247 if (!rtd) 259 acp_pdm_get_byte_count(struct pdm_stream_instance *rtd, int direction) argument 276 struct pdm_stream_instance *rtd; local 290 acp_pdm_dma_new(struct snd_soc_component *component, struct snd_soc_pcm_runtime *rtd) argument 313 struct pdm_stream_instance *rtd; local 448 struct pdm_stream_instance *rtd; local [all...] |
/linux-master/sound/soc/amd/yc/ |
H A D | acp6x-pdm-dma.c | 153 static void acp6x_config_dma(struct pdm_stream_instance *rtd, int direction) argument 159 addr = rtd->dma_addr; 163 acp6x_writel(ACP_SRAM_PTE_OFFSET | BIT(31), rtd->acp6x_base + 165 acp6x_writel(PAGE_SIZE_4K_ENABLE, rtd->acp6x_base + 167 for (page_idx = 0; page_idx < rtd->num_pages; page_idx++) { 172 acp6x_writel(low, rtd->acp6x_base + ACP_SCRATCH_REG_0 + val); 174 acp6x_writel(high, rtd->acp6x_base + ACP_SCRATCH_REG_0 + val + 4); 219 struct pdm_stream_instance *rtd; local 222 rtd = substream->runtime->private_data; 223 if (!rtd) 235 acp6x_pdm_get_byte_count(struct pdm_stream_instance *rtd, int direction) argument 250 struct pdm_stream_instance *rtd; local 264 acp6x_pdm_dma_new(struct snd_soc_component *component, struct snd_soc_pcm_runtime *rtd) argument 287 struct pdm_stream_instance *rtd; local 401 struct pdm_stream_instance *rtd; local [all...] |