Use TARGET_QCOM_MEDIA_VARIANT flag

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

Change-Id: I8afcc0269f107608842013f6fbd95b72c83fdfc4