Merge "init.qcom: Modify init.qcom files for HDMI node"

This commit is contained in:
Linux Build Service Account 2013-03-22 12:16:57 -07:00 committed by Gerrit - the friendly Code Review server
commit a3a27189a7
2 changed files with 20 additions and 12 deletions

View File

@ -125,3 +125,23 @@ case "$1" in
esac
;;
esac
# Setup HDMI related nodes & permissions
# HDMI can be fb1 or fb2
# Loop through the sysfs nodes and determine
# the HDMI(dtv panel)
for file in /sys/class/graphics/fb*
do
value=`cat $file/msm_fb_type`
case "$value" in
"dtv panel")
chown system.graphics $file/hpd
chmod 0664 $file/hpd
chmod 0664 $file/video_mode
chmod 0664 $file/format_3d
# create symbolic link
ln -s $file /dev/graphics/hdmi
# Change owner and group for media server and surface flinger
chown system.system $file/format_3d;;
esac
done

View File

@ -103,18 +103,6 @@ on boot
chmod 0444 /sys/devices/platform/msm_hsusb/gadget/usb_state
# create symlink for fb1 as HDMI
symlink /dev/graphics/fb1 /dev/graphics/hdmi
# setup permissions for fb1 related nodes
chown system graphics /sys/class/graphics/fb1/hpd
chmod 0664 /sys/devices/virtual/graphics/fb1/hpd
chmod 0664 /sys/devices/virtual/graphics/fb1/video_mode
chmod 0664 /sys/devices/virtual/graphics/fb1/format_3d
# Change owner and group for media server and surface flinger
chown system system /sys/devices/virtual/graphics/fb1/format_3d
#For bridgemgr daemon to inform the USB driver of the correct transport
chown radio radio /sys/class/android_usb/f_rmnet_smd_sdio/transport