Narrative:

During climb out from stl en route to tys we noticed an electrical burning smell in the cockpit only. Smell worsened, but no visible smoke. Declared an emergency and returned to stl. While at the gate we first noticed visible smoke in cockpit. It turned out to be a spoiler actuator motor burning up. Other than the above, the flight terminated without incident.

Google
 

Original NASA ASRS Text

Title: AN ACR FLC DECLARED AN EMER BECAUSE OF AN ELECTRICAL BURNING SMELL IN THE COCKPIT AND THEY RETURN TO THE DEP ARPT.

Narrative: DURING CLBOUT FROM STL ENRTE TO TYS WE NOTICED AN ELECTRICAL BURNING SMELL IN THE COCKPIT ONLY. SMELL WORSENED, BUT NO VISIBLE SMOKE. DECLARED AN EMER AND RETURNED TO STL. WHILE AT THE GATE WE FIRST NOTICED VISIBLE SMOKE IN COCKPIT. IT TURNED OUT TO BE A SPOILER ACTUATOR MOTOR BURNING UP. OTHER THAN THE ABOVE, THE FLT TERMINATED WITHOUT INCIDENT.

Data retrieved from NASA's ASRS site as of July 2007 and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.