Your professor probably wants you to do research beyond google and asking for the answer on internet forums.
The attorney always represents the individual in jail. A relative may help the prisoner find counsel, and perhaps even pay for it, but the attorney does nothing except on behalf of the prisoner.
I suspect around our area (can't vouch for Texas) that the impetus almost always comes from the prisoner. Either he calls an attorney or he demands access to the public defender.

