diff options
-rw-r--r-- | sound/pci/cs5535audio/cs5535audio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/pci/cs5535audio/cs5535audio.c b/sound/pci/cs5535audio/cs5535audio.c index 02e3721030b7..9fc7f3827461 100644 --- a/sound/pci/cs5535audio/cs5535audio.c +++ b/sound/pci/cs5535audio/cs5535audio.c | |||
@@ -62,7 +62,7 @@ static void wait_till_cmd_acked(struct cs5535audio *cs5535au, unsigned long time | |||
62 | tmp = cs_readl(cs5535au, ACC_CODEC_CNTL); | 62 | tmp = cs_readl(cs5535au, ACC_CODEC_CNTL); |
63 | if (!(tmp & CMD_NEW)) | 63 | if (!(tmp & CMD_NEW)) |
64 | break; | 64 | break; |
65 | msleep(10); | 65 | udelay(1); |
66 | } while (--timeout); | 66 | } while (--timeout); |
67 | if (!timeout) | 67 | if (!timeout) |
68 | snd_printk(KERN_ERR "Failure writing to cs5535 codec\n"); | 68 | snd_printk(KERN_ERR "Failure writing to cs5535 codec\n"); |
@@ -80,14 +80,14 @@ static unsigned short snd_cs5535audio_codec_read(struct cs5535audio *cs5535au, | |||
80 | regdata |= CMD_NEW; | 80 | regdata |= CMD_NEW; |
81 | 81 | ||
82 | cs_writel(cs5535au, ACC_CODEC_CNTL, regdata); | 82 | cs_writel(cs5535au, ACC_CODEC_CNTL, regdata); |
83 | wait_till_cmd_acked(cs5535au, 500); | 83 | wait_till_cmd_acked(cs5535au, 50); |
84 | 84 | ||
85 | timeout = 50; | 85 | timeout = 50; |
86 | do { | 86 | do { |
87 | val = cs_readl(cs5535au, ACC_CODEC_STATUS); | 87 | val = cs_readl(cs5535au, ACC_CODEC_STATUS); |
88 | if ((val & STS_NEW) && reg == (val >> 24)) | 88 | if ((val & STS_NEW) && reg == (val >> 24)) |
89 | break; | 89 | break; |
90 | msleep(10); | 90 | udelay(1); |
91 | } while (--timeout); | 91 | } while (--timeout); |
92 | if (!timeout) | 92 | if (!timeout) |
93 | snd_printk(KERN_ERR "Failure reading cs5535 codec\n"); | 93 | snd_printk(KERN_ERR "Failure reading cs5535 codec\n"); |