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

Commit 4759d79b authored by George Gao's avatar George Gao Committed by Gerrit - the friendly Code Review server
Browse files

hal: add input voip entry to be aligned with config file

Added audio input voip flag so that the same voip flag in config file
can be recognized and mapped to according value.
Added flag of mmap, av sync, and direct for future use.

Change-Id: I408b2f84ebee4fe84665827e8fdd832fde44141a
parent c6a85b81
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -160,6 +160,10 @@ const struct string_to_enum s_flag_name_to_enum_table[] = {
    STRING_TO_ENUM(AUDIO_INPUT_FLAG_TIMESTAMP),
    STRING_TO_ENUM(AUDIO_INPUT_FLAG_COMPRESS),
    STRING_TO_ENUM(AUDIO_INPUT_FLAG_PASSTHROUGH),
    STRING_TO_ENUM(AUDIO_INPUT_FLAG_MMAP_NOIRQ),
    STRING_TO_ENUM(AUDIO_INPUT_FLAG_VOIP_TX),
    STRING_TO_ENUM(AUDIO_INPUT_FLAG_HW_AV_SYNC),
    STRING_TO_ENUM(AUDIO_INPUT_FLAG_DIRECT),
};

const struct string_to_enum s_format_name_to_enum_table[] = {
@@ -243,6 +247,7 @@ static uint32_t string_to_enum(const struct string_to_enum *table, size_t size,
            return table[i].value;
        }
    }
    ALOGE("%s cound not find %s", __func__, name);
    return 0;
}