The lawyer for a Sioux Falls defense attorney being tried on child pornography charges told a federal court jury that Leo Flynn sought out the material so he could give legal advice to clients.

The 62-year-old Flynn is facing charges including possession and distribution of child porn. South Dakota law gives immunity to lawyers and some others who work on such cases, but federal law doesn't. Defense attorney Rory Durkin says the state law should apply in Flynn's case.

Prosecutors say they found hundreds of pornographic files on Flynn's computer. On Tuesday, they played audio of an interview with investigators in which Flynn said he searched for child porn about once a week.

The Argus Leader reports that Flynn's trial is expected to last late into the week.