Home
last modified time | relevance | path

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

/linux/sound/soc/codecs/
H A Drt5682-sdw.c42 struct rt5682_priv *rt5682 = dev_get_drvdata(dev); in rt5682_sdw_read() local
45 regmap_write(rt5682->sdw_regmap, RT5682_SDW_CMD, 0); in rt5682_sdw_read()
46 regmap_write(rt5682->sdw_regmap, RT5682_SDW_ADDR_H, (reg >> 8) & 0xff); in rt5682_sdw_read()
47 regmap_write(rt5682->sdw_regmap, RT5682_SDW_ADDR_L, (reg & 0xff)); in rt5682_sdw_read()
48 regmap_read(rt5682->sdw_regmap, RT5682_SDW_DATA_H, &data_h); in rt5682_sdw_read()
49 regmap_read(rt5682->sdw_regmap, RT5682_SDW_DATA_L, &data_l); in rt5682_sdw_read()
61 struct rt5682_priv *rt5682 = dev_get_drvdata(dev); in rt5682_sdw_write() local
63 regmap_write(rt5682->sdw_regmap, RT5682_SDW_CMD, 1); in rt5682_sdw_write()
64 regmap_write(rt5682->sdw_regmap, RT5682_SDW_ADDR_H, (reg >> 8) & 0xff); in rt5682_sdw_write()
65 regmap_write(rt5682->sdw_regmap, RT5682_SDW_ADDR_L, (reg & 0xff)); in rt5682_sdw_write()
[all …]
H A Drt5682-i2c.c57 struct rt5682_priv *rt5682 = container_of(work, struct rt5682_priv, in rt5682_jd_check_handler() local
60 if (snd_soc_component_read(rt5682->component, RT5682_AJD1_CTRL) & RT5682_JDH_RS_MASK) in rt5682_jd_check_handler()
63 &rt5682->jack_detect_work, 0); in rt5682_jd_check_handler()
65 schedule_delayed_work(&rt5682->jd_check_work, 500); in rt5682_jd_check_handler()
70 struct rt5682_priv *rt5682 = data; in rt5682_irq() local
73 &rt5682->jack_detect_work, msecs_to_jiffies(rt5682->irq_work_delay_time)); in rt5682_irq()
114 struct rt5682_priv *rt5682 = data; in rt5682_i2c_disable_regulators() local
116 regulator_bulk_disable(ARRAY_SIZE(rt5682->supplies), rt5682->supplies); in rt5682_i2c_disable_regulators()
122 struct rt5682_priv *rt5682; in rt5682_i2c_probe() local
126 rt5682 = devm_kzalloc(&i2c->dev, sizeof(struct rt5682_priv), in rt5682_i2c_probe()
[all …]
H A Drt5682.c56 void rt5682_apply_patch_list(struct rt5682_priv *rt5682, struct device *dev) in rt5682_apply_patch_list() argument
60 ret = regmap_multi_reg_write(rt5682->regmap, patch_list, in rt5682_apply_patch_list()
815 void rt5682_reset(struct rt5682_priv *rt5682) in rt5682_reset() argument
817 regmap_write(rt5682->regmap, RT5682_RESET, 0); in rt5682_reset()
818 if (!rt5682->is_sdw) in rt5682_reset()
819 regmap_write(rt5682->regmap, RT5682_I2C_MODE, 1); in rt5682_reset()
883 struct rt5682_priv *rt5682 = snd_soc_component_get_drvdata(component); in rt5682_enable_push_button_irq() local
894 if (rt5682->is_sdw) in rt5682_enable_push_button_irq()
928 struct rt5682_priv *rt5682 = snd_soc_component_get_drvdata(component); in rt5682_headset_detect() local
966 rt5682->jack_type = SND_JACK_HEADSET; in rt5682_headset_detect()
[all …]
H A Drt5682.h1475 void rt5682_apply_patch_list(struct rt5682_priv *rt5682, struct device *dev);
1483 void rt5682_calibrate(struct rt5682_priv *rt5682);
1484 void rt5682_reset(struct rt5682_priv *rt5682);
1485 int rt5682_parse_dt(struct rt5682_priv *rt5682, struct device *dev);
1486 int rt5682_get_ldo1(struct rt5682_priv *rt5682, struct device *dev);
1488 int rt5682_register_dai_clks(struct rt5682_priv *rt5682);
H A DMakefile258 snd-soc-rt5682-y := rt5682.o
259 snd-soc-rt5682-sdw-y := rt5682-sdw.o
260 snd-soc-rt5682-i2c-y := rt5682-i2c.o
671 obj-$(CONFIG_SND_SOC_RT5682) += snd-soc-rt5682.o
672 obj-$(CONFIG_SND_SOC_RT5682_I2C) += snd-soc-rt5682-i2c.o
673 obj-$(CONFIG_SND_SOC_RT5682_SDW) += snd-soc-rt5682-sdw.o
/linux/sound/soc/intel/boards/
H A Dsof_rt5682.c149 if (ctx->rt5682.mclk_en) { in sof_rt5682_codec_init()
190 if (ctx->rt5682.is_legacy_cpu) { in sof_rt5682_codec_init()
201 ret = clk_prepare_enable(ctx->rt5682.mclk); in sof_rt5682_codec_init()
203 clk_disable_unprepare(ctx->rt5682.mclk); in sof_rt5682_codec_init()
205 ret = clk_set_rate(ctx->rt5682.mclk, 19200000); in sof_rt5682_codec_init()
262 if (ctx->rt5682.mclk_en) { in sof_rt5682_hw_params()
263 if (ctx->rt5682.is_legacy_cpu) { in sof_rt5682_hw_params()
264 ret = clk_prepare_enable(ctx->rt5682.mclk); in sof_rt5682_hw_params()
564 if (!ctx->rt5682.is_legacy_cpu) { in sof_card_dai_links_create()
669 ctx->rt5682.is_legacy_cpu = true; in sof_audio_probe()
[all …]
H A Dsof_board_helpers.h163 struct sof_rt5682_private rt5682; member
H A DKconfig323 tristate "SOF with rt5650/rt5682 codec in I2S Mode"
345 with rt5650 or rt5682 codec.
/linux/sound/soc/amd/
H A DMakefile6 snd-soc-acp-rt5682-mach-y := acp3x-rt5682-max9836.o
14 obj-$(CONFIG_SND_SOC_AMD_RV_RT5682_MACH) += snd-soc-acp-rt5682-mach.o
/linux/sound/soc/intel/avs/boards/
H A DMakefile18 snd-soc-avs-rt5682-y := rt5682.o
36 obj-$(CONFIG_SND_SOC_INTEL_AVS_MACH_RT5682) += snd-soc-avs-rt5682.o
H A DKconfig149 tristate "rt5682 in I2S mode"
/linux/Documentation/devicetree/bindings/sound/
H A Drt5682.txt7 - compatible : "realtek,rt5682" or "realtek,rt5682i"
76 rt5682 {
89 clock-output-names = "rt5682-dai-wclk", "rt5682-dai-bclk";
/linux/arch/arm64/boot/dts/qcom/
H A Dsc7180-trogdor-rt5682i-sku.dtsi20 * is set in rt5682.c.
37 model = "sc7180-rt5682-max98357a-1mic";
H A Dsc7280-herobrine-audio-rt5682.dtsi5 * using rt5682 codec.
14 model = "sc7280-rt5682-max98360a-1mic";
H A Dsc7280-herobrine-audio-rt5682-3mic.dtsi5 * using rt5682 codec and having 3 dmics connected to sc7280.
14 model = "sc7280-rt5682-max98360a-3mic";
H A Dsc7180-trogdor-rt5682s-sku.dtsi20 * is set in rt5682.c.
H A Dsc7280-herobrine-zombie.dtsi9 #include "sc7280-herobrine-audio-rt5682.dtsi"
H A Dsc7280-herobrine-evoker.dtsi9 #include "sc7280-herobrine-audio-rt5682-3mic.dtsi"
H A Dsc7180-trogdor-pompom.dtsi173 model = "sc7180-rt5682-max98357a-2mic";
H A Dsc7280-herobrine-herobrine-r1.dts11 #include "sc7280-herobrine-audio-rt5682.dtsi"
/linux/arch/arm64/boot/dts/mediatek/
H A Dmt8192-asurada-hayato-r5-sku2.dts44 &rt5682 {
56 sound-dai = <&rt5682 0>;
H A Dmt8192-asurada-spherion-r4.dts60 &rt5682 {
72 sound-dai = <&rt5682 0>;
H A Dmt8192-asurada-hayato-r1.dts104 &rt5682 {
118 sound-dai = <&rt5682 0>;
/linux/sound/soc/mediatek/mt8192/
H A DMakefile16 mt8192-mt6359-rt1015-rt5682.o
/linux/sound/soc/amd/acp/
H A Dacp-mach-common.c84 SND_SOC_DAILINK_DEF(rt5682,
1418 links[i].codecs = rt5682; in acp_sofdsp_dai_links_create()
1419 links[i].num_codecs = ARRAY_SIZE(rt5682); in acp_sofdsp_dai_links_create()
1616 links[i].codecs = rt5682; in acp_legacy_dai_links_create()
1617 links[i].num_codecs = ARRAY_SIZE(rt5682); in acp_legacy_dai_links_create()