Added de-emphasis filter functions and speaker protection.
[aic34-eq] / kernel-2.6.28 / sound / soc / codecs / tlv320aic3x.h
index eb1a5a2..1e71f08 100644 (file)
@@ -288,6 +288,19 @@ enum {
        AIC3X_GPIO2_FUNC_BUTTON_PRESS_IRQ       = 15
 };
 
+/* Data for reading/writing to the IIR Filter hwdep */
+struct aic3x_iir_coeffs {
+       short N0, N1, N2, D1, D2;
+       short N3, N4, N5, D4, D5;
+};
+
+int aic3x_deemph_set_coeffs(struct snd_soc_codec *codec, 
+       int N0, int N1, int D1);
+int aic3x_deemph_set_state(struct snd_soc_codec *codec, int state);
+int aic3x_dacfilter_set_coeffs
+       (struct snd_soc_codec *codec, struct aic3x_iir_coeffs *coeffs);
+int aic3x_dacfilter_set_state(struct snd_soc_codec *codec, int state);
+
 void aic3x_set_gpio(struct snd_soc_codec *codec, int gpio, int state);
 int aic3x_get_gpio(struct snd_soc_codec *codec, int gpio);
 int aic3x_headset_detected(struct snd_soc_codec *codec);