NetBSD-Bugs archive

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

Re: kern/55017: audio0 autoconfiguration error on auvia



At Tue, 25 Feb 2020 23:40:00 +0000 (UTC),
vezhlys%gmail.com@localhost wrote:
> auvia0 at pci0 dev 17 function 5: VIA Technologies VT8237 AC'97 Audio (rev 0x60)
> auvia0: interrupting at ioapic0 pin 22
> auvia0: ac97: VIA Technologies VT1616i codec; headphone, 18 bit DAC, 18 bit ADC, KS Waves 3D
> auvia0: ac97: ext id 0x1c1<LDAC,SDAC,CDAC,VRA>
> audio0 at auvia0: playback, capture, full duplex, independent
> audio0: blksize not configured 23040 -> 512
> audio0: autoconfiguration error: configuring playback mode failed

Would you try this patch?

diff --git a/sys/dev/pci/auvia.c b/sys/dev/pci/auvia.c
index a80314177..954c4c8fa 100644
--- a/sys/dev/pci/auvia.c
+++ b/sys/dev/pci/auvia.c
@@ -749,8 +749,7 @@ auvia_round_blocksize(void *addr, int blk,
 	if (sc->sc_flags & AUVIA_FLAGS_VT8233 && blk < 288)
 		blk = 288;
 
-	/* Avoid too many dma_ops. */
-	return uimin((blk & -32), AUVIA_MINBLKSZ);
+	return (blk & -32);
 }
 
 static int

---
Tetsuya Isaki <isaki%pastel-flower.jp@localhost / isaki%NetBSD.org@localhost>


Home | Main Index | Thread Index | Old Index