]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda/cirrus: Add Headphone and Headset MIC Volume Control
authorStefan Binding <sbinding@opensource.cirrus.com>
Sat, 6 Mar 2021 11:19:34 +0000 (11:19 +0000)
committerTakashi Iwai <tiwai@suse.de>
Sun, 7 Mar 2021 08:18:45 +0000 (09:18 +0100)
commitc7a3f3fd08f30c49bd80dd414bd15eb9e7271486
tree66d47efb617bcca532415650d8128eb31b9d97a1
parent6ddea7f12422482923fd9552739e237447b5f7d9
ALSA: hda/cirrus: Add Headphone and Headset MIC Volume Control

CS8409 does not support Volume Control for NIDs 0x24 (the Headphones),
or 0x34 (The Headset Mic).
However, CS42L42 codec does support gain control for both.
We can add support for Volume Controls, by writing the the CS42L42
regmap via i2c commands, using custom info, get and put volume
functions, saved in the control.

Tested on DELL Inspiron-3500, DELL Inspiron-3501, DELL Inspiron-3500

Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
Signed-off-by: Vitaly Rodionov <vitalyr@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20210306111934.4832-5-vitalyr@opensource.cirrus.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_cirrus.c