diff --git a/pinos/tests/alsa-utils.c b/pinos/tests/alsa-utils.c index 5c65d1353..84d7c85c0 100644 --- a/pinos/tests/alsa-utils.c +++ b/pinos/tests/alsa-utils.c @@ -360,14 +360,13 @@ direct_loop (void *user_data) buffer->data[0].data = (uint8_t *)my_areas[0].addr + (offset * sizeof (uint16_t) * 2); buffer->data[0].size = frames * sizeof (uint16_t) * 2; - printf ("fill data\n"); this->event_cb (&this->node, &event,this->user_data); spi_buffer_unref ((SpiBuffer *)event.data); } if (this->input_buffer) { if (this->input_buffer != &this->buffer.buffer) { - printf ("copy input !\n"); + /* FIXME, copy input */ } spi_buffer_unref (this->input_buffer); this->input_buffer = NULL; @@ -416,6 +415,8 @@ spi_alsa_start (SpiALSASink *this) CHECK (set_hwparams (this), "hwparams"); CHECK (set_swparams (this), "swparams"); + snd_pcm_dump (this->state.handle, this->state.output); + state->running = true; if ((err = pthread_create (&state->thread, NULL, direct_loop, this)) != 0) { printf ("can't create thread: %d", err); diff --git a/pinos/tests/spi-alsa-sink.c b/pinos/tests/spi-alsa-sink.c index 9fe0b5d4c..0c68c02ad 100644 --- a/pinos/tests/spi-alsa-sink.c +++ b/pinos/tests/spi-alsa-sink.c @@ -28,8 +28,8 @@ typedef struct _SpiALSASink SpiALSASink; static const char default_device[] = "default"; -static const uint32_t default_buffer_time = 500000; -static const uint32_t default_period_time = 100000; +static const uint32_t default_buffer_time = 40000; +static const uint32_t default_period_time = 20000; static const bool default_period_event = 0; typedef struct { diff --git a/pinos/tests/test-node.c b/pinos/tests/test-node.c index 2458ce441..b5fc1e028 100644 --- a/pinos/tests/test-node.c +++ b/pinos/tests/test-node.c @@ -410,8 +410,6 @@ on_event (SpiNode *node, SpiEvent *event, void *user_data) { AppData *data = user_data; - printf ("got event %d\n", event->type); - switch (event->type) { case SPI_EVENT_TYPE_REQUEST_DATA: {