Conditions for Setting the DTC
WARNING: This page is about a different car, the 2004 Pontiac Vibe. However, it is still accessible from the selected car via links, so may be relevant.
DTC P0976 sets when either of the following conditions occurs:
The PCM detects a short to ground in the shift solenoid #2 circuit when the solenoid is commanded OFF.