Skip to content
  1. Dec 21, 2009
    • Krzysztof Helt's avatar
      ALSA: sbawe: fix memory detection · db8cf334
      Krzysztof Helt authored
      
      
      Memory amount is increased before a successful write-read
      sequence is done. Thus, 512 kB of onboard memory is detected
      on memoryless cards like SB32.
      
      Move the increasing of memory counter after successful read
      is done.
      
      Signed-off-by: default avatarKrzysztof Helt <krzysztof.h1@wp.pl>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      db8cf334
    • Krzysztof Helt's avatar
      ALSA: fix incorrect rounding direction in snd_interval_ratnum() · 40962d7c
      Krzysztof Helt authored
      
      
      The direction of rounding is incorrect in the snd_interval_ratnum()
      It was detected with following parameters (sb8 driver playing
      8kHz stereo file):
       - num is always 1000000
       - requested frequency rate is from 7999 to 7999 (single frequency)
      
      The first loop calculates div_down(num, freq->min) which is 125.
      Thus, a frequency range's minimum value is 1000000 / 125 = 8000 Hz.
      The second loop calculates div_up(num, freq->max) which is 126
      The frequency range's maximum value is 1000000 / 126 = 7936 Hz.
      The range maximum is lower than the range minimum so the function
      fails due to empty result range.
      
      Signed-off-by: default avatarKrzysztof Helt <krzysztof.h1@wp.pl>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      40962d7c
  2. Dec 19, 2009
  3. Dec 18, 2009
  4. Dec 17, 2009