The possession of a controlled substance or being under the influence would qualify you for PC1000 (Prop.36). Unfortunately, for you, you were driving.
Consult legal counsel. Maybe ... just maybe ... a deal for diversion or an offer to plead guilty to an offense covered under Prop 36 might be possible. Itr is slim,but possible.
A first time DUI conviction is not the end of the world.
First California DUI Offense:
California Criminal Status: Non-injury DUIs generally misdemeanors. DUIs that result in bodily injury may be elevated to felony status, depending on the circumstances.
Jail: 48 hours, but not more than 6 months.
California DUI Fines/Costs: $390-$1,000 plus penalty assessments.
California License Suspension: 4 months suspension; restored after 30 days upon showing of hardship. 1 year suspension if under 21.
Ignition Interlock Device: Court may order use of interlock device.
Vehicle Impound: Court may order impoundment.
California DUI School: Mandatory alcohol education if under 21. Possible first offender school for 3-6 months, depending on BAC level.
California Probation: 3 years informal – no probation officer.
Community Service: In some courts, you may work off some of your fees/costs by doing community service.