Update of /cvsroot/alsa/alsa-kernel/i2c In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2800/i2c
Modified Files: cs8427.c Log Message: Added cs8427_timeout parameter to the ICE1712 driver Index: cs8427.c =================================================================== RCS file: /cvsroot/alsa/alsa-kernel/i2c/cs8427.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- cs8427.c 15 Mar 2004 11:49:18 -0000 1.17 +++ cs8427.c 20 Mar 2004 13:10:01 -0000 1.18 @@ -50,6 +50,7 @@ typedef struct { unsigned char regmap[0x14]; /* map of first 1 + 13 registers */ unsigned int rate; + unsigned int reset_timeout; cs8427_stream_t playback; cs8427_stream_t capture; } cs8427_t; @@ -163,6 +164,7 @@ int snd_cs8427_create(snd_i2c_bus_t *bus, unsigned char addr, + unsigned int reset_timeout, snd_i2c_device_t **r_cs8427) { static unsigned char initvals1[] = { @@ -256,6 +258,7 @@ snd_i2c_unlock(bus); /* turn on run bit and rock'n'roll */ + chip->reset_timeout = reset_timeout; snd_cs8427_reset(device); #if 0 // it's nice for read tests @@ -301,7 +304,7 @@ snd_cs8427_reg_write(cs8427, CS8427_REG_CLOCKSOURCE, chip->regmap[CS8427_REG_CLOCKSOURCE]); udelay(200); snd_i2c_unlock(cs8427->bus); - end_time = jiffies + HZ / 2; + end_time = jiffies + chip->reset_timeout; while (time_after_eq(end_time, jiffies)) { snd_i2c_lock(cs8427->bus); data = snd_cs8427_reg_read(cs8427, CS8427_REG_RECVERRORS); ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog