msm-audio-effects-q6-v2.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * Copyright (c) 2013-2016, The Linux Foundation. All rights reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 and
  6. * only version 2 as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. */
  13. #ifndef _MSM_AUDIO_EFFECTS_H
  14. #define _MSM_AUDIO_EFFECTS_H
  15. #include <sound/audio_effects.h>
  16. #define MAX_PP_PARAMS_SZ 128
  17. bool msm_audio_effects_is_effmodule_supp_in_top(int effect_module,
  18. int topology);
  19. int msm_audio_effects_enable_extn(struct audio_client *ac,
  20. struct msm_nt_eff_all_config *effects,
  21. bool flag);
  22. int msm_audio_effects_reverb_handler(struct audio_client *ac,
  23. struct reverb_params *reverb,
  24. long *values);
  25. int msm_audio_effects_bass_boost_handler(struct audio_client *ac,
  26. struct bass_boost_params *bass_boost,
  27. long *values);
  28. int msm_audio_effects_pbe_handler(struct audio_client *ac,
  29. struct pbe_params *pbe,
  30. long *values);
  31. int msm_audio_effects_virtualizer_handler(struct audio_client *ac,
  32. struct virtualizer_params *virtualizer,
  33. long *values);
  34. int msm_audio_effects_popless_eq_handler(struct audio_client *ac,
  35. struct eq_params *eq,
  36. long *values);
  37. int msm_audio_effects_volume_handler(struct audio_client *ac,
  38. struct soft_volume_params *vol,
  39. long *values);
  40. int msm_audio_effects_volume_handler_v2(struct audio_client *ac,
  41. struct soft_volume_params *vol,
  42. long *values, int instance);
  43. #endif /*_MSM_AUDIO_EFFECTS_H*/