如题,有没有大佬知道tina3.5设备树(硬件荔枝派nano)下面,codec的节点是怎么样配置的,下面是我这边的配置,但是这个配置似乎有问题,所以系统启动时报了[ 0.631099] failed to get gpio-spk and gpio_num这个错误
codec:codec@0x01c23c00 {
compatible = "allwinner,sunxi-internal-codec";
reg = <0x0 0x01c23c00 0x0 0x9c>;/*digital baseadress*/
clocks = <&clk_pll_audio>, <&clk_codec>;
gpio_shdn = <0>;
headphonevol = <0x3b>;
spkervol = <0x1b>;
maingain = <0x4>;
hp_dirused = <0x0>;
pa_sleep_time = <0x15e>;
status = "okay";
};
离线
这个是我的设备树,没有引脚控制喇叭,可以有声音
codec:codec@0x01c23c00 {
compatible = "allwinner,sunxi-internal-codec";
reg = <0x0 0x01c23c00 0x0 0x9c>;/*digital baseadress*/
clocks = <&clk_pll_audio>, <&clk_codec>;
gpio-spk=<&pio 6 7 0>;
/*gpio-spk = <&pio PB 1 1 1 1 1>;*/
/*gpio_num = <2040>;*/
/*gpio-spk = <0>;*/
gpio_num = <0>;
gpio_shdn = <0>;
headphonevol = <0x3b>;
spkervol = <0x3b>;
maingain = <0x4>;
hp_dirused = <0x1>;
pa_sleep_time = <0x15e>;
status = "okay";
};
离线
@jshxcn
我这边尝试一下,还是不行,还是不能识别到引脚,而且在系统启动时,还是报了引脚不能识别,不知设备树那边漏了什么
1.845580] sunxi-internal-codec codec: ASoC: DAPM unknown pin HPOUTR
[ 1.852866] sunxi-internal-codec codec: ASoC: DAPM unknown pin HPOUTL
[ 1.860022] sunxi-internal-codec codec: ASoC: DAPM unknown pin SPKL
[ 1.867027] sunxi-internal-codec codec: ASoC: DAPM unknown pin SPKR
离线
感觉应该是有一个 gpio-spk 控制功放? 驱动申请这个gpio失败,然后就报错?
是的,系统启动时,都提示找不到引脚的配置,我感觉是设备树那里出了问题,但是又不知道怎么样设置,不知道大佬是否可以指点一、二
[ 1.812277] sun3iw1p1-pinctrl pio: missing allwinner,pins property in node daudio0
[ 1.821023] sun3iw1p1-pinctrl pio: missing allwinner,pins property in node daudio0
[ 1.829434] [daudio]request pinctrl handle
[ 1.833953] for audio failed
[ 1.837390] sunxi-daudio: probe of daudio0 failed with error -22
[ 1.845580] sunxi-internal-codec codec: ASoC: DAPM unknown pin HPOUTR
[ 1.852866] sunxi-internal-codec codec: ASoC: DAPM unknown pin HPOUTL
[ 1.860022] sunxi-internal-codec codec: ASoC: DAPM unknown pin SPKL
[ 1.867027] sunxi-internal-codec codec: ASoC: DAPM unknown pin SPKR
[ 1.874025] sunxi-codec-machine sndcodec: ASoC: DAPM unknown pin External Speaker
[ 1.882688] sunxi-internal-cpudai cpudai: ASoC: pcm constructor failed: -12
[ 1.890430] sunxi-codec-machine sndcodec: ASoC: can't create pcm SUNXI-CODEC :-12
[ 1.898823] sunxi-codec-machine sndcodec: ASoC: failed to instantiate card -12
离线
@jshxcn
这样配置系统启动时候,提示了 /soc/codec@0x01c23c00: arguments longer than property,是不是有什么问题
离线