pcm.c (50282fd57bcd3525c9d81eef58df8718e4337c6d) pcm.c (da0fe8fd515a471d373acc3682bfb5522cca4d55)
1// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
2//
3// This file is provided under a dual BSD/GPLv2 license. When using or
4// redistributing this file, you may do so under either license.
5//
6// Copyright(c) 2018 Intel Corporation. All rights reserved.
7//
8// Author: Liam Girdwood <liam.r.girdwood@linux.intel.com>

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

638
639 /* load the default topology */
640 sdev->component = component;
641
642 tplg_filename = devm_kasprintf(sdev->dev, GFP_KERNEL,
643 "%s/%s",
644 plat_data->tplg_filename_prefix,
645 plat_data->tplg_filename);
1// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
2//
3// This file is provided under a dual BSD/GPLv2 license. When using or
4// redistributing this file, you may do so under either license.
5//
6// Copyright(c) 2018 Intel Corporation. All rights reserved.
7//
8// Author: Liam Girdwood <liam.r.girdwood@linux.intel.com>

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

638
639 /* load the default topology */
640 sdev->component = component;
641
642 tplg_filename = devm_kasprintf(sdev->dev, GFP_KERNEL,
643 "%s/%s",
644 plat_data->tplg_filename_prefix,
645 plat_data->tplg_filename);
646 if (!tplg_filename)
647 return -ENOMEM;
646 if (!tplg_filename) {
647 ret = -ENOMEM;
648 goto pm_error;
649 }
648
649 ret = snd_sof_load_topology(component, tplg_filename);
650
651 ret = snd_sof_load_topology(component, tplg_filename);
650 if (ret < 0) {
652 if (ret < 0)
651 dev_err(component->dev, "error: failed to load DSP topology %d\n",
652 ret);
653 dev_err(component->dev, "error: failed to load DSP topology %d\n",
654 ret);
653 return ret;
654 }
655
655
656pm_error:
656 pm_runtime_mark_last_busy(component->dev);
657 pm_runtime_put_autosuspend(component->dev);
658
659 return ret;
660}
661
662static void sof_pcm_remove(struct snd_soc_component *component)
663{

--- 72 unchanged lines hidden ---
657 pm_runtime_mark_last_busy(component->dev);
658 pm_runtime_put_autosuspend(component->dev);
659
660 return ret;
661}
662
663static void sof_pcm_remove(struct snd_soc_component *component)
664{

--- 72 unchanged lines hidden ---