Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
silime authored Jun 22, 2024
1 parent d7c828a commit 121f8a4
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion alsa-ucm-oneplus/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Maintainer: Philip Müller <[email protected]>
pkgname=alsa-ucm-oneplus
pkgver=0.5.10
pkgver=0.5.12
pkgrel=0
pkgdesc="UCM files for OnePlus (sdm845)"
arch=(any)
Expand Down
10 changes: 5 additions & 5 deletions alsa-ucm-oneplus/fajita-HiFi.conf
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ SectionVerb {
cset "name='MultiMedia4 Mixer SLIMBUS_1_TX' 0"
cset "name='SLIMBUS_1_RX Audio Mixer MultiMedia5' 0"
cset "name='MultiMedia6 Mixer SLIMBUS_2_TX' 0"

cset "name='CDC_IF TX7 MUX' ZERO"
cset "name='CDC_IF TX6 MUX' ZERO"
cset "name='CDC_IF TX0 MUX' ZERO"
Expand All @@ -60,7 +60,7 @@ SectionVerb {
}
}

SectionDevice."Mic" {
SectionDevice."Mic1" {
Comment "Bottom Microphone"

EnableSequence [
Expand Down Expand Up @@ -120,7 +120,7 @@ SectionDevice."Headphones" {
cset "name='RX INT1_1 MIX1 INP0' RX2"
cset "name='RX INT2_1 MIX1 INP0' RX3"
]

DisableSequence [
cset "name='COMP1 Switch' 0"
cset "name='COMP2 Switch' 0"
Expand All @@ -132,7 +132,7 @@ SectionDevice."Headphones" {
PlaybackPriority 30
PlaybackPCM "hw:${CardId},4" # MultiMedia5
PlaybackMixer "default:${CardId}"
JackControl "Headset Jack"
JackControl "Headphone Jack"
}
}

Expand All @@ -154,6 +154,6 @@ SectionDevice."Headset" {
CapturePCM "hw:${CardId},5" # MultiMedia6
CaptureMixerElem "ADC2"
CaptureVolume "ADC2 Volume"
JackControl "Headset Jack"
JackControl "Headphone Jack"
}
}
2 changes: 1 addition & 1 deletion alsa-ucm-oneplus/fajita-VoiceCall.conf
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ SectionVerb {

cset "name='SLIMBUS_0_RX Voice Mixer VoiceMMode1' 0"
cset "name='VoiceMMode1 Capture Mixer SLIMBUS_0_TX' 0"

cset "name='CDC_IF TX7 MUX' ZERO"
]

Expand Down
4 changes: 2 additions & 2 deletions alsa-ucm-oneplus/fajita.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Include.ctl-remap.File "/lib/ctl-remap.conf"
BootSequence [
# Earpiece Volume
cset "name='RX0 Digital Volume' 75"

# Headphones Volume
cset "name='RX1 Digital Volume' 75"
cset "name='RX2 Digital Volume' 75"
Expand All @@ -28,7 +28,7 @@ BootSequence [
# Phone Bottom Mic Analog and Digital Volumes
cset "name='ADC4 Volume' 16"
cset "name='DEC7 Volume' 75"

# Phone Top Mic Analog and Digital Volumes
cset "name='ADC3 Volume' 16"
cset "name='DEC6 Volume' 75"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Requires=ModemManager.service

[Service]
Type=oneshot
ExecStart=/usr/bin//msm-modem-uim-selection.sh
ExecStart=bash /usr/bin//msm-modem-uim-selection.sh
RemainAfterExit=yes

[Install]
Expand Down
2 changes: 1 addition & 1 deletion sensors/oneplus-devices-udev/msm-modem-uim-selection.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fi
QMI_CARDS=$($QMICLI_MODEM --uim-get-card-status)

# Fail if all slots are empty but wait a bit for the sim to appear.
count=0
count=4
while ! printf "%s" "$QMI_CARDS" | grep -Fq "Card state: 'present'"; do
if [ "$count" -ge "$sim_wait_time" ]; then
echo "No sim detected after $sim_wait_time seconds."
Expand Down

0 comments on commit 121f8a4

Please sign in to comment.