msm-qti-pp-config.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * Copyright (c) 2012-2017, 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_QTI_PP_H_
  14. #define _MSM_QTI_PP_H_
  15. #include <sound/soc.h>
  16. int msm_adsp_inform_mixer_ctl(struct snd_soc_pcm_runtime *rtd,
  17. uint32_t *payload);
  18. int msm_adsp_init_mixer_ctl_pp_event_queue(struct snd_soc_pcm_runtime *rtd);
  19. int msm_adsp_clean_mixer_ctl_pp_event_queue(struct snd_soc_pcm_runtime *rtd);
  20. int msm_adsp_stream_cmd_info(struct snd_kcontrol *kcontrol,
  21. struct snd_ctl_elem_info *uinfo);
  22. int msm_adsp_stream_callback_get(struct snd_kcontrol *kcontrol,
  23. struct snd_ctl_elem_value *ucontrol);
  24. int msm_adsp_stream_callback_info(struct snd_kcontrol *kcontrol,
  25. struct snd_ctl_elem_info *uinfo);
  26. #ifdef CONFIG_QTI_PP
  27. void msm_qti_pp_send_eq_values(int fedai_id);
  28. int msm_qti_pp_send_stereo_to_custom_stereo_cmd(int port_id, int copp_idx,
  29. unsigned int session_id,
  30. uint16_t op_FL_ip_FL_weight,
  31. uint16_t op_FL_ip_FR_weight,
  32. uint16_t op_FR_ip_FL_weight,
  33. uint16_t op_FR_ip_FR_weight);
  34. void msm_qti_pp_add_controls(struct snd_soc_platform *platform);
  35. #else /* CONFIG_QTI_PP */
  36. #define msm_qti_pp_send_eq_values(fedai_id) do {} while (0)
  37. #define msm_qti_pp_send_stereo_to_custom_stereo_cmd(port_id, copp_idx, \
  38. session_id, op_FL_ip_FL_weight, op_FL_ip_FR_weight, \
  39. op_FR_ip_FL_weight, op_FR_ip_FR_weight) (0)
  40. #define msm_qti_pp_add_controls(platform) do {} while (0)
  41. #endif /* CONFIG_QTI_PP */
  42. #if defined(CONFIG_QTI_PP) && defined(CONFIG_QTI_PP_AUDIOSPHERE)
  43. int msm_qti_pp_asphere_init(int port_id, int copp_idx);
  44. void msm_qti_pp_asphere_deinit(int port_id);
  45. #else
  46. #define msm_qti_pp_asphere_init(port_id, copp_idx) (0)
  47. #define msm_qti_pp_asphere_deinit(port_id) do {} while (0)
  48. #endif
  49. #endif /* _MSM_QTI_PP_H_ */