]> Git Repo - J-linux.git/blob - sound/soc/intel/boards/sof_sdw_rt715_sdca.c
Merge tag 'amd-drm-next-6.5-2023-06-09' of https://gitlab.freedesktop.org/agd5f/linux...
[J-linux.git] / sound / soc / intel / boards / sof_sdw_rt715_sdca.c
1 // SPDX-License-Identifier: GPL-2.0-only
2 // Copyright (c) 2020 Intel Corporation
3
4 /*
5  *  sof_sdw_rt715_sdca - Helpers to handle RT715-SDCA from generic machine driver
6  */
7
8 #include <linux/device.h>
9 #include <linux/errno.h>
10 #include <sound/soc.h>
11 #include <sound/soc-acpi.h>
12 #include "sof_sdw_common.h"
13
14 static int rt715_sdca_rtd_init(struct snd_soc_pcm_runtime *rtd)
15 {
16         struct snd_soc_card *card = rtd->card;
17
18         card->components = devm_kasprintf(card->dev, GFP_KERNEL,
19                                           "%s mic:rt715-sdca",
20                                           card->components);
21         if (!card->components)
22                 return -ENOMEM;
23
24         return 0;
25 }
26
27 int sof_sdw_rt715_sdca_init(struct snd_soc_card *card,
28                             const struct snd_soc_acpi_link_adr *link,
29                             struct snd_soc_dai_link *dai_links,
30                             struct sof_sdw_codec_info *info,
31                             bool playback)
32 {
33         dai_links->init = rt715_sdca_rtd_init;
34
35         return 0;
36 }
This page took 0.029777 seconds and 4 git commands to generate.