Pete Doherty has pleaded guilty to cocaine possession.
The singer was charged following an inquiry into the death of an amateur filmmaker at a flat in East London in January 2010.
Doherty was granted unconditional bail during an appearance at Snaresbrook Crown Court on Friday (April 8). He will be sentenced on May 20.
Judge David Radford told Doherty his criminal record was “unattractive”, reports BBC News.
"When someone constantly commits the same offence the law must be made very clear,” Judge Radford told the singer’s lawyer.
“Is your client aware he could face a sentence?"
Robin Whitehead, 27, died while making a documentary about the Libertines and Babyshambles singer.
Top-10 Jailed Music Stars
You can keep up to date with all the latest news from Gigwise by following us on Twitter and liking us on Facebook.

Arctic Monkeys Taking Two Year Break From Recording Studio
Cheryl Cole And Ashley Cole 'Scrap Holiday To Richard Branson's Necker Island'
Rihanna 'Cheers (Drink To That)' Video Unveiled - Watch
Gary Barlow: I Told Adele I'm Sick Of Her
Pete Doherty Released From Prison Early
Music Stars Who Nearly Became The Next Ryan Giggs
Pete Doherty Prison Sentence 'Devastates' Charlotte Gainsbourg
Reckon Jay-Z Vs Lil' Wayne Feud Is Bad? Ugly Hip-Hop Beefs
As Muse Prepare For Reading & Leeds: 20 Facts About 'Origin Of Symmetry'
Miley Cyrus, Britney Spears, Madonna: Worst Covers Of All Time