summaryrefslogtreecommitdiffstats
path: root/recipes-multimedia/pulseaudio/pulseaudio/imx-nxp-bsp/0100-pulseaudio-remove-the-control-for-speaker-headphone-widge.patch
diff options
context:
space:
mode:
authorTom Hochstein <tom.hochstein@nxp.com>2022-09-02 15:52:55 -0500
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2022-09-05 11:50:05 +0000
commitcc026b37007884e2118b75fc81cca2c7e83ac0c4 (patch)
tree331ff4458576731ea9d2723acfc2f72498ec376c /recipes-multimedia/pulseaudio/pulseaudio/imx-nxp-bsp/0100-pulseaudio-remove-the-control-for-speaker-headphone-widge.patch
parentf6460dd4364e5743e87fedcc3d5b2658f3908ecd (diff)
downloadmeta-freescale-backport-1193-to-kirkstone.tar.gz
pulseaudio: Fix gstreamer pause mutex issuebackport-1193-to-kirkstone
Add a patch to fix a mutex issue when pausing a gstreamer stream. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit 791b2cd871e670f2cd691aad21a1c9bcffc362d6)
Diffstat (limited to 'recipes-multimedia/pulseaudio/pulseaudio/imx-nxp-bsp/0100-pulseaudio-remove-the-control-for-speaker-headphone-widge.patch')
-rw-r--r--recipes-multimedia/pulseaudio/pulseaudio/imx-nxp-bsp/0100-pulseaudio-remove-the-control-for-speaker-headphone-widge.patch73
1 files changed, 73 insertions, 0 deletions
diff --git a/recipes-multimedia/pulseaudio/pulseaudio/imx-nxp-bsp/0100-pulseaudio-remove-the-control-for-speaker-headphone-widge.patch b/recipes-multimedia/pulseaudio/pulseaudio/imx-nxp-bsp/0100-pulseaudio-remove-the-control-for-speaker-headphone-widge.patch
new file mode 100644
index 00000000..57c28741
--- /dev/null
+++ b/recipes-multimedia/pulseaudio/pulseaudio/imx-nxp-bsp/0100-pulseaudio-remove-the-control-for-speaker-headphone-widge.patch
@@ -0,0 +1,73 @@
1From 33022867d76c91fe4e60699c1b7ebbc8feb4ee93 Mon Sep 17 00:00:00 2001
2From: Shengjiu Wang <shengjiu.wang@freescale.com>
3Date: Mon, 30 Mar 2015 10:26:14 +0800
4Subject: [PATCH] pulseaudio: remove the control for speaker/headphone widget
5
6In imx7d-sdb, there is no headphone jack, the jack detection is done
7by the codec itself. When headphone plugin, pulseaudio can't detect
8the headphone jack status, so it will set the heaphone volume to zero.
9Here fix this issue by remove the control in configuration.
10
11Upstream-Status: Inappropriate [i.MX specific]
12
13Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
14---
15 .../alsa/mixer/paths/analog-output-headphones.conf | 8 ++++----
16 src/modules/alsa/mixer/paths/analog-output-speaker.conf | 8 ++++----
17 2 files changed, 8 insertions(+), 8 deletions(-)
18
19diff --git a/src/modules/alsa/mixer/paths/analog-output-headphones.conf b/src/modules/alsa/mixer/paths/analog-output-headphones.conf
20index 88907f0..7598d2f 100644
21--- a/src/modules/alsa/mixer/paths/analog-output-headphones.conf
22+++ b/src/modules/alsa/mixer/paths/analog-output-headphones.conf
23@@ -88,8 +88,8 @@ override-map.2 = all-left,all-right
24
25 [Element Headphone]
26 required-any = any
27-switch = mute
28-volume = merge
29+switch = on
30+volume = ignore
31 override-map.1 = all
32 override-map.2 = all-left,all-right
33
34@@ -119,8 +119,8 @@ switch = mute
35 volume = zero
36
37 [Element Speaker]
38-switch = off
39-volume = off
40+switch = on
41+volume = ignore
42
43 [Element Desktop Speaker]
44 switch = off
45diff --git a/src/modules/alsa/mixer/paths/analog-output-speaker.conf b/src/modules/alsa/mixer/paths/analog-output-speaker.conf
46index fcf2f5c..6f6f898 100644
47--- a/src/modules/alsa/mixer/paths/analog-output-speaker.conf
48+++ b/src/modules/alsa/mixer/paths/analog-output-speaker.conf
49@@ -91,8 +91,8 @@ volume = off
50 ; This profile path is intended to control the speaker, let's mute headphones
51 ; else there will be a spike when plugging in headphones
52 [Element Headphone]
53-switch = off
54-volume = off
55+switch = on
56+volume = ignore
57
58 [Element Headphone,1]
59 switch = off
60@@ -115,8 +115,8 @@ override-map.2 = all-left,all-right
61
62 [Element Speaker]
63 required-any = any
64-switch = mute
65-volume = merge
66+switch = on
67+volume = ignore
68 override-map.1 = all
69 override-map.2 = all-left,all-right
70
71--
722.20.1
73