Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pmaports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
postmarketOS
pmaports
Commits
ec64c2b2
Commit
ec64c2b2
authored
5 years ago
by
Asriel Dreemurr
Browse files
Options
Downloads
Patches
Plain Diff
device-xiaomi-santoni: Added (hacky) udev rule for jack detection.
parent
540c18a8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
device/device-xiaomi-santoni/90-device-xiaomi-santoni-audio.rules
+9
-1
9 additions, 1 deletion
...evice-xiaomi-santoni/90-device-xiaomi-santoni-audio.rules
device/device-xiaomi-santoni/APKBUILD
+1
-1
1 addition, 1 deletion
device/device-xiaomi-santoni/APKBUILD
with
10 additions
and
2 deletions
device/device-xiaomi-santoni/90-device-xiaomi-santoni-audio.rules
+
9
−
1
View file @
ec64c2b2
ATTRS{id}=="msm8920sku7sndc", RUN+="/usr/bin/alsaucm -c msm8920-sku7-snd-card set _verb HiFi set _enadev Headphones"
# This udev rule is probably a workaround, udev doesn't care about the headphone jack input events :(
# Perhaps we need a more better workaround, perhaps a daemon for jack detection?
# Init
ATTRS{id}=="msm8920sku7sndc", RUN+="/usr/bin/alsaucm -c msm8920-sku7-snd-card set _verb HiFi set _enadev Speaker"
# Jack detection
SUBSYSTEM=="switch",ATTRS{state}=="[1-4]",RUN+="/usr/bin/alsaucm -c msm8920-sku7-snd-card set _verb HiFi set _enadev Headphones"
SUBSYSTEM=="switch",ATTRS{state}=="0",RUN+="/usr/bin/alsaucm -c msm8920-sku7-snd-card set _verb HiFi set _enadev Speaker"
This diff is collapsed.
Click to expand it.
device/device-xiaomi-santoni/APKBUILD
+
1
−
1
View file @
ec64c2b2
...
...
@@ -54,7 +54,7 @@ nonfree_firmware() {
}
sha512sums
=
"4a7ba291c30cc5c05cee60f1d54d026b92b270f6499ceb83111cd5c05fe6c6c8182401abc99a8c10d81f0ee95b1414fd72d0aa7f635226f44b9cf659e3cc3471 deviceinfo
f2aeed56b4442ba3d02a06fda69bfc90ffb0128488131cbc96cd1e4d0fc5d3c7e4d08478f7af2c8ee4793462e934307d6607cf4cd32e335a9b0db47f7bd1c3c6
90-device-xiaomi-santoni-audio.rules
9a5cbfe8304aeb266839d77abe892b6534abe3f42d09a07ed4978f3ae79edfe21fdcc6a6a9acad206f0c3f6bc1238d7980d5f7fc8b2bc7f5ab845702ca2e17ca
90-device-xiaomi-santoni-audio.rules
1d2f98a9570212d3026c9565754337574ae046ad4de90265029b7e4a7cd4a2df473ca18ea41d1730f0a01046b40d343446fc88f5d70a1050e0dc578ad460f941 HiFi
b634d13cac1f10535a31c142c7391986ab402ae9910d8093989920f4c2dbd63722ee8595f11962bffd9d314e2835a1ead955a91355856f044911ddcf1e428427 fb.modes
3db3ec596e159be926ea2b5b2496c18e9bc7be24a64a232a56c89a0c9ee710aa2efb2b6fa9fc08efa34759e8242e6c629d08a4ce688ec8aa125830717c191515 directfbrc
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment