dsp_codec.h 729 B

1234567891011121314151617181920212223242526
  1. #ifndef DSP_CODEC_CTL_H
  2. #define DSP_CODEC_CTL_H
  3. #include "dsp_control.h"
  4. #include "codec_message.h"
  5. int dsp_codec_start( struct audiodsp_priv *priv);
  6. int dsp_codec_stop( struct audiodsp_priv *priv);
  7. int dsp_codec_get_bufer_data_len(struct audiodsp_priv *priv);
  8. static inline unsigned long dsp_codec_get_rd_addr(struct audiodsp_priv *priv)
  9. {
  10. return ARC_2_ARM_ADDR_SWAP(DSP_RD(DSP_DECODE_OUT_RD_ADDR));
  11. };
  12. static inline unsigned long dsp_codec_get_wd_addr(struct audiodsp_priv *priv)
  13. {
  14. return ARC_2_ARM_ADDR_SWAP(DSP_RD(DSP_DECODE_OUT_WD_ADDR));
  15. };
  16. unsigned long dsp_codec_inc_rd_addr(struct audiodsp_priv *priv,int size);
  17. u32 dsp_codec_get_current_pts(struct audiodsp_priv *priv);
  18. #endif