[PATCH V2 2/2] ASoC: TLV320AIC3x: Adding additional functionality for 3106

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Here is the result:
----------------------------------------------------------------------------
diff --git a/sound/soc/codecs/tlv320aic3x.h b/sound/soc/codecs/tlv320aic3x.h
index e521ac3..22bd0be 100644
--- a/sound/soc/codecs/tlv320aic3x.h
+++ b/sound/soc/codecs/tlv320aic3x.h
@@ -272,8 +272,13 @@ enum {
 };

 #define AIC3X_HEADSET_DETECT_ENABLED   0x80
-#define AIC3X_HEADSET_DETECT_SHIFT     5
-#define AIC3X_HEADSET_DETECT_MASK      3
+#define AIC3X_HEADSET_DETECT_A_SHIFT   5
+#define AIC3X_HEADSET_DETECT_A_MASK    3
+
+#define AIC3X_BUTTON_DETECT_SHIFT      5
+#define AIC3X_BUTTON_DETECT_MASK       1
+#define AIC3X_HEADSET_DETECT_B_SHIFT   4
+#define AIC3X_HEADSET_DETECT_B_MASK    1
 #define AIC3X_HEADSET_DEBOUNCE_SHIFT   2
 #define AIC3X_HEADSET_DEBOUNCE_MASK    7
 #define AIC3X_BUTTON_DEBOUNCE_SHIFT    0
----------------------------------------------------------------------------
Cheers,
Timur Karaldin
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux