From owner-freebsd-current@freebsd.org Tue Dec 29 09:11:31 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1736E4D603D for ; Tue, 29 Dec 2020 09:11:31 +0000 (UTC) (envelope-from blackfoxx@online.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D4pZ93JB3z3lH5 for ; Tue, 29 Dec 2020 09:11:29 +0000 (UTC) (envelope-from blackfoxx@online.de) Received: from [192.168.1.60] ([80.153.188.170]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MXXhv-1kWh9c1uhz-00Z17i for ; Tue, 29 Dec 2020 10:11:27 +0100 To: freebsd-current@freebsd.org From: blackfoxx Subject: Need some help with audio/sound (to get S/PDIF Toslink to work). Message-ID: Date: Tue, 29 Dec 2020 10:12:42 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:VHvXiot1HUaJxhTD7whru6K1lnoz9cujQyVqA2favSU/ktlz6rq kG5fwMtACQYc2ti2IpUSKx9Y8tZhZuxFSgVoYxAiikHFZ7X1+9AhZnQ9tIXeikdkq+UqHca Qd82aDNoJTFjS788Uw5J2LQVWV4ATadjSvuplmiXYS6g5AR/8tP0ZycFZptLVj1x4t1zaku honr+P41ZIl/p3ikxDY7A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:rJu67sJMzVE=:nCkpS9c7++nbav+8Fl/213 y5Hbu0mmlzF7BLdoDDzK1sMMUaxgP7iyCiRtlZnY+CnTbfhhrgrzL3gzWvMPa+rM3lEU82Vtw TIIVhbNKKHgdK2J6nwUerp6VYDUQNAeZrQJU9UGO2SRvwQHqRInQB1BRAIaeB7YfbJL8IyKTR qKOtWvK6z7/8qSzRiAdMctlfE4nwQuH4QFkG8Dzb+kaWUALamk53Blx30a2IETwrk2AehVznm UB7b9CwzaTJa9zzFPBwGOOAvLVD4TKlGiGmjflj3hFWbQd14kmt+BygqoY4acKExLeWXlGLl7 kncPaMwtVjUGegpfFUj56u4vYXaQmIMA3MdETowoBtJVPKPCIxR8ljxc7Z4GTTdJ8zESadhaS 4/Vn0kh8LiCs8s1zpViphGJ7aUCyBvN2FfRKjaq/wmr+Q9I1kLhproJqwlsNFK8T+rcdf0rtg m3cnMAUwnw== X-Rspamd-Queue-Id: 4D4pZ93JB3z3lH5 X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.30 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[212.227.126.133:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:212.227.126.128/25]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[212.227.126.133:from:127.0.2.255]; ARC_NA(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_IN_DNSWL_NONE(0.00)[212.227.126.133:from]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DMARC_NA(0.00)[online.de]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-current]; RWL_MAILSPIKE_POSSIBLE(0.00)[212.227.126.133:from] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Dec 2020 09:11:31 -0000 Hi there. I'm using FreeBSD (13.0-CURRENT) since 09/2020 at my Raspberry Pi 4B as Home-and-Web-Server-OS with Apache, PHP, SQLite etc... And it works like a charm! Furthermore I'm trying to switch with my main workstation from Win10 to FreeBSD too. Because the more I'm working with FreeBSD, the more I realize that it's the only sane OS out there. Now, I really would like to remove my Win10 Installation, but unfortunately I still have an issue with FreeBSD 13.0-CURRENT for which I can't find solutions, even after reading the whole handbook and searching the www for weeks: I've got an "SoundBlaster Audigy Rx" Soundcard with "Creative E-MU CA10300" Chipset, using the BSDs "EMU10Kx" Kernel Module. The mixer shows all in/outputs right and volume-control of all analog I/Os is working fine with my "Behringer MS40" Speakers and "Alienware TactX" Headset. BUT the digital output (S/PDIF, Toslink) does NOT work. Even if I set dig1/dig2/dig3 and all other outputs to "100:100" within the mixer - still no sound via Toslink. With Devuan (ALSA) or Win10 (native Creative Driver) it is working properly. So it can't be a hardware issue. I also tried OSS, ALSA and PulseAudio with FreeBSD, searched the web for hours, tried this and that, but still no sound via Toslink... (Fortunately) this is the only Hardware-Issue I have. But it is important to me to get S/PDIF Toslink to work! I hope that someone around here can give me some hints, advice, solutions... Regards, blackfoxx My Hardware-Setup: http://www.sysprofile.de/id182580 dmesg.boot: [1] ---<>--- [1] Copyright (c) 1992-2020 The FreeBSD Project. [1] Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 [1] The Regents of the University of California. All rights reserved. [1] FreeBSD is a registered trademark of The FreeBSD Foundation. [1] FreeBSD 13.0-CURRENT #0 : Sat Dec 26 23:08:09 UTC 2020 [1] FreeBSD clang version 11.0.0 (git@github.com:llvm/llvm-project.git llvmorg-11.0.0-rc2-0-g414f32a9e86) [1] WARNING: WITNESS option enabled, expect reduced performance. [1] VT(efifb): resolution 1280x800 [1] FreeBSD: initialize and check features (__FreeBSD_version 1300133). [1] CPU: Intel(R) Core(TM) i7-3820 CPU @ 3.60GHz (3200.19-MHz K8-class CPU) [1] Origin="GenuineIntel" Id=0x206d7 Family=0x6 Model=0x2d Stepping=7 [1]Features=0xbfebfbff [1]Features2=0x1fbee3bf [1] AMD Features=0x2c100800 [1] AMD Features2=0x1 [1] XSAVE Features=0x1 [1] VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID [1] TSC: P-state invariant, performance statistics [1] real memory = 17179869184 (16384 MB) [1] avail memory = 16491573248 (15727 MB) [1] Event timer "LAPIC" quality 600 [1] ACPI APIC Table: [1] FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs [1] FreeBSD/SMP: 1 package(s) x 4 core(s) x 2 hardware threads [1] FreeBSD/SMP Online: 1 package(s) x 4 core(s) [1] random: unblocking device. [1] Firmware Warning (ACPI): 32/64X length mismatch in FADT/Pm1aEventBlock: 32/16 (20201113/tbfadt-748) [1] Firmware Warning (ACPI): 32/64X length mismatch in FADT/PmTimerBlock: 32/24 (20201113/tbfadt-748) [1] Firmware Warning (ACPI): Invalid length for FADT/Pm1aEventBlock: 16, using default 32 (20201113/tbfadt-850) [1] Firmware Warning (ACPI): Invalid length for FADT/PmTimerBlock: 24, using default 32 (20201113/tbfadt-850) [1] ioapic1 irqs 24-47 [1] ioapic0 irqs 0-23 [1] Launching APs: 2 1 3 [1] random: entropy device external interface [1] WARNING: Device "kbd" is Giant locked and may be deleted before FreeBSD 13.0. [1] kbd1 at kbdmux0 [1] 000.000039 [4346] netmap_init netmap: loaded module [1] [ath_hal] loaded [1] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 440.100 Fri May 29 08:11:49 UTC 2020 [1] nexus0 [1] efirtc0: [1] efirtc0: registered as a time-of-day clock, resolution 1.000000s [1] cryptosoft0: [1] aesni0: [1] acpi0: [1] acpi0: Power Button (fixed) [1] cpu0: on acpi0 [1] atrtc0: port 0x70-0x71,0x74-0x77 irq 8 on acpi0 [1] atrtc0: registered as a time-of-day clock, resolution 1.000000s [1] Event timer "RTC" frequency 32768 Hz quality 0 [1] attimer0: port 0x40-0x43,0x50-0x53 irq 0 on acpi0 [1] Timecounter "i8254" frequency 1193182 Hz quality 0 [1] Event timer "i8254" frequency 1193182 Hz quality 100 [1] hpet0: iomem 0xfed00000-0xfed03fff on acpi0 [1] Timecounter "HPET" frequency 14318180 Hz quality 950 [1] Event timer "HPET" frequency 14318180 Hz quality 550 [1] Event timer "HPET1" frequency 14318180 Hz quality 440 [1] Event timer "HPET2" frequency 14318180 Hz quality 440 [1] Event timer "HPET3" frequency 14318180 Hz quality 440 [1] Event timer "HPET4" frequency 14318180 Hz quality 440 [1] Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 [1] acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 [1] acpi_button0: on acpi0 [1] pcib0: port 0xcf8-0xcff on acpi0 [1] pci0: on pcib0 [1] pcib1: at device 1.0 on pci0 [1] pci1: on pcib1 [1] pcib2: at device 1.1 on pci0 [1] pci2: on pcib2 [1] xhci0: mem 0xeb300000-0xeb301fff irq 16 at device 0.0 on pci2 [1] xhci0: 32 bytes context size, 32-bit DMA [1] usbus0: waiting for BIOS to give up control [1] usbus0 on xhci0 [1] usbus0: 5.0Gbps Super Speed USB v3.0 [1] pcib3: at device 2.0 on pci0 [1] pci3: on pcib3 [1] xhci1: mem 0xeb200000-0xeb201fff irq 16 at device 0.0 on pci3 [1] xhci1: 64 bytes context size, 32-bit DMA [1] usbus1: waiting for BIOS to give up control [1] usbus1: timed out waiting for BIOS [1] usbus1 on xhci1 [1] usbus1: 5.0Gbps Super Speed USB v3.0 [1] pcib4: at device 3.0 on pci0 [1] pci4: on pcib4 [1] vgapci0: port 0x2000-0x207f mem 0xea000000-0xeaffffff,0xe0000000-0xe7ffffff,0xe8000000-0xe9ffffff irq 16 at device 0.0 on pci4 [1] nvidia0: on vgapci0 [1] vgapci0: child nvidia0 requested pci_enable_io [1] vgapci0: child nvidia0 requested pci_enable_io [1] vgapci0: Boot video device [1] hdac0: mem 0xeb000000-0xeb003fff irq 17 at device 0.1 on pci4 [1] pcib5: at device 17.0 on pci0 [1] pci5: on pcib5 [1] pci0: at device 22.0 (no driver attached) [1] em0: port 0x3040-0x305f mem 0xeb400000-0xeb41ffff,0xeb421000-0xeb421fff irq 20 at device 25.0 on pci0 [1] em0: Using 1024 TX descriptors and 1024 RX descriptors [1] em0: Using an MSI interrupt [1] em0: Ethernet address: 54:be:f7:08:d6:34 [1] em0: netmap queues/slots: TX 1/1024, RX 1/1024 [1] ehci0: mem 0xeb501000-0xeb5013ff irq 16 at device 26.0 on pci0 [1] usbus2: EHCI version 1.0 [1] usbus2 on ehci0 [1] usbus2: 480Mbps High Speed USB v2.0 [1] pcib6: at device 28.0 on pci0 [1] pci6: on pcib6 [1] pcib7: mem 0xeb100000-0xeb10ffff at device 0.0 on pci6 [1] pci7: on pcib7 [1] emu10kx0: port 0x1000-0x103f irq 16 at device 0.0 on pci7 [1] pcm0: on emu10kx0 [1] pcm0: [1] pcm1: on emu10kx0 [1] pcm2: on emu10kx0 [1] pcm3: on emu10kx0 [1] ehci1: mem 0xeb502000-0xeb5023ff irq 23 at device 29.0 on pci0 [1] usbus3: EHCI version 1.0 [1] usbus3 on ehci1 [1] usbus3: 480Mbps High Speed USB v2.0 [1] pcib8: at device 30.0 on pci0 [1] pci8: on pcib8 [1] isab0: at device 31.0 on pci0 [1] isa0: on isab0 [1] ahci0: port 0x3068-0x306f,0x3074-0x3077,0x3060-0x3067,0x3070-0x3073,0x3020-0x303f mem 0xeb423000-0xeb4237ff irq 18 at device 31.2 on pci0 [1] ahci0: AHCI v1.30 with 6 6Gbps ports, Port Multiplier not supported [1] ahcich0: at channel 0 on ahci0 [1] ahcich1: at channel 1 on ahci0 [1] ahcich2: at channel 2 on ahci0 [1] ahcich3: at channel 3 on ahci0 [1] ahcich4: at channel 4 on ahci0 [1] ahcich5: at channel 5 on ahci0 [1] ahciem0: on ahci0 [1] tpm0: iomem 0xfed40000-0xfed44fff on acpi0 [1] tpm: WEC WPCT200 rev 0x46 [1] WARNING: Device "tpm" is Giant locked and may be deleted before FreeBSD 13.0. [1] orm0: at iomem 0xd1800-0xd27ff pnpid ORM0000 on isa0 [1] atkbdc0: at port 0x60,0x64 on isa0 [1] atkbd0: irq 1 on atkbdc0 [1] kbd0 at atkbd0 [1] atkbd0: [GIANT-LOCKED] [1] coretemp0: on cpu0 [1] est0: on cpu0 [1] Timecounters tick every 1.000 msec [1] hdacc0: at cad 0 on hdac0 [1] hdaa0: at nid 1 on hdacc0 [1] pcm4: at nid 4 on hdaa0 [1] pcm5: at nid 5 on hdaa0 [1] pcm6: at nid 6 on hdaa0 [1] pcm7: at nid 7 on hdaa0 [1] Trying to mount root from ufs:/dev/ada1p2 [rw]... [1] Root mount waiting for: usbus0 usbus1 usbus2 usbus3 CAM [1] WARNING: WITNESS option enabled, expect reduced performance. [1] ugen0.1: <0x1033 XHCI root HUB> at usbus0 [1] ugen2.1: at usbus2 [1] ugen1.1: <0x1912 XHCI root HUB> at usbus1 [1] uhub0 on usbus2 [1] uhub0: on usbus2 [1] uhub1 on usbus0 [1] uhub1: <0x1033 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 [1] uhub2 on usbus1 [1] uhub2: <0x1912 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus1 [1] ugen3.1: at usbus3 [1] uhub3 on usbus3 [1] uhub3: on usbus3 [1] ses0 at ahciem0 bus 0 scbus6 target 0 lun 0 ses0: SEMB S-E-S 2.00 device ses0: SEMB SES Device [1] ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: ACS-2 ATA SATA 3.x device ada0: Serial Number S1DBNSAD998260X ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 512bytes) ada0: Command Queueing enabled ada0: 238475MB (488397168 512 byte sectors) ada0: quirks=0x3<4K,NCQ_TRIM_BROKEN> [1] ada1 at ahcich1 bus 0 scbus1 target 0 lun 0 ada1: ACS-2 ATA SATA 3.x device ada1: Serial Number 172910A024C1 ada1: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 512bytes) ada1: Command Queueing enabled ada1: 114473MB (234441648 512 byte sectors) [1] ses0: ada0 in 'Slot 00', SATA Slot: scbus0 target 0 [1] ses0: ada1 in 'Slot 01', SATA Slot: scbus1 target 0 [1] ada2 at ahcich5 bus 0 scbus5 target 0 lun 0 ada2: ACS-2 ATA SATA 3.x device ada2: Serial Number Z4Z7YY9Z ada2: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 512bytes) ada2: Command Queueing enabled ada2: 1907729MB (3907029168 512 byte sectors) ada2: quirks=0x1<4K> [1] ses0: (none) in 'Slot 03', SATA Slot: scbus3 target 0 [1] ses0: ada2 in 'Slot 05', SATA Slot: scbus5 target 0 [1] cd0 at ahcich3 bus 0 scbus3 target 0 lun 0 cd0: Removable CD-ROM SCSI device cd0: Serial Number MDDL002204WL cd0: 150.000MB/s transfers (SATA 1.x, UDMA5, ATAPI 12bytes, PIO 8192bytes) cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed [1] uhub1: 4 ports with 4 removable, self powered [1] uhub2: 8 ports with 8 removable, self powered [2] uhub3: 2 ports with 2 removable, self powered [2] uhub0: 2 ports with 2 removable, self powered [2] Root mount waiting for: usbus2 usbus3 [2] ugen3.2: at usbus3 [2] uhub4 on uhub3 [2] uhub4: on usbus3 [3] ugen2.2: at usbus2 [3] uhub5 on uhub0 [3] uhub5: on usbus2 [3] Root mount waiting for: usbus2 usbus3 [3] uhub5: 6 ports with 6 removable, self powered [4] uhub4: 8 ports with 8 removable, self powered [4] ugen2.3: at usbus2 [4] ukbd0 on uhub5 [4] ukbd0: on usbus2 [4] kbd2 at ukbd0 [5] Root mount waiting for: usbus2 [5] ugen2.4: at usbus2 [5] ukbd1 on uhub5 [5] ukbd1: on usbus2 [5] kbd3 at ukbd1 [5] mountroot: waiting for device /dev/ada1p2... [6] lo0: link state changed to UP [10] em0: link state changed to UP [10] ichsmb0: port 0x3000-0x301f mem 0xeb424000-0xeb4240ff irq 18 at device 31.3 on pci0 [10] smbus0: on ichsmb0 [10] acpi_wmi0: on acpi0 [10] acpi_wmi0: cannot find EC device [10] uhid0 on uhub5 [10] uhid0: on usbus2 [10] uhid1 on uhub5 [10] uhid1: on usbus2 [10] uhid2 on uhub5 [10] uhid2: on usbus2 [10] uhid3 on uhub5 [10] uhid3: on usbus2 [10] ums0 on uhub5 [10] ums0: on usbus2 [10] ums0: 8 buttons and [XYZ] coordinates ID=0 [11] ipfw2 (+ipv6) initialized, divert loadable, nat loadable, default to deny, logging disabled [11] Security policy loaded: MAC/ntpd (mac_ntpd) [12] acquiring duplicate lock of same type: "os.lock_mtx" [12] 1st os.lock_mtx @ nvidia_os.c:900 [12] 2nd os.lock_mtx @ nvidia_os.c:900 [12] stack backtrace: [12] #0 0xffffffff80c80ce1 at witness_debugger+0x71 [12] #1 0xffffffff80bedc04 at __mtx_lock_flags+0x94 [12] #2 0xffffffff82e9f5fb at os_acquire_spinlock+0x1b [12] #3 0xffffffff82dad14c at _nv033412rm+0xc