• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Copyright 2018 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 SERVER_STREAM_H_
7 #define SERVER_STREAM_H_
8 
9 struct stream_list;
10 
11 /*
12  * Asynchronously creates a server stream pinned to device of given idx.
13  * Args:
14  *    stream_list - List of stream to add new server stream to.
15  *    dev_idx - The id of the device that new server stream will pin to.
16  */
17 void server_stream_create(struct stream_list *stream_list, unsigned int dev_idx,
18 			  struct cras_audio_format *format);
19 
20 /*
21  * Asynchronously destroys existing server stream pinned to device of given idx.
22  * Args:
23  *    stream_list - List of stream to look up server stream.
24  *    dev_idx - The device id that target server stream is pinned to.
25  **/
26 void server_stream_destroy(struct stream_list *stream_list,
27 			   unsigned int dev_idx);
28 
29 #endif /* SERVER_STREAM_H_ */
30