• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Copyright 2016 The Chromium OS Authors. All rights reserved.
2  * Use of this source code is governed by a BSD-style license that can be
3  * found in the LICENSE file.
4  */
5 
6 #ifndef CRAS_DEVICE_MONITOR_H_
7 #define CRAS_DEVICE_MONITOR_H_
8 
9 /* Asks main thread to reset a device */
10 int cras_device_monitor_reset_device(unsigned int dev_idx);
11 
12 /* Asks main thread to set mute/unmute state on a device. */
13 int cras_device_monitor_set_device_mute_state(unsigned int dev_idx);
14 
15 /* Initializes device monitor and sets main thread callback. */
16 int cras_device_monitor_init();
17 
18 /* Asks main thread to close device because error has occured in audio
19  * thread. */
20 int cras_device_monitor_error_close(unsigned int dev_idx);
21 
22 #endif /* CRAS_DEVICE_MONITOR_H_ */
23