summaryrefslogtreecommitdiff
path: root/cras/src/server/cras_device_monitor.h
blob: eca2372b6586b3fec344c5b186119e86eb5d259b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* Copyright 2016 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef CRAS_DEVICE_MONITOR_H_
#define CRAS_DEVICE_MONITOR_H_

/* Asks main thread to reset a device */
int cras_device_monitor_reset_device(unsigned int dev_idx);

/* Asks main thread to set mute/unmute state on a device. */
int cras_device_monitor_set_device_mute_state(unsigned int dev_idx);

/* Initializes device monitor and sets main thread callback. */
int cras_device_monitor_init();

/* Asks main thread to close device because error has occured in audio
 * thread. */
int cras_device_monitor_error_close(unsigned int dev_idx);

#endif /* CRAS_DEVICE_MONITOR_H_ */