hal: force device switch only for headset and headphone

As native 44.1k is only valid for headset and headphone,
force_device_switch just happens for them.

CRs-Fixed: 980341
Change-Id: I1a01e64322f64c60cf15b6d29472023ff4dfb7ac
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 0526e9b..3698294 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -913,7 +913,9 @@
 
     if (is_offload_usecase(usecase->id) &&
         (usecase->stream.out) &&
-        (usecase->stream.out->sample_rate == OUTPUT_SAMPLING_RATE_44100)) {
+        (usecase->stream.out->sample_rate == OUTPUT_SAMPLING_RATE_44100) &&
+        (usecase->stream.out->devices == AUDIO_DEVICE_OUT_WIRED_HEADSET ||
+         usecase->stream.out->devices == AUDIO_DEVICE_OUT_WIRED_HEADPHONE)) {
         is_it_true_mode = (NATIVE_AUDIO_MODE_TRUE_44_1 == platform_get_native_support()? true : false);
          if ((is_it_true_mode && !adev->native_playback_enabled) ||
              (!is_it_true_mode && adev->native_playback_enabled)){