]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Manage current pinctl values in generic parser
authorTakashi Iwai <tiwai@suse.de>
Thu, 10 Jan 2013 08:33:29 +0000 (09:33 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 12 Jan 2013 07:44:28 +0000 (08:44 +0100)
commit9e8752fbed1d6a1b82353abaf1753d45ca41f3f3
tree5a64a48fea189dcf4b47c1b051a42de8dfa42bef
parentccf1d486d085d5690ecefeb26bd9db31f2159cb6
ALSA: hda - Manage current pinctl values in generic parser

Use the new pin target accessors for managing the current pinctl
values in the generic parser.  The pinctl values of all active pins
are once determined at the initialization phase, and stored via
snd_hda_codec_set_pin_target().  This will be referred again in the
codec init or resume phase to set the actual pinctl.

This value is kept while the auto-mute.  When a line-out or a speaker
pin is muted by auto-mute, the driver simply disables the pin, but it
doesn't touch the cached pinctl target value.  Upon unmute, this value
is used to restore the original pinctl in return.

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