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

Skip to content
Commit 82ec30df authored by Zhou Song's avatar Zhou Song Committed by Gerrit - the friendly Code Review server
Browse files

hal: check out_snd_device to get a2dp sample rate

There could be one usecase which:
  - there're two active streams in AHAL playing on
    BT_SCO device;
  - then if one of the active stream receives param
    "routing=a2dp" and switch path to a2dp, the other
    one will also be switched to a2dp as part of
    check_usecases_codec_backend, but the out device is
    still BT_SCO;
  - so the app sample rate get for this output is wrong.
Instead of checking out device, check snd_device for
querying app sample rate.

Change-Id: Icb7dbba8dc24ee8e5611b1e813e0e4aa2aa3f990
parent e3d362ff
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment