summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--alsa-pcm.c13
-rwxr-xr-xalsa.h1
2 files changed, 0 insertions, 14 deletions
diff --git a/alsa-pcm.c b/alsa-pcm.c
index c5ff0b0..d0fa228 100644
--- a/alsa-pcm.c
+++ b/alsa-pcm.c
@@ -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);
diff --git a/alsa.h b/alsa.h
index ef9b9ca..2e79d33 100755
--- a/alsa.h
+++ b/alsa.h
@@ -60,7 +60,6 @@ struct avirt_alsa_dev_config {
struct avirt_alsa_dev_group {
struct avirt_alsa_dev_config *config;
int devices;
- int buffersize;
};
/**