/linux-6.12.1/sound/soc/ |
D | soc-link.c | 11 #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 …]
|
D | soc-compress.c | 26 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in snd_soc_compr_components_open() local 31 for_each_rtd_components(rtd, i, component) { in snd_soc_compr_components_open() 47 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in snd_soc_compr_components_free() local 51 for_each_rtd_components(rtd, i, component) { in snd_soc_compr_components_free() 59 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in soc_compr_clean() local 60 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in soc_compr_clean() 61 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in soc_compr_clean() 64 snd_soc_dpcm_mutex_lock(rtd); in soc_compr_clean() 67 snd_soc_runtime_deactivate(rtd, stream); in soc_compr_clean() 84 snd_soc_dapm_stream_stop(rtd, stream); in soc_compr_clean() [all …]
|
D | soc-pcm.c | 29 #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 …]
|
D | soc-component.c | 524 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 …]
|
/linux-6.12.1/sound/soc/amd/ |
D | acp-pcm-dma.c | 331 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.12.1/drivers/rtc/ |
D | rtc-test.c | 26 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.12.1/sound/soc/amd/raven/ |
D | acp3x-i2s.c | 75 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 …]
|
D | acp3x-pcm-dma.c | 107 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.12.1/sound/soc/amd/vangogh/ |
D | acp5x-pcm-dma.c | 103 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 …]
|
D | acp5x-i2s.c | 86 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 …]
|
D | acp5x.h | 152 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-6.12.1/sound/soc/qcom/ |
D | sc7180.c | 57 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 …]
|
D | sc7280.c | 60 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 …]
|
D | sdm845.c | 62 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 …]
|
D | sm8250.c | 28 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() 83 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sm2450_snd_shutdown() local 84 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sm2450_snd_shutdown() 85 struct sm8250_snd_data *data = snd_soc_card_get_drvdata(rtd->card); in sm2450_snd_shutdown() [all …]
|
D | x1e80100.c | 27 static int x1e80100_snd_init(struct snd_soc_pcm_runtime *rtd) in x1e80100_snd_init() argument 29 struct x1e80100_snd_data *data = snd_soc_card_get_drvdata(rtd->card); in x1e80100_snd_init() 30 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in x1e80100_snd_init() 48 return qcom_snd_dp_jack_setup(rtd, dp_jack, dp_pcm_id); in x1e80100_snd_init() 50 return qcom_snd_wcd_jack_setup(rtd, &data->jack, &data->jack_setup); in x1e80100_snd_init() 55 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in x1e80100_snd_shutdown() local 56 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in x1e80100_snd_shutdown() 57 struct x1e80100_snd_data *data = snd_soc_card_get_drvdata(rtd->card); in x1e80100_snd_shutdown() 64 static int x1e80100_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, in x1e80100_be_hw_params_fixup() argument 67 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in x1e80100_be_hw_params_fixup() [all …]
|
D | sc8280xp.c | 26 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() 29 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sc8280xp_snd_init() 30 struct snd_soc_card *card = rtd->card; in sc8280xp_snd_init() 61 return qcom_snd_dp_jack_setup(rtd, dp_jack, dp_pcm_id); in sc8280xp_snd_init() 63 return qcom_snd_wcd_jack_setup(rtd, &data->jack, &data->jack_setup); in sc8280xp_snd_init() 68 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sc8280xp_snd_shutdown() local 69 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sc8280xp_snd_shutdown() 70 struct sc8280xp_snd_data *pdata = snd_soc_card_get_drvdata(rtd->card); in sc8280xp_snd_shutdown() 77 static int sc8280xp_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, in sc8280xp_be_hw_params_fixup() argument [all …]
|
/linux-6.12.1/sound/soc/amd/yc/ |
D | acp6x-pdm-dma.c | 153 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-6.12.1/sound/soc/amd/renoir/ |
D | acp3x-pdm-dma.c | 176 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-6.12.1/sound/soc/amd/ps/ |
D | ps-pdm-dma.c | 157 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-6.12.1/sound/soc/sof/ |
D | compress.c | 50 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-6.12.1/sound/soc/intel/boards/ |
D | sof_realtek_common.c | 139 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 …]
|
/linux-6.12.1/sound/soc/amd/acp/ |
D | acp-mach-common.c | 116 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-6.12.1/sound/soc/tegra/ |
D | tegra_pcm.c | 79 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-6.12.1/include/sound/ |
D | soc_sdw_utils.h | 59 int (*rtd_init)(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai); 153 int codecs_num, int (*init)(struct snd_soc_pcm_runtime *rtd), 161 int (*init)(struct snd_soc_pcm_runtime *rtd), 174 int asoc_sdw_rtd_init(struct snd_soc_pcm_runtime *rtd); 177 int asoc_sdw_dmic_init(struct snd_soc_pcm_runtime *rtd); 232 int asoc_sdw_rt_dmic_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai); 233 int asoc_sdw_rt_sdca_jack_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai); 234 int asoc_sdw_rt_amp_spk_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai); 235 int asoc_sdw_rt700_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai); 236 int asoc_sdw_rt711_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai); [all …]
|