Skip to content
This repository was archived by the owner on May 25, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 12 additions & 18 deletions chtmax98090/HiFi.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# command-line sequence to switch playback/capture
# alsaucm -c chtmax98090 set _verb HiFi set _enadev Headphone
# alsaucm -c chtmax98090 set _verb HiFi set _enadev Speakers
# alsaucm -c chtmax98090 set _verb HiFi set _enadev HeadsetMic
# alsaucm -c chtmax98090 set _verb HiFi set _enadev InternalMic
# alsaucm -c chtmax98090 set _verb HiFi set _enadev Headset
# alsaucm -c chtmax98090 set _verb HiFi set _enadev Mic


SectionVerb {
Expand Down Expand Up @@ -71,8 +71,8 @@ SectionVerb {
cset "name='ADCR Volume' 11"
cset "name='ADCL Volume' 11"

cset "name='Headphone Volume' 10"
cset "name='Speaker Volume' 10"
cset "name='Headphone Volume' 100"
cset "name='Speaker Volume' 100"

cset "name='Speaker Left Mixer Volume' 3"
cset "name='Speaker Right Mixer Volume' 3"
Expand All @@ -90,16 +90,6 @@ SectionVerb {
cset "name='Headset Mic Switch' off"
cset "name='Int Mic Switch' off"
]

DisableSequence [
]

# ALSA PCM
Value {
# ALSA PCM device for HiFi
PlaybackPCM "hw:chtmax98090"
CapturePCM "hw:chtmax98090"
}
}

SectionDevice."Headphone" {
Expand Down Expand Up @@ -133,6 +123,7 @@ SectionDevice."Headphone" {

Value {
PlaybackChannels 2
PlaybackPCM "hw:chtmax98090"
}
}

Expand Down Expand Up @@ -160,10 +151,11 @@ SectionDevice."Speakers" {

Value {
PlaybackChannels 2
PlaybackPCM "hw:chtmax98090"
}
}

SectionDevice."HeadsetMic" {
SectionDevice."Headset" {
Comment "Headset Mic"

Value {
Expand All @@ -172,7 +164,7 @@ SectionDevice."HeadsetMic" {
}

ConflictingDevice [
"InternalMic"
"Mic"
]

EnableSequence [
Expand All @@ -194,18 +186,19 @@ SectionDevice."HeadsetMic" {

Value {
CaptureChannels 2
CapturePCM "hw:chtmax98090"
}
}

SectionDevice."InternalMic" {
SectionDevice."Mic" {
Comment "Internal Mic"

Value {
#FIXME CaptureControl "MIC2"
}

ConflictingDevice [
"HeadsetMic"
"Headset"
]

EnableSequence [
Expand All @@ -225,6 +218,7 @@ SectionDevice."InternalMic" {
]

Value {
CapturePCM "hw:chtmax98090"
CaptureChannels 2
}
}