| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "media/audio/alsa/alsa_util.h" | 5 #include "media/audio/alsa/alsa_util.h" |
| 6 | 6 |
| 7 #include <string> | |
| 8 | 7 |
| 9 #include "base/logging.h" | 8 #include "base/logging.h" |
| 10 #include "media/audio/alsa/alsa_wrapper.h" | 9 #include "media/audio/alsa/alsa_wrapper.h" |
| 11 | 10 |
| 12 namespace alsa_util { | 11 namespace alsa_util { |
| 13 | 12 |
| 14 static snd_pcm_t* OpenDevice(media::AlsaWrapper* wrapper, | 13 static snd_pcm_t* OpenDevice(media::AlsaWrapper* wrapper, |
| 15 const char* device_name, | 14 const char* device_name, |
| 16 snd_pcm_stream_t type, | 15 snd_pcm_stream_t type, |
| 17 int channels, | 16 int channels, |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 else if (strcmp(elem_name, kMicElemName) == 0) | 190 else if (strcmp(elem_name, kMicElemName) == 0) |
| 192 mic_elem = elem; | 191 mic_elem = elem; |
| 193 } | 192 } |
| 194 } | 193 } |
| 195 | 194 |
| 196 // Did not find any Capture handle, use the Mic handle. | 195 // Did not find any Capture handle, use the Mic handle. |
| 197 return mic_elem; | 196 return mic_elem; |
| 198 } | 197 } |
| 199 | 198 |
| 200 } // namespace alsa_util | 199 } // namespace alsa_util |
| OLD | NEW |