burgundy.c (1da177e4c3f41524e886b7f1b8a0c1fc7321cac2) | burgundy.c (77933d7276ee8fa0e2947641941a6f7a100a327b) |
---|---|
1/* 2 * PMac Burgundy lowlevel functions 3 * 4 * Copyright (c) by Takashi Iwai <tiwai@suse.de> 5 * code based on dmasound.c. 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 16 unchanged lines hidden (view full) --- 25#include <linux/slab.h> 26#include <linux/delay.h> 27#include <sound/core.h> 28#include "pmac.h" 29#include "burgundy.h" 30 31 32/* Waits for busy flag to clear */ | 1/* 2 * PMac Burgundy lowlevel functions 3 * 4 * Copyright (c) by Takashi Iwai <tiwai@suse.de> 5 * code based on dmasound.c. 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 16 unchanged lines hidden (view full) --- 25#include <linux/slab.h> 26#include <linux/delay.h> 27#include <sound/core.h> 28#include "pmac.h" 29#include "burgundy.h" 30 31 32/* Waits for busy flag to clear */ |
33inline static void | 33static inline void |
34snd_pmac_burgundy_busy_wait(pmac_t *chip) 35{ 36 int timeout = 50; 37 while ((in_le32(&chip->awacs->codec_ctrl) & MASK_NEWECMD) && timeout--) 38 udelay(1); 39 if (! timeout) 40 printk(KERN_DEBUG "burgundy_busy_wait: timeout\n"); 41} 42 | 34snd_pmac_burgundy_busy_wait(pmac_t *chip) 35{ 36 int timeout = 50; 37 while ((in_le32(&chip->awacs->codec_ctrl) & MASK_NEWECMD) && timeout--) 38 udelay(1); 39 if (! timeout) 40 printk(KERN_DEBUG "burgundy_busy_wait: timeout\n"); 41} 42 |
43inline static void | 43static inline void |
44snd_pmac_burgundy_extend_wait(pmac_t *chip) 45{ 46 int timeout; 47 timeout = 50; 48 while (!(in_le32(&chip->awacs->codec_stat) & MASK_EXTEND) && timeout--) 49 udelay(1); 50 if (! timeout) 51 printk(KERN_DEBUG "burgundy_extend_wait: timeout #1\n"); --- 388 unchanged lines hidden --- | 44snd_pmac_burgundy_extend_wait(pmac_t *chip) 45{ 46 int timeout; 47 timeout = 50; 48 while (!(in_le32(&chip->awacs->codec_stat) & MASK_EXTEND) && timeout--) 49 udelay(1); 50 if (! timeout) 51 printk(KERN_DEBUG "burgundy_extend_wait: timeout #1\n"); --- 388 unchanged lines hidden --- |