From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [PATCH] alsa: hda_codec: fix number of devices query on hotplug Date: Tue, 09 Jun 2015 07:36:12 +0200 Message-ID: References: <1433821171-23519-1-git-send-email-airlied@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id C3F5B264F23 for ; Tue, 9 Jun 2015 07:36:12 +0200 (CEST) In-Reply-To: <1433821171-23519-1-git-send-email-airlied@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: airlied@gmail.com Cc: Dave Airlie , alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Tue, 9 Jun 2015 13:39:31 +1000, airlied@gmail.com wrote: > > From: Dave Airlie > > 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 Applied, thanks! Takashi > --- > sound/pci/hda/hda_codec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c > index b49feff..b778221 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; > -- > 2.4.1 > > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel >