here are those files I was talking about here these files are not mine I obtained them from the xda and they belong to their respectful owners so if you find the owners be sure to point them into my direction so I can thank them personally myself and if they want me to remove the content as well I will not have a problem doing so...
so here they are...
THIS IS NOT A FULL FUNCTIONING SCRIPT SO DO NOT TRY TO INSTALL THIS BECAUSE IT WONT WORK TILL YOU HAVE THE FULL SCRIPT IN HAND AND KNOW WHERE AND HOW TO MAKE THE FURTHER CHANGES REPEAT!!!!----->>>> not full script this is only to obtain for education purposes only to see what I'am talking about that worked on my phone. Maybe someone can later describe to me as to why this worked on my phone...
# Master file for snd_soc_msm sound card
# Lists all use case verbs
SectionUseCase."HiFi" {
Comment "Music playback use case"
SectionVerb
Name "HiFi"
EnableSequence
'SLIMBUS_0_RX Audio Mixer MultiMedia1':1:1
EndSequence
DisableSequence
'SLIMBUS_0_RX Audio Mixer MultiMedia1':1:0
EndSequence
# ALSA PCMs
CapturePCM 0
PlaybackPCM 0
EndSection
SectionVerb
Name "HiFiBT Headset"
EnableSequence
'AUX_PCM_RX Audio Mixer MultiMedia1':1:1
EndSequence
DisableSequence
'AUX_PCM_RX Audio Mixer MultiMedia1':1:0
EndSequence
# ALSA PCMs
CapturePCM 0
PlaybackPCM 0
EndSection
SectionVerb
Name "HiFiBT Nrec Headset"
EnableSequence
'AUX_PCM_RX Audio Mixer MultiMedia1':1:1
EndSequence
DisableSequence
'AUX_PCM_RX Audio Mixer MultiMedia1':1:0
EndSequence
# ALSA PCMs
CapturePCM 0
PlaybackPCM 0
EndSection
SectionVerb
Name "HiFiWiFi Display"
EnableSequence
'AFE_PCM_RX Audio Mixer MultiMedia1':1:1
EndSequence
DisableSequence
'AFE_PCM_RX Audio Mixer MultiMedia1':1:0
EndSequence
# ALSA PCMs
CapturePCM 0
PlaybackPCM 0
EndSection
SectionVerb
Name "HiFiPROXY Rx"
EnableSequence
'AFE_PCM_RX Audio Mixer MultiMedia1':1:1
EndSequence
DisableSequence
'AFE_PCM_RX Audio Mixer MultiMedia1':1:0
EndSequence
# ALSA PCMs
CapturePCM 0
PlaybackPCM 0
EndSection
SectionVerb
Name "HiFiPROXY Rx Speaker"
EnableSequence
'AFE_PCM_RX Audio Mixer MultiMedia1':1:1
'SLIMBUS_0_RX Audio Mixer MultiMedia1':1:1
EndSequence
DisableSequence
'AFE_PCM_RX Audio Mixer MultiMedia1':1:0
'SLIMBUS_0_RX Audio Mixer MultiMedia1':1:0
EndSequence
# ALSA PCMs
CapturePCM 0
PlaybackPCM 0
EndSection
}
SectionUseCase."HiFi Low Power" {
Comment "LPA use case"
SectionVerb
Name "HiFi Low Power"
EnableSequence
'SLIMBUS_0_RX Audio Mixer MultiMedia3':1:1
EndSequence
DisableSequence
'SLIMBUS_0_RX Audio Mixer MultiMedia3':1:0
EndSequence
# ALSA PCMs
PlaybackPCM 4
EndSection
SectionVerb
Name "HiFi Low PowerHdmi"
EnableSequence
'HDMI Mixer MultiMedia3':1:1
EndSequence
DisableSequence
'HDMI Mixer MultiMedia3':1:0
EndSequence
# ALSA PCMs
PlaybackPCM 4
EndSection
SectionVerb
Name "HiFi Low PowerBT Headset"
EnableSequence
'AUX_PCM_RX Audio Mixer MultiMedia3':1:1
EndSequence
DisableSequence
'AUX_PCM_RX Audio Mixer MultiMedia3':1:0
EndSequence
# ALSA PCMs
PlaybackPCM 4
EndSection
SectionVerb
Name "HiFi Low PowerBT Nrec Headset"
EnableSequence
'AUX_PCM_RX Audio Mixer MultiMedia3':1:1
EndSequence
DisableSequence
'AUX_PCM_RX Audio Mixer MultiMedia3':1:0
EndSequence
# ALSA PCMs
PlaybackPCM 4
EndSection
SectionVerb
Name "HiFi Low PowerWiFi Display"
EnableSequence
'AFE_PCM_RX Audio Mixer MultiMedia3':1:1
EndSequence
DisableSequence
'AFE_PCM_RX Audio Mixer MultiMedia3':1:0
EndSequence
# ALSA PCMs
PlaybackPCM 4
EndSection
}
SectionUseCase."VoLTE" {
Comment "VoLTE use case"
SectionVerb
Name "VoLTE"
EnableSequence
'SLIM_0_RX_Voice Mixer VoLTE':1:1
'VoLTE_Tx Mixer SLIM_0_TX_VoLTE':1:1
EndSequence
DisableSequence
'SLIM_0_RX_Voice Mixer VoLTE':1:0
'VoLTE_Tx Mixer SLIM_0_TX_VoLTE':1:0
EndSequence
# ALSA PCMs
PlaybackPCM 12
capturePCM 12
EndSection
SectionDevice
Name "Handset"
Comment "Handset Rx device"
EnableSequence
'SLIM_0_RX Channels':0:One
'RX1 MIX1 INP1':0:RX1
'RX1 MIX1 INP2':0:RX6
'EAR PA Gain':0
OS_6_DB
'DAC1 Switch':1:1
'RX1 Digital Volume':2:73.0%
EndSequence
DisableSequence
'RX1 MIX1 INP1':0:ZERO
'RX1 MIX1 INP2':0:ZERO
'DAC1 Switch':1:0
'EAR PA Gain':0:ZERO
'RX1 Digital Volume':1:0
EndSequence
ACDBID 7:1
EndSection
SectionDevice
Name "Handset Extra Vol"
Comment "Handset Extra Vol Rx device"
EnableSequence
'SLIM_0_RX Channels':0:One
'RX1 MIX1 INP1':0:RX1
'RX1 MIX1 INP2':0:RX6
'EAR PA Gain':0OS_6_DB
'DAC1 Switch':1:1
'RX1 Digital Volume':2:73.0%
'ES325 RX2 Enable':1:1
EndSequence
DisableSequence
'RX1 MIX1 INP1':0:ZERO
'RX1 MIX1 INP2':0:ZERO
'DAC1 Switch':1:0
'EAR PA Gain':0:ZERO
'RX1 Digital Volume':1:0
'ES325 RX2 Enable':1:0
EndSequence
ACDBID 71:1
EndSection
SectionDevice
Name "Main Mic"
Comment "Main Mic Tx device"
EnableSequence
'Main Mic Delay':1:4
'SLIM_0_TX Channels':0:One
'SLIM TX7 MUX':0
EC4
'DEC4 MUX':0:ADC3
'ADC3 Volume':2:91.7%
'DEC4 Volume':2:67.7%
'MICBIAS1 CAPLESS Switch':1:1
EndSequence
DisableSequence
'SLIM TX7 MUX':0:ZERO
'DEC4 MUX':0:ZERO
'ADC3 Volume':1:0
'DEC4 Volume':1:67
'MICBIAS1 CAPLESS Switch':1:0
EndSequence
ACDBID 54:2
EndSection
SectionDevice
Name "Speaker"
Comment "Speaker Rx device"
EnableSequence
'SLIM_0_RX Channels':0:Two
'RX5 MIX1 INP1':0:RX1
'RX5 MIX1 INP2':0:RX2
'RX6 DSM MUX':0SM_INV
'LINEOUT2 Volume':2:66.7%
'LINEOUT4 Volume':2:66.7%
'RX5 Digital Volume':2:79.0%
EndSequence
DisableSequence
'RX5 MIX1 INP1':0:ZERO
'RX5 MIX1 INP2':0:ZERO
'LINEOUT2 Volume':1:0
'LINEOUT4 Volume':1:0
'RX5 Digital Volume':1:0
EndSequence
ACDBID 15:1
EffectsMixerCTL "SRS TruMedia"
EC_REF_RXMixerCTL "SLIM_RX"
EndSection
SectionDevice
Name "Speaker Extra Vol"
Comment "Speaker Extra Vol Rx device"
EnableSequence
'SLIM_0_RX Channels':0:One
'RX5 MIX1 INP1':0:RX1
'RX5 MIX1 INP2':0:RX6
'RX6 DSM MUX':0SM_INV
'LINEOUT2 Volume':1:100
'LINEOUT4 Volume':1:100
'RX5 Digital Volume':2:75.0%
'ES325 RX2 Enable':1:1
EndSequence
DisableSequence
'RX5 MIX1 INP1':0:ZERO
'RX5 MIX1 INP2':0:ZERO
'LINEOUT2 Volume':1:0
'LINEOUT4 Volume':1:0
'RX5 Digital Volume':1:0
'ES325 RX2 Enable':1:0
EndSequence
ACDBID 72:1
EndSection
SectionDevice
Name "Sub Mic"
Comment "Sub Mic Tx device"
EnableSequence
'SLIM_0_TX Channels':0:One
'SLIM TX7 MUX':0
EC3
'DEC3 MUX':0:ADC4
'ADC4 Volume':1:100
'DEC3 Volume':2:71.0%
'MICBIAS3 CAPLESS Switch':1:1
EndSequence
DisableSequence
'SLIM TX7 MUX':0:ZERO
'DEC3 MUX':0:ZERO
'ADC4 Volume':1:0
'MICBIAS3 CAPLESS Switch':1:0
EndSequence
ACDBID 11:2
EndSection
SectionDevice
Name "Third Mic"
Comment "Third Mic Tx device"
EnableSequence
'SLIM_0_TX Channels':0:One
'SLIM TX7 MUX':0
EC2
'DEC2 MUX':0:ADC5
'ADC5 Volume':1:100
'DEC2 Volume':2:67.7%
'MICBIAS1 CAPLESS Switch':1:1
EndSequence
DisableSequence
'SLIM TX7 MUX':0:ZERO
'DEC2 MUX':0:ZERO
'ADC5 Volume':1:0
'MICBIAS1 CAPLESS Switch':1:0
EndSequence
ACDBID 11:2
EndSection
SectionDevice
Name "Headset"
Comment "Headset Rx device"
EnableSequence
'SLIM_0_RX Channels':0:Two
'RX1 MIX1 INP1':0:RX1
'RX2 MIX1 INP1':0:RX2
'HPHL DAC Switch':1:1
'HPHR DAC Switch':1:1
'HPHL Volume':1:100
'HPHR Volume':1:100
'RX1 Digital Volume':2:69.0%
'RX2 Digital Volume':2:69.0%
'COMP1 Switch':1:1
EndSequence
DisableSequence
'RX1 MIX1 INP1':0:ZERO
'RX2 MIX1 INP1':0:ZERO
'HPHL DAC Switch':1:0
'HPHR DAC Switch':1:0
'HPHL Volume':1:0
'HPHR Volume':1:0
'RX1 Digital Volume':1:0
'RX2 Digital Volume':1:0
'COMP1 Switch':1:0
EndSequence
ACDBID 10:1
EC_REF_RXMixerCTL "SLIM_RX"
EndSection
SectionDevice
Name "Headset Mic"
Comment "Headset Tx device"
EnableSequence
'SLIM_0_TX Channels':0:One
'SLIM TX7 MUX':0
EC5
'DEC5 MUX':0:ADC2
'ADC2 Volume':1:100
'DEC5 Volume':2:76.0%
EndSequence
DisableSequence
'SLIM TX7 MUX':0:ZERO
'DEC5 MUX':0:ZERO
'ADC2 Volume':1:0
EndSequence
ACDBID 8:2
EndSection
SectionDevice
Name "BT Headset"
Comment "BT Headset Rx device"
EnableSequence
EndSequence
DisableSequence
EndSequence
ACDBID 48:1
EndSection
SectionDevice
Name "BT Mic"
Comment "BT Mic Tx device"
EnableSequence
EndSequence
DisableSequence
EndSequence
ACDBID 49:2
EndSection
SectionDevice
Name "BT Nrec Headset"
Comment "BT Nrec Headset Rx device"
EnableSequence
EndSequence
DisableSequence
EndSequence
ACDBID 50:1
EndSection
SectionDevice
Name "BT Nrec Mic"
Comment "BT Nrec Mic Tx device"
EnableSequence
EndSequence
DisableSequence
EndSequence
ACDBID 51:2
EndSection
SectionDevice
Name "Dock"
Comment "Dock Rx device"
EnableSequence
'SLIM_0_RX Channels':0:Two
'RX7 MIX1 INP1':0:RX1
'RX3 MIX1 INP1':0:RX2
'LINEOUT1 Volume':1:100
'LINEOUT5 Volume':1:100
EndSequence