audio: No audio when play any video with MS12 lib [1/1]

PD#SWPL-207212

Problem:
1.No audio when play any video with MS12 lib
2.dolby ms12 tuning data file path copy error,Only the first four
characters are copied because of a sizeof error

Solution:
1.strlen should be used to copy characters.

Verify:
yocto

Change-Id: I20faef3e55214a79820f67428cf0add6a6471b3f
Signed-off-by: hui.liu <hui.liu@amlogic.com>
diff --git a/audio_hal/audio_hw.c b/audio_hal/audio_hw.c
index c567ad6..d26f3e7 100644
--- a/audio_hal/audio_hw.c
+++ b/audio_hal/audio_hw.c
@@ -9118,14 +9118,14 @@
                     adev->is_ms12_tuning_dat = is_ms12_tuning_dat_in_dut(path_to_use);
                     if (adev->is_ms12_tuning_dat) {
                         memset(adev->ms12_tuning_dat_path, 0, AUDIO_HAL_CHAR_MAX_LEN);
-                        memcpy(adev->ms12_tuning_dat_path, path_to_use, sizeof(path_to_use));
+                        memcpy(adev->ms12_tuning_dat_path, path_to_use, strlen(path_to_use));
+                        AM_LOGI("use dolby config %d, ms12_tuning_dat=%d, ms12_tuning_dat_path=%s", adev->dolby_ms12_audio_config, adev->is_ms12_tuning_dat, adev->ms12_tuning_dat_path);
                     } else {
-                        ALOGE("DOLBY_TUNING_DAT is missing, updated dolby config to Y (%s)", str_val);
                         adev->dolby_ms12_audio_config = MS12_CONFIG_Y;
+                        AM_LOGE("DOLBY_TUNING_DAT is missing, updated dolby config to Y (%s)", str_val);
                     }
                 }
             }
-           ALOGI("use dolby config %d, ms12_tuning_dat=%d ", adev->dolby_ms12_audio_config, adev->is_ms12_tuning_dat);
         } else {
             adev->dolby_ms12_audio_config = MS12_CONFIG_Y;
             ALOGE("dolby config type needs to be configured");