summaryrefslogtreecommitdiff
path: root/backends/alsa/alsa-device.c
diff options
context:
space:
mode:
Diffstat (limited to 'backends/alsa/alsa-device.c')
-rw-r--r--backends/alsa/alsa-device.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/alsa/alsa-device.c b/backends/alsa/alsa-device.c
index 24fdefb..a4f625c 100644
--- a/backends/alsa/alsa-device.c
+++ b/backends/alsa/alsa-device.c
@@ -659,7 +659,8 @@ add_switch (AlsaDevice *device, AlsaStream *stream, snd_mixer_elem_t *el)
get_switch_info (el, &name, &label, &role);
/* Takes ownership of options */
- element = ALSA_ELEMENT (alsa_switch_new (name, label,
+ element = ALSA_ELEMENT (alsa_switch_new (stream,
+ name, label,
role,
g_list_reverse (options)));
g_free (name);