In this paper we give necessary and sufficient conditions for weak and strong quadratic stability of a class of switched linear systems consisting of two subsystems, associated with symmetric transfer function matrices. These conditions can simply be tested by checking the eigenvalues of the product of two subsystem matrices. This result is an extension of the result by Shorten and Narendra for strong quadratic stability, and the result by Shorten et al. on weak quadratic stability for switched linear systems. Examples are given to illustrate the usefulness of our results.