summaryrefslogtreecommitdiffstats
path: root/recipes-ti/codec-engine/ti-dmai/dmai-do-not-panic-on-mixer-failure.patch
diff options
context:
space:
mode:
authorEnrico Butera <ebutera@users.berlios.de>2011-08-06 13:02:30 +0200
committerKoen Kooi <koen@dominion.thruhere.net>2011-08-16 09:46:06 +0200
commite32f2b80be99d999fddfb1673dd014f70805048b (patch)
tree33c57fa5a4318d41a3b84bc46fd9cb61010921d4 /recipes-ti/codec-engine/ti-dmai/dmai-do-not-panic-on-mixer-failure.patch
parent3242ac8f0aa57039141dab9c58a9703215c46539 (diff)
downloadmeta-ti-e32f2b80be99d999fddfb1673dd014f70805048b.tar.gz
import codec engine and dependencies from oe classic
Signed-off-by: Enrico Butera <ebutera@users.berlios.de> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'recipes-ti/codec-engine/ti-dmai/dmai-do-not-panic-on-mixer-failure.patch')
-rw-r--r--recipes-ti/codec-engine/ti-dmai/dmai-do-not-panic-on-mixer-failure.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/recipes-ti/codec-engine/ti-dmai/dmai-do-not-panic-on-mixer-failure.patch b/recipes-ti/codec-engine/ti-dmai/dmai-do-not-panic-on-mixer-failure.patch
new file mode 100644
index 00000000..20e1aece
--- /dev/null
+++ b/recipes-ti/codec-engine/ti-dmai/dmai-do-not-panic-on-mixer-failure.patch
@@ -0,0 +1,31 @@
1Index: dmai_1_20_00_06/packages/ti/sdo/dmai/linux/Sound_alsa.c
2===================================================================
3--- dmai_1_20_00_06.orig/packages/ti/sdo/dmai/linux/Sound_alsa.c 2009-02-11 19:19:23.000000000 -0600
4+++ dmai_1_20_00_06/packages/ti/sdo/dmai/linux/Sound_alsa.c 2009-02-11 19:19:25.000000000 -0600
5@@ -139,7 +139,7 @@
6
7 snd_mixer_selem_id_free (sid);
8 snd_mixer_close (rcMixer);
9-
10+
11 return Dmai_EOK;
12 }
13
14@@ -431,14 +431,13 @@
15 Sound_alsa_delete(hSound);
16 return NULL;
17 }
18-
19+
20 if (setMixerVolume (attrs) <0) {
21- Sound_alsa_delete (hSound);
22- return NULL;
23+ Dmai_dbg2("Failed to set the mixer volume on %s (%s)\n",
24+ AUDIO_DEVICE, snd_strerror(status));
25 }
26 }
27
28-
29 return hSound;
30 }
31