forked from alsa-project/alsa-ucm-conf
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ucm: add support for sof-cml_rt1011_rt5682 #25
Open
aiChaoSONG
wants to merge
1
commit into
thesofproject:sof_ucm1
Choose a base branch
from
aiChaoSONG:sof_ucm1
base: sof_ucm1
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
SectionVerb { | ||
|
||
EnableSequence [ | ||
cdev "hw:sofcmlrt1011rt5" | ||
] | ||
|
||
DisableSequence [ | ||
cdev "hw:sofcmlrt1011rt5" | ||
] | ||
} | ||
|
||
SectionDevice."HDMI1" { | ||
Comment "HDMI1/DP1 Playback" | ||
|
||
Value { | ||
PlaybackPCM "hw:sofcmlrt1011rt5,2" | ||
PlaybackChannels "2" | ||
JackControl "HDMI/DP,pcm=2 Jack" | ||
PlaybackPriority "300" | ||
} | ||
|
||
EnableSequence [ | ||
cdev "hw:sofcmlrt1011rt5" | ||
cset "name='IEC958 Playback Switch' on" | ||
] | ||
|
||
DisableSequence [ | ||
cdev "hw:sofcmlrt1011rt5" | ||
cset "name='IEC958 Playback Switch' off" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
SectionVerb { | ||
|
||
EnableSequence [ | ||
cdev "hw:sofcmlrt1011rt5" | ||
] | ||
|
||
DisableSequence [ | ||
cdev "hw:sofcmlrt1011rt5" | ||
] | ||
} | ||
|
||
SectionDevice."HDMI2" { | ||
Comment "HDMI2/DP2 Playback" | ||
|
||
Value { | ||
PlaybackPCM "hw:sofcmlrt1011rt5,3" | ||
PlaybackChannels "2" | ||
JackControl "HDMI/DP,pcm=3 Jack" | ||
PlaybackPriority "400" | ||
} | ||
|
||
EnableSequence [ | ||
cdev "hw:sofcmlrt1011rt5" | ||
cset "name='IEC958 Playback Switch',index=1 on" | ||
] | ||
|
||
DisableSequence [ | ||
cdev "hw:sofcmlrt1011rt5" | ||
cset "name='IEC958 Playback Switch',index=1 off" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
SectionVerb { | ||
|
||
EnableSequence [ | ||
cdev "hw:sofcmlrt1011rt5" | ||
] | ||
|
||
DisableSequence [ | ||
cdev "hw:sofcmlrt1011rt5" | ||
] | ||
} | ||
|
||
SectionDevice."HDMI3" { | ||
Comment "HDMI3/DP3 Playback" | ||
|
||
Value { | ||
PlaybackPCM "hw:sofcmlrt1011rt5,4" | ||
PlaybackChannels "2" | ||
JackControl "HDMI/DP,pcm=4 Jack" | ||
PlaybackPriority "500" | ||
} | ||
|
||
EnableSequence [ | ||
cdev "hw:sofcmlrt1011rt5" | ||
cset "name='IEC958 Playback Switch',index=2 on" | ||
] | ||
|
||
DisableSequence [ | ||
cdev "hw:sofcmlrt1011rt5" | ||
cset "name='IEC958 Playback Switch',index=2 off" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
SectionVerb { | ||
|
||
EnableSequence [ | ||
cdev "hw:sofcmlrt1011rt5" | ||
] | ||
|
||
DisableSequence [ | ||
cdev "hw:sofcmlrt1011rt5" | ||
] | ||
} | ||
|
||
SectionDevice."Speaker" { | ||
Comment "Speaker Playback" | ||
|
||
Value { | ||
PlaybackPCM "hw:sofcmlrt1011rt5,5" | ||
PlaybackChannels "2" | ||
} | ||
|
||
EnableSequence [ | ||
cdev "hw:sofcmlrt1011rt5" | ||
] | ||
|
||
DisableSequence [ | ||
cdev "hw:sofcmlrt1011rt5" | ||
] | ||
} | ||
|
||
SectionDevice."Headset" { | ||
Comment "Headset Playback" | ||
|
||
Value { | ||
PlaybackPCM "hw:sofcmlrt1011rt5,0" | ||
PlaybackChannels "2" | ||
JackControl "Headset Jack" | ||
} | ||
|
||
EnableSequence [ | ||
cdev "hw:sofcmlrt1011rt5" | ||
cset "name='Headphone Jack Switch' on" | ||
cset "name='Stereo1 DAC MIXL DAC L1 Switch' on" | ||
cset "name='Stereo1 DAC MIXR DAC R1 Switch' on" | ||
] | ||
|
||
DisableSequence [ | ||
cdev "hw:sofsofrt5682" | ||
cset "name='Headphone Jack Switch' off" | ||
cset "name='Stereo1 DAC MIXL DAC L1 Switch' off" | ||
cset "name='Stereo1 DAC MIXR DAC R1 Switch' off" | ||
] | ||
} | ||
|
||
SectionDevice."Mic" { | ||
Comment "Headset Capture" | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. jack detection? |
||
Value { | ||
CapturePCM "hw:sofcmlrt1011rt5,0" | ||
MixerName "Headset Mic" | ||
CaptureChannels "2" | ||
JackControl "Headset Jack" | ||
} | ||
|
||
EnableSequence [ | ||
cdev "hw:sofcmlrt1011rt5" | ||
cset "name='Headphone Jack Switch' on" | ||
cset "name='Headset Mic Switch' on" | ||
] | ||
|
||
DisableSequence [ | ||
cdev "hw:sofcmlrt1011rt5" | ||
cset "name='Headset Mic Switch' off" | ||
cset "name='Headphone Jack Switch' off" | ||
] | ||
} | ||
|
||
SectionDevice."DMIC" { | ||
Comment "DMIC Capture" | ||
|
||
Value { | ||
CapturePCM "hw:sofcmlrt1011rt5,1" | ||
CaptureChannels "4" | ||
} | ||
|
||
EnableSequence [ | ||
cdev "hw:sofcmlrt1011rt5" | ||
] | ||
|
||
DisableSequence [ | ||
cdev "hw:sofcmlrt1011rt5" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
SectionUseCase."HiFi" { | ||
File "HiFi.conf" | ||
Comment "Default" | ||
} | ||
|
||
SectionUseCase."Hdmi1" { | ||
File "Hdmi1.conf" | ||
Comment "Play to Hdmi1" | ||
} | ||
|
||
SectionUseCase."Hdmi2" { | ||
File "Hdmi2.conf" | ||
Comment "Play to Hdmi2" | ||
} | ||
|
||
SectionUseCase."Hdmi3" { | ||
File "Hdmi3.conf" | ||
Comment "Play to Hdmi3" | ||
} | ||
|
||
SectionDefaults [ | ||
cdev "hw:sofcmlrt1011rt5" | ||
cset "name='Headphone Jack Switch' off" | ||
cset "name='HPOL Playback Switch' on" | ||
cset "name='HPOR Playback Switch' on" | ||
cset "name='Stereo1 DAC MIXL DAC L1 Switch' 0" | ||
cset "name='Stereo1 DAC MIXR DAC R1 Switch' 0" | ||
cset "name='RECMIX1L CBJ Switch' 0" | ||
cset "name='Stereo1 ADC L Mux' 0" | ||
cset "name='Stereo1 ADC L1 Mux' 1" | ||
cset "name='Stereo1 ADC L2 Mux' 0" | ||
cset "name='Stereo1 ADC R Mux' 1" | ||
cset "name='Stereo1 ADC R1 Mux' 1" | ||
cset "name='Stereo1 ADC R2 Mux' 0" | ||
cset "name='Stereo1 ADC MIXL ADC2 Switch' off" | ||
cset "name='Stereo1 ADC MIXR ADC2 Switch' off" | ||
cset "name='Stereo1 ADC MIXL ADC1 Switch' on" | ||
cset "name='Stereo1 ADC MIXR ADC1 Switch' on" | ||
cset "name='STO1 ADC Capture Switch' on" | ||
cset "name='RECMIX1L CBJ Switch' on" | ||
cset "name='IF1 01 ADC Swap Mux' 2" | ||
] |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Headphone
Also missing the jack detection