Skip to content

Commit 3526860

Browse files
rsalvaterratiwai
authored andcommitted
ALSA: hda: Replace numeric device IDs with constant values
We have self-explanatory constants for Intel HDA devices, let's use them instead of magic numbers and code comments. Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com> Reviewed-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> Link: https://lore.kernel.org/r/20240122114512.55808-2-rsalvaterra@gmail.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 1513664 commit 3526860

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sound/pci/hda/hda_intel.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1729,8 +1729,8 @@ static int default_bdl_pos_adj(struct azx *chip)
17291729
/* some exceptions: Atoms seem problematic with value 1 */
17301730
if (chip->pci->vendor == PCI_VENDOR_ID_INTEL) {
17311731
switch (chip->pci->device) {
1732-
case 0x0f04: /* Baytrail */
1733-
case 0x2284: /* Braswell */
1732+
case PCI_DEVICE_ID_INTEL_HDA_BYT:
1733+
case PCI_DEVICE_ID_INTEL_HDA_BSW:
17341734
return 32;
17351735
}
17361736
}

0 commit comments

Comments
 (0)