Lines Matching defs:substream
181 struct snd_pcm_substream *substream;
852 if (pvoice->pcm && pvoice->substream) {
860 snd_pcm_period_elapsed(pvoice->substream);
956 pvoice->substream = NULL;
1044 static unsigned int snd_ali_control_mode(struct snd_pcm_substream *substream)
1047 struct snd_pcm_runtime *runtime = substream->runtime;
1066 static int snd_ali_trigger(struct snd_pcm_substream *substream,
1070 struct snd_ali *codec = snd_pcm_substream_chip(substream);
1091 snd_pcm_group_for_each_entry(s, substream) {
1111 snd_pcm_trigger_done(s, substream);
1131 static int snd_ali_playback_hw_params(struct snd_pcm_substream *substream,
1134 struct snd_ali *codec = snd_pcm_substream_chip(substream);
1135 struct snd_pcm_runtime *runtime = substream->runtime;
1150 evoice->substream = substream;
1162 static int snd_ali_playback_hw_free(struct snd_pcm_substream *substream)
1164 struct snd_ali *codec = snd_pcm_substream_chip(substream);
1165 struct snd_pcm_runtime *runtime = substream->runtime;
1176 static int snd_ali_playback_prepare(struct snd_pcm_substream *substream)
1178 struct snd_ali *codec = snd_pcm_substream_chip(substream);
1179 struct snd_pcm_runtime *runtime = substream->runtime;
1225 CTRL = snd_ali_control_mode(substream);
1269 static int snd_ali_prepare(struct snd_pcm_substream *substream)
1271 struct snd_ali *codec = snd_pcm_substream_chip(substream);
1272 struct snd_pcm_runtime *runtime = substream->runtime;
1332 CTRL = snd_ali_control_mode(substream);
1358 snd_ali_playback_pointer(struct snd_pcm_substream *substream)
1360 struct snd_ali *codec = snd_pcm_substream_chip(substream);
1361 struct snd_pcm_runtime *runtime = substream->runtime;
1380 static snd_pcm_uframes_t snd_ali_pointer(struct snd_pcm_substream *substream)
1382 struct snd_ali *codec = snd_pcm_substream_chip(substream);
1383 struct snd_pcm_runtime *runtime = substream->runtime;
1456 static int snd_ali_open(struct snd_pcm_substream *substream, int rec,
1459 struct snd_ali *codec = snd_pcm_substream_chip(substream);
1460 struct snd_pcm_runtime *runtime = substream->runtime;
1468 pvoice->substream = substream;
1473 snd_pcm_set_sync(substream);
1479 static int snd_ali_playback_open(struct snd_pcm_substream *substream)
1481 return snd_ali_open(substream, 0, -1, &snd_ali_playback);
1484 static int snd_ali_capture_open(struct snd_pcm_substream *substream)
1486 return snd_ali_open(substream, 1, -1, &snd_ali_capture);
1489 static int snd_ali_playback_close(struct snd_pcm_substream *substream)
1494 static int snd_ali_close(struct snd_pcm_substream *substream)
1496 struct snd_ali *codec = snd_pcm_substream_chip(substream);
1497 struct snd_ali_voice *pvoice = substream->runtime->private_data;
1526 static int snd_ali_modem_hw_params(struct snd_pcm_substream *substream,
1529 struct snd_ali *chip = snd_pcm_substream_chip(substream);
1559 static int snd_ali_modem_open(struct snd_pcm_substream *substream, int rec,
1568 int err = snd_ali_open(substream, rec, channel, &snd_ali_modem);
1572 return snd_pcm_hw_constraint_list(substream->runtime, 0,
1576 static int snd_ali_modem_playback_open(struct snd_pcm_substream *substream)
1578 return snd_ali_modem_open(substream, 0, ALI_MODEM_OUT_CHANNEL);
1581 static int snd_ali_modem_capture_open(struct snd_pcm_substream *substream)
1583 return snd_ali_modem_open(substream, 1, ALI_MODEM_IN_CHANNEL);