I think this is your ancestor. This man has a very interesting service record, he deserted, was court martialed, captured at Franklin, POW at Camp Chase, and finally took the oath in 1865. I would suggest ordering his service records using the clickable link in the top center of this page.
GP