View | Details | Raw Unified | Return to bug 55391
Collapse All | Expand All

(-)a/ucm2/Qualcomm/sm8250/HiFi-RP.conf (+67 lines)
Line 0 Link Here
1
# Use case configuration for RetroidPocket 5 and Mini.
2
# Author: Teguh Sobirin <teguh@sobir.in>
3
4
SectionVerb {
5
6
	EnableSequence [
7
		cset "name='RX_CODEC_DMA_RX_0 Audio Mixer MultiMedia1' 1"
8
		cset "name='WSA_CODEC_DMA_RX_0 Audio Mixer MultiMedia2' 1"
9
		cset "name='MultiMedia3 Mixer TX_CODEC_DMA_TX_3' 1"
10
	]
11
12
	Include.wsae.File "/codecs/wsa881x/DefaultEnableSeq.conf"
13
14
	Value {
15
		TQ "HiFi"
16
	}
17
}
18
19
SectionDevice."Headphones" {
20
	Comment "Headphones Playback"
21
22
	Include.wcdhpe.File "/codecs/wcd938x/HeadphoneEnableSeq.conf"
23
	Include.wcdhpd.File "/codecs/wcd938x/HeadphoneDisableSeq.conf"
24
	Include.rxmhpe.File "/codecs/qcom-lpass/rx-macro/HeadphoneEnableSeq.conf"
25
	Include.rxmhpd.File "/codecs/qcom-lpass/rx-macro/HeadphoneDisableSeq.conf"
26
27
	Value {
28
		PlaybackPriority 200
29
		PlaybackPCM "hw:${CardId},0"
30
		PlaybackMixer "default:${CardId}"
31
		PlaybackMixerElem "HP"
32
		JackControl "Headphone Jack"
33
		JackHWMute "Speaker"
34
	}
35
}
36
37
SectionDevice."Speaker" {
38
	Comment "Speaker Playback"
39
40
	Include.wsamspke.File "/codecs/qcom-lpass/wsa-macro/SpeakerEnableSeq.conf"
41
	Include.wsamspkd.File "/codecs/qcom-lpass/wsa-macro/SpeakerDisableSeq.conf"
42
	Include.wsaspke.File "/codecs/wsa881x/SpeakerEnableSeq.conf"
43
	Include.wsaspkd.File "/codecs/wsa881x/SpeakerDisableSeq.conf"
44
45
	Value {
46
		PlaybackPriority 100
47
		PlaybackPCM "hw:${CardId},1"
48
		PlaybackMixer "default:${CardId}"
49
		PlaybackMixerElem "Speakers"
50
	}
51
}
52
53
SectionDevice."Mic" {
54
	Comment "Headphone Microphone"
55
56
	Include.wcdmice.File "/codecs/wcd938x/HeadphoneMicEnableSeq.conf"
57
	Include.wcdmicd.File "/codecs/wcd938x/HeadphoneMicDisableSeq.conf"
58
	Include.txmhpe.File "/codecs/qcom-lpass/tx-macro/SoundwireMic1EnableSeq.conf"
59
	Include.txmhpd.File "/codecs/qcom-lpass/tx-macro/HeadphoneMicDisableSeq.conf"
60
61
	Value {
62
		CapturePriority 100
63
		CapturePCM "hw:${CardId},2"
64
		CaptureMixerElem "ADC2"
65
		JackControl "Mic Jack"
66
	}
67
}
(-)a/ucm2/Qualcomm/sm8250/RetroidPocket.conf (+22 lines)
Line 0 Link Here
1
Syntax 4
2
3
SectionUseCase."HiFi" {
4
	File "/Qualcomm/sm8250/HiFi-RP.conf"
5
	Comment "HiFi quality Music."
6
}
7
8
BootSequence [
9
	cset "name='WSA_RX0 Digital Volume' 120"
10
	cset "name='WSA_RX1 Digital Volume' 120"
11
	cset "name='SpkrLeft PA Volume' 12"
12
	cset "name='SpkrRight PA Volume' 12"
13
	cset "name='HPHL Volume' 20"
14
	cset "name='HPHR Volume' 20"
15
	cset "name='ADC2 Volume' 10"
16
]
17
18
Include.card-init.File "/lib/card-init.conf"
19
Include.ctl-remap.File "/lib/ctl-remap.conf"
20
Include.wcd-init.File "/codecs/wcd938x/init.conf"
21
Include.wsa-init.File "/codecs/wsa881x/init.conf"
22
Include.rxm-init.File "/codecs/qcom-lpass/rx-macro/init.conf"
(-)a/ucm2/codecs/wsa881x/init.conf (+12 lines)
Line 0 Link Here
1
# WSA881x specific volume control settings
2
LibraryConfig.remap.Config {
3
4
	ctl.default.map {
5
		# Merge two mono controls into one stereo
6
		"name='Speakers Volume'" {
7
			"name='SpkrLeft PA Volume'".vindex.0 0
8
			"name='SpkrRight PA Volume'".vindex.1 0
9
		}
10
	}
11
}
12
(-)a/ucm2/conf.d/sm8250/RetroidPocket.conf (+1 lines)
Line 0 Link Here
1
../../Qualcomm/sm8250/RetroidPocket.conf
(-)a/ucm2/conf.d/sm8250/retroidpocket-RetroidPocket5-.conf (+1 lines)
Line 0 Link Here
1
../../Qualcomm/sm8250/RetroidPocket.conf
(-)a/ucm2/conf.d/sm8250/retroidpocket-RetroidPocketFlip2-.conf (+1 lines)
Line 0 Link Here
1
../../Qualcomm/sm8250/RetroidPocket.conf
(-)a/ucm2/conf.d/sm8250/retroidpocket-RetroidPocketMini-.conf (+1 lines)
Line 0 Link Here
1
../../Qualcomm/sm8250/RetroidPocket.conf
(-)a/ucm2/conf.d/sm8250/retroidpocket-RetroidPocketMiniV2-.conf (-1 / +1 lines)
Line 0 Link Here
0
- 
1
../../Qualcomm/sm8250/RetroidPocket.conf

Return to bug 55391