diff options
author | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2018-09-03 15:57:13 +1000 |
---|---|---|
committer | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2018-10-26 17:27:31 +1100 |
commit | 449c968072a9e6b95f10a28f4b426b70e2883f20 (patch) | |
tree | 7c6f4d2cd4abe39d6530de7f64cc94090484c214 | |
parent | a0213245df08e8eb2f3316e924539af216a95599 (diff) |
Remove unused 'buffersize' avirt_alsa_dev_group
buffersize is only needed by the ADSP Audio Path driver, so this has been
migrated there.
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
-rw-r--r-- | alsa-pcm.c | 13 | ||||
-rwxr-xr-x | alsa.h | 1 |
2 files changed, 0 insertions, 14 deletions
@@ -199,19 +199,6 @@ static int pcm_hw_free(struct snd_pcm_substream *substream) */ static int pcm_prepare(struct snd_pcm_substream *substream) { - struct avirt_alsa_dev_group *group; - struct snd_pcm_runtime *runtime = substream->runtime; - - DINFO(AP_LOGNAME, ""); - - group = avirt_alsa_get_dev_group(substream->stream); - CHK_NULL(group); - - // Reset HW buffer index for the device - group->streams[substream->pcm->device].hw_frame_idx = 0; - - group->buffersize = frames_to_bytes(runtime, runtime->buffer_size); - // Do additional Audio Path 'prepare' callback DO_AUDIOPATH_CB(prepare, substream); @@ -60,7 +60,6 @@ struct avirt_alsa_dev_config { struct avirt_alsa_dev_group { struct avirt_alsa_dev_config *config; int devices; - int buffersize; }; /** |