]> 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)
commit8457fcddd5e8e6062e7edbd9cd05b53739859514
tree66d47efb617bcca532415650d8128eb31b9d97a1
parented42f56167b6b4e8beb0cda7f8c042a8b2a93561
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