Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  *  ALSA interface to cobalt PCM capture streams
0004  *
0005  *  Copyright 2014-2015 Cisco Systems, Inc. and/or its affiliates.
0006  *  All rights reserved.
0007  */
0008 
0009 struct snd_card;
0010 
0011 struct snd_cobalt_card {
0012     struct cobalt_stream *s;
0013     struct snd_card *sc;
0014     unsigned int capture_transfer_done;
0015     unsigned int hwptr_done_capture;
0016     unsigned alsa_record_cnt;
0017     struct snd_pcm_substream *capture_pcm_substream;
0018 
0019     unsigned int pb_size;
0020     unsigned int pb_count;
0021     unsigned int pb_pos;
0022     unsigned pb_filled;
0023     bool alsa_pb_channel;
0024     unsigned alsa_playback_cnt;
0025     struct snd_pcm_substream *playback_pcm_substream;
0026 };
0027 
0028 int cobalt_alsa_init(struct cobalt_stream *s);
0029 void cobalt_alsa_exit(struct cobalt_stream *s);