mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-03 17:40:04 +00:00
![Vaibhav Agarwal](/assets/img/avatar_default.png)
Greybus Codec driver allows modules to be dynamically added and removed, which further requires updating the DAPM configurations as well. With current snd_soc architecture, dynamic audio modules is not yet supported. This patch provides helper APIs to update DAPM configurations in response to modules which are dynamically added or removed. The source is primarily based on snd_dapm.c Signed-off-by: Vaibhav Agarwal <vaibhav.sr@gmail.com> Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/35e1baaae10a3f2162e71be4c2f75a701584f0e6.1594290158.git.vaibhav.sr@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
17 lines
578 B
C
17 lines
578 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Greybus Audio Sound SoC helper APIs
|
|
*/
|
|
|
|
#ifndef __LINUX_GBAUDIO_HELPER_H
|
|
#define __LINUX_GBAUDIO_HELPER_H
|
|
|
|
int gbaudio_dapm_link_component_dai_widgets(struct snd_soc_card *card,
|
|
struct snd_soc_dapm_context *dapm);
|
|
int gbaudio_dapm_free_controls(struct snd_soc_dapm_context *dapm,
|
|
const struct snd_soc_dapm_widget *widget,
|
|
int num);
|
|
int gbaudio_remove_component_controls(struct snd_soc_component *component,
|
|
const struct snd_kcontrol_new *controls,
|
|
unsigned int num_controls);
|
|
#endif
|