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

Commit 1c367919 authored by Android Build Merger (Role)'s avatar Android Build Merger (Role) Committed by Android (Google) Code Review
Browse files

Merge "Merge "Fix opening tuner session with HAL 2.0." into pi-dev am: 7072bbb1 am: 9f605941"

parents a76d6a07 67cb790d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -101,7 +101,9 @@ public class BroadcastRadioService {
        }

        TunerSession session = module.openSession(callback);
        if (legacyConfig != null) {
            session.setConfiguration(legacyConfig);
        }
        return session;
    }

+1 −1
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ class RadioModule {

    public static @Nullable RadioModule tryLoadingModule(int idx, @NonNull String fqName) {
        try {
            IBroadcastRadio service = IBroadcastRadio.getService();
            IBroadcastRadio service = IBroadcastRadio.getService(fqName);
            if (service == null) return null;

            Mutable<AmFmRegionConfig> amfmConfig = new Mutable<>();
+2 −1
Original line number Diff line number Diff line
@@ -90,7 +90,8 @@ class TunerSession extends ITuner.Stub {
        if (ret == AudioSystem.AUDIO_STATUS_OK) {
            mIsAudioConnected = connected;
        } else {
            Slog.e(TAG, "Failed to notify AudioService about new state: " + connected);
            Slog.e(TAG, "Failed to notify AudioService about new state: "
                    + connected + ", response was: " + ret);
        }
    }