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)
commitb9dd23bb03fe241ccb774c59b05d5cbac07895dc
tree66d47efb617bcca532415650d8128eb31b9d97a1
parentb73df04187ebb52edf3f7e502bb245c5ccab2763
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