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

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

1189 device_property_read_u32(dev, "realtek,jd-src", &rt711->jd_src);
1190
1191 return 0;
1192}
1193
1194static int rt711_sdca_probe(struct snd_soc_component *component)
1195{
1196 struct rt711_sdca_priv *rt711 = snd_soc_component_get_drvdata(component);
1// SPDX-License-Identifier: GPL-2.0-only
2//
3// rt711-sdca.c -- rt711 SDCA ALSA SoC audio driver
4//
5// Copyright(c) 2021 Realtek Semiconductor Corp.
6//
7//
8

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

1189 device_property_read_u32(dev, "realtek,jd-src", &rt711->jd_src);
1190
1191 return 0;
1192}
1193
1194static int rt711_sdca_probe(struct snd_soc_component *component)
1195{
1196 struct rt711_sdca_priv *rt711 = snd_soc_component_get_drvdata(component);
1197 int ret;
1197
1198 rt711_sdca_parse_dt(rt711, &rt711->slave->dev);
1199 rt711->component = component;
1200
1198
1199 rt711_sdca_parse_dt(rt711, &rt711->slave->dev);
1200 rt711->component = component;
1201
1202 ret = pm_runtime_resume(component->dev);
1203 if (ret < 0 && ret != -EACCES)
1204 return ret;
1205
1201 return 0;
1202}
1203
1204static const struct snd_soc_component_driver soc_sdca_dev_rt711 = {
1205 .probe = rt711_sdca_probe,
1206 .controls = rt711_sdca_snd_controls,
1207 .num_controls = ARRAY_SIZE(rt711_sdca_snd_controls),
1208 .dapm_widgets = rt711_sdca_dapm_widgets,

--- 382 unchanged lines hidden ---
1206 return 0;
1207}
1208
1209static const struct snd_soc_component_driver soc_sdca_dev_rt711 = {
1210 .probe = rt711_sdca_probe,
1211 .controls = rt711_sdca_snd_controls,
1212 .num_controls = ARRAY_SIZE(rt711_sdca_snd_controls),
1213 .dapm_widgets = rt711_sdca_dapm_widgets,

--- 382 unchanged lines hidden ---