Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e30f2096 authored by Eric Laurent's avatar Eric Laurent
Browse files

Add Dolby TrueHD audio format

Also add missing formats in AudioFlinger string conversion
utility.

Bug: 30024357
Change-Id: I75bdb54daeb786543f545ec3a772121055e01cdb
parent b343e044
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -132,6 +132,9 @@ const char *formatToString(audio_format_t format) {
    case AUDIO_FORMAT_AC3: return "ac-3";
    case AUDIO_FORMAT_E_AC3: return "e-ac-3";
    case AUDIO_FORMAT_IEC61937: return "iec61937";
    case AUDIO_FORMAT_DTS: return "dts";
    case AUDIO_FORMAT_DTS_HD: return "dts-hd";
    case AUDIO_FORMAT_DOLBY_TRUEHD: return "dolby-truehd";
    default:
        break;
    }
+1 −0
Original line number Diff line number Diff line
@@ -142,6 +142,7 @@ const FormatConverter::Table FormatConverter::mTable[] = {
    MAKE_STRING_FROM_ENUM(AUDIO_FORMAT_DTS),
    MAKE_STRING_FROM_ENUM(AUDIO_FORMAT_DTS_HD),
    MAKE_STRING_FROM_ENUM(AUDIO_FORMAT_IEC61937),
    MAKE_STRING_FROM_ENUM(AUDIO_FORMAT_DOLBY_TRUEHD),
};
template<>
const size_t FormatConverter::mSize = sizeof(FormatConverter::mTable) /