From d0a20b6e1b88eeecaa61d0752226f55c7ccd3006 Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Thu, 28 Feb 2008 11:55:07 +0100 Subject: [PATCH] --- yaml --- r: 92079 b: refs/heads/master c: 58e4334e82c0f4eb0147a905a127bd14f0ea0a2d h: refs/heads/master i: 92077: da7021bd6c61b5eff2ad272a6b0bca4aa88e12a2 92075: a0431f89fe47da8055ba5de852caa0c621d1d646 92071: 4eb1ee7733f4e5d783fc389c8a415b034cfe988f 92063: 07a1c630aa61e28ad73f0bbbaba78ef17612f2b5 v: v3 --- [refs] | 2 +- trunk/sound/pci/fm801.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 46edcca357ed..a351307d91fe 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3463d8fa14ba2e00ede9894efdaa65189eb04b36 +refs/heads/master: 58e4334e82c0f4eb0147a905a127bd14f0ea0a2d diff --git a/trunk/sound/pci/fm801.c b/trunk/sound/pci/fm801.c index 4c300e6149fc..c129f9e2072c 100644 --- a/trunk/sound/pci/fm801.c +++ b/trunk/sound/pci/fm801.c @@ -1285,7 +1285,6 @@ static int wait_for_codec(struct fm801 *chip, unsigned int codec_id, static int snd_fm801_chip_init(struct fm801 *chip, int resume) { - int id; unsigned short cmdw; if (chip->tea575x_tuner & 0x0010) @@ -1310,13 +1309,14 @@ static int snd_fm801_chip_init(struct fm801 *chip, int resume) } else { /* my card has the secondary codec */ /* at address #3, so the loop is inverted */ - for (id = 3; id > 0; id--) { - if (! wait_for_codec(chip, id, AC97_VENDOR_ID1, + int i; + for (i = 3; i > 0; i--) { + if (!wait_for_codec(chip, i, AC97_VENDOR_ID1, msecs_to_jiffies(50))) { cmdw = inw(FM801_REG(chip, AC97_DATA)); if (cmdw != 0xffff && cmdw != 0) { chip->secondary = 1; - chip->secondary_addr = id; + chip->secondary_addr = i; break; } }