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 <[email protected]> Reviewed-by: Amadeusz Sławiński <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 1513664 commit 3526860

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)