]> git.baikalelectronics.ru Git - kernel.git/commit
staging: greybus: audio: Cleanup junk codec registers
authorVaibhav Agarwal <vaibhav.agarwal@linaro.org>
Wed, 18 Jan 2017 17:21:52 +0000 (22:51 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2017 10:08:00 +0000 (11:08 +0100)
commitd6a38ab5aa312df5a3cb0a3f11d4388d1b2d1258
tree73d2ac454aa13637c865c29b0a5ad42be0b56712
parentff0f22a855def4d3cc9acf9e4e47723521e35805
staging: greybus: audio: Cleanup junk codec registers

Dummy codec register were initially added while populating dummy codec
mixer controls until module topology parser was available. Now, these
dummy registers are nowhere used and thus can be safely removed.

Since ASoC framework requires a valid callback for both read & write
register APIS, currently empty placeholders are kept to avoid panic.

Later, register mapping logic can be defined:
1. Assuming fixed number of maximum modules connected and register bits
corresponds to basic info of each module OR
2. With a logic to dynamically grow register_cache_size based on codec
modules added/removed.

Signed-off-by: Vaibhav Agarwal <vaibhav.agarwal@linaro.org>
Signed-off-by: Vaibhav Agarwal <vaibhav.sr@gmail.com>
Acked-by: Mark Greer <mgreer@animalcreek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/audio_codec.c
drivers/staging/greybus/audio_codec.h