Exemplo n.º 1
0
static int
snd_nm256_capture_open(snd_pcm_substream_t *substream)
{
    nm256_t *chip = snd_pcm_substream_chip(substream);

    snd_nm256_setup_stream(chip, &chip->streams[SNDRV_PCM_STREAM_CAPTURE],
                           substream, &snd_nm256_capture);
    return 0;
}
Exemplo n.º 2
0
static int
snd_nm256_playback_open(snd_pcm_substream_t *substream)
{
    nm256_t *chip = snd_pcm_substream_chip(substream);

    snd_nm256_setup_stream(chip, &chip->streams[SNDRV_PCM_STREAM_PLAYBACK],
                           substream, &snd_nm256_playback);
    return 0;
}
Exemplo n.º 3
0
static int
snd_nm256_capture_open(struct snd_pcm_substream *substream)
{
	struct nm256 *chip = snd_pcm_substream_chip(substream);

	if (snd_nm256_acquire_irq(chip) < 0)
		return -EBUSY;
	snd_nm256_setup_stream(chip, &chip->streams[SNDRV_PCM_STREAM_CAPTURE],
			       substream, &snd_nm256_capture);
	return 0;
}
Exemplo n.º 4
0
static int
snd_nm256_playback_open(struct snd_pcm_substream *substream)
{
	struct nm256 *chip = snd_pcm_substream_chip(substream);

	if (snd_nm256_acquire_irq(chip) < 0)
		return -EBUSY;
	snd_nm256_setup_stream(chip, &chip->streams[SNDRV_PCM_STREAM_PLAYBACK],
			       substream, &snd_nm256_playback);
	return 0;
}