Lines Matching defs:substream

182 	struct snd_pcm_substream *substream;
853 if (pvoice->pcm && pvoice->substream) {
861 snd_pcm_period_elapsed(pvoice->substream);
957 pvoice->substream = NULL;
1045 static unsigned int snd_ali_control_mode(struct snd_pcm_substream *substream)
1048 struct snd_pcm_runtime *runtime = substream->runtime;
1067 static int snd_ali_trigger(struct snd_pcm_substream *substream,
1071 struct snd_ali *codec = snd_pcm_substream_chip(substream);
1092 snd_pcm_group_for_each_entry(s, substream) {
1112 snd_pcm_trigger_done(s, substream);
1132 static int snd_ali_playback_hw_params(struct snd_pcm_substream *substream,
1135 struct snd_ali *codec = snd_pcm_substream_chip(substream);
1136 struct snd_pcm_runtime *runtime = substream->runtime;
1151 evoice->substream = substream;
1163 static int snd_ali_playback_hw_free(struct snd_pcm_substream *substream)
1165 struct snd_ali *codec = snd_pcm_substream_chip(substream);
1166 struct snd_pcm_runtime *runtime = substream->runtime;
1177 static int snd_ali_playback_prepare(struct snd_pcm_substream *substream)
1179 struct snd_ali *codec = snd_pcm_substream_chip(substream);
1180 struct snd_pcm_runtime *runtime = substream->runtime;
1226 CTRL = snd_ali_control_mode(substream);
1270 static int snd_ali_prepare(struct snd_pcm_substream *substream)
1272 struct snd_ali *codec = snd_pcm_substream_chip(substream);
1273 struct snd_pcm_runtime *runtime = substream->runtime;
1333 CTRL = snd_ali_control_mode(substream);
1359 snd_ali_playback_pointer(struct snd_pcm_substream *substream)
1361 struct snd_ali *codec = snd_pcm_substream_chip(substream);
1362 struct snd_pcm_runtime *runtime = substream->runtime;
1381 static snd_pcm_uframes_t snd_ali_pointer(struct snd_pcm_substream *substream)
1383 struct snd_ali *codec = snd_pcm_substream_chip(substream);
1384 struct snd_pcm_runtime *runtime = substream->runtime;
1457 static int snd_ali_open(struct snd_pcm_substream *substream, int rec,
1460 struct snd_ali *codec = snd_pcm_substream_chip(substream);
1461 struct snd_pcm_runtime *runtime = substream->runtime;
1469 pvoice->substream = substream;
1474 snd_pcm_set_sync(substream);
1480 static int snd_ali_playback_open(struct snd_pcm_substream *substream)
1482 return snd_ali_open(substream, 0, -1, &snd_ali_playback);
1485 static int snd_ali_capture_open(struct snd_pcm_substream *substream)
1487 return snd_ali_open(substream, 1, -1, &snd_ali_capture);
1490 static int snd_ali_playback_close(struct snd_pcm_substream *substream)
1495 static int snd_ali_close(struct snd_pcm_substream *substream)
1497 struct snd_ali *codec = snd_pcm_substream_chip(substream);
1498 struct snd_ali_voice *pvoice = substream->runtime->private_data;
1527 static int snd_ali_modem_hw_params(struct snd_pcm_substream *substream,
1530 struct snd_ali *chip = snd_pcm_substream_chip(substream);
1560 static int snd_ali_modem_open(struct snd_pcm_substream *substream, int rec,
1569 int err = snd_ali_open(substream, rec, channel, &snd_ali_modem);
1573 return snd_pcm_hw_constraint_list(substream->runtime, 0,
1577 static int snd_ali_modem_playback_open(struct snd_pcm_substream *substream)
1579 return snd_ali_modem_open(substream, 0, ALI_MODEM_OUT_CHANNEL);
1582 static int snd_ali_modem_capture_open(struct snd_pcm_substream *substream)
1584 return snd_ali_modem_open(substream, 1, ALI_MODEM_IN_CHANNEL);