Lines Matching refs:substream
196 struct snd_pcm_substream *substream; member
867 if (pvoice->pcm && pvoice->substream) { in snd_ali_update_ptr()
875 snd_pcm_period_elapsed(pvoice->substream); in snd_ali_update_ptr()
971 pvoice->substream = NULL; in snd_ali_free_voice()
1059 static unsigned int snd_ali_control_mode(struct snd_pcm_substream *substream) in snd_ali_control_mode() argument
1062 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ali_control_mode()
1081 static int snd_ali_trigger(struct snd_pcm_substream *substream, in snd_ali_trigger() argument
1085 struct snd_ali *codec = snd_pcm_substream_chip(substream); in snd_ali_trigger()
1106 snd_pcm_group_for_each_entry(s, substream) { in snd_ali_trigger()
1126 snd_pcm_trigger_done(s, substream); in snd_ali_trigger()
1148 static int snd_ali_playback_hw_params(struct snd_pcm_substream *substream, in snd_ali_playback_hw_params() argument
1151 struct snd_ali *codec = snd_pcm_substream_chip(substream); in snd_ali_playback_hw_params()
1152 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ali_playback_hw_params()
1157 err = snd_pcm_lib_malloc_pages(substream, in snd_ali_playback_hw_params()
1173 evoice->substream = substream; in snd_ali_playback_hw_params()
1185 static int snd_ali_playback_hw_free(struct snd_pcm_substream *substream) in snd_ali_playback_hw_free() argument
1187 struct snd_ali *codec = snd_pcm_substream_chip(substream); in snd_ali_playback_hw_free()
1188 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ali_playback_hw_free()
1192 snd_pcm_lib_free_pages(substream); in snd_ali_playback_hw_free()
1200 static int snd_ali_hw_params(struct snd_pcm_substream *substream, in snd_ali_hw_params() argument
1203 return snd_pcm_lib_malloc_pages(substream, in snd_ali_hw_params()
1207 static int snd_ali_hw_free(struct snd_pcm_substream *substream) in snd_ali_hw_free() argument
1209 return snd_pcm_lib_free_pages(substream); in snd_ali_hw_free()
1212 static int snd_ali_playback_prepare(struct snd_pcm_substream *substream) in snd_ali_playback_prepare() argument
1214 struct snd_ali *codec = snd_pcm_substream_chip(substream); in snd_ali_playback_prepare()
1215 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ali_playback_prepare()
1261 CTRL = snd_ali_control_mode(substream); in snd_ali_playback_prepare()
1305 static int snd_ali_prepare(struct snd_pcm_substream *substream) in snd_ali_prepare() argument
1307 struct snd_ali *codec = snd_pcm_substream_chip(substream); in snd_ali_prepare()
1308 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ali_prepare()
1368 CTRL = snd_ali_control_mode(substream); in snd_ali_prepare()
1394 snd_ali_playback_pointer(struct snd_pcm_substream *substream) in snd_ali_playback_pointer() argument
1396 struct snd_ali *codec = snd_pcm_substream_chip(substream); in snd_ali_playback_pointer()
1397 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ali_playback_pointer()
1415 static snd_pcm_uframes_t snd_ali_pointer(struct snd_pcm_substream *substream) in snd_ali_pointer() argument
1417 struct snd_ali *codec = snd_pcm_substream_chip(substream); in snd_ali_pointer()
1418 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ali_pointer()
1493 static int snd_ali_open(struct snd_pcm_substream *substream, int rec, in snd_ali_open() argument
1496 struct snd_ali *codec = snd_pcm_substream_chip(substream); in snd_ali_open()
1497 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ali_open()
1505 pvoice->substream = substream; in snd_ali_open()
1510 snd_pcm_set_sync(substream); in snd_ali_open()
1516 static int snd_ali_playback_open(struct snd_pcm_substream *substream) in snd_ali_playback_open() argument
1518 return snd_ali_open(substream, 0, -1, &snd_ali_playback); in snd_ali_playback_open()
1521 static int snd_ali_capture_open(struct snd_pcm_substream *substream) in snd_ali_capture_open() argument
1523 return snd_ali_open(substream, 1, -1, &snd_ali_capture); in snd_ali_capture_open()
1526 static int snd_ali_playback_close(struct snd_pcm_substream *substream) in snd_ali_playback_close() argument
1531 static int snd_ali_close(struct snd_pcm_substream *substream) in snd_ali_close() argument
1533 struct snd_ali *codec = snd_pcm_substream_chip(substream); in snd_ali_close()
1534 struct snd_ali_voice *pvoice = substream->runtime->private_data; in snd_ali_close()
1567 static int snd_ali_modem_hw_params(struct snd_pcm_substream *substream, in snd_ali_modem_hw_params() argument
1570 struct snd_ali *chip = snd_pcm_substream_chip(substream); in snd_ali_modem_hw_params()
1575 return snd_ali_hw_params(substream, hw_params); in snd_ali_modem_hw_params()
1600 static int snd_ali_modem_open(struct snd_pcm_substream *substream, int rec, in snd_ali_modem_open() argument
1609 int err = snd_ali_open(substream, rec, channel, &snd_ali_modem); in snd_ali_modem_open()
1613 return snd_pcm_hw_constraint_list(substream->runtime, 0, in snd_ali_modem_open()
1617 static int snd_ali_modem_playback_open(struct snd_pcm_substream *substream) in snd_ali_modem_playback_open() argument
1619 return snd_ali_modem_open(substream, 0, ALI_MODEM_OUT_CHANNEL); in snd_ali_modem_playback_open()
1622 static int snd_ali_modem_capture_open(struct snd_pcm_substream *substream) in snd_ali_modem_capture_open() argument
1624 return snd_ali_modem_open(substream, 1, ALI_MODEM_IN_CHANNEL); in snd_ali_modem_capture_open()