Jump to content

FordPrfkt

Members
  • Posts

    3
  • Joined

  • Last visited

  1. Hi, i am trying to get the Respeaker 2 Mic Pi hat working on a Banana Pi Zero M2. The HAT uses the WM8960 codec and generates its own I2S MCLK. After some trouble i got the i2c interface working and i2cdetect shows a device at address 0x1a which is correct. But i can not get the I2S interface working. I have added a user overlay with the following .dts: /dts-v1/; /plugin/; / { compatible = "allwinner,sun8i-h3"; fragment@0 { target = <&i2c0>; __overlay__ { #address-cells = <0>; #size-cells = <0>; status = "okay"; wm8960: wm8960{ compatible = "wlf,wm8960"; reg = <0x1a>; #sound-dai-cells = <0>; }; }; }; fragment@1 { target = <&i2s0>; __overlay__ { status = "okay"; pinctrl-0 = <&i2s0_pins>; sound-dai = <&wm8960>; pinctrl-names = "default"; }; }; fragment@2 { target-path = "/"; __overlay__ { sound_i2s { compatible = "simple-audio-card"; simple-audio-card,name = "I2S-master"; simple-audio-card,format = "i2s"; simple-audio-card,bitclock-master = <&codec_dai>; simple-audio-card,frame-master = <&codec_dai>; simple-audio-card,mclk-fs = <256>; status = "okay"; simple-audio-card,widgets = "Microphone", "Mic Jack", "Speaker", "Speaker", "Headphone", "Headphone Jack"; simple-audio-card,routing = "Headphone Jack", "HP_L", "Headphone Jack", "HP_R", "Speaker", "SPK_LP", "Speaker", "SPK_LN", "LINPUT1", "Mic Jack", "LINPUT3", "Mic Jack", "RINPUT1", "Mic Jack", "RINPUT2", "Mic Jack"; simple-audio-card,cpu { sound-dai = <&i2s0>; }; codec_dai,codec { sound-dai = <&wm8960>; }; }; }; }; }; I do not see errors in dmesg but aplay -l only shows the HMDI sound interface. I am stuck here and have not found a good explanation how .dts files exactly work for audio or how to get some error messgae from the kernel to see what is wrong. Kernel Version is 5.15.62-sunxi
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines