matrix-io / matrixio-kernel-modules

MATRIX HAL in kernel space
22 stars 23 forks source link

create ALSA mixers for headphone/speaker switch and volume #36

Closed osmaa closed 5 years ago

osmaa commented 5 years ago

adds a switch for speaker amp or headphone output, and a 29-step volume control based on HAL code.

yoelrc88 commented 5 years ago

Great. Thank you @osmaa! This is a functionality that was missing here. I just test it and looks good. Merging now. -Yoel

osmaa commented 5 years ago

@yoelrc88 a note, I don't think it's normal convention to add underscores to mixer names. I tried to follow the documentation: https://www.kernel.org/doc/html/v4.17/sound/kernel-api/writing-an-alsa-driver.html?highlight=snd_kcontrol#control-names