greybus: audio: Identify jack type based on attributes reported
authorVaibhav Agarwal <vaibhav.agarwal@linaro.org>
Wed, 13 Apr 2016 04:23:39 +0000 (09:53 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 26 Apr 2016 01:02:57 +0000 (18:02 -0700)
commit05ab5f0daa524915176d170f3873b97ad10d7c43
treec9971f6742ac5a5a7b67adc17e88c0c1a0977f78
parent475f498bcedb15634ca041b4eea2c58622558e03
greybus: audio: Identify jack type based on attributes reported

Originally, idea was to use widget_type to identify jack_type.
However, suggestive way is to identify jack based on jack
attributes.

Changes already exists in codec FW to report jack attributes.

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>
drivers/staging/greybus/audio_module.c