commit | 08fd5baf6b773e5d24c21613dcc0e4f3f73d920b | [log] [tgz] |
---|---|---|
author | kunleiz <kunleiz@codeaurora.org> | Thu Jul 05 17:05:13 2018 +0800 |
committer | kunleiz <kunleiz@codeaurora.org> | Thu Jul 05 17:38:36 2018 +0800 |
tree | 486f90e6649ab74d4783c74f8de8cec42264f5f5 | |
parent | 98c1d2f206273b8c59602038d51585ccceb29df1 [diff] |
hal: avoid redundant device switch during playback. With music playback in background, a new playback is started, current snd_device of this new playback usecase is none at this moment, then force_routing flag is set to true, which causes device switch even if output snd devices are same. Fix it by checking current snd_device to avoid redundant device switch. CRs-Fixed: 2273928 Change-Id: Ic4592123bf0d1d9c1349b61fea2af56cf16cabf6