]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Introduce snd_hda_codec_amp_init*()
authorTakashi Iwai <tiwai@suse.de>
Fri, 14 Dec 2012 09:32:21 +0000 (10:32 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 12 Jan 2013 07:30:02 +0000 (08:30 +0100)
commit8f8119dddc2380ff4aee5d18af61c6284133acf9
treea1e7ae6afbe3c0ef804cbe5ce42d14f0a127594d
parent28e657844548596ddc151fe26d42e25a6da16878
ALSA: hda - Introduce snd_hda_codec_amp_init*()

The new function snd_hda_codec_amp_init() (and the stereo variant)
initializes the amp value only once at the first access.  If the amp
was already initialized or updated, this won't do anything more.

It's useful for initializing the input amps that are in the part of
the path but never used.

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