mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Tracker "swapping" problem finally solved,
all (expect one) dma_reset calls commented out.
This commit is contained in:
parent
e463296746
commit
046b1c1ed5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=1316
@ -331,14 +331,14 @@ DMAbuf_getrdbuffer (int dev, char **buf, int *len)
|
||||
{
|
||||
if (dev_needs_restart[dev])
|
||||
{
|
||||
dma_reset (dev);
|
||||
/* dma_reset (dev); */
|
||||
dev_needs_restart[dev] = 0;
|
||||
}
|
||||
|
||||
if (dma_mode[dev] == DMODE_OUTPUT) /* Was output -> direction change */
|
||||
{
|
||||
dma_sync (dev);
|
||||
dma_reset (dev);
|
||||
/* dma_reset (dev); */
|
||||
dma_mode[dev] = DMODE_NONE;
|
||||
}
|
||||
|
||||
@ -444,7 +444,7 @@ DMAbuf_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
|
||||
|
||||
case SNDCTL_DSP_SYNC:
|
||||
dma_sync (dev);
|
||||
dma_reset (dev);
|
||||
/* dma_reset (dev); */
|
||||
return 0;
|
||||
break;
|
||||
|
||||
@ -496,13 +496,13 @@ DMAbuf_getwrbuffer (int dev, char **buf, int *size)
|
||||
|
||||
if (dma_mode[dev] == DMODE_INPUT) /* Was input -> Direction change */
|
||||
{
|
||||
dma_reset (dev);
|
||||
/* dma_reset (dev); */
|
||||
dma_mode[dev] = DMODE_NONE;
|
||||
}
|
||||
else if (dev_needs_restart[dev]) /* Restart buffering */
|
||||
{
|
||||
dma_sync (dev);
|
||||
dma_reset (dev);
|
||||
/* dma_reset (dev); */
|
||||
}
|
||||
|
||||
dev_needs_restart[dev] = 0;
|
||||
|
@ -611,7 +611,6 @@ sb_dsp_reset (int dev)
|
||||
DISABLE_INTR (flags);
|
||||
|
||||
sb_reset_dsp ();
|
||||
dsp_speed (dsp_current_speed);
|
||||
dsp_cleanup ();
|
||||
|
||||
RESTORE_INTR (flags);
|
||||
|
Loading…
Reference in New Issue
Block a user