Re: SPDIF not working with azalia(4) based card

2021-12-15 Thread Ricardo Mestre
I have that sound system connected to my TV now, but sure enough connecting it
back to my desktop through spdif and running with sndiod -c0:3 fixed it!

thanks for your finding! better late than never :)

On 15:57 Wed 15 Dec , Edd Barrett wrote:
> On Tue, Apr 10, 2018 at 07:28:03AM +0100, Ricardo Mestre wrote:
> > I have an azalia(4) based card integrated in my motherboard connected to a
> > receiver through SPDIF, but I can't make it output any sound, only if I 
> > connect
> > the cable to the 3.5mm headphone jack. And yes, I already toggled the
> > outputs.mode to digital through mixerctl(1). When I play something 
> > audioctl(1)
> > shows bytes going through and the receiver blinks, which means something is
> > getting there, the sound is just not being output through SPDIF.
> 
> I'm digging up this old thread because I've just solved this very issue on my
> own desktop.
> 
> If it's the same issue as mine, the SPDIF output sends to channels 2 and 3, 
> but
> by default sndiod will only use channels 0 and 1.
> 
> Adding `-c0:3` to my sndiod flags made it work!
> 
> (as already mentioned, you have to also set outputs.mode=digital in mixerctl
> too)
> 
> Credit where due, I found this solution here:
> http://daemonforums.org/showthread.php?t=10953#post66355
> 
> -- 
> Best Regards
> Edd Barrett
> 
> https://www.theunixzoo.co.uk



Re: SPDIF not working with azalia(4) based card

2021-12-15 Thread Edd Barrett
On Tue, Apr 10, 2018 at 07:28:03AM +0100, Ricardo Mestre wrote:
> I have an azalia(4) based card integrated in my motherboard connected to a
> receiver through SPDIF, but I can't make it output any sound, only if I 
> connect
> the cable to the 3.5mm headphone jack. And yes, I already toggled the
> outputs.mode to digital through mixerctl(1). When I play something audioctl(1)
> shows bytes going through and the receiver blinks, which means something is
> getting there, the sound is just not being output through SPDIF.

I'm digging up this old thread because I've just solved this very issue on my
own desktop.

If it's the same issue as mine, the SPDIF output sends to channels 2 and 3, but
by default sndiod will only use channels 0 and 1.

Adding `-c0:3` to my sndiod flags made it work!

(as already mentioned, you have to also set outputs.mode=digital in mixerctl
too)

Credit where due, I found this solution here:
http://daemonforums.org/showthread.php?t=10953#post66355

-- 
Best Regards
Edd Barrett

https://www.theunixzoo.co.uk



SPDIF not working with azalia(4) based card

2018-04-10 Thread Ricardo Mestre
Hi misc@

I have an azalia(4) based card integrated in my motherboard connected to a
receiver through SPDIF, but I can't make it output any sound, only if I connect
the cable to the 3.5mm headphone jack. And yes, I already toggled the
outputs.mode to digital through mixerctl(1). When I play something audioctl(1)
shows bytes going through and the receiver blinks, which means something is
getting there, the sound is just not being output through SPDIF.

To note that this receiver is properly working with SPDIF under Windows on the
same machine and also on another crappy machine (with OpenBSD) with an NVIDIA
MCPxx chipset (sorry I don't have a dmesg available for that one right now).

Please find attached audioctl, mixerctl and dmesg (with AZALIA_DEBUG), and let
me know which obvious knob I'm missing to enable/change?

/mestre
OpenBSD 6.3-current (GENERIC.MP) #13: Mon Apr  9 23:36:52 WEST 2018
serial@skoll.helheim.local:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 34243928064 (32657MB)
avail mem = 33199009792 (31661MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xbc8b9018 (61 entries)
bios0: vendor American Megatrends Inc. version "1002" date 11/07/2012
bios0: ASUSTeK COMPUTER INC. CROSSHAIR V FORMULA-Z
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT MCFG HPET SSDT IVRS
acpi0: wakeup devices SBAZ(S4) P0PC(S4) UHC1(S4) UHC2(S4) UHC4(S4) UHC6(S4) 
UHC7(S4) PC02(S4) PC03(S4) PC04(S4) PC05(S4) PC06(S4) PC07(S4) PC09(S4) 
PC0A(S4) PC0B(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 16 (boot processor)
cpu0: AMD FX(tm)-8350 Eight-Core Processor, 4013.99 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu0: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 
16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu0: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 200MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 17 (application processor)
cpu1: AMD FX(tm)-8350 Eight-Core Processor, 4013.51 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu1: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 
16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu1: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu1: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 18 (application processor)
cpu2: AMD FX(tm)-8350 Eight-Core Processor, 4013.51 MHz
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu2: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 
16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu2: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu2: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 19 (application processor)
cpu3: AMD FX(tm)-8350 Eight-Core Processor, 4013.51 MHz
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu3: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 
16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu3: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu3: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu3: smt 0, core 3, package 0
cpu4 at mainbus0: apid 20 (application processor)
cpu4: AMD FX(tm)-8350 Eight-Core Processor, 4013.51 MHz
cpu4: