staging: greybus: audio: Maintain jack list within GB Audio module
authorVaibhav Agarwal <vaibhav.sr@gmail.com>
Thu, 9 Jul 2020 10:27:18 +0000 (15:57 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jul 2020 14:40:08 +0000 (16:40 +0200)
commitac40b4d1e409971fe40e69761d0c80ffbbb21938
tree60aeeb54bb1b3104d62114254925cf4cdc9f36c3
parentb503aef30e45ad29f8dd7f53e22240ea6e527590
staging: greybus: audio: Maintain jack list within GB Audio module

As per the current implementation for GB codec driver, a jack list is
maintained for each module. And it expects the list to be populated by
the snd_soc_jack structure which would require modifications in
mainstream code.

However, this is not a necessary requirement and the list can be easily
maintained within gbaudio_module_info as well. This patch provides the
relevant changes for the same.

Signed-off-by: Vaibhav Agarwal <vaibhav.sr@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/4ee030af7a8e203f89a6e513313e36f4e2991e5b.1594290158.git.vaibhav.sr@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/audio_codec.c
drivers/staging/greybus/audio_codec.h
drivers/staging/greybus/audio_module.c