From 591c45227a77505f111dd42347b2ad09b60ed131 Mon Sep 17 00:00:00 2001 From: Vaibhav Agarwal Date: Thu, 4 Aug 2016 15:14:39 +0530 Subject: 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 Reviewed-by: Mark Greer Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/audio_codec.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'drivers/staging/greybus/audio_codec.h') 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; -- cgit v1.2.3