Use TARGET_QCOM_MEDIA_VARIANT flag

Needed after http://review.cyanogenmod.org/51031
Use the same logic as caf variant

Change-Id: I1f6cbe7aa825b29bd9574674b85a5257b469d09c