[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZJxHa36/xN3kClw0@smile.fi.intel.com>
Date: Wed, 28 Jun 2023 17:44:59 +0300
From: Andy Shevchenko <andriy.shevchenko@...el.com>
To: Amadeusz Sławiński
<amadeuszx.slawinski@...ux.intel.com>
Cc: Bjorn Helgaas <bhelgaas@...gle.com>,
Mark Brown <broonie@...nel.org>, Takashi Iwai <tiwai@...e.com>,
alsa-devel@...a-project.org, linux-pci@...r.kernel.org,
linux-kernel@...r.kernel.org,
Cezary Rojewski <cezary.rojewski@...el.com>,
Pierre-Louis Bossart <pierre-louis.bossart@...ux.intel.com>,
Kai Vehmanen <kai.vehmanen@...ux.intel.com>
Subject: Re: [RFC PATCH 4/8] ALSA: hda/i915: Update PCI IDs
On Wed, Jun 28, 2023 at 05:42:54PM +0300, Andy Shevchenko wrote:
> On Wed, Jun 28, 2023 at 10:51:31PM +0200, Amadeusz Sławiński wrote:
...
> > -#define IS_HSW_CONTROLLER(pci) (((pci)->device == 0x0a0c) || \
> > - ((pci)->device == 0x0c0c) || \
> > - ((pci)->device == 0x0d0c) || \
> > - ((pci)->device == 0x160c))
> > +#define IS_HSW_CONTROLLER(pci) (((pci)->device == PCI_DEVICE_ID_INTEL_HDA_HSW_0) || \
> > + ((pci)->device == PCI_DEVICE_ID_INTEL_HDA_HSW_2) || \
> > + ((pci)->device == PCI_DEVICE_ID_INTEL_HDA_HSW_3) || \
> > + ((pci)->device == PCI_DEVICE_ID_INTEL_HDA_BDW))
>
> The very same macro under different name appeared in the previous patch.
> Am I correct? Perhaps go further and first move it somewhere to be available
> for both?
Ah, this one is a subset of that one, nevertheless the proposal stays.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists