From: dgl <“dgl@rock-chips.com”> Date: Mon, 28 Jul 2014 02:46:53 +0000 (+0800) Subject: audio: rk3036 audio format check X-Git-Tag: firefly_0821_release~4916^2~148 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b69daf1bd7a46eac7910b72a1cb62806f68aa893;p=firefly-linux-kernel-4.4.55.git audio: rk3036 audio format check change some scripts checkpatch ERROR and Warning, do not care this version. Signed-off-by: dgl@rock-chips.com --- diff --git a/arch/arm/boot/dts/rk3036-pinctrl.dtsi b/arch/arm/boot/dts/rk3036-pinctrl.dtsi old mode 100755 new mode 100644 index 5261973393d0..f369c3428c29 --- a/arch/arm/boot/dts/rk3036-pinctrl.dtsi +++ b/arch/arm/boot/dts/rk3036-pinctrl.dtsi @@ -3,7 +3,7 @@ #include #include -/ { +/ { pinctrl: pinctrl@20008000 { compatible = "rockchip,rk3036-pinctrl"; reg = <0x20008000 0xA8>, @@ -84,28 +84,28 @@ rockchip,pins = , ; rockchip,pull = ; - - + + }; uart0_cts: uart0-cts { rockchip,pins = ; rockchip,pull = ; - - + + }; uart0_rts: uart0-rts { rockchip,pins = ; rockchip,pull = ; - - + + }; uart0_rts_gpio: uart0-rts-gpio { rockchip,pins = ; rockchip,pull = ; - + }; }; @@ -114,8 +114,8 @@ rockchip,pins = , ; rockchip,pull = ; - - + + }; }; @@ -125,8 +125,8 @@ rockchip,pins = , ; rockchip,pull = ; - - + + }; /* no rts / cts for uart2 */ }; @@ -136,21 +136,21 @@ i2c0_sda:i2c0-sda { rockchip,pins = ; rockchip,pull = ; - - + + }; i2c0_scl:i2c0-scl { rockchip,pins = ; rockchip,pull = ; - - + + }; i2c0_gpio: i2c0-gpio { rockchip,pins = , ; rockchip,pull = ; - + }; }; @@ -158,21 +158,21 @@ i2c1_sda:i2c1-sda { rockchip,pins = ; rockchip,pull = ; - - + + }; i2c1_scl:i2c1-scl { rockchip,pins = ; rockchip,pull = ; - - + + }; i2c1_gpio: i2c1-gpio { rockchip,pins = , ; rockchip,pull = ; - + }; }; @@ -180,21 +180,21 @@ i2c2_sda:i2c2-sda { rockchip,pins = ; rockchip,pull = ; - - + + }; i2c2_scl:i2c2-scl { rockchip,pins = ; rockchip,pull = ; - - + + }; i2c2_gpio: i2c2-gpio { rockchip,pins = , ; rockchip,pull = ; - + }; }; @@ -202,36 +202,36 @@ spi0_txd:spi0-txd { rockchip,pins = ; rockchip,pull = ; - - + + }; spi0_rxd:spi0-rxd { rockchip,pins = ; rockchip,pull = ; - - + + }; spi0_clk:spi0-clk { rockchip,pins = ; rockchip,pull = ; - - + + }; spi0_cs0:spi0-cs0 { rockchip,pins = ; rockchip,pull = ; - - + + }; spi0_cs1:spi0-cs1 { rockchip,pins = ; rockchip,pull = ; - - + + }; }; @@ -265,45 +265,45 @@ hdmi_gpio: hdmi-gpio { rockchip,pins = , , , ; rockchip,pull = ; - //rockchip,drive = ; + //rockchip,drive = ; }; - }; + }; gpio1_i2s0 { i2s0_mclk:i2s0-mclk { rockchip,pins = ; rockchip,pull = ; - + }; i2s0_sclk:i2s0-sclk { rockchip,pins = ; rockchip,pull = ; - + }; i2s0_lrckrx:i2s0-lrckrx { rockchip,pins = ; rockchip,pull = ; - + }; i2s0_lrcktx:i2s0-lrcktx { rockchip,pins = ; rockchip,pull = ; - + }; i2s0_sdo:i2s0-sdo { rockchip,pins = ; rockchip,pull = ; - + }; i2s0_sdi:i2s0-sdi { rockchip,pins = ; rockchip,pull = ; - + }; i2s0_gpio: i2s0-gpio { @@ -314,7 +314,7 @@ , ; rockchip,pull = ; - + }; }; @@ -322,22 +322,22 @@ spdif_tx: spdif-tx { rockchip,pins = ; rockchip,pull = ; - + }; }; - + gpio1_emmc0 { emmc0_clk: emmc0-clk { rockchip,pins = ; rockchip,pull = ; - + }; emmc0_cmd: emmc0-cmd { rockchip,pins = ; rockchip,pull = ; - + }; @@ -345,7 +345,7 @@ emmc0_bus1: emmc0-bus-width1 { rockchip,pins = ; rockchip,pull = ; - + }; @@ -355,7 +355,7 @@ , ; rockchip,pull = ; - + }; }; @@ -364,20 +364,20 @@ sdmmc0_clk: sdmmc0-clk { rockchip,pins = ; rockchip,pull = ; - + }; sdmmc0_cmd: sdmmc0-cmd { rockchip,pins = ; rockchip,pull = ; - + }; sdmmc0_dectn: sdmmc0-dectn{ rockchip,pins = ; rockchip,pull = ; - + }; @@ -385,7 +385,7 @@ sdmmc0_bus1: sdmmc0-bus-width1 { rockchip,pins = ; rockchip,pull = ; - + }; @@ -395,7 +395,7 @@ , ; rockchip,pull = ; - + }; @@ -409,7 +409,7 @@ , //D2 ; //D3 rockchip,pull = ; - + }; @@ -456,7 +456,7 @@ , , ; - rockchip,pull = ; + rockchip,pull = ; }; @@ -466,21 +466,21 @@ sdio0_clk: sdio0_clk { rockchip,pins = ; rockchip,pull = ; - + }; sdio0_cmd: sdio0_cmd { rockchip,pins = ; rockchip,pull = ; - + }; sdio0_bus1: sdio0-bus-width1 { rockchip,pins = ; rockchip,pull = ; - + }; @@ -490,7 +490,7 @@ , ; rockchip,pull = ; - + }; @@ -503,37 +503,37 @@ , //D2 ; //D3 rockchip,pull = ; - + }; }; - + gpio0_pwm{ pwm0_pin:pwm0 { rockchip,pins = ; rockchip,pull = ; - + }; pwm1_pin:pwm1 { rockchip,pins = ; rockchip,pull = ; - + }; pwm2_pin:pwm2 { rockchip,pins = ; rockchip,pull = ; - + }; pwm3_pin:pwm3 { rockchip,pins = ; rockchip,pull = ; - + }; }; @@ -543,40 +543,40 @@ rockchip,pins = ; rockchip,pull = ; }; - + mac_txpins: mac-txpins { rockchip,pins = , , ; rockchip,pull = ; - - + + }; - + mac_rxpins: mac-rxpins { rockchip,pins = , ,; rockchip,pull = ; - - + + }; - + mac_crs: mac-crs { rockchip,pins = ; rockchip,pull = ; - - + + }; - + mac_mdpins: mac-mdpins { rockchip,pins = , ; rockchip,pull = ; - - + + }; }; - //to add + //to add + - - }; + }; }; diff --git a/arch/arm/boot/dts/rk3036-sdk.dts b/arch/arm/boot/dts/rk3036-sdk.dts index adfbc43b68a9..a6a79f6d8856 100644 --- a/arch/arm/boot/dts/rk3036-sdk.dts +++ b/arch/arm/boot/dts/rk3036-sdk.dts @@ -73,7 +73,7 @@ status = "okay"; }; - + usb_control { compatible = "rockchip,rk3036-usb-control"; host_drv_gpio = <&gpio2 GPIO_C7 GPIO_ACTIVE_LOW>; @@ -86,11 +86,11 @@ key { compatible = "rockchip,key"; }; - + codec_hdmi_i2s: codec-hdmi-i2s { compatible = "hdmi-i2s"; }; - + rockchip-hdmi-i2s { compatible = "rockchip-hdmi-i2s"; dais { @@ -132,7 +132,7 @@ &nandc { status = "okay"; // used nand set "okay" ,used emmc set "disabled" -}; +}; &nandc0reg { status = "disabled"; // used nand set "disabled" ,used emmc set "okay" @@ -151,11 +151,11 @@ ignore-pm-notify; keep-power-in-suspend; - - //poll-hw-reset + + //poll-hw-reset status = "disabled"; }; - + &sdmmc { clock-frequency = <50000000>; clock-freq-min-max = <400000 50000000>; @@ -166,11 +166,11 @@ ignore-pm-notify; keep-power-in-suspend; - + //vmmc-supply = <&rk808_ldo5_reg>; status = "disabled"; }; - + &sdio { clock-frequency = <50000000>; clock-freq-min-max = <200000 50000000>; diff --git a/arch/arm/boot/dts/rk3036.dtsi b/arch/arm/boot/dts/rk3036.dtsi index d9f420b24ac8..8266b96a50d8 100644 --- a/arch/arm/boot/dts/rk3036.dtsi +++ b/arch/arm/boot/dts/rk3036.dtsi @@ -398,6 +398,7 @@ clocks = <&clk_gates5 14>; clock-names = "g_pclk_acodec"; }; + spdif: spdif@10204000 { compatible = "rockchip-spdif"; reg = <0x10204000 0x1000>; @@ -422,38 +423,38 @@ status = "disabled"; }; - pwm1: pwm@20050010 { - compatible = "rockchip,rk-pwm"; - reg = <0x20050010 0x10>; - #pwm-cells = <2>; - pinctrl-names = "default"; - pinctrl-0 = <&pwm1_pin>; - clocks = <&clk_gates7 10>; - clock-names = "pclk_pwm"; - status = "disabled"; - }; + pwm1: pwm@20050010 { + compatible = "rockchip,rk-pwm"; + reg = <0x20050010 0x10>; + #pwm-cells = <2>; + pinctrl-names = "default"; + pinctrl-0 = <&pwm1_pin>; + clocks = <&clk_gates7 10>; + clock-names = "pclk_pwm"; + status = "disabled"; + }; - pwm2: pwm@20050020 { - compatible = "rockchip,rk-pwm"; - reg = <0x20050020 0x10>; - #pwm-cells = <2>; - pinctrl-names = "default"; - pinctrl-0 = <&pwm2_pin>; - clocks = <&clk_gates7 10>; - clock-names = "pclk_pwm"; - status = "disabled"; - }; + pwm2: pwm@20050020 { + compatible = "rockchip,rk-pwm"; + reg = <0x20050020 0x10>; + #pwm-cells = <2>; + pinctrl-names = "default"; + pinctrl-0 = <&pwm2_pin>; + clocks = <&clk_gates7 10>; + clock-names = "pclk_pwm"; + status = "disabled"; + }; - pwm3: pwm@20050030 { - compatible = "rockchip,rk-pwm"; - reg = <0x20050030 0x10>; - #pwm-cells = <2>; - pinctrl-names = "default"; - pinctrl-0 = <&pwm3_pin>; - clocks = <&clk_gates7 10>; - clock-names = "pclk_pwm"; - status = "disabled"; - }; + pwm3: pwm@20050030 { + compatible = "rockchip,rk-pwm"; + reg = <0x20050030 0x10>; + #pwm-cells = <2>; + pinctrl-names = "default"; + pinctrl-0 = <&pwm3_pin>; + clocks = <&clk_gates7 10>; + clock-names = "pclk_pwm"; + status = "disabled"; + }; remotectl: pwm@20050030 { compatible = "rockchip,remotectl-pwm"; @@ -536,7 +537,7 @@ interrupts = , , - , + , ; interrupt-names = "Mali_GP_IRQ", "Mali_GP_MMU_IRQ", diff --git a/sound/soc/rockchip/Kconfig b/sound/soc/rockchip/Kconfig index df792f1f0cb2..918a82eb8cec 100644 --- a/sound/soc/rockchip/Kconfig +++ b/sound/soc/rockchip/Kconfig @@ -117,7 +117,7 @@ config SND_RK_SOC_RT5631 help Say Y if you want to add support for SoC audio on rockchip with the RT5631. - + config SND_RK_SOC_RT5631_PHONE tristate "SoC I2S Audio support for rockchip(phone) - RT5631" depends on SND_RK_SOC @@ -127,7 +127,7 @@ config SND_RK_SOC_RT5631_PHONE Say Y if you want to add support for SoC audio on rockchip with the RT5631. Driver code to use on the phone or voice Tablet. - + config SND_RK_SOC_RT5625 tristate "SoC I2S Audio support for rockchip - RT5625" depends on SND_RK_SOC @@ -160,7 +160,7 @@ config SND_RK_SOC_RT5640 select SND_SOC_RT5640 help RT5640 is pin to pin as RT5642, but not have dsp function. - + config SND_RK_SOC_RT3224 tristate "SoC I2S Audio support for rockchip - RT3224" depends on SND_RK_SOC @@ -168,7 +168,7 @@ config SND_RK_SOC_RT3224 select SND_SOC_RT3224 help RT3224 is pin to pin as RT3261, but not have dsp function. - + config SND_RK_SOC_RT5639 tristate "SoC I2S Audio support for rockchip - RT5639" depends on SND_RK_SOC @@ -176,7 +176,7 @@ config SND_RK_SOC_RT5639 select SND_SOC_RT5639 help rt5639 - + config SND_RK_SOC_RT5616 tristate "SoC I2S Audio support for rockchip - RT5616" depends on SND_RK_SOC @@ -185,7 +185,7 @@ config SND_RK_SOC_RT5616 help Say Y if you want to add support for SoC audio on rockchip with the RT5616. - + config SND_RK_SOC_RT3261 tristate "SoC I2S Audio support for rockchip - RT3261" depends on SND_RK_SOC