Chromium Code Reviews| Index: chromecast/media/cma/backend/alsa/BUILD.gn |
| diff --git a/chromecast/media/cma/backend/alsa/BUILD.gn b/chromecast/media/cma/backend/alsa/BUILD.gn |
| index c12367d8a9be472b2ef6d5c77ce0d89a342d24d5..f264f97326daec8ed0febab77be3010cbec85d60 100644 |
| --- a/chromecast/media/cma/backend/alsa/BUILD.gn |
| +++ b/chromecast/media/cma/backend/alsa/BUILD.gn |
| @@ -7,9 +7,13 @@ import("//media/media_options.gni") |
| import("//testing/test.gni") |
| declare_args() { |
| - # Set true to use raw timestamps. This should only be enabled when the ALSA |
| - # library supports it. |
| use_alsa_monotonic_raw_tstamps = false |
| + |
| + # Set true to use raw timestamps except on x86 and x64 platforms. |
| + # Alsa version equal or later than 1.0.29 support this function. |
| + if (target_cpu != "x86" && target_cpu != "x64") { |
|
kmackay
2016/03/16 16:27:02
if (!is_cast_desktop_build)
mengyu1
2016/03/16 16:53:38
Done.
|
| + use_alsa_monotonic_raw_tstamps = true |
| + } |
| } |
| # Alsa must be used for these targets to build. |