NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-macppc/40054: powerbook g4/500 titanium problem with netbsd-5: no speaker output w/ awacs



The following reply was made to PR port-macppc/40054; it has been noted by 
GNATS.

From: Michael <macallan%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: port-macppc-maintainer%netbsd.org@localhost,
 gnats-admin%netbsd.org@localhost,
 netbsd-bugs%netbsd.org@localhost
Subject: Re: port-macppc/40054: powerbook g4/500 titanium problem with 
netbsd-5: no speaker output w/ awacs
Date: Fri, 28 Nov 2008 19:49:18 -0500

 Sounds like you just found Yet Another Wiring Variant for awacs'  
 headphone detect gpio.
 Please try this pseudo patch to macppc/dev/awacs.c:
 static int
 awacs_check_headphones(struct awacs_softc *sc)
 {
          uint32_t reg;
          reg = awacs_read_reg(sc, AWACS_CODEC_STATUS);
 -        DPRINTF("%s: codec status reg %08x\n", device_xname(sc- 
  >sc_dev), reg);
 +        printf("%s: codec status reg %08x\n", device_xname(sc- 
  >sc_dev), reg);
          return ((reg & sc->sc_headphones_mask) == sc- 
  >sc_headphones_in);
 }
 
 Boot a kernel with this and then plug and unplug headphones a few  
 times. The kernel should output the gpio readings every time you  
 (un)plug them. Please mail me the output, this should help me to find  
 out which bit is the headphone status on your particular PowerBook.
 Alternatively you can just add 'options AWACS_DEBUG' to your kernel  
 config but that would probably give too much output.
 Also, please tell me what's in your PowerBook's /compatible property  
 ( Should be something like 'PowerBook5,3' ) so I can add a machine- 
 specific entry to awacs' quirks table.
 


Home | Main Index | Thread Index | Old Index