1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * ALSA interface to cobalt PCM capture streams
5 * Copyright 2014-2015 Cisco Systems, Inc. and/or its affiliates.
11 struct snd_cobalt_card
{
12 struct cobalt_stream
*s
;
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
;
20 unsigned int pb_count
;
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
);