rt711.c (14cc5849120051caf537f663ec620910503bb719) rt711.c (011e397f5c9c96e533d4a244af84e74c9caefb83)
1// SPDX-License-Identifier: GPL-2.0
2//
3// rt711.c -- rt711 ALSA SoC audio driver
4//
5// Copyright(c) 2019 Realtek Semiconductor Corp.
6//
7//
8

--- 921 unchanged lines hidden (view full) ---

930 &rt711->jd_src);
931
932 return 0;
933}
934
935static int rt711_probe(struct snd_soc_component *component)
936{
937 struct rt711_priv *rt711 = snd_soc_component_get_drvdata(component);
1// SPDX-License-Identifier: GPL-2.0
2//
3// rt711.c -- rt711 ALSA SoC audio driver
4//
5// Copyright(c) 2019 Realtek Semiconductor Corp.
6//
7//
8

--- 921 unchanged lines hidden (view full) ---

930 &rt711->jd_src);
931
932 return 0;
933}
934
935static int rt711_probe(struct snd_soc_component *component)
936{
937 struct rt711_priv *rt711 = snd_soc_component_get_drvdata(component);
938 int ret;
938
939 rt711_parse_dt(rt711, &rt711->slave->dev);
940 rt711->component = component;
941
939
940 rt711_parse_dt(rt711, &rt711->slave->dev);
941 rt711->component = component;
942
943 ret = pm_runtime_resume(component->dev);
944 if (ret < 0 && ret != -EACCES)
945 return ret;
946
942 return 0;
943}
944
945static const struct snd_soc_component_driver soc_codec_dev_rt711 = {
946 .probe = rt711_probe,
947 .set_bias_level = rt711_set_bias_level,
948 .controls = rt711_snd_controls,
949 .num_controls = ARRAY_SIZE(rt711_snd_controls),

--- 402 unchanged lines hidden ---
947 return 0;
948}
949
950static const struct snd_soc_component_driver soc_codec_dev_rt711 = {
951 .probe = rt711_probe,
952 .set_bias_level = rt711_set_bias_level,
953 .controls = rt711_snd_controls,
954 .num_controls = ARRAY_SIZE(rt711_snd_controls),

--- 402 unchanged lines hidden ---