Home
last modified time | relevance | path

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

123456789

/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 …]
H A Dacp-da7219-max98357a.c53 static int cz_da7219_init(struct snd_soc_pcm_runtime *rtd) in cz_da7219_init() argument
56 struct snd_soc_card *card = rtd->card; in cz_da7219_init()
57 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in cz_da7219_init()
60 dev_info(rtd->dev, "codec dai name = %s\n", codec_dai->name); in cz_da7219_init()
65 dev_err(rtd->dev, "can't set codec sysclk: %d\n", ret); in cz_da7219_init()
72 dev_err(rtd->dev, "can't set codec pll: %d\n", ret); in cz_da7219_init()
109 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in da7219_clk_enable() local
121 dev_err(rtd->dev, "can't enable master clock %d\n", ret); in da7219_clk_enable()
133 static int cz_rt5682_init(struct snd_soc_pcm_runtime *rtd) in cz_rt5682_init() argument
136 struct snd_soc_card *card = rtd->card; in cz_rt5682_init()
[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 timer_delete(&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-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 …]
H A Dacp3x.h124 static inline u64 acp_get_byte_count(struct i2s_stream_instance *rtd, in acp_get_byte_count() argument
130 switch (rtd->i2s_instance) { in acp_get_byte_count()
132 byte_count = rv_readl(rtd->acp3x_base + in acp_get_byte_count()
134 byte_count |= rv_readl(rtd->acp3x_base + in acp_get_byte_count()
139 byte_count = rv_readl(rtd->acp3x_base + in acp_get_byte_count()
141 byte_count |= rv_readl(rtd->acp3x_base + in acp_get_byte_count()
146 switch (rtd->i2s_instance) { in acp_get_byte_count()
148 byte_count = rv_readl(rtd->acp3x_base + in acp_get_byte_count()
150 byte_count |= rv_readl(rtd->acp3x_base + in acp_get_byte_count()
155 byte_count = rv_readl(rtd->acp3x_base + in acp_get_byte_count()
[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
33 return snd_soc_ret(rtd->dev, ret, in _soc_pcm_ret()
34 "at %s() on %s\n", func, rtd->dai_link->name); in _soc_pcm_ret()
138 static inline const char *soc_cpu_dai_name(struct snd_soc_pcm_runtime *rtd) in soc_cpu_dai_name() argument
140 return (rtd)->dai_link->num_cpus == 1 ? snd_soc_rtd_to_cpu(rtd, 0)->name : "multicpu"; in soc_cpu_dai_name()
142 static inline const char *soc_codec_dai_name(struct snd_soc_pcm_runtime *rtd) in soc_codec_dai_name() argument
144 return (rtd) in soc_codec_dai_name()
269 soc_dpcm_debugfs_add(struct snd_soc_pcm_runtime * rtd) soc_dpcm_debugfs_add() argument
356 snd_soc_runtime_action(struct snd_soc_pcm_runtime * rtd,int stream,int action) snd_soc_runtime_action() argument
386 snd_soc_runtime_ignore_pmdown_time(struct snd_soc_pcm_runtime * rtd) snd_soc_runtime_ignore_pmdown_time() argument
443 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); soc_pcm_apply_symmetry() local
473 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); soc_pcm_params_symmetry() local
507 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); soc_pcm_update_symmetry() local
528 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); soc_pcm_set_msb() local
542 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); soc_pcm_apply_msb() local
619 snd_soc_runtime_calc_hw(struct snd_soc_pcm_runtime * rtd,struct snd_pcm_hardware * hw,int stream) snd_soc_runtime_calc_hw() argument
692 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); soc_pcm_init_runtime_hw() local
708 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); soc_pcm_components_open() local
728 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); soc_pcm_components_close() local
743 soc_pcm_clean(struct snd_soc_pcm_runtime * rtd,struct snd_pcm_substream * substream,int rollback) soc_pcm_clean() argument
783 __soc_pcm_close(struct snd_soc_pcm_runtime * rtd,struct snd_pcm_substream * substream) __soc_pcm_close() argument
792 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); soc_pcm_close() local
802 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); soc_hw_sanity_check() local
842 __soc_pcm_open(struct snd_soc_pcm_runtime * rtd,struct snd_pcm_substream * substream) __soc_pcm_open() argument
907 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); soc_pcm_open() local
921 __soc_pcm_prepare(struct snd_soc_pcm_runtime * rtd,struct snd_pcm_substream * substream) __soc_pcm_prepare() argument
969 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); soc_pcm_prepare() local
996 soc_pcm_hw_clean(struct snd_soc_pcm_runtime * rtd,struct snd_pcm_substream * substream,int rollback) soc_pcm_hw_clean() argument
1035 __soc_pcm_hw_free(struct snd_soc_pcm_runtime * rtd,struct snd_pcm_substream * substream) __soc_pcm_hw_free() argument
1044 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); soc_pcm_hw_free() local
1061 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); __soc_pcm_hw_params() local
1163 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); soc_pcm_hw_params() local
1188 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); soc_pcm_trigger() local
1455 struct snd_soc_pcm_runtime *rtd; dpcm_end_walk_at_be() local
1914 struct snd_soc_pcm_runtime *rtd; dpcm_apply_symmetry() local
2791 soc_get_playback_capture(struct snd_soc_pcm_runtime * rtd,int * playback,int * capture) soc_get_playback_capture() argument
2860 soc_create_pcm(struct snd_pcm ** pcm,struct snd_soc_pcm_runtime * rtd,int playback,int capture) soc_create_pcm() argument
2901 soc_new_pcm(struct snd_soc_pcm_runtime * rtd) soc_new_pcm() argument
[all...]
H A Dsoc-core.c74 struct snd_soc_pcm_runtime *rtd = dev_get_drvdata(dev); in pmdown_time_show() local
76 return sysfs_emit(buf, "%ld\n", rtd->pmdown_time); in pmdown_time_show()
83 struct snd_soc_pcm_runtime *rtd = dev_get_drvdata(dev); in pmdown_time_store() local
86 ret = kstrtol(buf, 10, &rtd->pmdown_time); in pmdown_time_store()
104 struct snd_soc_pcm_runtime *rtd = dev_get_drvdata(dev); in soc_dev_attr_is_visible() local
106 if (!rtd) in soc_dev_attr_is_visible()
111 return rtd->dai_link->num_codecs ? attr->mode : 0; /* enabled only with codec */ in soc_dev_attr_is_visible()
317 static int snd_soc_rtd_add_component(struct snd_soc_pcm_runtime *rtd, in snd_soc_rtd_add_component() argument
323 for_each_rtd_components(rtd, i, comp) { in snd_soc_rtd_add_component()
330 rtd in snd_soc_rtd_add_component()
336 snd_soc_rtdcom_lookup(struct snd_soc_pcm_runtime * rtd,const char * driver_name) snd_soc_rtdcom_lookup() argument
411 struct snd_soc_pcm_runtime *rtd; snd_soc_get_pcm_runtime() local
427 snd_soc_close_delayed_work(struct snd_soc_pcm_runtime * rtd) snd_soc_close_delayed_work() argument
458 soc_free_pcm_runtime(struct snd_soc_pcm_runtime * rtd) soc_free_pcm_runtime() argument
491 struct snd_soc_pcm_runtime *rtd = close_delayed_work() local
502 struct snd_soc_pcm_runtime *rtd; soc_new_pcm_runtime() local
608 struct snd_soc_pcm_runtime *rtd; snd_soc_flush_all_delayed_work() local
617 struct snd_soc_pcm_runtime *rtd; soc_playback_digital_mute() local
636 struct snd_soc_pcm_runtime *rtd; soc_dapm_suspend_resume() local
654 struct snd_soc_pcm_runtime *rtd; snd_soc_suspend() local
1145 snd_soc_remove_pcm_runtime(struct snd_soc_card * card,struct snd_soc_pcm_runtime * rtd) snd_soc_remove_pcm_runtime() argument
1175 struct snd_soc_pcm_runtime *rtd; snd_soc_add_pcm_runtime() local
1286 snd_soc_runtime_get_dai_fmt(struct snd_soc_pcm_runtime * rtd) snd_soc_runtime_get_dai_fmt() argument
1456 snd_soc_runtime_set_dai_fmt(struct snd_soc_pcm_runtime * rtd,unsigned int dai_fmt) snd_soc_runtime_set_dai_fmt() argument
1510 soc_init_pcm_runtime(struct snd_soc_card * card,struct snd_soc_pcm_runtime * rtd) soc_init_pcm_runtime() argument
1694 struct snd_soc_pcm_runtime *rtd; soc_remove_link_dais() local
1707 struct snd_soc_pcm_runtime *rtd; soc_probe_link_dais() local
1725 struct snd_soc_pcm_runtime *rtd; soc_remove_link_components() local
1743 struct snd_soc_pcm_runtime *rtd; soc_probe_link_components() local
2111 struct snd_soc_pcm_runtime *rtd, *n; soc_cleanup_card_resources() local
2157 struct snd_soc_pcm_runtime *rtd; snd_soc_bind_card() local
[all...]
H A Dsoc-generic-dmaengine-pcm.c53 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in snd_dmaengine_pcm_prepare_slave_config() local
57 if (rtd->dai_link->num_cpus > 1) { in snd_dmaengine_pcm_prepare_slave_config()
58 dev_err(rtd->dev, in snd_dmaengine_pcm_prepare_slave_config()
63 dma_data = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream); in snd_dmaengine_pcm_prepare_slave_config()
101 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in dmaengine_pcm_set_runtime_hwparams() local
108 if (rtd->dai_link->num_cpus > 1) { in dmaengine_pcm_set_runtime_hwparams()
109 dev_err(rtd->dev, in dmaengine_pcm_set_runtime_hwparams()
118 dma_data = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream); in dmaengine_pcm_set_runtime_hwparams()
176 struct snd_soc_pcm_runtime *rtd, in dmaengine_pcm_compat_request_channel() argument
182 if (rtd in dmaengine_pcm_compat_request_channel()
220 dmaengine_pcm_new(struct snd_soc_component * component,struct snd_soc_pcm_runtime * rtd) dmaengine_pcm_new() argument
[all...]
/linux/sound/soc/qcom/
H A Dsm8250.c31 static int sm8250_snd_init(struct snd_soc_pcm_runtime *rtd)
33 struct sm8250_snd_data *data = snd_soc_card_get_drvdata(rtd->card); in sm8250_snd_init()
34 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sm8250_snd_init()
38 return qcom_snd_dp_jack_setup(rtd, &data->dp_jack, 0); in sm8250_snd_init()
40 return qcom_snd_usb_offload_jack_setup(rtd, &data->usb_offload_jack, in sm8250_snd_init()
43 return qcom_snd_wcd_jack_setup(rtd, &data->jack, &data->jack_setup); in sm8250_snd_init()
47 static void sm8250_snd_exit(struct snd_soc_pcm_runtime *rtd)
49 struct sm8250_snd_data *data = snd_soc_card_get_drvdata(rtd->card); in sm8250_snd_exit()
50 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sm8250_snd_exit()
53 qcom_snd_usb_offload_jack_remove(rtd, in sm8250_snd_exit()
32 sm8250_snd_init(struct snd_soc_pcm_runtime * rtd) sm8250_snd_init() argument
48 sm8250_snd_exit(struct snd_soc_pcm_runtime * rtd) sm8250_snd_exit() argument
59 sm8250_be_hw_params_fixup(struct snd_soc_pcm_runtime * rtd,struct snd_pcm_hw_params * params) sm8250_be_hw_params_fixup() argument
79 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); sm8250_snd_startup() local
117 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); sm8250_snd_shutdown() local
129 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); sm8250_snd_hw_params() local
138 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); sm8250_snd_prepare() local
149 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); sm8250_snd_hw_free() local
[all...]
H A Dsdm845.c61 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sdm845_slim_snd_hw_params()
62 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sdm845_slim_snd_hw_params() local
68 for_each_rtd_codec_dais(rtd, i, codec_dai) { in sdm845_slim_snd_hw_params()
87 dev_err(rtd->dev, "failed to set cpu chan map, err:%d\n", ret); in sdm845_slim_snd_hw_params()
98 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sdm845_slim_snd_hw_params()
99 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sdm845_slim_snd_hw_params()
109 dev_err(rtd->dev, "%s: invalid param format 0x%x\n", in sdm845_tdm_snd_hw_params()
119 dev_err(rtd->dev, "%s: failed to set tdm slot, err:%d\n", in sdm845_tdm_snd_hw_params()
127 dev_err(rtd->dev, "%s: failed to set channel map, err:%d\n", in sdm845_tdm_snd_hw_params()
135 dev_err(rtd in sdm845_tdm_snd_hw_params()
106 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); sdm845_tdm_snd_hw_params() local
191 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); sdm845_snd_hw_params() local
238 sdm845_dai_init(struct snd_soc_pcm_runtime * rtd) sdm845_dai_init() argument
340 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); sdm845_snd_startup() local
429 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); sdm845_snd_shutdown() local
480 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); sdm845_snd_prepare() local
519 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); sdm845_snd_hw_free() local
541 sdm845_be_hw_params_fixup(struct snd_soc_pcm_runtime * rtd,struct snd_pcm_hw_params * params) sdm845_be_hw_params_fixup() argument
[all...]
H A 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()
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()
65 return qcom_snd_dp_jack_setup(rtd, dp_jack, dp_pcm_id); in sc8280xp_snd_init()
67 return qcom_snd_wcd_jack_setup(rtd, &data->jack, &data->jack_setup); in sc8280xp_snd_init()
70 static int sc8280xp_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, in sc8280xp_be_hw_params_fixup() argument
73 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sc8280xp_be_hw_params_fixup()
101 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sc8280xp_snd_prepare() local
102 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sc8280xp_snd_prepare()
[all …]
H A Dapq8016_sbc.c59 static int apq8016_dai_init(struct snd_soc_pcm_runtime *rtd, int mi2s) in apq8016_dai_init() argument
63 struct snd_soc_card *card = rtd->card; in apq8016_dai_init()
129 for_each_rtd_codec_dais(rtd, i, codec_dai) { in apq8016_dai_init()
149 static int apq8016_sbc_dai_init(struct snd_soc_pcm_runtime *rtd) in apq8016_sbc_dai_init() argument
151 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in apq8016_sbc_dai_init()
153 return apq8016_dai_init(rtd, cpu_dai->id); in apq8016_sbc_dai_init()
185 static int msm8916_qdsp6_dai_init(struct snd_soc_pcm_runtime *rtd) in msm8916_qdsp6_dai_init() argument
187 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in msm8916_qdsp6_dai_init()
190 return apq8016_dai_init(rtd, qdsp6_dai_get_lpass_id(cpu_dai)); in msm8916_qdsp6_dai_init()
195 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in msm8916_qdsp6_startup() local
[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/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()
199 dev_err(rtd->dev, "fail to add rt1011 widgets, ret %d\n", in rt1011_init()
207 dev_err(rtd->dev, "fail to add rt1011 kcontrols, ret %d\n", in rt1011_init()
215 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()
238 dev_err(rtd->dev, "fail to add rt1011 controls, ret %d\n", in rt1011_init()
245 dev_err(rtd in rt1011_init()
344 rt1015p_init(struct snd_soc_pcm_runtime * rtd) rt1015p_init() argument
399 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); rt1015_hw_params() local
481 speaker_codec_init_lr(struct snd_soc_pcm_runtime * rtd) speaker_codec_init_lr() argument
561 rt1308_init(struct snd_soc_pcm_runtime * rtd) rt1308_init() argument
592 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); rt1308_hw_params() local
650 rt1019p_init(struct snd_soc_pcm_runtime * rtd) rt1019p_init() argument
[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()
238 static int max_98373_spk_codec_init(struct snd_soc_pcm_runtime *rtd)
240 struct snd_soc_card *card = rtd in max_98373_spk_codec_init()
239 max_98373_spk_codec_init(struct snd_soc_pcm_runtime * rtd) max_98373_spk_codec_init() argument
382 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); max_98390_hw_params() local
416 max_98390_init(struct snd_soc_pcm_runtime * rtd) max_98390_init() argument
564 max_98357a_init(struct snd_soc_pcm_runtime * rtd) max_98357a_init() argument
[all...]
H A Dsof_rt5682.c145 static int sof_rt5682_codec_init(struct snd_soc_pcm_runtime *rtd) in sof_rt5682_codec_init()
147 struct sof_card_private *ctx = snd_soc_card_get_drvdata(rtd->card); in sof_rt5682_codec_init()
148 struct snd_soc_component *component = snd_soc_rtd_to_codec(rtd, 0)->component; in sof_rt5682_codec_init()
154 mclk_freq = sof_dai_get_mclk(rtd); in sof_rt5682_codec_init()
156 dev_err(rtd->dev, "invalid mclk freq %d\n", mclk_freq); in sof_rt5682_codec_init()
162 dev_info(rtd->dev, "enable ASRC\n"); in sof_rt5682_codec_init()
188 dev_err(rtd->dev, "invalid codec type %d\n", in sof_rt5682_codec_init()
212 dev_err(rtd->dev, "unable to set MCLK rate\n"); in sof_rt5682_codec_init()
220 ret = snd_soc_card_jack_new_pins(rtd->card, "Headset Jack", in sof_rt5682_codec_init()
228 dev_err(rtd in sof_rt5682_codec_init()
141 sof_rt5682_codec_init(struct snd_soc_pcm_runtime * rtd) sof_rt5682_codec_init() argument
247 sof_rt5682_codec_exit(struct snd_soc_pcm_runtime * rtd) sof_rt5682_codec_exit() argument
257 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); sof_rt5682_hw_params() local
458 rt5650_spk_init(struct snd_soc_pcm_runtime * rtd) rt5650_spk_init() argument
[all...]
H A Dsof_cs42l42.c40 static int sof_cs42l42_init(struct snd_soc_pcm_runtime *rtd) in sof_cs42l42_init() argument
42 struct sof_card_private *ctx = snd_soc_card_get_drvdata(rtd->card); in sof_cs42l42_init()
43 struct snd_soc_component *component = snd_soc_rtd_to_codec(rtd, 0)->component; in sof_cs42l42_init()
51 ret = snd_soc_card_jack_new_pins(rtd->card, "Headset Jack", in sof_cs42l42_init()
59 dev_err(rtd->dev, "Headset Jack creation failed: %d\n", ret); in sof_cs42l42_init()
70 dev_err(rtd->dev, "Headset Jack call-back failed: %d\n", ret); in sof_cs42l42_init()
77 static void sof_cs42l42_exit(struct snd_soc_pcm_runtime *rtd) in sof_cs42l42_exit() argument
79 struct snd_soc_component *component = snd_soc_rtd_to_codec(rtd, 0)->component; in sof_cs42l42_exit()
87 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sof_cs42l42_hw_params() local
88 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in sof_cs42l42_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()
121 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in acp_card_rt5682_init()
125 dev_info(rtd->dev, "codec dai name = %s\n", codec_dai->name); in acp_card_rt5682_init()
136 dev_err(rtd->dev, "unable to add widget dapm controls, ret %d\n", ret); in acp_card_rt5682_init()
143 dev_err(rtd->dev, "unable to add card controls, ret %d\n", ret); in acp_card_rt5682_init()
166 dev_err(rtd->dev, "Headset Jack call-back failed: %d\n", ret); in acp_card_rt5682_init()
176 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in acp_card_hs_startup()
177 struct snd_soc_card *card = rtd->card; in acp_card_hs_startup()
179 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, in acp_card_hs_startup()
175 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); acp_card_hs_startup() local
209 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); acp_card_shutdown() local
220 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); acp_card_rt5682_hw_params() local
357 acp_card_rt5682s_init(struct snd_soc_pcm_runtime * rtd) acp_card_rt5682s_init() argument
418 struct snd_soc_pcm_runtime *rtd = substream->private_data; acp_card_rt5682s_hw_params() local
581 acp_card_rt1019_init(struct snd_soc_pcm_runtime * rtd) acp_card_rt1019_init() argument
611 struct snd_soc_pcm_runtime *rtd = substream->private_data; acp_card_rt1019_hw_params() local
746 acp_card_maxim_init(struct snd_soc_pcm_runtime * rtd) acp_card_maxim_init() argument
776 struct snd_soc_pcm_runtime *rtd = substream->private_data; acp_card_maxim_hw_params() local
882 acp_card_max98388_init(struct snd_soc_pcm_runtime * rtd) acp_card_max98388_init() argument
914 struct snd_soc_pcm_runtime *rtd = substream->private_data; acp_max98388_hw_params() local
966 acp_card_nau8825_init(struct snd_soc_pcm_runtime * rtd) acp_card_nau8825_init() argument
1022 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); acp_nau8825_hw_params() local
1181 acp_8821_init(struct snd_soc_pcm_runtime * rtd) acp_8821_init() argument
1246 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); acp_nau8821_hw_params() local
[all...]
/linux/sound/soc/amd/vangogh/
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/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/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()
142 struct snd_soc_pcm_runtime *rtd; mtk_sof_card_late_probe() local
[all...]
/linux/sound/soc/sof/
H A Dpcm.c45 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in snd_sof_pcm_period_elapsed() local
47 snd_soc_rtdcom_lookup(rtd, SOF_AUDIO_PCM_DRV_NAME); in snd_sof_pcm_period_elapsed()
50 spcm = snd_sof_find_spcm_dai(component, rtd); in snd_sof_pcm_period_elapsed()
70 sof_pcm_setup_connected_widgets(struct snd_sof_dev *sdev, struct snd_soc_pcm_runtime *rtd, in sof_pcm_setup_connected_widgets() argument
78 for_each_rtd_cpu_dais(rtd, j, dai) { in sof_pcm_setup_connected_widgets()
108 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sof_pcm_hw_params() local
116 if (rtd->dai_link->no_pcm) in sof_pcm_hw_params()
119 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_pcm_hw_params()
145 ret = sof_pcm_setup_connected_widgets(sdev, rtd, spcm, params, &platform_params, in sof_pcm_hw_params()
257 struct snd_soc_pcm_runtime *rtd in sof_pcm_hw_free() local
282 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); sof_pcm_prepare() local
329 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); sof_pcm_trigger() local
441 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); sof_pcm_pointer() local
480 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); sof_pcm_open() local
543 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); sof_pcm_close() local
579 sof_pcm_new(struct snd_soc_component * component,struct snd_soc_pcm_runtime * rtd) sof_pcm_new() argument
642 sof_pcm_dai_link_fixup(struct snd_soc_pcm_runtime * rtd,struct snd_pcm_hw_params * params) sof_pcm_dai_link_fixup() argument
[all...]
/linux/sound/soc/samsung/
H A Dlittlemill.c20 struct snd_soc_pcm_runtime *rtd; in littlemill_set_bias_level() local
24 rtd = snd_soc_get_pcm_runtime(card, &card->dai_link[0]); in littlemill_set_bias_level()
25 aif1_dai = snd_soc_rtd_to_codec(rtd, 0); in littlemill_set_bias_level()
67 struct snd_soc_pcm_runtime *rtd; in littlemill_set_bias_level_post() local
71 rtd = snd_soc_get_pcm_runtime(card, &card->dai_link[0]); in littlemill_set_bias_level_post()
72 aif1_dai = snd_soc_rtd_to_codec(rtd, 0); in littlemill_set_bias_level_post()
104 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in littlemill_hw_params() local
105 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in littlemill_hw_params()
177 struct snd_soc_pcm_runtime *rtd; in bbclk_ev() local
181 rtd in bbclk_ev()
271 struct snd_soc_pcm_runtime *rtd; littlemill_late_probe() local
[all...]
/linux/sound/soc/bcm/
H A Dbcm63xx-pcm-whistler.c49 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in bcm63xx_pcm_hw_params() local
55 snd_soc_dai_set_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream, dma_desc); in bcm63xx_pcm_hw_params()
64 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in bcm63xx_pcm_hw_free() local
66 dma_desc = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream); in bcm63xx_pcm_hw_free()
76 struct snd_soc_pcm_runtime *rtd; in bcm63xx_pcm_trigger() local
80 rtd = snd_soc_substream_to_rtd(substream); in bcm63xx_pcm_trigger()
81 i2s_priv = dev_get_drvdata(snd_soc_rtd_to_cpu(rtd, 0)->dev); in bcm63xx_pcm_trigger()
147 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in bcm63xx_pcm_prepare() local
151 dma_desc = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream); in bcm63xx_pcm_prepare()
164 i2s_priv = dev_get_drvdata(snd_soc_rtd_to_cpu(rtd, 0)->dev); in bcm63xx_pcm_prepare()
[all …]
/linux/sound/soc/sdw_utils/
H A Dsoc_sdw_cs_amp.c38 int asoc_sdw_cs_spk_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai) in asoc_sdw_cs_spk_rtd_init() argument
40 struct snd_soc_card *card = rtd->card; in asoc_sdw_cs_spk_rtd_init()
47 for_each_rtd_codec_dais(rtd, i, codec_dai) { in asoc_sdw_cs_spk_rtd_init()
67 int asoc_sdw_cs_spk_feedback_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai) in asoc_sdw_cs_spk_feedback_rtd_init()
69 const struct snd_soc_dai_link *dai_link = rtd->dai_link; in asoc_sdw_cs_spk_feedback_rtd_init()
87 dev_err(rtd->card->dev, "Illegal num_codecs:%u / num_cpus:%u\n", in asoc_sdw_cs_spk_feedback_rtd_init()
94 for_each_rtd_ch_maps(rtd, i, ch_map) { in asoc_sdw_cs_spk_feedback_rtd_init()
95 codec_dlc = snd_soc_link_to_codec(rtd->dai_link, i); in asoc_sdw_cs_spk_feedback_rtd_init()
101 dev_err(rtd->card->dev, "Failed to set TDM slot:%d\n", ret); in asoc_sdw_cs_spk_feedback_rtd_init()
66 asoc_sdw_cs_spk_feedback_rtd_init(struct snd_soc_pcm_runtime * rtd,struct snd_soc_dai * dai) asoc_sdw_cs_spk_feedback_rtd_init() argument

123456789