diff options
author | Vaibhav Agarwal <vaibhav.agarwal@linaro.org> | 2016-08-04 15:14:30 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-08-04 19:07:30 +0200 |
commit | aaef32a6cc552d50b86fcf9c5b2105f08c048cdc (patch) | |
tree | 9734ec0c3b13252ae29f98f58319bc44d96d375d /drivers | |
parent | ce9413062f8e2366916beebbfa8e73c6ff1a2c8c (diff) |
greybus: audio: Split helper APIs based on stream direction
Now, module is enabled/disabled based on widget event only and not
during startup/shutdown callbacks. Thus, we needn't compare codec_state
in enable/disable module helper APIs. Also, these can be further
simplified based on stream direction.
Signed-off-by: Vaibhav Agarwal <vaibhav.agarwal@linaro.org>
Reviewed-by: Mark Greer <mgreer@animalcreek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/greybus/audio_codec.c | 405 |
1 files changed, 228 insertions, 177 deletions
diff --git a/drivers/staging/greybus/audio_codec.c b/drivers/staging/greybus/audio_codec.c |