q6audio_common.h 695 B

12345678910111213141516171819202122232425262728
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /* Copyright (c) 2012-2014, 2017, 2020 The Linux Foundation. All rights reserved.
  3. */
  4. /* For Decoders */
  5. #ifndef __Q6_AUDIO_COMMON_H__
  6. #define __Q6_AUDIO_COMMON_H__
  7. #include <dsp/apr_audio-v2.h>
  8. #include <dsp/q6asm-v2.h>
  9. extern spinlock_t enc_dec_lock;
  10. void q6_audio_cb(uint32_t opcode, uint32_t token,
  11. uint32_t *payload, void *priv);
  12. void audio_aio_cb(uint32_t opcode, uint32_t token,
  13. uint32_t *payload, void *audio);
  14. /* For Encoders */
  15. void q6asm_in_cb(uint32_t opcode, uint32_t token,
  16. uint32_t *payload, void *priv);
  17. void audio_in_get_dsp_frames(void *audio,
  18. uint32_t token, uint32_t *payload);
  19. #endif /*__Q6_AUDIO_COMMON_H__*/