target: copper: Add support to detect volume down key based on pmic versions.
Change-Id: Ifd8d28cc11dff1e0830063f76a9217a1a482d725
diff --git a/target/copper/init.c b/target/copper/init.c
index dfbb23a..499047b1 100644
--- a/target/copper/init.c
+++ b/target/copper/init.c
@@ -98,7 +98,10 @@
uint32_t target_volume_down()
{
/* Volume down button is tied in with RESIN on MSM8974. */
- return pm8x41_resin_bark_workaround_status();
+ if (pm8x41_get_pmic_rev() == PMIC_VERSION_V2)
+ return pm8x41_resin_bark_workaround_status();
+ else
+ return pm8x41_resin_status();
}
static void target_keystatus()