diff options
author | Dave Airlie <airlied@redhat.com> | 2015-06-09 13:39:31 +1000 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-06-09 07:15:29 +0200 |
commit | 132bd96bc56f9cafd24b71de389984d0e83a0956 (patch) | |
tree | 16f95eca663b3923e30e91f68158e22605b70aee /sound | |
parent | 3b7e5c7e36ed4a046bbea6d36c9be9d1d6107ae0 (diff) | |
download | linux-132bd96bc56f9cafd24b71de389984d0e83a0956.tar.bz2 |
ALSA: hda - fix number of devices query on hotplug
The new regmap code seems to cache this, which isn't helpful
for the hotplug dock situation where this gets updated.
Use the uncached query for this.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/hda_codec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index b49feff0a319..b7782212dd64 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c @@ -436,7 +436,7 @@ static unsigned int get_num_devices(struct hda_codec *codec, hda_nid_t nid) get_wcaps_type(wcaps) != AC_WID_PIN) return 0; - parm = snd_hda_param_read(codec, nid, AC_PAR_DEVLIST_LEN); + parm = snd_hdac_read_parm_uncached(&codec->core, nid, AC_PAR_DEVLIST_LEN); if (parm == -1 && codec->bus->rirb_error) parm = 0; return parm & AC_DEV_LIST_LEN_MASK; |