alsa-project/alsa-ucm-conf

Matebook 11 Intel 2021; always need to manually set config in amixer

adambrangenberg opened this issue · 6 comments

Hey, the drivers in sof got fixed but I still need to manually set the alsa config. My microphone also isn't working, not sure why. This got investigated a bit in the other issue too.

Config:

amixer -c 0 cset name='Headphone Switch' on
amixer -c 0 cset name='Headphone Playback Volume' 3,3
amixer -c 0 cset name='Right Headphone Mixer Right DAC Switch' on
amixer -c 0 cset name='Left Headphone Mixer Left DAC Switch' on
amixer -c 0 cset name='DAC Playback Volume' 999,999
amixer -c 0 cset name='Headphone Mixer Volume' 999,999
amixer -c 0 cset name='Differential Mux' lin1-rin1
amixer -c 0 cset name='Differential Mux' lin2-rin2
amixer -c 0 cset name='DAC Soft Ramp Switch' off

Issue in SOF:
thesofproject/sof-bin#121

perexg commented

Try to isolate the exact controls which should be modified for all use cases. I believe that some of those are already preset in UCM. You may use amixer -D hw:sofessx8336 contents command to dump all settings and diff -u10 <file1> <file2> to compare two settings.

Try to isolate the exact controls which should be modified for all use cases. I believe that some of those are already preset in UCM. You may use amixer -D hw:sofessx8336 contents command to dump all settings and diff -u10 <file1> <file2> to compare two settings.

I create a file before and after running the commands (amixer -c ...) and compared them using diff, but the command gave no output

perexg commented

All commands are required to make sound working ?

All commands are required to make sound working ?

Yup

perexg commented

If you need to set the identical values again, it looks like a bug in the codec driver. The user space values should correspond to the hardware state.

perexg commented

Also note this problem may be related to PR #328 .