Signed-off-by: Eric Ruei <[email protected]>
---
 multimedia_apps/arm_multimedia_aacdec/runAACDec.sh             | 4 ++++
 multimedia_apps/arm_multimedia_audiocapture/runAudioCapture.sh | 4 ++++
 multimedia_apps/arm_multimedia_h264dec/runH264Dec.sh           | 2 +-
 multimedia_apps/arm_multimedia_mpeg4aacdec/runMpeg4AacDec.sh   | 4 +++-
 multimedia_apps/arm_multimedia_mpeg4dec/runMpeg4Dec.sh         | 2 +-
 5 files changed, 13 insertions(+), 3 deletions(-)
 mode change 100755 => 100644 
multimedia_apps/arm_multimedia_audiocapture/runAudioCapture.sh

diff --git a/multimedia_apps/arm_multimedia_aacdec/runAACDec.sh 
b/multimedia_apps/arm_multimedia_aacdec/runAACDec.sh
index 111d107..dce07ee 100644
--- a/multimedia_apps/arm_multimedia_aacdec/runAACDec.sh
+++ b/multimedia_apps/arm_multimedia_aacdec/runAACDec.sh
@@ -4,6 +4,8 @@ amixer_find="/usr/bin/amixer"
 if [ ! -f $amixer_find ]; then
         echo "amixer not found"
         echo "Please connect audio output and install ALSA soundcard driver"
+elif grep -q "no soundcards" /proc/asound/cards; then
+        echo "No sound devices found!"
 else
        machine_type="`cat /etc/hostname`"
        filename="/usr/share/ti/audio/HistoryOfTI.aac"
@@ -22,6 +24,8 @@ else
                amixer cset name='PCM Playback Volume' 127
        elif [ "$machine_type" = "omap5-evm" ]; then
                amixer cset name='PCM Playback Volume' 127
+       elif [ "$machine_type" = "am65xx-evm" ]; then
+               amixer cset name='PCM Playback Volume' 127
         elif [ "$machine_type" = "am57xx-evm" ]; then
                 # Exit for AM5 IDK when HDMI is disconnected
                 if cat /proc/device-tree/model | grep "IDK"
diff --git a/multimedia_apps/arm_multimedia_audiocapture/runAudioCapture.sh 
b/multimedia_apps/arm_multimedia_audiocapture/runAudioCapture.sh
old mode 100755
new mode 100644
index c7b2b3f..9e63590
--- a/multimedia_apps/arm_multimedia_audiocapture/runAudioCapture.sh
+++ b/multimedia_apps/arm_multimedia_audiocapture/runAudioCapture.sh
@@ -92,6 +92,10 @@ else
                 amixer -c AM437xGPEVM sset 'PGA' 40
             fi
         fi
+    elif [ "$machine_type" = "am65xx-evm" ]; then
+        # Exit for AM65 for now until audio card info is available
+            echo "Exit as there is no audio port"
+            exit 1
     fi
 
     echo "Recording of 1000 buffers from Line-In will begin in 5 seconds..."
diff --git a/multimedia_apps/arm_multimedia_h264dec/runH264Dec.sh 
b/multimedia_apps/arm_multimedia_h264dec/runH264Dec.sh
index 3f15084..be8b2dc 100644
--- a/multimedia_apps/arm_multimedia_h264dec/runH264Dec.sh
+++ b/multimedia_apps/arm_multimedia_h264dec/runH264Dec.sh
@@ -15,7 +15,7 @@ then
 elif [ "$machine_type" = "omap5-evm" ]
 then
     filename="/usr/share/ti/video/TearOfSteel-Short-720x406.264"
-elif [ "$machine_type" = "am437x-evm" ] || [ "$machine_type" = "am437x-hs-evm" 
] || [ "$machine_type" = "am438x-epos-evm" ]
+elif [ "$machine_type" = "am437x-evm" ] || [ "$machine_type" = "am437x-hs-evm" 
] || [ "$machine_type" = "am438x-epos-evm" ] || [ "$machine_type" = 
"am65xx-evm" ]
 then
         resolution="`fbset | awk '/geometry/ {print $2"x"$3}'`"
         if [ "$resolution" = "480x272" ]; then
diff --git a/multimedia_apps/arm_multimedia_mpeg4aacdec/runMpeg4AacDec.sh 
b/multimedia_apps/arm_multimedia_mpeg4aacdec/runMpeg4AacDec.sh
index f4a860e..18ee0ea 100644
--- a/multimedia_apps/arm_multimedia_mpeg4aacdec/runMpeg4AacDec.sh
+++ b/multimedia_apps/arm_multimedia_mpeg4aacdec/runMpeg4AacDec.sh
@@ -4,6 +4,8 @@ amixer_find="/usr/bin/amixer"
 if [ ! -f $amixer_find ]; then
         echo "amixer not found"
         echo "Please connect audio output and install ALSA soundcard driver"
+elif grep -q "no soundcards" /proc/asound/cards; then
+        echo "No sound devices found!"
 else
        machine_type="`cat /etc/hostname`"
        if [ "$machine_type" = "am335x-evm" ] || [ "$machine_type" = 
"am335x-hs-evm" ]; then
@@ -20,7 +22,7 @@ else
     elif [ "$machine_type" = "omap5-evm" ]
     then
         filename="/usr/share/ti/video/TearOfSteel-AV-Short-720x406.mp4"
-    elif [ "$machine_type" = "am437x-evm" ] || [ "$machine_type" = 
"am437x-hs-evm" ] || [ "$machine_type" = "am438x-epos-evm" ]
+    elif [ "$machine_type" = "am437x-evm" ] || [ "$machine_type" = 
"am437x-hs-evm" ] || [ "$machine_type" = "am438x-epos-evm" ]|| [ 
"$machine_type" = "am65xx-evm" ]
     then
             resolution="`fbset | awk '/geometry/ {print $2"x"$3}'`"
             if [ "$resolution" = "480x272" ]; then
diff --git a/multimedia_apps/arm_multimedia_mpeg4dec/runMpeg4Dec.sh 
b/multimedia_apps/arm_multimedia_mpeg4dec/runMpeg4Dec.sh
index 92a44e0..410d8ea 100644
--- a/multimedia_apps/arm_multimedia_mpeg4dec/runMpeg4Dec.sh
+++ b/multimedia_apps/arm_multimedia_mpeg4dec/runMpeg4Dec.sh
@@ -15,7 +15,7 @@ then
 elif [ "$machine_type" = "omap5-evm" ]
 then
     filename="/usr/share/ti/video/TearOfSteel-Short-720x406.m4v"
-elif [ "$machine_type" = "am437x-evm" ] || [ "$machine_type" = "am437x-hs-evm" 
] || [ "$machine_type" = "am438x-epos-evm" ]
+elif [ "$machine_type" = "am437x-evm" ] || [ "$machine_type" = "am437x-hs-evm" 
] || [ "$machine_type" = "am438x-epos-evm" ] || [ "$machine_type" = 
"am65xx-evm" ]
 then
     resolution="`fbset | awk '/geometry/ {print $2"x"$3}'`"
     if [ "$resolution" = "480x272" ]; then
-- 
1.9.1

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to