aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/audio_module.c
diff options
context:
space:
mode:
authorVaibhav Agarwal <vaibhav.agarwal@linaro.org>2016-03-30 13:23:55 +0530
committerGreg Kroah-Hartman <gregkh@google.com>2016-04-05 09:39:22 -0400
commita9234bfd6cec4420b5bef29d77dce1f9cb0543e2 (patch)
treed34d44f33373f3b12f8451b70933b22ab5195f7f /drivers/staging/greybus/audio_module.c
parentgreybus: camera: Add metadata format (diff)
downloadlinux-dev-a9234bfd6cec4420b5bef29d77dce1f9cb0543e2.tar.xz
linux-dev-a9234bfd6cec4420b5bef29d77dce1f9cb0543e2.zip
greybus: audio_manager: Split device type into i/p & o/p devices
Currently, single field is used to report device type say SPK, MIC, HS, HP, etc. However above HAL expects separate fields for input & ouput device types. 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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/greybus/audio_module.c b/drivers/staging/greybus/audio_module.c
index 9039aa63e040..a7f961f85e21 100644
--- a/drivers/staging/greybus/audio_module.c
+++ b/drivers/staging/greybus/audio_module.c
@@ -353,7 +353,8 @@ static int gb_audio_probe(struct gb_bundle *bundle,
desc.vid = 2; /* todo */
desc.pid = 3; /* todo */
desc.cport = gbmodule->dev_id;
- desc.devices = 0x2; /* todo */
+ desc.op_devices = 0x2; /* todo */
+ desc.ip_devices = 0x0; /* todo */
gbmodule->manager_id = gb_audio_manager_add(&desc);
dev_dbg(dev, "Add GB Audio device:%s\n", gbmodule->name);