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

Commit c6f97aa6 authored by Dongwon Kang's avatar Dongwon Kang
Browse files

Register C2 HAL Service v1.0 instead v1.1

swcodec doesn't implement video tunneling feature, so v1.1 is not
needed.

Test: TARGET_BUILD_APPS=com.android.media.swcodec m dist && adb install
--staged out/dist/com.android.media.swcodec.apex && adb reboot userspace
Test: atest CtsMediaTestCases -- --module-arg
CtsMediaTestCases:exclude-annotation:android.media.cts.NonMediaMainlineTest

Bug: 144271235
Change-Id: I461ebb2ee7b6e47c1a58e1b88ba0b227285d0745
parent e3fa518b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
    <hal>
        <name>android.hardware.media.c2</name>
        <transport>hwbinder</transport>
        <version>1.1</version>
        <version>1.0</version>
        <interface>
            <name>IComponentStore</name>
            <instance>software</instance>
+2 −2
Original line number Diff line number Diff line
@@ -20,11 +20,11 @@
#include <android-base/logging.h>

#include <C2PlatformSupport.h>
#include <codec2/hidl/1.1/ComponentStore.h>
#include <codec2/hidl/1.0/ComponentStore.h>
#include <media/CodecServiceRegistrant.h>

extern "C" void RegisterCodecServices() {
    using namespace ::android::hardware::media::c2::V1_1;
    using namespace ::android::hardware::media::c2::V1_0;
    LOG(INFO) << "Creating software Codec2 service...";
    android::sp<IComponentStore> store =
        new utils::ComponentStore(