pmaports/device/testing/device-xiaomi-rolex/ucm/HiFi

188 lines
5 KiB
Text
Raw Normal View History

xiaomi-rolex: new device (MR 1911) Based on !1158 by @nrdnandan (5 files) new file: device/testing/device-xiaomi-rolex/APKBUILD new file: device/testing/device-xiaomi-rolex/deviceinfo new file: device/testing/linux-xiaomi-rolex/APKBUILD new file: device/testing/linux-xiaomi-rolex/config-xiaomi-rolex.aarch64 new file: firmware/firmware-xiaomi-rolex/APKBUILD Changed deviceinfo : Width x Height was 800x600 to correct dimension -> 720x1280 modified: device/testing/device-xiaomi-rolex/APKBUILD modified: device/testing/device-xiaomi-rolex/deviceinfo Added directfbrc and fb.modes file. Also added SWAP file support swap_size=1024 Added Audio files and rules removed uneccessary lines in deviceinfo. device/xiaomi-rolex: Fix linting issues xiaomi-rolex: Linting fixes; is a handset xiaomi-rolex: Moved firmware/ to device/testing/ xiaomi-rolex: Enable pmb:cross-native for kernel compilation because it is the default for recent apkbuilds xiaomi-rolex: Apply YYLOC patch to build 3.18.140 with gcc-10 (-fno-common) xiaomi-rolex: update patch checksums in kernel APKBUILD xiaomi-rolex: update deviceinfo checksum; replace common patch with a symlink xiaomi-rolex: use mdss patch xiaomi-rolex: use BGRA mdss framebuffer patch xiaomi-rolex: mark myself as maintainer, drop contributor from apkbuilds Refer to git commit history instead to determine contributors xiaomi-rolex: update kernel config for multiple devpts xiaomi-rolex: allow firmware cross-native builds, disable tracedeps per linter [ci:skip-build]: already built successfully in CI
2021-12-08 19:13:59 +00:00
SectionVerb {
EnableSequence [
cdev "hw:msm8917sku7sndc"
cset "name='PRI_MI2S_RX Audio Mixer MultiMedia1' 1"
cset "name='MultiMedia1 Mixer TERT_MI2S_TX' 1"
]
DisableSequence [
cdev "hw:msm8917sku7sndc"
cset "name='PRI_MI2S_RX Audio Mixer MultiMedia1' 0"
cset "name='MultiMedia1 Mixer TERT_MI2S_TX' 0"
]
Value {
TQ "HiFi"
PlaybackPCM "hw:msm8917sku7sndc,0"
CapturePCM "hw:msm8917sku7sndc,0"
}
}
SectionDevice."Speaker" {
Comment "Internal speaker"
EnableSequence [
cdev "hw:msm8917sku7sndc"
cset "name='MI2S_RX Channels' One"
cset "name='RX2 MIX1 INP1' RX2"
cset "name='RDAC2 MUX' RX2"
cset "name='HPHR' Switch"
cset "name='Lineout_1 amp' ENABLE"
cset "name='PRI_MI2S_RX Audio Mixer MultiMedia1' 1"
]
DisableSequence [
cdev "hw:msm8917sku7sndc"
cset "name='MI2S_RX Channels' One"
cset "name='RX2 MIX1 INP1' ZERO"
cset "name='RDAC2 MUX' ZERO"
cset "name='HPHR' ZERO"
cset "name='Lineout_1 amp' DISABLE"
cset "name='PRI_MI2S_RX Audio Mixer MultiMedia1' 0"
]
Value {
PlaybackChannels "2"
PlaybackPriority 300
}
}
SectionDevice."Headphones" {
Comment "Headset"
EnableSequence [
cdev "hw:msm8917sku7sndc"
cset "name='MI2S_RX Channels' Two"
cset "name='RX1 MIX1 INP1' RX1"
cset "name='RX2 MIX1 INP1' RX2"
cset "name='RDAC2 MUX' RX2"
cset "name='HPHL' Switch"
cset "name='HPHR' Switch"
cset "name='headset amp' ENABLE"
cset "name='PRI_MI2S_RX Audio Mixer MultiMedia1' 1"
]
DisableSequence [
cdev "hw:msm8917sku7sndc"
cset "name='MI2S_RX Channels' One"
cset "name='RX1 MIX1 INP1' ZERO"
cset "name='RX2 MIX1 INP1' ZERO"
cset "name='RDAC2 MUX' ZERO"
cset "name='HPHL' ZERO"
cset "name='HPHR' ZERO"
cset "name='headset amp' DISABLE"
cset "name='PRI_MI2S_RX Audio Mixer MultiMedia1' 0"
]
Value {
PlaybackChannels "2"
PlaybackPriority 100
}
}
SectionDevice."Handset" {
Comment "Earpiece speaker"
EnableSequence [
cdev "hw:msm8917sku7sndc"
cset "name='RX1 MIX1 INP1' RX1"
cset "name='RDAC2 MUX' RX1"
cset "name='RX1 Digital Volume' 86"
cset "name='EAR PA Gain' POS_6_DB"
cset "name='EAR_S' Switch"
cset "name='PRI_MI2S_RX Audio Mixer MultiMedia1' 1"
]
DisableSequence [
cdev "hw:msm8917sku7sndc"
cset "name='RX1 MIX1 INP1' ZERO"
cset "name='RDAC2 MUX' ZERO"
cset "name='RX1 Digital Volume' 86"
cset "name='EAR PA Gain' POS_6_DB"
cset "name='EAR_S' ZERO"
cset "name='PRI_MI2S_RX Audio Mixer MultiMedia1' 0"
]
Value {
PlaybackChannels "2"
PlaybackPriority 200
}
}
SectionDevice."HandsetMic" {
Comment "Internal Microphone"
ConflictingDevice [
"HeadsetMic"
]
EnableSequence [
cdev "hw:msm8917sku7sndc"
cset "name='ADC1 Volume' 6"
cset "name='DEC1 MUX' ADC1"
cset "name='IIR1 INP1 MUX' DEC1"
cset "name='MultiMedia1 Mixer TERT_MI2S_TX' 1"
]
DisableSequence [
cdev "hw:msm8917sku7sndc"
cset "name='ADC1 Volume' 4"
cset "name='DEC1 MUX' ZERO"
cset "name='MultiMedia1 Mixer TERT_MI2S_TX' 0"
]
Value {
CapturePriority 500
CaptureChannels "2"
}
}
SectionDevice."HeadsetMic" {
Comment "Headset Microphone"
ConflictingDevice [
"HandsetMic"
]
EnableSequence [
cdev "hw:msm8917sku7sndc"
cset "name='ADC2 Volume' 6"
cset "name='DEC1 MUX' ADC2"
cset "name='ADC2 MUX' INP2"
cset "name='IIR1 INP1 MUX' DEC1"
cset "name='MultiMedia1 Mixer TERT_MI2S_TX' 1"
]
DisableSequence [
cdev "hw:msm8917sku7sndc"
cset "name='ADC2 Volume' 4"
cset "name='DEC1 MUX' ZERO"
cset "name='ADC2 MUX' ZERO"
cset "name='MultiMedia1 Mixer TERT_MI2S_TX' 0"
]
Value {
CapturePriority 100
CaptureChannels "2"
}
}