diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2016-01-27 16:57:48 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-01-27 17:53:10 -0800 |
commit | 35e28794dcddf2eab1d53b9f3bf5a0eeee82e3c9 (patch) | |
tree | e404cb7fae47009b3a09b18ea52e163f2beae770 /drivers/staging/greybus/audio_codec.h | |
parent | 4b27be1223b048322398e04fcebef7f85c0dac0d (diff) |
greybus: audio_codec: convert to bundle driver
Convert the legacy audio management and data protocol drivers to a
bundle driver.
The Audio bundle driver can support a single management and any number
of data cports, and so we expect multiple data cports to be present for
the bundle during initialization.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.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.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/staging/greybus/audio_codec.h b/drivers/staging/greybus/audio_codec.h index 0b587ef74d16..bba48a59bf4d 100644 --- a/drivers/staging/greybus/audio_codec.h +++ b/drivers/staging/greybus/audio_codec.h @@ -142,6 +142,13 @@ struct gbaudio_codec_info { struct mutex lock; }; +struct gb_audio { + struct gb_connection *mgmt_connection; + size_t num_data_connections; + struct gbaudio_codec_info *gbcodec; + struct gb_connection *data_connection[0]; +}; + struct gbaudio_dai *gbaudio_add_dai(struct gbaudio_codec_info *gbcodec, int data_cport, struct gb_connection *connection, |