alsa: store mixer controls to use in profile data

This allows us to easily use different mixer controls for analog and
spdif output.
This commit is contained in:
Lennart Poettering 2009-04-13 22:46:39 +02:00
parent 89f74cb858
commit 6fd8fd18c2
4 changed files with 48 additions and 19 deletions

View file

@ -1519,7 +1519,7 @@ pa_source *pa_alsa_source_new(pa_module *m, pa_modargs *ma, const char*driver, p
/* ALSA might tweak the sample spec, so recalculate the frame size */
frame_size = pa_frame_size(&ss);
pa_alsa_find_mixer_and_elem(u->pcm_handle, &u->mixer_handle, &u->mixer_elem, pa_modargs_get_value(ma, "control", NULL));
pa_alsa_find_mixer_and_elem(u->pcm_handle, &u->mixer_handle, &u->mixer_elem, pa_modargs_get_value(ma, "control", NULL), profile);
pa_source_new_data_init(&data);
data.driver = driver;