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)
commit510e340efe0cbd379cf1ff3490d088c3299749b1
treeadd6b0638605e524ea519f49a61ba5b4bc5d8e8f
parentc4bb7dcf143f89c024ad439871f75d4a9f72cbc1
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]