From: Rhyland Klein Date: Thu, 15 Mar 2012 22:07:47 +0000 (-0700) Subject: ASoC: max98095: add jack detection X-Git-Tag: v3.5-rc1~118^2~3^2~193 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dd90c5db0401061009183e6407feff3724ebc8b;p=pandora-kernel.git ASoC: max98095: add jack detection This change adds the logic to support using the jack detect mechanism built in to the codec to detect both when a jack was inserted and what type of jack is present. This change also supports the use of an external mechanism for headphone detection. If this mechanism exists, when the max98095_jack_detect function is called, the hp_jack is simply passed NULL. This change supports both simple headphones, powered headphones, microphones and headsets with both headphones and a mic. Signed-off-by: Rhyland Klein Signed-off-by: Mark Brown --- Reading git-diff-tree failed