lpass-cdc-comp.h 564 B

1234567891011121314151617181920212223
  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. #define COMP_MAX_SETTING 12
  8. struct comp_coeff_val {
  9. u8 lsb;
  10. u8 msb;
  11. };
  12. int lpass_cdc_load_compander_coeff(struct snd_soc_component *component,
  13. u16 lsb_reg, u16 msb_reg,
  14. struct comp_coeff_val *comp_coeff_table,
  15. u16 arr_size);
  16. int lpass_cdc_update_compander_setting(struct snd_soc_component *component,
  17. u16 start_addr, u8 *reg_val);
  18. #endif