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

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

603 */
604static const struct sdw_slave_ops rt1308_slave_ops = {
605 .read_prop = rt1308_read_prop,
606 .interrupt_callback = rt1308_interrupt_callback,
607 .update_status = rt1308_update_status,
608 .bus_config = rt1308_bus_config,
609};
610
1// SPDX-License-Identifier: GPL-2.0
2//
3// rt1308-sdw.c -- rt1308 ALSA SoC audio driver
4//
5// Copyright(c) 2019 Realtek Semiconductor Corp.
6//
7//
8#include <linux/delay.h>

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

603 */
604static const struct sdw_slave_ops rt1308_slave_ops = {
605 .read_prop = rt1308_read_prop,
606 .interrupt_callback = rt1308_interrupt_callback,
607 .update_status = rt1308_update_status,
608 .bus_config = rt1308_bus_config,
609};
610
611static int rt1308_sdw_component_probe(struct snd_soc_component *component)
612{
613 int ret;
614
615 ret = pm_runtime_resume(component->dev);
616 if (ret < 0 && ret != -EACCES)
617 return ret;
618
619 return 0;
620}
621
611static const struct snd_soc_component_driver soc_component_sdw_rt1308 = {
622static const struct snd_soc_component_driver soc_component_sdw_rt1308 = {
623 .probe = rt1308_sdw_component_probe,
612 .controls = rt1308_snd_controls,
613 .num_controls = ARRAY_SIZE(rt1308_snd_controls),
614 .dapm_widgets = rt1308_dapm_widgets,
615 .num_dapm_widgets = ARRAY_SIZE(rt1308_dapm_widgets),
616 .dapm_routes = rt1308_dapm_routes,
617 .num_dapm_routes = ARRAY_SIZE(rt1308_dapm_routes),
618 .endianness = 1,
619};

--- 152 unchanged lines hidden ---
624 .controls = rt1308_snd_controls,
625 .num_controls = ARRAY_SIZE(rt1308_snd_controls),
626 .dapm_widgets = rt1308_dapm_widgets,
627 .num_dapm_widgets = ARRAY_SIZE(rt1308_dapm_widgets),
628 .dapm_routes = rt1308_dapm_routes,
629 .num_dapm_routes = ARRAY_SIZE(rt1308_dapm_routes),
630 .endianness = 1,
631};

--- 152 unchanged lines hidden ---