leadio: Fix "Invalid ASE ID" on Codec Config command

Make sure, that ASE id is set correctly when initial ASE state is
different than IDLE

Otherwise we could end up with invalid ASE ID which later would be used
for the stream configuration and lead to error on stream creation.

Bug: 236636302
Test: atest BluetoothInstrumentationTests
Tag: #feature

Change-Id: I6f69a656f9236cf1aa7860c3c3f7232141196bd4
Merged-In: I6f69a656f9236cf1aa7860c3c3f7232141196bd4
(cherry picked from commit 185d5980db7b6a378b09f8c1ff27a4446225a418)
diff --git a/system/bta/le_audio/state_machine.cc b/system/bta/le_audio/state_machine.cc
index aaeba87..9bd3429 100644
--- a/system/bta/le_audio/state_machine.cc
+++ b/system/bta/le_audio/state_machine.cc
@@ -1116,6 +1116,8 @@
       LeAudioDeviceGroup* group, LeAudioDevice* leAudioDevice) {
     switch (ase->state) {
       case AseState::BTA_LE_AUDIO_ASE_STATE_IDLE:
+      case AseState::BTA_LE_AUDIO_ASE_STATE_CODEC_CONFIGURED:
+      case AseState::BTA_LE_AUDIO_ASE_STATE_QOS_CONFIGURED:
         if (ase->id == 0x00) {
           /* Initial state of Ase - update id */
           LOG(INFO) << __func__