summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/audio_codec.h
diff options
context:
space:
mode:
authorVaibhav Agarwal <vaibhav.agarwal@linaro.org>2016-08-04 15:14:39 +0530
committerGreg Kroah-Hartman <gregkh@google.com>2016-08-04 19:07:30 +0200
commit591c45227a77505f111dd42347b2ad09b60ed131 (patch)
treebf5747d266bf98cccd2a77ae27e26bb671b1379c /drivers/staging/greybus/audio_codec.h
parent19866603be2ad58735f82511f3d5f680e61479ea (diff)
greybus: audio: Maintain module stream state for each data connection
For SPK module, each data connection corresponds to codec DAI. Now stream state is maintained for each DAI. So, need to maintain stream state for each DAI/data connection for individual module as well. 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/staging/greybus/audio_codec.h')
-rw-r--r--drivers/staging/greybus/audio_codec.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/greybus/audio_codec.h b/drivers/staging/greybus/audio_codec.h
index 40c39b30d951..0de2ad99003b 100644
--- a/drivers/staging/greybus/audio_codec.h
+++ b/drivers/staging/greybus/audio_codec.h
@@ -140,6 +140,8 @@ struct gbaudio_data_connection {
__le16 data_cport;
struct gb_connection *connection;
struct list_head list;
+ /* maintain runtime state for playback/capture stream */
+ int state[2];
};
/* stream direction */
@@ -178,9 +180,6 @@ struct gbaudio_module_info {
struct snd_soc_jack headset_jack;
struct snd_soc_jack button_jack;
- /* used by codec_ops */
- int ctrlstate[2]; /* PB/CAP */
-
/* connection info */
struct gb_connection *mgmt_connection;
size_t num_data_connections;