From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [PATCH 1/3] ALSA - hda: Add support for GTS capability Date: Mon, 11 Jul 2016 16:06:25 +0200 Message-ID: References: <1468232009-14130-1-git-send-email-vinod.koul@intel.com> <1468232009-14130-2-git-send-email-vinod.koul@intel.com> <20160711140732.GH9681@localhost> 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 (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id D80D5265E24 for ; Mon, 11 Jul 2016 16:06:25 +0200 (CEST) In-Reply-To: <20160711140732.GH9681@localhost> 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: Vinod Koul Cc: alsa-devel@alsa-project.org, patches.audio@intel.com, Hardik T Shah , Guneshwor Singh , liam.r.girdwood@linux.intel.com, broonie@kernel.org List-Id: alsa-devel@alsa-project.org On Mon, 11 Jul 2016 16:07:32 +0200, Vinod Koul wrote: > > > > diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c > > > index 9a0d1445ca5c..b4ebdde59398 100644 > > > --- a/sound/pci/hda/hda_intel.c > > > +++ b/sound/pci/hda/hda_intel.c > > > @@ -1649,6 +1649,7 @@ static int azx_first_init(struct azx *chip) > > > return -ENXIO; > > > } > > > > > > + azx_parse_capabilities(chip); > > > > Is it really safe to call the function no matter which chip? > > I think so, since we read base HDA registers for capablity. For older hw the > next capablity will not be there. > > But yes I will verify this on older machines. I checked the spec 1.0 and 1.0a, and there is no definition for the register offset 0x14. So, it's likely unsafe to use it unconditionally. Takashi