]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Use regmap for parameter caches, too
authorTakashi Iwai <tiwai@suse.de>
Thu, 26 Feb 2015 07:54:56 +0000 (08:54 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 23 Mar 2015 12:19:40 +0000 (13:19 +0100)
commit20fd9bb79dc33f36a5fe65338405591b1676094a
tree5158cb6255a448080b16c376b1006e8e29f946aa
parent5e1b21d6a6f41e819be859ff83ee71f764945f27
ALSA: hda - Use regmap for parameter caches, too

The amp hash table was used for recording the cached reads of some
capability values like pin caps or amp caps.  Now all these are moved
to regmap as well.

One addition to the regmap helper is codec->caps_overwriting flag.
This is set in snd_hdac_override_parm(), and the regmap helper accepts
any register while this flag is set, so that it can overwrite even the
read-only verb like AC_VERB_PARAMETERS.  The flag is cleared
immediately in snd_hdac_override_parm(), as it's a once-off flag.

Along with these changes, the no longer needed amp hash and relevant
fields are removed from hda_codec struct now.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/hdaudio.h
sound/hda/hdac_device.c
sound/hda/hdac_regmap.c
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_codec.h
sound/pci/hda/hda_local.h