*** ../ice1724.c 2003-09-11 23:22:58.000000000 -0700 --- ice1724.c.orig 2003-07-17 03:46:28.000000000 -0700 *************** *** 382,387 **** --- 382,392 ---- return; } + if (rate == ice->cur_rate) { + spin_unlock_irqrestore(&ice->reg_lock, flags); + return; + } + switch (rate) { case 8000: val = 6; break; case 9600: val = 3; break; *************** *** 404,414 **** break; } outb(val, ICEMT1724(ice, RATE)); - if (rate == ice->cur_rate) { - spin_unlock_irqrestore(&ice->reg_lock, flags); - return; - } - ice->cur_rate = rate; /* check MT02 */ --- 409,414 ---- *************** *** 924,933 **** snd_info_buffer_t * buffer) { ice1712_t *ice = snd_magic_cast(ice1712_t, entry->private_data, return); - akm4xxx_t *ak = ice->akm; /* tsw */ unsigned int idx; - int i_codecs; /* tsw */ - char *codec_n[] = {"AK4524", "AK4528", "AK4529", "AK4355", "AK4381"}; snd_iprintf(buffer, "%s\n\n", ice->card->longname); snd_iprintf(buffer, "EEPROM:\n"); --- 924,930 ---- *************** *** 952,967 **** snd_iprintf(buffer, " CCS%02x : 0x%02x\n", idx, inb(ice->port+idx)); for (idx = 0x0; idx < 0x30 ; idx++) snd_iprintf(buffer, " MT%02x : 0x%02x\n", idx, inb(ice->profi_port+idx)); - for (i_codecs = 0; i_codecs < ice->akm_codecs; i_codecs++) { - snd_iprintf(buffer, "Codec %d (%s) data:",i_codecs, - codec_n[ak->type]); - for (idx = 0; idx < 16; idx++) { - snd_iprintf(buffer, " %02X", - snd_akm4xxx_get(ak, 0, idx)); - } - snd_iprintf(buffer, "\n"); - ak++; /* To the next codec */ - } } static void __devinit snd_vt1724_proc_init(ice1712_t * ice) --- 949,954 ----