summaryrefslogtreecommitdiffstats
path: root/src/alsa.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/alsa.c')
-rw-r--r--src/alsa.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/alsa.c b/src/alsa.c
index d982203..bebcc4a 100644
--- a/src/alsa.c
+++ b/src/alsa.c
@@ -224,7 +224,6 @@ static const snd_pcm_format_t sample_type_table[] = {
};
static int open_alsa(ca_context *c, struct outstanding *out) {
- struct private *p;
int ret;
snd_pcm_hw_params_t *hwparams;
unsigned rate;
@@ -240,8 +239,6 @@ static int open_alsa(ca_context *c, struct outstanding *out) {
* wa, hence we limit ourselves to mono/stereo only. */
ca_return_val_if_fail(ca_sound_file_get_nchannels(out->file) <= 2, CA_ERROR_NOTSUPPORTED);
- p = PRIVATE(c);
-
if ((ret = snd_pcm_open(&out->pcm, c->device ? c->device : "default", SND_PCM_STREAM_PLAYBACK, 0)) < 0)
goto finish;