diff options
author | Vaibhav Agarwal <vaibhav.agarwal@linaro.org> | 2016-08-04 15:14:34 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-08-04 19:07:30 +0200 |
commit | b7e7dc0083d662c061dcd547c7dde4db24331ebc (patch) | |
tree | 31e1fd06bf38a32ca5bba8cbea395f6f8f2a85be /drivers/staging/greybus/audio_module.c | |
parent | 487dcbd6ba46548f8f24dbd75423785ec8153712 (diff) |
greybus: audio: Add id to identify data connection
Added id field to data connection struct. This is used to identify which
data connection to use while enabling interface between module & APB.
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_module.c')
-rw-r--r-- | drivers/staging/greybus/audio_module.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/greybus/audio_module.c b/drivers/staging/greybus/audio_module.c index 7cf523e7f995..9632bc119f87 100644 --- a/drivers/staging/greybus/audio_module.c +++ b/drivers/staging/greybus/audio_module.c @@ -199,6 +199,7 @@ static int gb_audio_add_data_connection(struct gbaudio_module_info *gbmodule, greybus_set_drvdata(bundle, gbmodule); /* dai->name should be same as codec->dai_name */ strlcpy(dai->name, "greybus-apb1", NAME_SIZE); + dai->id = 0; dai->data_cport = connection->intf_cport_id; dai->connection = connection; list_add(&dai->list, &gbmodule->data_list); |