SOUTH BEND, Ind. — A lawsuit related to the demotion of a former South Bend police chief could potentially re-open one of the more uncomfortable moments of Pete Buttigieg's mayoralty as his presidential run picks up steam.

The South Bend Common Council is pushing to have tapes made public that secretly recorded police officers on telephone calls in which they allegedly made racist comments.

The controversy led Buttigieg to demote the city's first black police chief, Darryl Boykins, in 2012. Boykins then sued the city alleging racial discrimination, saying that the secret taping scandal was used as a pretext to oust him.

Boykins' demotion prompted a wave of criticism from many leaders in the city’s black community. African American pastors and city council members have said they want the tapes released so they can hear whether white police officers used racist language.

Separately, a group of officers is suing the city trying to block the tapes' release, saying they were illegally recorded.

The mayor's office says it can't release the tapes without approval from a judge since the recordings could violate wiretapping laws. Nonetheless, Buttigieg said several years ago that he "would be very interested to know what is on the tapes."

Litigation has been ongoing for six years and has cost the city over $2 million, according to The South Bend Tribune.

A judge was supposed to decide on summary judgment by the end of last year, but a ruling could now be coming soon, according to The Hill.

The issue arose by accident after a former detective set up an automatic recording system on his office phone that continued to record officers after he left.

The department's former communications director said she discovered that the recordings contained racist remarks and even discussions of a potential criminal conspiracy and brought it to Boykins' attention.

But Boykins and the communications director ended up being punished because the mayor's office said that the recordings violated laws that require at least one party to consent to being recorded on a phone call — a position strongly endorsed by the officers recorded on the calls.

But the Common Council, which wants the tapes to be made public, claims there was "implied consent" among police officers because everyone knows the police department records calls.

While the recorded calls do not relate directly to Buttigieg, they could revive questions about race and justice in South Bend.

The mayor's office declined to comment on the pending litigation, and Buttigieg's campaign did not respond to a request for comment.