1d9ec20e66310e5fa84a1de1c3303748f6b690542Patrick Tjin#ifndef _UAPI_MSM_AUDIO_QCP_H
2d9ec20e66310e5fa84a1de1c3303748f6b690542Patrick Tjin#define _UAPI_MSM_AUDIO_QCP_H
35d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjin
45d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjin#include <linux/msm_audio.h>
55d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjin
65d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjin#define AUDIO_SET_QCELP_ENC_CONFIG  _IOW(AUDIO_IOCTL_MAGIC, \
75d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjin	0, struct msm_audio_qcelp_enc_config)
85d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjin
95d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjin#define AUDIO_GET_QCELP_ENC_CONFIG  _IOR(AUDIO_IOCTL_MAGIC, \
105d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjin	1, struct msm_audio_qcelp_enc_config)
115d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjin
125d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjin#define AUDIO_SET_EVRC_ENC_CONFIG  _IOW(AUDIO_IOCTL_MAGIC, \
135d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjin	2, struct msm_audio_evrc_enc_config)
145d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjin
155d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjin#define AUDIO_GET_EVRC_ENC_CONFIG  _IOR(AUDIO_IOCTL_MAGIC, \
165d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjin	3, struct msm_audio_evrc_enc_config)
175d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjin
185d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjin#define CDMA_RATE_BLANK		0x00
195d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjin#define CDMA_RATE_EIGHTH	0x01
205d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjin#define CDMA_RATE_QUARTER	0x02
215d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjin#define CDMA_RATE_HALF		0x03
225d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjin#define CDMA_RATE_FULL		0x04
235d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjin#define CDMA_RATE_ERASURE	0x05
245d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjin
255d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjinstruct msm_audio_qcelp_enc_config {
265d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjin	uint32_t cdma_rate;
275d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjin	uint32_t min_bit_rate;
285d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjin	uint32_t max_bit_rate;
295d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjin};
305d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjin
315d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjinstruct msm_audio_evrc_enc_config {
325d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjin	uint32_t cdma_rate;
335d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjin	uint32_t min_bit_rate;
345d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjin	uint32_t max_bit_rate;
355d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjin};
365d6a7fb6f1a9ff1d898b290fc7c0b2695cf22229Patrick Tjin
37d9ec20e66310e5fa84a1de1c3303748f6b690542Patrick Tjin#endif /* _UAPI_MSM_AUDIO_QCP_H */
38