Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: No sound FriendlyARM NanoPi M1 Allwinner H3 SoC board



It looks like the codec (digital part) is not enabled in your devicetree.

You can try adding this to sys/arch/arm/dts/sun8i-h3-nanopi-m1.dts:

	&codec {
		status = "okay";
	};



On Wed, 15 Apr 2020, Dmitrii Postolov wrote:

[     1.000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
[     1.000000]     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
[     1.000000]     2018, 2019, 2020 The NetBSD Foundation, Inc.  All rights reserved.
[     1.000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[     1.000000]     The Regents of the University of California.  All rights reserved.

[     1.000000] NetBSD 9.99.56 (GENERIC) #0: Sat Apr 11 01:51:14 UTC 2020
[     1.000000] 	mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/evbarm/compile/GENERIC
[     1.000000] total memory = 1024 MB
[     1.000000] avail memory = 984 MB
[     1.000000] pool redzone disabled for 'buf64k'
[     1.000000] timecounter: Timecounters tick every 10.000 msec
[     1.000000] running cgd selftest aes-xts-256 aes-xts-512 done
[     1.000000] armfdt0 (root)
[     1.000000] simplebus0 at armfdt0: FriendlyArm NanoPi M1
[     1.000000] simplebus1 at simplebus0
[     1.000000] simplebus2 at simplebus0
[     1.000000] cpus0 at simplebus0
[     1.000000] simplebus3 at simplebus0
[     1.000000] cpu0 at cpus0: Cortex-A7 r0p5 (Cortex V7A core)
[     1.000000] cpu0: DC enabled IC enabled WB enabled LABT branch prediction enabled
[     1.000000] cpu0: 32KB/32B 2-way L1 VIPT Instruction cache
[     1.000000] cpu0: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
[     1.000000] cpu0: 512KB/64B 8-way write-through L2 PIPT Unified cache
[     1.000000] vfp0 at cpu0: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
[     1.000000] cpufreqdt0 at cpu0
[     1.000000] cpu1 at cpus0
[     1.000000] cpufreqdt1 at cpu1
[     1.000000] cpu2 at cpus0
[     1.000000] cpufreqdt2 at cpu2
[     1.000000] cpu3 at cpus0
[     1.000000] cpufreqdt3 at cpu3
[     1.000000] gic0 at simplebus1: GIC
[     1.000000] armgic0 at gic0: Generic Interrupt Controller, 160 sources (150 valid)
[     1.000000] armgic0: 16 Priorities, 128 SPIs, 7 PPIs, 15 SGIs
[     1.000000] fclock0 at simplebus2: 24000000 Hz fixed clock (osc24M)
[     1.000000] fclock1 at simplebus2: 32768 Hz fixed clock (ext_osc32k)
[     1.000000] gtmr0 at simplebus0: Generic Timer
[     1.000000] gtmr0: interrupting on GIC irq 27
[     1.000000] armgtmr0 at gtmr0: Generic Timer (24000 kHz, virtual)
[     1.000000] timecounter: Timecounter "armgtmr0" frequency 24000000 Hz quality 500
[     1.000006] sun8ih3ccu0 at simplebus1: H3 CCU
[     1.000006] sun8ih3rccu0 at simplebus1: H3 PRCM CCU
[     1.000006] sunxigpio0 at simplebus1: PIO
[     1.000006] gpio0 at sunxigpio0: 94 pins
[     1.000006] sunxigpio0: interrupting on GIC irq 43
[     1.000006] sunxigpio1 at simplebus1: PIO
[     1.000006] gpio1 at sunxigpio1: 12 pins
[     1.000006] sunxigpio1: interrupting on GIC irq 77
[     1.000006] sunxisramc0 at simplebus1: SRAM Controller
[     1.000006] sun6idma0 at simplebus1: DMA controller (12 channels)
[     1.000006] sun6idma0: interrupting on GIC irq 82
[     1.000006] connector0 at simplebus0: HDMI connector
[     1.000006] sunxisid0 at simplebus1: Security ID EFUSE
[     1.000006] com0 at simplebus1: ns16550a, working fifo
[     1.000006] com0: console
[     1.000006] com0: interrupting on GIC irq 32
[     1.000006] fregulator0 at simplebus0: vcc3v3
[     1.000006] fregulator1 at simplebus0: vcc3v0
[     1.000006] fregulator2 at simplebus0: vcc5v0
[     1.000006] sunxiusbphy0 at simplebus1: USB PHY
[     1.000006] /soc/clock@1000000 at simplebus1 not configured
[     1.000006] /soc/mixer@1100000 at simplebus1 not configured
[     1.000006] /soc/lcd-controller@1c0c000 at simplebus1 not configured
[     1.000006] /soc/hdmi@1ee0000 at simplebus1 not configured
[     1.000006] sunxirtc0 at simplebus1: RTC
[     1.000006] emac0 at simplebus1: EMAC
[     1.000006] emac0: Ethernet address f2:00:8e:a1:37:17
[     1.000006] emac0: interrupting on GIC irq 114
[     1.000006] ukphy0 at emac0 phy 1: OUI 0x0088a0, model 0x0000, rev. 0
[     1.000006] ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
[     1.000006] h3codec0 at simplebus1: H3 Audio Codec (analog part)
[     1.000006] /soc/hdmi-phy@1ef0000 at simplebus1 not configured
[     1.000006] /soc/dram-controller@1c62000 at simplebus1 not configured
[     1.000006] /opp_table0 at simplebus0 not configured
[     1.000006] /display-engine at simplebus0 not configured
[     1.000006] sunximmc0 at simplebus1: SD/MMC controller
[     1.000006] sunximmc0: interrupting on GIC irq 92
[     1.000006] ehci0 at simplebus1: EHCI
[     1.000006] ehci0: interrupting on GIC irq 106
[     1.000006] ehci0: EHCI version 1.0
[     1.000006] ehci0: 1 companion controller, 1 port
[     1.000006] usb0 at ehci0: USB revision 2.0
[     1.000006] ohci0 at simplebus1: OHCI
[     1.000006] ohci0: interrupting on GIC irq 107
[     1.000006] ohci0: OHCI version 1.0
[     1.000006] usb1 at ohci0: USB revision 1.0
[     1.000006] ehci1 at simplebus1: EHCI
[     1.000006] ehci1: interrupting on GIC irq 108
[     1.000006] ehci1: EHCI version 1.0
[     1.000006] ehci1: 1 companion controller, 1 port
[     1.000006] usb2 at ehci1: USB revision 2.0
[     1.000006] ohci1 at simplebus1: OHCI
[     1.000006] ohci1: interrupting on GIC irq 109
[     1.000006] ohci1: OHCI version 1.0
[     1.000006] usb3 at ohci1: USB revision 1.0
[     1.000006] ehci2 at simplebus1: EHCI
[     1.000006] ehci2: interrupting on GIC irq 110
[     1.000006] ehci2: EHCI version 1.0
[     1.000006] ehci2: 1 companion controller, 1 port
[     1.000006] usb4 at ehci2: USB revision 2.0
[     1.000006] ohci2 at simplebus1: OHCI
[     1.000006] ohci2: interrupting on GIC irq 111
[     1.000006] ohci2: OHCI version 1.0
[     1.000006] usb5 at ohci2: USB revision 1.0
[     1.000006] sunxiwdt0 at simplebus1: Watchdog
[     1.000006] sunxiwdt0: default watchdog period is 16 seconds
[     1.000006] /soc/ir@1f02000 at simplebus1 not configured
[     1.000006] /soc/deinterlace@1400000 at simplebus1 not configured
[     1.000006] /soc/crypto@1c15000 at simplebus1 not configured
[     1.000006] /soc/gpu@1c40000 at simplebus1 not configured
[     1.000006] sunxithermal0 at simplebus1: Thermal sensor controller
[     1.000006] sunxithermal0: interrupting on GIC irq 63
[     1.000006] sunxithermal0: cpu: alarm 90C hyst 15C shut 105C
[     1.000006] psci0 at simplebus0: PSCI 0.1
[     1.000006] gpioleds0 at simplebus0: nanopi:blue:status nanopi:green:pwr
[     1.000006] gpiokeys0 at simplebus0: k1
[     1.000006] /soc/timer@1c20c00 at simplebus1 not configured
[     1.000006] /soc/video-codec@1c0e000 at simplebus1 not configured
[     1.000006] genfb0 at simplebus3: Simple Framebuffer (1920x1080 32-bpp @ 0x7e000000)
[     1.000006] genfb0: framebuffer at 0x7e000000, size 1920x1080, depth 32, stride 7680
[     1.000006] wsdisplay0 at genfb0 kbdmux 1: console (default, vt100 emulation)
[     1.000006] wsmux1: connecting to wsdisplay0
[     1.000006] wsdisplay0: screen 1-3 added (default, vt100 emulation)
[     1.000006] timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
[     1.000006] cpu2: Cortex-A7 r0p5 (Cortex V7A core)
[     1.447974] cpu2: DC enabled IC enabled WB enabled LABT branch prediction enabled
[     1.487973] cpu2: 32KB/32B 2-way L1 VIPT Instruction cache
[     1.517974] cpu2: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
[     1.557975] cpu2: 512KB/64B 8-way write-through L2 PIPT Unified cache
[     1.587976] vfp2 at cpu2: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
[     1.627977] cpu1: Cortex-A7 r0p5 (Cortex V7A core)
[     1.657978] cpu1: DC enabled IC enabled WB enabled LABT branch prediction enabled
[     1.697979] cpu1: 32KB/32B 2-way L1 VIPT Instruction cache
[     1.737982] cpu1: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
[     1.767981] cpu1: 512KB/64B 8-way write-through L2 PIPT Unified cache
[     1.807983] vfp1 at cpu1: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
[     1.847984] cpu3: Cortex-A7 r0p5 (Cortex V7A core)
[     1.877984] cpu3: DC enabled IC enabled WB enabled LABT branch prediction enabled
[     1.917986] cpu3: 32KB/32B 2-way L1 VIPT Instruction cache
[     1.957986] cpu3: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
[     1.987988] cpu3: 512KB/64B 8-way write-through L2 PIPT Unified cache
[     2.027989] vfp3 at cpu3: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
[     2.067990] cpufreqdt0: 1008.000 MHz, 1200000 uV
[     2.067990] cpufreqdt0: 816.000 MHz, 1100000 uV
[     2.067990] cpufreqdt0: 648.000 MHz, 1040000 uV
[     2.077993] sdmmc0 at sunximmc0
[     2.117994] uhub0 at usb0: NetBSD (0x0000) EHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 1
[     2.127993] uhub0: 1 port with 1 removable, self powered
[     2.127993] uhub1 at usb2: NetBSD (0x0000) EHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 1
[     2.137993] uhub1: 1 port with 1 removable, self powered
[     2.137993] uhub2 at usb4: NetBSD (0x0000) EHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 1
[     2.147993] uhub2: 1 port with 1 removable, self powered
[     2.197995] uhub3 at usb1: NetBSD (0x0000) OHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1
[     2.207996] uhub3: 1 port with 1 removable, self powered
[     2.207996] uhub4 at usb3: NetBSD (0x0000) OHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1
[     2.217995] uhub4: 1 port with 1 removable, self powered
[     2.217995] uhub5 at usb5: NetBSD (0x0000) OHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1
[     2.227995] uhub5: 1 port with 1 removable, self powered
[     2.247999] IPsec: Initialized Security Association Processing.
[     2.257998] sdmmc0: SD card status: 4-bit, C10, U1
[     2.257998] ld0 at sdmmc0: <0x1b:0x534d:00000:0x10:0xb9d753b6:0x103>
[     2.278000] ld0: 30528 MB, 7753 cyl, 128 head, 63 sec, 512 bytes/sect x 62521344 sectors
[     2.287999] ld0: 4-bit width, High-Speed/SDR25, 50.000 MHz
[     3.148026] ehci0: handing over low speed device on port 1 to companion controller
[     3.158028] ehci1: handing over low speed device on port 1 to companion controller
[     3.228032] boot device: ld0
[     3.228032] root on ld0a dumps on ld0b
[     3.248032] root file system type: ffs
[     3.258033] kern.module.path=/stand/evbarm/9.99.56/modules
[     3.258033] WARNING: clock lost 7406 days
[     3.268033] WARNING: using filesystem time
[     3.273708] WARNING: CHECK AND RESET THE DATE!
[     4.708218] uhidev0 at uhub3 port 1 configuration 1 interface 0
[     4.708218] uhidev0: A4Tech (0x09da) USB Mouse (0x000a), rev 1.10/0.17, addr 2, iclass 3/1
[     4.728219] ums0 at uhidev0: 8 buttons and Z dir
[     4.728219] wsmouse0 at ums0 mux 0
[     4.748221] uhidev1 at uhub4 port 1 configuration 1 interface 0
[     4.758221] uhidev1: Logitech (0x046d) USB Keyboard (0xc31c), rev 1.10/64.00, addr 2, iclass 3/1
[     4.768224] ukbd0 at uhidev1: 8 Variable keys, 6 Array codes
[     5.178294] wskbd0 at ukbd0: console keyboard, using wsdisplay0
[     5.188296] uhidev2 at uhub4 port 1 configuration 1 interface 1
[     5.198293] uhidev2: Logitech (0x046d) USB Keyboard (0xc31c), rev 1.10/64.00, addr 2, iclass 3/0
[     5.228297] uhidev2: 3 report ids
[     5.228297] uhid0 at uhidev2 reportid 1: input=1, output=0, feature=0
[     5.238297] uhid1 at uhidev2 reportid 2: input=1, output=0, feature=0
[     5.238297] uhid2 at uhidev2 reportid 3: input=3, output=0, feature=0
[    16.628928] wsdisplay0: screen 4 added (default, vt100 emulation)

15.04.2020, 12:35, "Manuel Bouyer" <bouyer%antioche.eu.org@localhost>:
On Wed, Apr 15, 2020 at 06:43:45AM +0500, Dmitrii Postolov wrote:
 Hi to all! Sorry for my bad English...

 Could you help me to solve the problem with no analog sound in FriendlyARM NanoPi M1 Allwinner H3 SoC 32-bit?

 NetBSD 9.0 current.

 https://wiki.netbsd.org/ports/evbarm/allwinner/ "Audio codec: Yes, supported on sun8i-h3".

 armv7# dmesg | grep h3
 h3codec0 at simplebus: H3 Audio Codec (analog part)

 armv7# dmesg | grep audio
 <no output>

the full dmesg could help ...

--
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


---

best regards,
Dmitrii Postolov
dpostolov%yandex.ru@localhost




Home | Main Index | Thread Index | Old Index