From: Adrian M. <ad...@mc...> - 2002-10-18 21:36:31
|
Typo in the last one! --- main.c Fri Oct 18 21:05:18 2002 +++ linux-sh-dc/drivers/sound/aica/main.c Fri Oct 18 22:35:34 2002 @@ -68,6 +68,10 @@ static int currentpoint; static struct semaphore dsp_mutex; +static int sleeps = 0; /* default is not to sleep for hi-sample rate sounds */ + +MODULE_PARM(sleeps, "i"); + typedef struct { uint32_t cmd; /* Command ID */ uint32_t pos; /* Sample position */ @@ -341,7 +345,7 @@ for (i = 0; i < (HZ * 2); i++) { - if (chanh->freq < 23000) + if ((chanh->freq < 23000)||(sleeps > 0)) interruptible_sleep_on_timeout(& (devc-> open_wait), @@ -421,7 +425,7 @@ { int playpoint; do { - if (chanh->freq < 23000) + if (chanh->freq < 23000) interruptible_sleep_on_timeout(&(devc->open_wait), 1); spu_write_wait(); @@ -432,7 +436,7 @@ if ((currentpoint + total_count) > 0x8000) { currentpoint = 0; do { - if (chanh->freq < 23000) + if ((chanh->freq < 23000)||(sleeps > 0)) interruptible_sleep_on_timeout(& (devc-> open_wait), |