mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
We have placed UCM profile snippets to be included by the main config files also in the same directory, src/conf/ucm, it confuses alsaucm program that scans over all subdirectories. It thinks such a file is also the main config file, and spews errors like: % alsaucm ALSA lib utils.c:67:(uc_mgr_config_load) could not open configuration file /usr/share/alsa/ucm/bytcr/bytcr.conf ALSA lib parser.c:1427:(load_master_config) error: could not parse configuration for card bytcr alsaucm: unable to obtain card list: No such file or directory Actually we already defined the subdirectory for such components, and they are skipped at parsing the main configs. So we just need to move the files there -- this is what's done here. One more thing done here is to add a new component subdirectory, platforms, for definitions bytcr/* that don't match with neither the existing ones (codecs nor dsps). Suggested-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Jaroslav Kysela <perex@perex.cz> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Tested-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
45 lines
1.2 KiB
Text
45 lines
1.2 KiB
Text
SectionDevice."MonoSpeaker" {
|
|
Comment "Mono Speaker"
|
|
|
|
ConflictingDevice [
|
|
"Headphones"
|
|
"Speaker"
|
|
]
|
|
|
|
EnableSequence [
|
|
cdev "hw:bytcrrt5640"
|
|
|
|
cset "name='DAC MIXL INF1 Switch' on"
|
|
cset "name='DAC MIXR INF1 Switch' on"
|
|
cset "name='Stereo DAC MIXL DAC L1 Switch' on"
|
|
cset "name='Stereo DAC MIXR DAC R1 Switch' on"
|
|
cset "name='Stereo DAC MIXL DAC L2 Switch' on"
|
|
cset "name='Stereo DAC MIXR DAC R2 Switch' on"
|
|
cset "name='SPK MIXL DAC L1 Switch' on"
|
|
cset "name='SPK MIXR DAC R1 Switch' on"
|
|
cset "name='SPOL MIX SPKVOL L Switch' on"
|
|
# for mono speaker we apply left on right
|
|
# cset "name='SPOR MIX SPKVOL R Switch' on"
|
|
cset "name='SPOL MIX SPKVOL R Switch' on"
|
|
cset "name='Speaker Switch' on"
|
|
cset "name='Speaker Channel Switch' on"
|
|
cset "name='Headphone Switch' off"
|
|
cset "name='Speaker L Playback Switch' on"
|
|
cset "name='Speaker R Playback Switch' on"
|
|
cset "name='Speaker Playback Volume' 35"
|
|
|
|
]
|
|
|
|
DisableSequence [
|
|
cdev "hw:bytcrrt5640"
|
|
cset "name='Speaker Switch' off"
|
|
cset "name='Speaker Channel Switch' off"
|
|
cset "name='Speaker L Playback Switch' off"
|
|
cset "name='Speaker R Playback Switch' off"
|
|
cset "name='Speaker Playback Volume' 0"
|
|
]
|
|
|
|
Value {
|
|
PlaybackChannels "2"
|
|
}
|
|
}
|