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

Skip to content
Commit b536c2f6 authored by Jing Wang's avatar Jing Wang
Browse files

hal: Audio elite make card_state path compatible for 5.4/5.15

* Kernel 5.4 card_state will be located at /proc/asound/card%d/state
  The state is OFFLINE/ONLINE
* Kernel 5.15 card_state will be located at /sys/kernel/snd_card/card_state
  The state is 0/1
* Select different path and read the state based on kernel version

Change-Id: Idfed6f2097e32ccbd571bf6e04419a64dfa024ad
parent dec27fa7
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