diff options
Diffstat (limited to 'meta/recipes-multimedia/pulseaudio/pulseaudio/0004-alsa-set-availability-for-some-unavailable-profiles.patch')
-rw-r--r-- | meta/recipes-multimedia/pulseaudio/pulseaudio/0004-alsa-set-availability-for-some-unavailable-profiles.patch | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/meta/recipes-multimedia/pulseaudio/pulseaudio/0004-alsa-set-availability-for-some-unavailable-profiles.patch b/meta/recipes-multimedia/pulseaudio/pulseaudio/0004-alsa-set-availability-for-some-unavailable-profiles.patch index bb318aa06e..e0efa70f32 100644 --- a/meta/recipes-multimedia/pulseaudio/pulseaudio/0004-alsa-set-availability-for-some-unavailable-profiles.patch +++ b/meta/recipes-multimedia/pulseaudio/pulseaudio/0004-alsa-set-availability-for-some-unavailable-profiles.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 0136b73158f60d5dc630ae348b18df3b59a2a5c2 Mon Sep 17 00:00:00 2001 | 1 | From 690d567e298f6687b61c82660b051df5b25482ee Mon Sep 17 00:00:00 2001 |
2 | From: Tanu Kaskinen <tanuk@iki.fi> | 2 | From: Tanu Kaskinen <tanuk@iki.fi> |
3 | Date: Fri, 23 Oct 2015 13:37:11 +0300 | 3 | Date: Fri, 23 Oct 2015 13:37:11 +0300 |
4 | Subject: [PATCH 4/4] alsa: set availability for (some) unavailable profiles | 4 | Subject: [PATCH 4/4] alsa: set availability for (some) unavailable profiles |
@@ -22,28 +22,36 @@ pa_card_profile, however. | |||
22 | 22 | ||
23 | BugLink: https://bugzilla.yoctoproject.org/show_bug.cgi?id=8448 | 23 | BugLink: https://bugzilla.yoctoproject.org/show_bug.cgi?id=8448 |
24 | 24 | ||
25 | Upstream-Status: Submitted [http://lists.freedesktop.org/archives/pulseaudio-discuss/2015-October/024614.html] | ||
26 | Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> | 25 | Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> |
26 | |||
27 | Rebased on 8.0. | ||
28 | |||
29 | Upstream-Status: Denied [The patch set needs some work to be accepted. | ||
30 | The review thread: | ||
31 | http://thread.gmane.org/gmane.comp.audio.pulseaudio.general/24301] | ||
32 | |||
33 | Signed-off-by: Tanu Kaskinen <tanuk@iki.fi> | ||
27 | --- | 34 | --- |
28 | src/modules/alsa/module-alsa-card.c | 24 ++++++++++++++++++++++++ | 35 | src/modules/alsa/module-alsa-card.c | 25 +++++++++++++++++++++++++ |
29 | 1 file changed, 24 insertions(+) | 36 | 1 file changed, 25 insertions(+) |
30 | 37 | ||
31 | diff --git a/src/modules/alsa/module-alsa-card.c b/src/modules/alsa/module-alsa-card.c | 38 | diff --git a/src/modules/alsa/module-alsa-card.c b/src/modules/alsa/module-alsa-card.c |
32 | index 5b39654..73a846c 100644 | 39 | index fe240f0..bdbdc12 100644 |
33 | --- a/src/modules/alsa/module-alsa-card.c | 40 | --- a/src/modules/alsa/module-alsa-card.c |
34 | +++ b/src/modules/alsa/module-alsa-card.c | 41 | +++ b/src/modules/alsa/module-alsa-card.c |
35 | @@ -366,6 +366,7 @@ static int report_jack_state(snd_mixer_elem_t *melem, unsigned int mask) { | 42 | @@ -366,6 +366,8 @@ static int report_jack_state(snd_mixer_elem_t *melem, unsigned int mask) { |
36 | void *state; | 43 | void *state; |
37 | pa_alsa_jack *jack; | 44 | pa_alsa_jack *jack; |
38 | pa_device_port *port; | 45 | struct temp_port_avail *tp, *tports; |
46 | + pa_device_port *port; | ||
39 | + pa_card_profile *profile; | 47 | + pa_card_profile *profile; |
40 | 48 | ||
41 | pa_assert(u); | 49 | pa_assert(u); |
42 | 50 | ||
43 | @@ -396,6 +397,29 @@ static int report_jack_state(snd_mixer_elem_t *melem, unsigned int mask) { | 51 | @@ -412,6 +414,29 @@ static int report_jack_state(snd_mixer_elem_t *melem, unsigned int mask) { |
44 | } | 52 | pa_device_port_set_available(tp->port, tp->avail); |
45 | report_port_state(port, u); | 53 | |
46 | } | 54 | pa_xfree(tports); |
47 | + | 55 | + |
48 | + /* Update profile availabilities. The logic could be improved; for now we | 56 | + /* Update profile availabilities. The logic could be improved; for now we |
49 | + * only set obviously unavailable profiles (those that contain only | 57 | + * only set obviously unavailable profiles (those that contain only |
@@ -71,5 +79,5 @@ index 5b39654..73a846c 100644 | |||
71 | } | 79 | } |
72 | 80 | ||
73 | -- | 81 | -- |
74 | 2.1.4 | 82 | 2.7.0 |
75 | 83 | ||