msm: audio: qdsp6v2: Add format type adif in aac driver

Signed-off-by: Swaminathan Sathappan <Swami@codeaurora.org>
This commit is contained in:
Swaminathan Sathappan
2011-08-01 18:31:58 -07:00
committed by Bryan Huntsman
parent 8b38f94ece
commit 150f788698
2 changed files with 4 additions and 1 deletions

View File

@@ -1261,7 +1261,9 @@ static long audio_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
case AUDIO_AAC_FORMAT_LOAS:
aac_cfg.format = 0x01;
break;
/* ADIF, use it as RAW */
case AUDIO_AAC_FORMAT_ADIF:
aac_cfg.format = 0x02;
break;
default:
case AUDIO_AAC_FORMAT_RAW:
aac_cfg.format = 0x03;

View File

@@ -18,6 +18,7 @@
#define AUDIO_AAC_FORMAT_RAW 0x0000
#define AUDIO_AAC_FORMAT_PSUEDO_RAW 0x0001
#define AUDIO_AAC_FORMAT_LOAS 0x0002
#define AUDIO_AAC_FORMAT_ADIF 0x0003
#define AUDIO_AAC_OBJECT_LC 0x0002
#define AUDIO_AAC_OBJECT_LTP 0x0004