summaryrefslogtreecommitdiff
authorTellen Yu <tellen.yu@amlogic.com>2018-03-09 14:23:26 (GMT)
committer Tellen Yu <tellen.yu@amlogic.com>2018-03-09 14:23:26 (GMT)
commitd3a07f8a267084e6198053f1ae2010431d70211b (patch)
tree599f287c8e163cf3c1090e0b1d2d7ec5ef65aa07
parent6e3817f799603993654e96a774cd63b5bde2252d (diff)
downloadamlogic-d3a07f8a267084e6198053f1ae2010431d70211b.zip
amlogic-d3a07f8a267084e6198053f1ae2010431d70211b.tar.gz
amlogic-d3a07f8a267084e6198053f1ae2010431d70211b.tar.bz2
Audio: ChromeCast creates audio track failed. [1/1]
PD# 160784 Add capabilities for 6ch ac3 audio. Change-Id: Idd2ae12324831310119c926b637751d0e23f536f
Diffstat
-rw-r--r--audio/audio_hw_profile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/audio_hw_profile.c b/audio/audio_hw_profile.c
index 60fb060..8733a8f 100644
--- a/audio/audio_hw_profile.c
+++ b/audio/audio_hw_profile.c
@@ -198,9 +198,9 @@ char* get_hdmi_sink_cap(const char *keys,audio_format_t format)
ALOGD("query hdmi channels...\n");
/* take the 2ch suppported as default */
size += sprintf(aud_cap, "sup_channels=%s", "AUDIO_CHANNEL_OUT_STEREO");
- if (mystrstr(infobuf, "PCM, 8 ch")) {
+ if (mystrstr(infobuf, "PCM, 8 ch") || mystrstr(infobuf, "Dobly_Digital+")) {
size += sprintf(aud_cap + size, "|%s", "AUDIO_CHANNEL_OUT_5POINT1|AUDIO_CHANNEL_OUT_7POINT1");
- } else if (mystrstr(infobuf, "PCM, 6 ch")) {
+ } else if (mystrstr(infobuf, "PCM, 6 ch") || mystrstr(infobuf, "AC-3")) {
size += sprintf(aud_cap + size, "|%s", "AUDIO_CHANNEL_OUT_5POINT1");
}
} else if (strstr(keys, AUDIO_PARAMETER_STREAM_SUP_SAMPLING_RATES)) {