rt1316-sdw.c (14cc5849120051caf537f663ec620910503bb719) rt1316-sdw.c (011e397f5c9c96e533d4a244af84e74c9caefb83)
1// SPDX-License-Identifier: GPL-2.0-only
2//
3// rt1316-sdw.c -- rt1316 SDCA ALSA SoC amplifier audio driver
4//
5// Copyright(c) 2021 Realtek Semiconductor Corp.
6//
7//
8#include <linux/delay.h>

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

585 * slave_ops: callbacks for get_clock_stop_mode, clock_stop and
586 * port_prep are not defined for now
587 */
588static struct sdw_slave_ops rt1316_slave_ops = {
589 .read_prop = rt1316_read_prop,
590 .update_status = rt1316_update_status,
591};
592
1// SPDX-License-Identifier: GPL-2.0-only
2//
3// rt1316-sdw.c -- rt1316 SDCA ALSA SoC amplifier audio driver
4//
5// Copyright(c) 2021 Realtek Semiconductor Corp.
6//
7//
8#include <linux/delay.h>

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

585 * slave_ops: callbacks for get_clock_stop_mode, clock_stop and
586 * port_prep are not defined for now
587 */
588static struct sdw_slave_ops rt1316_slave_ops = {
589 .read_prop = rt1316_read_prop,
590 .update_status = rt1316_update_status,
591};
592
593static int rt1316_sdw_component_probe(struct snd_soc_component *component)
594{
595 int ret;
596
597 ret = pm_runtime_resume(component->dev);
598 if (ret < 0 && ret != -EACCES)
599 return ret;
600
601 return 0;
602}
603
593static const struct snd_soc_component_driver soc_component_sdw_rt1316 = {
604static const struct snd_soc_component_driver soc_component_sdw_rt1316 = {
605 .probe = rt1316_sdw_component_probe,
594 .controls = rt1316_snd_controls,
595 .num_controls = ARRAY_SIZE(rt1316_snd_controls),
596 .dapm_widgets = rt1316_dapm_widgets,
597 .num_dapm_widgets = ARRAY_SIZE(rt1316_dapm_widgets),
598 .dapm_routes = rt1316_dapm_routes,
599 .num_dapm_routes = ARRAY_SIZE(rt1316_dapm_routes),
600 .endianness = 1,
601};

--- 155 unchanged lines hidden ---
606 .controls = rt1316_snd_controls,
607 .num_controls = ARRAY_SIZE(rt1316_snd_controls),
608 .dapm_widgets = rt1316_dapm_widgets,
609 .num_dapm_widgets = ARRAY_SIZE(rt1316_dapm_widgets),
610 .dapm_routes = rt1316_dapm_routes,
611 .num_dapm_routes = ARRAY_SIZE(rt1316_dapm_routes),
612 .endianness = 1,
613};

--- 155 unchanged lines hidden ---