diff options
author | Vaibhav Agarwal <vaibhav.agarwal@linaro.org> | 2016-03-30 13:23:55 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-04-05 09:39:22 -0400 |
commit | a9234bfd6cec4420b5bef29d77dce1f9cb0543e2 (patch) | |
tree | d34d44f33373f3b12f8451b70933b22ab5195f7f /drivers/staging/greybus/audio_manager_sysfs.c | |
parent | dc5cc72cc6c219868ad5b87b26c79ac778444210 (diff) |
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_manager_sysfs.c')
-rw-r--r-- | drivers/staging/greybus/audio_manager_sysfs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/staging/greybus/audio_manager_sysfs.c b/drivers/staging/greybus/audio_manager_sysfs.c index c713f5f7aaca..d8bf8591ff9e 100644 --- a/drivers/staging/greybus/audio_manager_sysfs.c +++ b/drivers/staging/greybus/audio_manager_sysfs.c @@ -20,11 +20,12 @@ static ssize_t manager_sysfs_add_store( int num = sscanf(buf, "name=%" GB_AUDIO_MANAGER_MODULE_NAME_LEN_SSCANF "s " - "slot=%d vid=%d pid=%d cport=%d devices=0x%X", + "slot=%d vid=%d pid=%d cport=%d i/p devices=0x%X" + "o/p devices=0x%X", desc.name, &desc.slot, &desc.vid, &desc.pid, - &desc.cport, &desc.devices); + &desc.cport, &desc.ip_devices, &desc.op_devices); - if (num != 6) + if (num != 7) return -EINVAL; num = gb_audio_manager_add(&desc); |