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

Commit d0ac0bce authored by Tomasz Wasilczyk's avatar Tomasz Wasilczyk
Browse files

Fix opening tuner session with HAL 2.0.

Bug: 73950974
Test: manual
Change-Id: Ic1cddf04250ae9b8c7914d334b981acba9ff6056
parent 283bbead
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);
        }
    }