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

Commit 19027261 authored by Sujin Panicker's avatar Sujin Panicker
Browse files

audio: hal: Fix cts-on-gsi test failure

With GSI, voip rx path is opened at bootup time. Due to
this pcm config is left unset with zero initialized pcm config
causing failure when vts test client tries to create voip track.

This change is to set valid pcm config, thereby sending out
valid pcm config values whenever the client requests even if
voip call is not started.

Change-Id: Ic36faea1f5599703a05f515d30354908015ecc36
parent 21d9894d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -7475,6 +7475,9 @@ int adev_open_output_stream(struct audio_hw_device *dev,
                              __func__, ret);
                        goto error_open;
                    }
                } else {
                    out->usecase = GET_USECASE_AUDIO_PLAYBACK_PRIMARY(use_db_as_primary);
                    out->config = GET_PCM_CONFIG_AUDIO_PLAYBACK_PRIMARY(use_db_as_primary);
                }
        }
    } else if (audio_is_linear_pcm(out->format) &&