Changeset 358 for GPL/branches/uniaud32-2.0/alsa-kernel/pci/fm801.c
- Timestamp:
- Jul 16, 2008, 11:53:49 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-2.0/alsa-kernel/pci/fm801.c
r305 r358 1286 1286 static int snd_fm801_chip_init(struct fm801 *chip, int resume) 1287 1287 { 1288 int id;1289 1288 unsigned short cmdw; 1290 1289 … … 1311 1310 /* my card has the secondary codec */ 1312 1311 /* at address #3, so the loop is inverted */ 1313 for (id = 3; id > 0; id--) { 1314 if (! wait_for_codec(chip, id, AC97_VENDOR_ID1, 1312 int i; 1313 for (i = 3; i > 0; i--) { 1314 if (!wait_for_codec(chip, i, AC97_VENDOR_ID1, 1315 1315 msecs_to_jiffies(50))) { 1316 1316 cmdw = inw(FM801_REG(chip, AC97_DATA)); 1317 1317 if (cmdw != 0xffff && cmdw != 0) { 1318 1318 chip->secondary = 1; 1319 chip->secondary_addr = i d;1319 chip->secondary_addr = i; 1320 1320 break; 1321 1321 }
Note:
See TracChangeset
for help on using the changeset viewer.