]> git.baikalelectronics.ru Git - kernel.git/commit
staging: greybus: audio: Add helper APIs for dynamic audio modules
authorVaibhav Agarwal <vaibhav.sr@gmail.com>
Thu, 9 Jul 2020 10:27:21 +0000 (15:57 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jul 2020 14:40:09 +0000 (16:40 +0200)
commita2805c52d0b9107c4dbd5c74a28842c17d8a81ee
treeadd6b0638605e524ea519f49a61ba5b4bc5d8e8f
parent8ce08e905145d21e1e9ba5e8bdc7b0c7a717297a
staging: greybus: audio: Add helper APIs for dynamic audio modules

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>
drivers/staging/greybus/Makefile
drivers/staging/greybus/audio_codec.c
drivers/staging/greybus/audio_helper.c [new file with mode: 0644]
drivers/staging/greybus/audio_helper.h [new file with mode: 0644]