SmartAudio/package/allwinner/alsa-ucm-aw/ucm_configs/astar/Default/audiocodec/Play.conf

73 lines
2.0 KiB
Plaintext
Raw Normal View History

2018-07-13 01:31:50 +00:00
SectionVerb {
Value {
PlaybackPCM "hw:sndcodec,0"
}
}
SectionDevice."Headphone" {
Comment "3.5mm headphone"
EnableSequence [
cdev "hw:sndcodec"
cset "name='AIF1IN0L Mux' 'AIF1_DA0L'"
cset "name='AIF1IN0R Mux' 'AIF1_DA0R'"
cset "name='DACL Mixer AIF1DA0L Switch' 1"
cset "name='DACR Mixer AIF1DA0R Switch' 1"
cset "name='HP_L Mux' 'DACL HPL Switch'"
cset "name='HP_R Mux' 'DACR HPR Switch'"
cset "name='Headphone Switch' 1"
]
DisableSequence [
cdev "hw:sndcodec"
cset "name='Headphone Switch' 0"
cset "name='HP_R Mux' 'DACR HPR Switch'"
cset "name='HP_L Mux' 'DACL HPL Switch'"
cset "name='DACR Mixer AIF1DA0R Switch' 0"
cset "name='DACL Mixer AIF1DA0L Switch' 0"
cset "name='AIF1IN0R Mux' 'AIF1_DA0R'"
cset "name='AIF1IN0L Mux' 'AIF1_DA0L'"
]
Value {
PlaybackVolume "name='headphone volume' 40"
PlaybackVolumeMin "0"
PlaybackVolumeMax "63"
}
}
SectionDevice."Speaker" {
EnableSequence [
cdev "hw:sndcodec"
cset "name='AIF1IN0L Mux' 'AIF1_DA0L'"
cset "name='AIF1IN0R Mux' 'AIF1_DA0R'"
cset "name='DACL Mixer AIF1DA0L Switch' 1"
cset "name='DACR Mixer AIF1DA0R Switch' 1"
cset "name='HP_L Mux' 'DACL HPL Switch'"
cset "name='HP_R Mux' 'DACR HPR Switch'"
cset "name='External Speaker Switch' 1"
]
DisableSequence [
cdev "hw:sndcodec"
cset "name='External Speaker Switch' 0"
cset "name='HP_R Mux' 'DACR HPR Switch'"
cset "name='HP_L Mux' 'DACL HPL Switch'"
cset "name='DACR Mixer AIF1DA0R Switch' 0"
cset "name='DACL Mixer AIF1DA0L Switch' 0"
cset "name='AIF1IN0R Mux' 'AIF1_DA0R'"
cset "name='AIF1IN0L Mux' 'AIF1_DA0L'"
]
Value {
PlaybackVolume "name='headphone volume' 40"
PlaybackVolumeMin "0"
PlaybackVolumeMax "63"
}
}