WIP FPC-III support
[linux/fpc-iii.git] / drivers / media / pci / cobalt / cobalt-alsa.h
blobbb7f156ad3e799dc1dba3687d5e3c5573e4c5515
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * ALSA interface to cobalt PCM capture streams
5 * Copyright 2014-2015 Cisco Systems, Inc. and/or its affiliates.
6 * All rights reserved.
7 */
9 struct snd_card;
11 struct 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;
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;
28 int cobalt_alsa_init(struct cobalt_stream *s);
29 void cobalt_alsa_exit(struct cobalt_stream *s);