Skip to content

Commit

Permalink
ALSA: hda - fix number of devices query on hotplug
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dave Airlie authored and Takashi Iwai committed Jun 9, 2015
1 parent 3b7e5c7 commit 132bd96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/hda/hda_codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 132bd96

Please sign in to comment.