Use TARGET_QCOM_MEDIA_VARIANT flag

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

Change-Id: I1a80b93643151b172223d19f305a548d98f917de