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

Commit 2ebcfe30 authored by Naresh Tanniru's avatar Naresh Tanniru Committed by Gerrit - the friendly Code Review server
Browse files

hal: Reject hardware NT decoder session during SSR

- Hardware NT decoder sessions can not be created
  during SSR

- Reject hardware NT decoder session request
  if sound card is offline

Change-Id: I7cb75730fbc2824be28c72b22cc18a9086fbdf3b
parent 85f301c4
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -3137,6 +3137,10 @@ void platform_get_parameters(void *platform,
                    }
                }
            }
        } else if (SND_CARD_STATE_OFFLINE == get_snd_card_state(my_data->adev)) {
            //Do not allow DSP session during SSR
            ALOGI("Rejecting request for DSP only session from HAL due to SSR");
            isallowed = 0;
        }
        str_parms_add_int(reply, AUDIO_PARAMETER_IS_HW_DECODER_SESSION_ALLOWED, isallowed);
    }