kern/89046: [sound] [patch] pchan-related sound corruption in
ESS Allegro-1 (snd_maestro3)
Vladimir V. Pavluk
vvp at dgs.ru
Sat Nov 19 08:40:26 GMT 2005
The following reply was made to PR kern/89046; it has been noted by GNATS.
From: "Vladimir V. Pavluk" <vvp at dgs.ru>
To: bug-followup at freebsd.org, vvp at dgs.ru
Cc:
Subject: Re: kern/89046: [sound] [patch] pchan-related sound corruption in ESS Allegro-1 (snd_maestro3)
Date: Sat, 19 Nov 2005 04:10:23 +0600
I've fixed previous ugly patch for maestro3. Now driver drains play channel
only if none of channels is active.
--- maestro3.c.orig Mon Nov 14 18:11:09 2005
+++ maestro3.c Sat Nov 19 04:02:38 2005
@@ -574,8 +574,11 @@
/* XXX should the channel be drained? */
/*[[dec_timer_users]]*/
- m3_wr_assp_data(sc, KDATA_TIMER_COUNT_RELOAD, 0);
- m3_wr_assp_data(sc, KDATA_TIMER_COUNT_CURRENT, 0);
+ if(!sc->pch_active_cnt) {
+ m3_wr_assp_data(sc, KDATA_TIMER_COUNT_RELOAD, 0);
+ m3_wr_assp_data(sc, KDATA_TIMER_COUNT_CURRENT, 0);
+ }
+
data = m3_rd_2(sc, HOST_INT_CTRL);
m3_wr_2(sc, HOST_INT_CTRL, data & ~CLKRUN_GEN_ENABLE);
More information about the freebsd-multimedia
mailing list