audiohda for c220 chipsets for 9 kernels Reference: /n/atom/patch/applied/9hdac220 Date: Thu Jun 12 05:21:02 CES 2014 Signed-off-by: quanstro@quanstro.net --- /sys/src/9/pc/audiohda.c Thu Jun 12 05:20:46 2014 +++ /sys/src/9/pc/audiohda.c Thu Jun 12 05:20:48 2014 @@ -1384,7 +1384,7 @@ } s = seprint(s, e, "path "); - for(w=ctlr->amp; w != nil; w = w->from){ + for(w = ctlr->amp; w != nil; w = w->from){ s = seprint(s, e, "%3d %s %ux %ux %ux", w->id.nid, widtype[w->type&7], w->cap, w->pin, w->pincap); if(w == ctlr->src) @@ -1493,6 +1493,7 @@ case 0x8086<<16 | 0x080a: /* Intel SCH Oaktrail */ case 0x8086<<16 | 0x1c20: /* Intel PCH */ case 0x8086<<16 | 0x1e20: /* Intel (Thinkpad x230t) */ + case 0x8086<<16 | 0x8c20: /* Intel 8 Series/C220 Series */ case 0x10de<<16 | 0x026c: /* NVidia MCP51 untested */ case 0x10de<<16 | 0x0371: /* NVidia MCP55 untested */ @@ -1607,6 +1608,7 @@ case 0x1e20: case 0x811b: /* SCH */ case 0x080a: + case 0x8c20: pcicfgw16(p, 0x78, pcicfgr16(p, 0x78) & ~0x800); } } @@ -1626,7 +1628,7 @@ ctlr->q = qopen(256, 0, 0, 0); ctlr->mem = vmap(p->mem[0].bar & ~(uintmem)0xf, ctlr->size); if(ctlr->mem == nil){ - print("#A%d: hda: can't map %.8ux\n", ctlr->no, (uint)p->mem[0].bar); + print("#A%d: hda: can't map %#P\n", ctlr->no, p->mem[0].bar); return -1; } print("#A%d: hda: mem %p irq %d\n", ctlr->no, ctlr->mem, irq); --- /sys/src/9/pcpae/audiohda.c Thu Jun 12 05:20:52 2014 +++ /sys/src/9/pcpae/audiohda.c Thu Jun 12 05:20:53 2014 @@ -1384,7 +1384,7 @@ } s = seprint(s, e, "path "); - for(w=ctlr->amp; w != nil; w = w->from){ + for(w = ctlr->amp; w != nil; w = w->from){ s = seprint(s, e, "%3d %s %ux %ux %ux", w->id.nid, widtype[w->type&7], w->cap, w->pin, w->pincap); if(w == ctlr->src) @@ -1493,6 +1493,7 @@ case 0x8086<<16 | 0x080a: /* Intel SCH Oaktrail */ case 0x8086<<16 | 0x1c20: /* Intel PCH */ case 0x8086<<16 | 0x1e20: /* Intel (Thinkpad x230t) */ + case 0x8086<<16 | 0x8c20: /* Intel 8 Series/C220 Series */ case 0x10de<<16 | 0x026c: /* NVidia MCP51 untested */ case 0x10de<<16 | 0x0371: /* NVidia MCP55 untested */ @@ -1607,6 +1608,7 @@ case 0x1e20: case 0x811b: /* SCH */ case 0x080a: + case 0x8c20: pcicfgw16(p, 0x78, pcicfgr16(p, 0x78) & ~0x800); } } @@ -1626,7 +1628,7 @@ ctlr->q = qopen(256, 0, 0, 0); ctlr->mem = vmap(p->mem[0].bar & ~(uintmem)0xf, ctlr->size); if(ctlr->mem == nil){ - print("#A%d: hda: can't map %.8ux\n", ctlr->no, (uint)p->mem[0].bar); + print("#A%d: hda: can't map %#P\n", ctlr->no, p->mem[0].bar); return -1; } print("#A%d: hda: mem %p irq %d\n", ctlr->no, ctlr->mem, irq);