%PDF- %PDF-
Direktori : /usr/share/alsa/ucm2/sof-soundwire/ |
Current File : //usr/share/alsa/ucm2/sof-soundwire/rt1318.conf |
# Use case Configuration for sof-soundwire card # # Arguments: # ForAmps - regex filter for var:SpeakerAmps # Amp - amplifier number (1,2 etc.) # Sel - channel selection (L,R L,L L,R L,L+R R,L R,R R,L+R L+R,L L+R,R L+R,L+R) # DefineMacro.rt1318spk.If.0 { Condition { Type RegexMatch Regex "${var:__ForAmps}" String "${var:SpeakerAmps}" } True { EnableSequence [ cset "name='rt1318-${var:__Amp} RX Channel Select' ${var:__Sel}" cset "name='rt1318-${var:__Amp} DAC Switch' 1" ] DisableSequence [ cset "name='rt1318-${var:__Amp} DAC Switch' 0" ] } } SectionDevice."Speaker" { Comment "Speaker" Macro.num1.rt1318spk { ForAmps "1" Amp 1 Sel "L,R" } Macro.num2.rt1318spk { ForAmps "2" Amp 1 Sel "L,L" } Macro.num3.rt1318spk { ForAmps "2" Amp 2 Sel "R,R" } EnableSequence [ cset "name='Speaker Switch' on" ] DisableSequence [ cset "name='Speaker Switch' off" ] Value { PlaybackPriority 100 PlaybackPCM "hw:${CardId},2" } }