diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-10-15 14:06:14 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-10-15 14:10:25 +0200 |
commit | 7fbe824a0f0e6a73de5b589a6690294f7cb9dae3 (patch) | |
tree | 84c0107ba000e147910e28a92490bd8c6403d745 /sound/pci/hda/hda_codec.h | |
parent | ded255be2276d365a91af2de7c7f8e2c233d4fa2 (diff) | |
download | linux-7fbe824a0f0e6a73de5b589a6690294f7cb9dae3.tar.gz linux-7fbe824a0f0e6a73de5b589a6690294f7cb9dae3.tar.bz2 linux-7fbe824a0f0e6a73de5b589a6690294f7cb9dae3.zip |
ALSA: hda - Update mixer name for the lower codec address
In most cases, we prefer the onboard codec as the primary device, thus
it's better to set it as the mixer name. Currently, however, the
mixer name is updated per the device instantiation order, and user
gets often HDMI/DP or other seen as a mixer chip name. Also, if a
codec name is renamed by the driver, the old chip name might be left
still as the mixer name.
This patch addresses these issues by remembering the chip address that
was referred as the mixer name. When a codec with the same or lower
address gives its name, renew the mixer name accordingly, as it's
either the update of the codec name or we get likely the more
appropriate chip as the reference.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_codec.h')
-rw-r--r-- | sound/pci/hda/hda_codec.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h index b6d937784afa..891864ac60f5 100644 --- a/sound/pci/hda/hda_codec.h +++ b/sound/pci/hda/hda_codec.h @@ -257,6 +257,7 @@ struct hda_codec { unsigned long power_off_acct; unsigned long power_jiffies; #endif + unsigned int mixer_assigned; /* filter the requested power state per nid */ unsigned int (*power_filter)(struct hda_codec *codec, hda_nid_t nid, |