Jump to content

FelSM

Members
  • Posts

    5
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hello, community. For a while now, I've been trying to configure the input and output of i2s0 without success. The closest I've come to a result was with the adau7002 configuration, but I'm experiencing synchronous noise, as if the issue were related to a CLK. Let me provide some details to see if anyone can guide me. I have a Banana Pi M2 with Armbian 23.11.1 Bookworm and Linux 6.1.13-current-sunxi. I have a pcm1807 connected to the input, configured with SPI, outputting i2s left justified in 24bit, and operating as a master. The pcm is connected to a 24.5MHz crystal. My goal is to configure the system to capture audio in a generic i2s format and then play it back in the same way through the output, as I have an amplifier connected to it. My other question is whether it's possible to reconfigure the pins using an overlay. Currently, my pin configuration is as follows: PA10 = LRCLK PA16 = BCLK PA20 = SDI PA21 = SDO i tried reconfigure the pins but i couldn't ☹️ I am attaching the adau7002.dts to provide additional information: /dts-v1/; /plugin/; / { compatible = "allwinner,sun8i-h3"; fragment@0 { target-path = "/"; __overlay__ { adau7002_codec: adau7002_codec { #sound-dai-cells = <0>; compatible = "adi,adau7002"; status = "okay"; }; }; }; fragment@1 { target = <&i2s0>; __overlay__ { status = "okay"; pinctrl-0 = <&i2s0_pins>; sound-dai = <&adau7002_codec>; pinctrl-names = "default"; }; }; fragment@2 { target-path = "/"; __overlay__ { sound_i2s { compatible = "simple-audio-card"; simple-audio-card,format = "i2s"; simple-audio-card,name = "adau7002"; #simple-audio-card,dai-link = "left_j"; simple-audio-card,bitclock-slave = <&dailink0_slave>; simple-audio-card,frame-slave = <&dailink0_slave>; simple-audio-card,mclk-fs = <512>; simple-audio-card,widgets = "Line", "Line In Jack"; simple-audio-card,routing = "PDM_DAT", "Line In Jack"; status = "okay"; simple-audio-card,cpu { sound-dai = <&i2s0>; }; dailink0_slave: simple-audio-card,codec { sound-dai = <&adau7002_codec>; }; }; }; }; }; I use for capture this command: "arecord -D hw:0,0 -f S16_LE -t wav -r 48000 -c 2 -d 10 -V stereo -v >test.wav". But when I want to switch S16_LE to S24_LE you can hardly hear anything, although the noise persists with both formats
  2. "I'm new to using Linux on embedded systems and I've been trying to follow various examples in the forum to enable I2S, but I haven't had satisfactory results. I attempted to perform the steps described, enabling the PCM5102, but when I run 'arecord', I get the following error: 'arecord: main:830: audio open error: No such file or directory'. I'm running Armbian 23.8.1 with Linux Kernel 5.10.4 on a Banana Pi M2 Zero. I have a PCM1807, which I configure through SPI to send I2S data to GPIO PA20 on the BPI. After successfully capturing the audio, I would like to send it via I2S through GPIO PA21 to another stage. Could someone please guide me on how to configure these ports and the ADC?"
  3. Sorry, I'm new. I tried to change the tag but couldn't so I created a new post. If any moderator can delete this post, I would appreciate it.
  4. I am working on a project with armbian 23.8.1 embedded in a banana pi m2 zero. I need to use the spi 0 with the two select chips. When I initialize I can only initialize spidev0.0 or spidev 0.1. There is no way that can initialize both. Configure the armbianEnv.txt file with the following parameters: overlays= spi-add-cs1 spi-spidev param_spidev_spi_bus=0 param_spidev_spi_cs=1 Also try other combinations and nothing. Then try to modify the .dtb file by adding cs-gpios and changing status = "okay" but it doesn't work
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines