1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 *  ALSA interface to cobalt PCM capture streams
4 *
5 *  Copyright 2014-2015 Cisco Systems, Inc. and/or its affiliates.
6 *  All rights reserved.
7 */
8
9struct snd_card;
10
11struct snd_cobalt_card {
12	struct cobalt_stream *s;
13	struct snd_card *sc;
14	unsigned int capture_transfer_done;
15	unsigned int hwptr_done_capture;
16	unsigned alsa_record_cnt;
17	struct snd_pcm_substream *capture_pcm_substream;
18
19	unsigned int pb_size;
20	unsigned int pb_count;
21	unsigned int pb_pos;
22	unsigned pb_filled;
23	bool alsa_pb_channel;
24	unsigned alsa_playback_cnt;
25	struct snd_pcm_substream *playback_pcm_substream;
26};
27
28int cobalt_alsa_init(struct cobalt_stream *s);
29void cobalt_alsa_exit(struct cobalt_stream *s);
30