OSDN Git Service

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)
commit2c12c30d3fe5589d32ceddade09f13f1d3d6391d
tree5a64a48fea189dcf4b47c1b051a42de8dfa42bef
parent62f3a2f718131e6f42746ccd26dbf4eb5eab677a
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