Home
last modified time | relevance | path

Searched refs:codec_dai (Results 1 – 25 of 255) sorted by relevance

1234567891011

/linux-6.12.1/sound/soc/samsung/
Dtobermory.c22 struct snd_soc_dai *codec_dai; in tobermory_set_bias_level() local
26 codec_dai = snd_soc_rtd_to_codec(rtd, 0); in tobermory_set_bias_level()
28 if (dapm->dev != codec_dai->dev) in tobermory_set_bias_level()
34 ret = snd_soc_dai_set_pll(codec_dai, WM8962_FLL, in tobermory_set_bias_level()
40 ret = snd_soc_dai_set_sysclk(codec_dai, in tobermory_set_bias_level()
46 snd_soc_dai_set_pll(codec_dai, WM8962_FLL, in tobermory_set_bias_level()
65 struct snd_soc_dai *codec_dai; in tobermory_set_bias_level_post() local
69 codec_dai = snd_soc_rtd_to_codec(rtd, 0); in tobermory_set_bias_level_post()
71 if (dapm->dev != codec_dai->dev) in tobermory_set_bias_level_post()
76 ret = snd_soc_dai_set_sysclk(codec_dai, WM8962_SYSCLK_MCLK, in tobermory_set_bias_level_post()
[all …]
Dspeyside.c24 struct snd_soc_dai *codec_dai; in speyside_set_bias_level() local
28 codec_dai = snd_soc_rtd_to_codec(rtd, 0); in speyside_set_bias_level()
30 if (dapm->dev != codec_dai->dev) in speyside_set_bias_level()
35 ret = snd_soc_dai_set_sysclk(codec_dai, WM8996_SYSCLK_MCLK2, in speyside_set_bias_level()
40 ret = snd_soc_dai_set_pll(codec_dai, WM8996_FLL_MCLK2, in speyside_set_bias_level()
60 struct snd_soc_dai *codec_dai; in speyside_set_bias_level_post() local
64 codec_dai = snd_soc_rtd_to_codec(rtd, 0); in speyside_set_bias_level_post()
66 if (dapm->dev != codec_dai->dev) in speyside_set_bias_level_post()
72 ret = snd_soc_dai_set_pll(codec_dai, 0, in speyside_set_bias_level_post()
80 ret = snd_soc_dai_set_sysclk(codec_dai, in speyside_set_bias_level_post()
/linux-6.12.1/sound/soc/intel/avs/boards/
Dnau8825.c28 struct snd_soc_dai *codec_dai; in avs_nau8825_clock_control() local
31 codec_dai = snd_soc_card_get_codec_dai(card, SKL_NUVOTON_CODEC_DAI); in avs_nau8825_clock_control()
32 if (!codec_dai) { in avs_nau8825_clock_control()
38 ret = snd_soc_dai_set_sysclk(codec_dai, NAU8825_CLK_MCLK, 24000000, in avs_nau8825_clock_control()
41 ret = snd_soc_dai_set_sysclk(codec_dai, NAU8825_CLK_INTERNAL, 0, SND_SOC_CLOCK_IN); in avs_nau8825_clock_control()
143 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtm, 0); in avs_nau8825_trigger() local
148 ret = snd_soc_dai_set_sysclk(codec_dai, NAU8825_CLK_FLL_FS, 0, SND_SOC_CLOCK_IN); in avs_nau8825_trigger()
150 dev_err(codec_dai->dev, "can't set FS clock %d\n", ret); in avs_nau8825_trigger()
154 ret = snd_soc_dai_set_pll(codec_dai, 0, 0, runtime->rate, runtime->rate * 256); in avs_nau8825_trigger()
156 dev_err(codec_dai->dev, "can't set FLL: %d\n", ret); in avs_nau8825_trigger()
[all …]
Drt274.c32 struct snd_soc_dai *codec_dai; in avs_rt274_clock_control() local
35 codec_dai = snd_soc_card_get_codec_dai(card, RT274_CODEC_DAI); in avs_rt274_clock_control()
36 if (!codec_dai) in avs_rt274_clock_control()
40 ret = snd_soc_dai_set_sysclk(codec_dai, RT274_SCLK_S_PLL2, AVS_RT274_FREQ_OUT, in avs_rt274_clock_control()
43 dev_err(codec_dai->dev, "set codec sysclk failed: %d\n", ret); in avs_rt274_clock_control()
50 snd_soc_dai_set_bclk_ratio(codec_dai, ratio); in avs_rt274_clock_control()
52 ret = snd_soc_dai_set_pll(codec_dai, 0, RT274_PLL2_S_BCLK, in avs_rt274_clock_control()
55 dev_err(codec_dai->dev, "failed to enable PLL2: %d\n", ret); in avs_rt274_clock_control()
91 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(runtime, 0); in avs_rt274_codec_init() local
92 struct snd_soc_component *component = codec_dai->component; in avs_rt274_codec_init()
[all …]
Des8336.c101 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(runtime, 0); in avs_es8336_codec_init() local
102 struct snd_soc_component *component = codec_dai->component; in avs_es8336_codec_init()
121 ret = devm_acpi_dev_add_driver_gpios(codec_dai->dev, speaker_gpios); in avs_es8336_codec_init()
123 dev_warn(codec_dai->dev, "Unable to add GPIO mapping table\n"); in avs_es8336_codec_init()
125 gpiod = gpiod_get_optional(codec_dai->dev, "speaker-enable", GPIOD_OUT_LOW); in avs_es8336_codec_init()
127 return dev_err_probe(codec_dai->dev, PTR_ERR(gpiod), "Get gpiod failed: %ld\n", in avs_es8336_codec_init()
142 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(runtime, 0); in avs_es8336_codec_exit() local
144 snd_soc_component_set_jack(codec_dai->component, NULL, NULL); in avs_es8336_codec_exit()
152 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(runtime, 0); in avs_es8336_hw_params() local
166 ret = snd_soc_dai_set_sysclk(codec_dai, 1, clk_freq, SND_SOC_CLOCK_OUT); in avs_es8336_hw_params()
[all …]
Dda7219.c34 struct snd_soc_dai *codec_dai; in platform_clock_control() local
37 codec_dai = snd_soc_card_get_codec_dai(card, DA7219_DAI_NAME); in platform_clock_control()
38 if (!codec_dai) { in platform_clock_control()
44 ret = snd_soc_dai_set_pll(codec_dai, 0, DA7219_SYSCLK_MCLK, 0, 0); in platform_clock_control()
48 ret = snd_soc_dai_set_pll(codec_dai, 0, DA7219_SYSCLK_PLL_SRM, in platform_clock_control()
94 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(runtime, 0); in avs_da7219_codec_init() local
95 struct snd_soc_component *component = codec_dai->component; in avs_da7219_codec_init()
109 ret = snd_soc_dai_set_sysclk(codec_dai, DA7219_CLKSRC_MCLK, clk_freq, SND_SOC_CLOCK_IN); in avs_da7219_codec_init()
216 struct snd_soc_dai *codec_dai = snd_soc_card_get_codec_dai(card, DA7219_DAI_NAME); in avs_card_suspend_pre() local
218 return snd_soc_component_set_jack(codec_dai->component, NULL, NULL); in avs_card_suspend_pre()
[all …]
Dmax98927.c71 struct snd_soc_dai *codec_dai; in avs_max98927_hw_params() local
75 for_each_rtd_codec_dais(runtime, i, codec_dai) { in avs_max98927_hw_params()
76 if (!strcmp(codec_dai->component->name, MAX98927_DEV0_NAME)) in avs_max98927_hw_params()
77 ret = snd_soc_dai_set_tdm_slot(codec_dai, 0x30, 3, 8, 16); in avs_max98927_hw_params()
78 else if (!strcmp(codec_dai->component->name, MAX98927_DEV1_NAME)) in avs_max98927_hw_params()
79 ret = snd_soc_dai_set_tdm_slot(codec_dai, 0xC0, 3, 8, 16); in avs_max98927_hw_params()
83 codec_dai->component->name, ret); in avs_max98927_hw_params()
/linux-6.12.1/sound/soc/qcom/
Dsdm845.c64 struct snd_soc_dai *codec_dai; in sdm845_slim_snd_hw_params() local
71 for_each_rtd_codec_dais(rtd, i, codec_dai) { in sdm845_slim_snd_hw_params()
72 sruntime = snd_soc_dai_get_stream(codec_dai, in sdm845_slim_snd_hw_params()
77 ret = snd_soc_dai_get_channel_map(codec_dai, in sdm845_slim_snd_hw_params()
104 struct snd_soc_dai *codec_dai; in sdm845_tdm_snd_hw_params() local
153 for_each_rtd_codec_dais(rtd, j, codec_dai) { in sdm845_tdm_snd_hw_params()
155 if (!strcmp(codec_dai->component->name_prefix, "Left")) { in sdm845_tdm_snd_hw_params()
157 codec_dai, LEFT_SPK_TDM_TX_MASK, in sdm845_tdm_snd_hw_params()
167 if (!strcmp(codec_dai->component->name_prefix, "Right")) { in sdm845_tdm_snd_hw_params()
169 codec_dai, RIGHT_SPK_TDM_TX_MASK, in sdm845_tdm_snd_hw_params()
[all …]
Dsdw.c27 struct snd_soc_dai *codec_dai; in qcom_snd_sdw_startup() local
34 for_each_rtd_codec_dais(rtd, i, codec_dai) { in qcom_snd_sdw_startup()
35 ret = snd_soc_dai_set_stream(codec_dai, sruntime, in qcom_snd_sdw_startup()
39 codec_dai->name); in qcom_snd_sdw_startup()
109 struct snd_soc_dai *codec_dai; in qcom_snd_sdw_hw_params() local
122 for_each_rtd_codec_dais(rtd, i, codec_dai) { in qcom_snd_sdw_hw_params()
123 sruntime = snd_soc_dai_get_stream(codec_dai, substream->stream); in qcom_snd_sdw_hw_params()
Dsc7280.c64 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in sc7280_headset_init() local
66 struct snd_soc_component *component = codec_dai->component; in sc7280_headset_init()
102 for_each_rtd_codec_dais(rtd, i, codec_dai) { in sc7280_headset_init()
121 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in sc7280_hdmi_init() local
122 struct snd_soc_component *component = codec_dai->component; in sc7280_hdmi_init()
144 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in sc7280_rt5682_init() local
155 snd_soc_dai_set_fmt(codec_dai, in sc7280_rt5682_init()
160 ret = snd_soc_dai_set_pll(codec_dai, RT5682S_PLL2, RT5682S_PLL_S_MCLK, in sc7280_rt5682_init()
167 ret = snd_soc_dai_set_sysclk(codec_dai, RT5682S_SCLK_S_PLL2, in sc7280_rt5682_init()
210 struct snd_soc_dai *codec_dai; in sc7280_snd_hw_params() local
[all …]
Dsc7180.c61 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in sc7180_headset_init() local
62 struct snd_soc_component *component = codec_dai->component; in sc7180_headset_init()
97 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in sc7180_hdmi_init() local
98 struct snd_soc_component *component = codec_dai->component; in sc7180_hdmi_init()
160 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in sc7180_startup_realtek_codec() local
163 if (!strcmp(codec_dai->name, "rt5682-aif1")) { in sc7180_startup_realtek_codec()
169 } else if (!strcmp(codec_dai->name, "rt5682s-aif1")) { in sc7180_startup_realtek_codec()
178 snd_soc_dai_set_fmt(codec_dai, in sc7180_startup_realtek_codec()
184 ret = snd_soc_dai_set_pll(codec_dai, pll_id, pll_source, in sc7180_startup_realtek_codec()
192 ret = snd_soc_dai_set_sysclk(codec_dai, clk_id, pll_out, in sc7180_startup_realtek_codec()
[all …]
Dapq8096.c34 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in msm_snd_hw_params() local
40 ret = snd_soc_dai_get_channel_map(codec_dai, in msm_snd_hw_params()
69 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in apq8096_init() local
83 snd_soc_dai_set_channel_map(codec_dai, ARRAY_SIZE(tx_ch), in apq8096_init()
86 snd_soc_dai_set_sysclk(codec_dai, 0, WCD9335_DEFAULT_MCLK_RATE, in apq8096_init()
/linux-6.12.1/sound/soc/intel/boards/
Dsof_maxim_common.c115 struct snd_soc_dai *codec_dai; in max_98373_hw_params() local
122 for_each_rtd_codec_dais(rtd, i, codec_dai) { in max_98373_hw_params()
124 dev_err(codec_dai->dev, "only 2 amps are supported\n"); in max_98373_hw_params()
140 tx_mask = max_98373_get_tx_mask(codec_dai->dev); in max_98373_hw_params()
145 dev_err(codec_dai->dev, "invalid tx mask 0x%x, used 0x%x\n", in max_98373_hw_params()
157 dev_err(codec_dai->dev, "slot mismatch, tx %d slots %d\n", in max_98373_hw_params()
163 dev_err(codec_dai->dev, "slot mismatch, rx %d slots %d\n", in max_98373_hw_params()
168 dev_dbg(codec_dai->dev, "set tdm slot: tx 0x%x rx 0x%x slots %d width %d\n", in max_98373_hw_params()
172 ret = snd_soc_dai_set_tdm_slot(codec_dai, tx_mask, in max_98373_hw_params()
177 dev_err(codec_dai->dev, "fail to set tdm slot, ret %d\n", in max_98373_hw_params()
[all …]
Dsof_realtek_common.c140 struct snd_soc_dai *codec_dai; in rt1011_hw_params() local
145 for_each_rtd_codec_dais(rtd, i, codec_dai) { in rt1011_hw_params()
147 ret = snd_soc_dai_set_pll(codec_dai, 0, RT1011_PLL1_S_BCLK, in rt1011_hw_params()
150 dev_err(codec_dai->dev, "fail to set pll, ret %d\n", in rt1011_hw_params()
155 ret = snd_soc_dai_set_sysclk(codec_dai, RT1011_FS_SYS_PRE_S_PLL1, in rt1011_hw_params()
158 dev_err(codec_dai->dev, "fail to set sysclk, ret %d\n", in rt1011_hw_params()
164 dev_err(codec_dai->dev, "invalid codec index %d\n", in rt1011_hw_params()
169 ret = snd_soc_dai_set_tdm_slot(codec_dai, rt1011_tdm_mask[i].tx, in rt1011_hw_params()
173 dev_err(codec_dai->dev, "fail to set tdm slot, ret %d\n", in rt1011_hw_params()
401 struct snd_soc_dai *codec_dai; in rt1015_hw_params() local
[all …]
Dsof_cirrus_common.c95 struct snd_soc_dai *codec_dai; in cs35l41_hw_params() local
105 for_each_rtd_codec_dais(rtd, i, codec_dai) { in cs35l41_hw_params()
107 ret = snd_soc_dai_set_sysclk(codec_dai, CS35L41_CLKID_SCLK, in cs35l41_hw_params()
110 dev_err(codec_dai->dev, "fail to set sysclk, ret %d\n", in cs35l41_hw_params()
116 ret = snd_soc_component_set_sysclk(codec_dai->component, in cs35l41_hw_params()
120 dev_err(codec_dai->dev, "fail to set component sysclk, ret %d\n", in cs35l41_hw_params()
126 ret = snd_soc_dai_set_channel_map(codec_dai, 0, NULL, in cs35l41_hw_params()
130 dev_err(codec_dai->dev, "fail to set channel map, ret %d\n", in cs35l41_hw_params()
Dbdw_rt286.c102 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in codec_link_hw_params() local
105 ret = snd_soc_dai_set_sysclk(codec_dai, RT286_SCLK_S_PLL, 24000000, SND_SOC_CLOCK_IN); in codec_link_hw_params()
188 struct snd_soc_dai *codec_dai = snd_soc_card_get_codec_dai(card, "rt286-aif1"); in card_suspend_pre() local
190 if (!codec_dai) in card_suspend_pre()
193 return snd_soc_component_set_jack(codec_dai->component, NULL, NULL); in card_suspend_pre()
198 struct snd_soc_dai *codec_dai = snd_soc_card_get_codec_dai(card, "rt286-aif1"); in card_resume_post() local
200 if (!codec_dai) in card_resume_post()
203 return snd_soc_component_set_jack(codec_dai->component, &card_headset, NULL); in card_resume_post()
Dbytcht_da7213.c109 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in aif1_hw_params() local
112 ret = snd_soc_dai_set_sysclk(codec_dai, DA7213_CLKSRC_MCLK, in aif1_hw_params()
115 dev_err(codec_dai->dev, "can't set codec sysclk configuration\n"); in aif1_hw_params()
117 ret = snd_soc_dai_set_pll(codec_dai, 0, in aif1_hw_params()
120 dev_err(codec_dai->dev, "failed to start PLL: %d\n", ret); in aif1_hw_params()
130 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in aif1_hw_free() local
133 ret = snd_soc_dai_set_pll(codec_dai, 0, in aif1_hw_free()
136 dev_err(codec_dai->dev, "failed to stop PLL: %d\n", ret); in aif1_hw_free()
Dcht_bsw_rt5672.c55 struct snd_soc_dai *codec_dai; in platform_clock_control() local
59 codec_dai = snd_soc_card_get_codec_dai(card, CHT_CODEC_DAI); in platform_clock_control()
60 if (!codec_dai) { in platform_clock_control()
76 ret = snd_soc_dai_set_pll(codec_dai, 0, RT5670_PLL1_S_MCLK, in platform_clock_control()
84 ret = snd_soc_dai_set_sysclk(codec_dai, RT5670_SCLK_S_PLL1, in platform_clock_control()
96 ret = snd_soc_dai_set_sysclk(codec_dai, RT5670_SCLK_S_RCCLK, in platform_clock_control()
163 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in cht_aif1_hw_params() local
167 ret = snd_soc_dai_set_pll(codec_dai, 0, RT5670_PLL1_S_MCLK, in cht_aif1_hw_params()
175 ret = snd_soc_dai_set_sysclk(codec_dai, RT5670_SCLK_S_PLL1, in cht_aif1_hw_params()
195 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(runtime, 0); in cht_codec_init() local
[all …]
Dcht_bsw_nau8824.c76 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in cht_aif1_hw_params() local
79 ret = snd_soc_dai_set_sysclk(codec_dai, NAU8824_CLK_FLL_FS, 0, in cht_aif1_hw_params()
82 dev_err(codec_dai->dev, "can't set FS clock %d\n", ret); in cht_aif1_hw_params()
85 ret = snd_soc_dai_set_pll(codec_dai, 0, 0, params_rate(params), in cht_aif1_hw_params()
88 dev_err(codec_dai->dev, "can't set FLL: %d\n", ret); in cht_aif1_hw_params()
99 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(runtime, 0); in cht_codec_init() local
100 struct snd_soc_component *component = codec_dai->component; in cht_codec_init()
/linux-6.12.1/sound/soc/amd/acp/
Dacp-mach-common.c120 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in acp_card_rt5682_init() local
121 struct snd_soc_component *component = codec_dai->component; in acp_card_rt5682_init()
124 dev_info(rtd->dev, "codec dai name = %s\n", codec_dai->name); in acp_card_rt5682_init()
178 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in acp_card_hs_startup() local
192 ret = snd_soc_dai_set_fmt(codec_dai, fmt); in acp_card_hs_startup()
223 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in acp_card_rt5682_hw_params() local
248 ret = snd_soc_dai_set_fmt(codec_dai, fmt); in acp_card_rt5682_hw_params()
264 ret = snd_soc_dai_set_tdm_slot(codec_dai, 0x3, 0x3, 8, 16); in acp_card_rt5682_hw_params()
271 ret = snd_soc_dai_set_pll(codec_dai, RT5682_PLL2, RT5682_PLL2_S_MCLK, in acp_card_rt5682_hw_params()
278 ret = snd_soc_dai_set_sysclk(codec_dai, RT5682_SCLK_S_PLL2, in acp_card_rt5682_hw_params()
[all …]
/linux-6.12.1/sound/soc/sh/
Dmigor.c49 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in migor_hw_params() local
53 ret = snd_soc_dai_set_sysclk(codec_dai, WM8978_PLL, 13000000, in migor_hw_params()
58 ret = snd_soc_dai_set_clkdiv(codec_dai, WM8978_OPCLKRATE, rate * 512); in migor_hw_params()
68 dev_dbg(codec_dai->dev, "%s: configure %luHz\n", __func__, codec_freq); in migor_hw_params()
82 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in migor_hw_free() local
88 snd_soc_dai_set_sysclk(codec_dai, WM8978_PLL, 0, in migor_hw_free()
91 dev_dbg(codec_dai->dev, "Unbalanced hw_free!\n"); in migor_hw_free()
/linux-6.12.1/sound/soc/amd/
Dacp3x-rt5682-max9836.c57 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in acp3x_5682_init() local
58 struct snd_soc_component *component = codec_dai->component; in acp3x_5682_init()
60 dev_info(rtd->dev, "codec dai name = %s\n", codec_dai->name); in acp3x_5682_init()
63 ret = snd_soc_dai_set_fmt(codec_dai, SND_SOC_DAIFMT_I2S in acp3x_5682_init()
73 ret = snd_soc_dai_set_pll(codec_dai, RT5682_PLL2, RT5682_PLL2_S_MCLK, in acp3x_5682_init()
81 ret = snd_soc_dai_set_sysclk(codec_dai, RT5682_SCLK_S_PLL2, in acp3x_5682_init()
90 ret = snd_soc_dai_set_bclk_ratio(codec_dai, 64); in acp3x_5682_init()
147 struct snd_soc_dai *codec_dai; in acp3x_1015_hw_params() local
153 for_each_rtd_codec_dais(rtd, i, codec_dai) { in acp3x_1015_hw_params()
154 if (strcmp(codec_dai->name, "rt1015-aif")) in acp3x_1015_hw_params()
[all …]
/linux-6.12.1/sound/soc/sdw_utils/
Dsoc_sdw_cs_amp.c26 struct snd_soc_dai *codec_dai; in asoc_sdw_cs_spk_rtd_init() local
36 for_each_rtd_codec_dais(rtd, i, codec_dai) { in asoc_sdw_cs_spk_rtd_init()
37 if (!strstr(codec_dai->name, "cs35l56")) in asoc_sdw_cs_spk_rtd_init()
41 codec_dai->component->name_prefix); in asoc_sdw_cs_spk_rtd_init()
Dsoc_sdw_rt_amp.c192 struct snd_soc_dai *codec_dai; in asoc_sdw_rt_amp_spk_rtd_init() local
204 for_each_rtd_codec_dais(rtd, i, codec_dai) { in asoc_sdw_rt_amp_spk_rtd_init()
205 if (strstr(codec_dai->component->name_prefix, "-1")) in asoc_sdw_rt_amp_spk_rtd_init()
207 else if (strstr(codec_dai->component->name_prefix, "-2")) in asoc_sdw_rt_amp_spk_rtd_init()
220 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in rt1308_i2s_hw_params() local
230 err = snd_soc_dai_set_pll(codec_dai, 0, clk_id, clk_freq, pll_out); in rt1308_i2s_hw_params()
237 err = snd_soc_dai_set_sysclk(codec_dai, RT1308_FS_SYS_S_PLL, pll_out, in rt1308_i2s_hw_params()
/linux-6.12.1/sound/soc/rockchip/
Drk3399_gru_sound.c90 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in rockchip_sound_rt5514_hw_params() local
103 ret = snd_soc_dai_set_sysclk(codec_dai, RT5514_SCLK_S_MCLK, in rockchip_sound_rt5514_hw_params()
122 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in rockchip_sound_da7219_hw_params() local
149 dev_err(codec_dai->dev, "Can't set cpu clock out %d\n", ret); in rockchip_sound_da7219_hw_params()
153 ret = snd_soc_dai_set_sysclk(codec_dai, 0, mclk, in rockchip_sound_da7219_hw_params()
156 dev_err(codec_dai->dev, "Can't set codec clock in %d\n", ret); in rockchip_sound_da7219_hw_params()
160 ret = snd_soc_dai_set_pll(codec_dai, 0, DA7219_SYSCLK_MCLK, 0, 0); in rockchip_sound_da7219_hw_params()
162 dev_err(codec_dai->dev, "Can't set pll sysclk mclk %d\n", ret); in rockchip_sound_da7219_hw_params()
191 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in rockchip_sound_da7219_init() local
195 ret = snd_soc_dai_set_sysclk(codec_dai, 0, 12288000, in rockchip_sound_da7219_init()
[all …]

1234567891011