greybus: audio: Report jack removal along with module removal
authorVaibhav Agarwal <vaibhav.agarwal@linaro.org>
Fri, 5 Aug 2016 12:46:30 +0000 (18:16 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 5 Aug 2016 18:14:48 +0000 (20:14 +0200)
commit33cc283928249b2230a6519a2303fe30161cf788
treed6940b319b22097abac05d0ceb2152959326e3ff
parent9141ad8773f4f6ebb8cd9fa376d9497fa7e73374
greybus: audio: Report jack removal along with module removal

For GB module with jack slot supported, headset/headphone can still
be inserted at the time of module removal. In this case, above layer is
unaware about jack removal event which happened due to module removal.
This may lead to inconsistent state in above HAL layer.  Fix this by
reporting jack removal event explicitly.

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_codec.c