lpass-cdc-comp.h 660 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /* Copyright (c) 2020, The Linux Foundation. All rights reserved.
  3. */
  4. #ifndef LPASS_CDC_COMP_H
  5. #define LPASS_CDC_COMP_H
  6. #include <sound/soc.h>
  7. struct comp_coeff_val {
  8. u8 lsb;
  9. u8 msb;
  10. };
  11. struct lpass_cdc_comp_setting {
  12. int upper_gain_int;
  13. int lower_gain_int;
  14. int ana_addr_map;
  15. };
  16. int lpass_cdc_load_compander_coeff(struct snd_soc_component *component,
  17. u16 lsb_reg, u16 msb_reg,
  18. struct comp_coeff_val *comp_coeff_table,
  19. u16 arr_size);
  20. int lpass_cdc_update_compander_setting(struct snd_soc_component *component,
  21. u16 start_addr,
  22. struct lpass_cdc_comp_setting *comp_setting);
  23. #endif