From: Adrian M. <ad...@mc...> - 2002-01-29 22:35:34
|
This patch fixes problems with closing down low smaple rate/mono sounds --- aica.c Sun Jan 27 11:17:17 2002 +++ linux-sh-dc/drivers/sound/aica/main.c Tue Jan 29 21:36:53 2002 @@ -319,8 +319,8 @@ { aica_dev_t *devc = (aica_dev_t *) (file->private_data); int playpoint, i; - if (chanh->freq < 11000) { - interruptible_sleep_on_timeout(&(devc->open_wait), HZ); + if (chanh->freq < 23000) { + interruptible_sleep_on_timeout(&(devc->open_wait), HZ/5); } if (devc->last_write_length > 0) { spu_write_wait(); @@ -341,7 +341,7 @@ for (i = 0; i < (HZ * 2); i++) { - if (chanh->freq < 11000) + if (chanh->freq < 23000) interruptible_sleep_on_timeout(& (devc-> open_wait), |