diff options
author | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2018-09-03 15:53:54 +1000 |
---|---|---|
committer | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2018-10-26 17:27:30 +1100 |
commit | a0213245df08e8eb2f3316e924539af216a95599 (patch) | |
tree | 92ca41ef849b702c73b29f0cacfc2a57f1ce58cc /alsa-pcm.c | |
parent | f7f995a28c82c126619858ed40b92b5f33ddf2fe (diff) |
Remove the unnecessary allocation of substreams in avirt_alsa_dev_group
Substreams are actually allocated by the PCM middle layer, so we do not need to do this here
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
Diffstat (limited to 'alsa-pcm.c')
-rw-r--r-- | alsa-pcm.c | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -230,18 +230,9 @@ static int pcm_prepare(struct snd_pcm_substream *substream) */ static int pcm_trigger(struct snd_pcm_substream *substream, int cmd) { - struct avirt_alsa_dev_group *group; - - DINFO(AP_LOGNAME, ""); - - group = avirt_alsa_get_dev_group(substream->stream); - CHK_NULL(group); - switch (cmd) { case SNDRV_PCM_TRIGGER_START: case SNDRV_PCM_TRIGGER_RESUME: - group->streams[substream->pcm->device].substream = substream; - break; case SNDRV_PCM_TRIGGER_STOP: case SNDRV_PCM_TRIGGER_SUSPEND: break; |