From patchwork Tue Dec 3 10:15:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: randy X-Patchwork-Id: 20870 Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from ) id 1Vnn5r-0007Ft-Pb; Tue, 03 Dec 2013 11:20:39 +0100 X-tubIT-Incoming-IP: 209.132.180.67 Received: from vger.kernel.org ([209.132.180.67]) by mail.tu-berlin.de (exim-4.72/mailfrontend-7) with esmtp id 1Vnn5o-0002oN-36; Tue, 03 Dec 2013 11:20:38 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752107Ab3LCKUd (ORCPT + 1 other); Tue, 3 Dec 2013 05:20:33 -0500 Received: from blu0-omc2-s20.blu0.hotmail.com ([65.55.111.95]:7278 "EHLO blu0-omc2-s20.blu0.hotmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751775Ab3LCKUa (ORCPT ); Tue, 3 Dec 2013 05:20:30 -0500 X-Greylist: delayed 306 seconds by postgrey-1.27 at vger.kernel.org; Tue, 03 Dec 2013 05:20:30 EST Received: from BLU0-SMTP92 ([65.55.111.72]) by blu0-omc2-s20.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 3 Dec 2013 02:15:24 -0800 X-TMN: [mhmzzFlAtxAKQ9LFMatkOrK30imdzXEJ] X-Originating-Email: [lxr1234@hotmail.com] Message-ID: Received: from [192.168.6.3] ([222.76.205.131]) by BLU0-SMTP92.phx.gbl over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Tue, 3 Dec 2013 02:15:23 -0800 Date: Tue, 3 Dec 2013 18:15:13 +0800 From: randy User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: linux-media@vger.kernel.org CC: kyungmin.park@samsung.com, k.debski@samsung.com, m.chehab@samsung.com, jtp.park@samsung.com Subject: Can't open mfc v5 encode but decode can X-Enigmail-Version: 1.4.1 X-OriginalArrivalTime: 03 Dec 2013 10:15:24.0272 (UTC) FILETIME=[948CC700:01CEF010] Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-PMX-Version: 6.0.0.2142326, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2013.12.3.100915 X-PMX-Spam: Gauge=IIIIIIIII, Probability=9%, Report=' FORGED_FROM_HOTMAIL 0.1, MULTIPLE_RCPTS 0.1, FROM_NAME_ONE_WORD 0.05, HTML_00_01 0.05, HTML_00_10 0.05, MSGID_ADDED_BY_MTA 0.05, BODY_SIZE_5000_5999 0, BODY_SIZE_7000_LESS 0, ECARD_WORD 0, INFO_TLD 0, LOCALE_CHINESE 0, URI_ENDS_IN_HTML 0, __ANY_URI 0, __CHAR_CHINESE_CT 0, __CP_MEDIA_BODY 0, __CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __DATE_TZ_HK 0, __FRAUD_CONTACT_NAME 0, __FRAUD_WEBMAIL 0, __FRAUD_WEBMAIL_FROM 0, __FROM_HOTMAIL 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_XOAT 0, __HAS_X_MAILING_LIST 0, __MIME_CHARSET_FARAWAY 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __MOZILLA_USER_AGENT 0, __MULTIPLE_RCPTS_CC_X2 0, __PHISH_SPEAR_STRUCTURE_1 0, __RECEIVED_FROM_MSN_LIVE 0, __SANE_MSGID 0, __STOCK_PHRASE_24 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_WWW 0, __URI_NS , __USER_AGENT 0' The kernel is 3.13-rc2, the mfc has been configured by dts, the dts is attached below. I have placed s5p-mfc.fw in /lib/firmware/ . I can use v4l2-ctl(from v4l2-utils) the encoder in the manufacturer kernel, but I can't in here. What is the problem? Thank you + }; +}; --- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ==================================log================================== root@mifu:~# dmesg|grep mfc [ 3.165000] s5p-mfc 13400000.codec: decoder registered as /dev/video0 [ 3.170000] s5p-mfc 13400000.codec: encoder registered as /dev/video1 root@mifu:~# v4l2-ctl -d /dev/video0 --all Driver Info (not using libv4l2): Driver name : 13400000.codec[ 153.415000] vidioc_g_crop:777: Cannont set crop Card type : 13400000.codec Bus info : Driver version: 1.0.0 Capabilities : 0x04007000 Video Capture Multiplanar Video Output Multiplanar Streaming root@mifu:~# v4l2-ctl -d /dev/video1 --all Failed to open /dev/video1: No such file or directory =============================dts===================== diff --git a/arch/arm/boot/dts/exynos4412-tiny4412.dts b/arch/arm/boot/dts/exynos4412-tiny4412.dts new file mode 100644 index 0000000..fedd9cc --- /dev/null +++ b/arch/arm/boot/dts/exynos4412-tiny4412.dts @@ -0,0 +1,173 @@ +/* + * Hardkernel's Exynos4412 based tiny4412 1306 board device tree source + * + * Copyright (c) 2013 Tomoya Gitsufuki + * + * Device tree source file for Friendyarm tiny4412 1306 board which is based on + * Samsung's Exynos4412 SoC. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. +*/ + +/dts-v1/; +#include "exynos4412.dtsi" + +/ { + model = "Friendly Arm Tiny4412 1306 board based on Exynos4412"; + compatible = "friendlyarm,tiny4412-1306", "samsung,exynos4412"; + + memory { + reg = <0x40000000 0x40000000>; + }; + + chosen { + bootargs ="root=/dev/mmcblk0p1 rootfstype=ext4 rw console=ttySAC0,115200 init=/sbin/init"; + }; + + leds { + compatible = "gpio-leds"; + led1 { + label = "led1:heart"; + gpios = <&gpm4 0 1>; + default-state = "on"; + linux,default-trigger = "heartbeat"; + }; + led2 { + label = "led2:mmc0"; + gpios = <&gpm4 1 1>; + default-state = "on"; + linux,default-trigger = "mmc0"; + }; + + }; + + regulators { + compatible = "simple-bus"; + #address-cells = <1>; + + vemmc_reg: regulator-0 { + compatible = "regulator-fixed"; + regulator-name = "VMEM_VDD_2.8V"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + gpio = <&gpk0 2 0>; + enable-active-high; + }; + + }; + + /* + mshc@12550000 { + #address-cells = <1>; + #size-cells = <0>; + pinctrl-0 = <&sd4_clk &sd4_cmd &sd4_bus4 &sd4_bus8>; + pinctrl-names = "default"; + status = "okay"; + + vmmc-supply = <&vemmc_reg>; + clocks = <&clock 301>, <&clock 149>; + clocks-name = "biu", "ciu"; + + num-slots = <1>; + supports-highspeed; + broken-cd; + fifo-depth = <0x80>; + card-detect-delay = <200>; + samsung,dw-mshc-ciu-div = <3>; + samsung,dw-mshc-sdr-timing = <2 3>; + samsung,dw-mshc-ddr-timing = <1 2>; + + slot@0 { + reg = <0>; + bus-width = <8>; + + }; + }; + */ + + rtc@10070000 { + status = "okay"; + }; + + sdhci@12530000 { + bus-width = <4>; + pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bus4 &sd2_cd>; + pinctrl-names = "default"; + status = "okay"; + }; + sdhci@1254000 { + bus-width = <4>; + pinctrl-0 = <&sd3_clk &sd3_cmd &sd3_bus4 &sd3_cd>; + pinctrl-names = "default"; + status = "okay"; + }; + + usb_phy: usbphy@125B0000 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "samsung,exynos4210-usb2phy"; + reg = <0x125B0000 0x100>; + ranges; + status = "okay"; + + clocks = <&clock 2>, <&clock 305>; + clock-names = "xusbxti", "otg"; + usbphy-sys { + /* USB device and host PHY_CONTROL registers */ + /*reg = <0x10020704 0xc 0x1001021c 0x4>;*/ + reg = <0x10020704 0x8>; + }; + }; + + ehci@12580000 { + usb-phy = <&usb_phy>; + status = "okay"; + }; + + codec@13400000 { + samsung,mfc-r = <0x43000000 0x800000>; + samsung,mfc-l = <0x51000000 0x800000>; + status = "okay"; + }; + + serial@13800000 { + status = "okay"; + }; + + serial@13810000 { + status = "okay"; + }; + + serial@13820000 { + status = "okay"; + }; + + serial@13830000 { + status = "okay"; + }; + + fixed-rate-clocks { + xxti { + compatible = "samsung,clock-xxti"; + clock-frequency = <0>; + }; + + xusbxti { + compatible = "samsung,clock-xusbxti"; + clock-frequency = <24000000>; + }; + }; + + i2c@13860000 { + status = "okay"; + samsung,i2c-sda-delay = <100>; + samsung,i2c-max-bus-freq = <200000>; + + wm8960@10 { + compatible = "wlf,wm8960"; + reg = <0x10>; + };