Harmandeep Singh | c35fa07d | 2012-05-31 07:08:59 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2012, Code Aurora Forum. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | * |
| 12 | */ |
| 13 | |
| 14 | /* For Decoders */ |
| 15 | #ifndef __Q6_AUDIO_COMMON_H__ |
| 16 | #define __Q6_AUDIO_COMMON_H__ |
| 17 | |
Abhimanyu Kapur | 90ced6e | 2012-06-26 17:41:25 -0700 | [diff] [blame] | 18 | #ifdef CONFIG_ARCH_MSM8974 |
Harmandeep Singh | e5ddfe3 | 2012-05-26 09:39:25 -0700 | [diff] [blame] | 19 | #include <sound/apr_audio-v2.h> |
| 20 | #include <sound/q6asm-v2.h> |
| 21 | #else |
Harmandeep Singh | c35fa07d | 2012-05-31 07:08:59 -0700 | [diff] [blame] | 22 | #include <sound/apr_audio.h> |
| 23 | #include <sound/q6asm.h> |
Harmandeep Singh | e5ddfe3 | 2012-05-26 09:39:25 -0700 | [diff] [blame] | 24 | #endif |
Harmandeep Singh | c35fa07d | 2012-05-31 07:08:59 -0700 | [diff] [blame] | 25 | |
| 26 | void q6_audio_cb(uint32_t opcode, uint32_t token, |
| 27 | uint32_t *payload, void *priv); |
| 28 | |
| 29 | void audio_aio_cb(uint32_t opcode, uint32_t token, |
| 30 | uint32_t *payload, void *audio); |
| 31 | |
| 32 | |
| 33 | /* For Encoders */ |
| 34 | void q6asm_in_cb(uint32_t opcode, uint32_t token, |
| 35 | uint32_t *payload, void *priv); |
| 36 | |
| 37 | void audio_in_get_dsp_frames(void *audio, |
| 38 | uint32_t token, uint32_t *payload); |
| 39 | |
| 40 | #endif /*__Q6_AUDIO_COMMON_H__*/ |