Linear twists of L-functions of degree 2 from the Selberg class