Skip to content

Commit

Permalink
system/core: Add support for EVRCNW audio format
Browse files Browse the repository at this point in the history
This change is needed to support EVRCNW audio format.

Change-Id: I161c2c24ca764ed291f59d17d0a2be443818a7aa
  • Loading branch information
vkathota authored and hyperb1iss committed Oct 8, 2013
1 parent 308bf89 commit efd207f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions include/system/audio.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ typedef enum {
AUDIO_FORMAT_DTS_LBR = 0x13000000UL,
AUDIO_FORMAT_AMR_WB_PLUS = 0x14000000UL,
AUDIO_FORMAT_MP2 = 0x15000000UL,
AUDIO_FORMAT_EVRCNW = 0x16000000UL,
#endif
AUDIO_FORMAT_MAIN_MASK = 0xFF000000UL,
AUDIO_FORMAT_SUB_MASK = 0x00FFFFFFUL,
Expand Down Expand Up @@ -701,6 +702,7 @@ static inline bool audio_is_valid_format(audio_format_t format)
case AUDIO_FORMAT_DTS_LBR:
case AUDIO_FORMAT_AMR_WB_PLUS:
case AUDIO_FORMAT_MP2:
case AUDIO_FORMAT_EVRCNW:
#endif
return true;
default:
Expand All @@ -721,6 +723,7 @@ static inline bool audio_is_supported_compressed(audio_format_t format)
format == AUDIO_FORMAT_EVRC ||
format == AUDIO_FORMAT_EVRCB ||
format == AUDIO_FORMAT_EVRCWB ||
format == AUDIO_FORMAT_EVRCNW ||
format == AUDIO_FORMAT_QCELP ||
format == AUDIO_FORMAT_AAC)
return true;
Expand Down Expand Up @@ -767,6 +770,25 @@ static inline size_t audio_bytes_per_sample(audio_format_t format)
return size;
}

//This enum used for resource management in 8x10
#ifdef RESOURCE_MANAGER
typedef enum {
USECASE_PCM_PLAYBACK = 0,
USECASE_PCM_RECORDING,
USECASE_NON_TUNNEL_DSP_PLAYBACK,
USECASE_TUNNEL_DSP_PLAYBACK,
USECASE_LPA_PLAYBACK,
USECASE_NON_TUNNEL_VIDEO_DSP_PLAYBACK,
USECASE_VIDEO_PLAYBACK,
USECASE_VIDEO_RECORD,
USECASE_VOICE_CALL,
USECASE_VOIP_CALL,
USECASE_VIDEO_TELEPHONY,
USECASE_FM_PLAYBACK,
USECASE_ULL,
} audio_use_case_value_t;
#endif

__END_DECLS

#endif // ANDROID_AUDIO_CORE_H

0 comments on commit efd207f

Please sign in to comment.