1. 01 2月, 2010 1 次提交
  2. 28 1月, 2010 1 次提交
    • J
      ALSA: pcm_native - fix runtime->boundary calculation · 7910b4a1
      Jaroslav Kysela 提交于
      The code in pcm_lib updating runtime->hw_ptr_interrupt expects
      that runtime->boundary is divisible with runtime->period_size.
      Thanks are going to Clemens Ladisch for the notice.
      
      Fix the runtime->boundary calculation using buffer_size * period_size
      as base and find a least common multiple for 32bit platforms when
      the expression might overflow.
      Signed-off-by: NJaroslav Kysela <perex@perex.cz>
      7910b4a1
  3. 27 1月, 2010 1 次提交
    • J
      ALSA: pcm_lib - return back hw_ptr_interrupt · e7636925
      Jaroslav Kysela 提交于
      Clemens Ladisch noted for hw_ptr_removal in "cleanup & merge hw_ptr
      update functions" commit:
      
      "It is possible for the status/delay ioctls to be called when the sound
      card's pointer register alreay shows a position at the beginning of the
      new period, but immediately before the interrupt is actually executed.
      (This happens regularly on a SMP machine with mplayer.)  When that
      happens, the code thinks that the position must be at least one period
      ahead of the current position and drops an entire buffer of data."
      
      Return back the hw_ptr_interrupt variable. The last interrupt pointer
      is always computed from the latest hw_ptr instead of tracking it
      separately (in this case all hw_ptr checks and modifications might
      influence also hw_ptr_interrupt and it is difficult to keep it
      consistent).
      Signed-off-by: NJaroslav Kysela <perex@perex.cz>
      e7636925
  4. 21 1月, 2010 2 次提交
  5. 18 1月, 2010 2 次提交
  6. 13 1月, 2010 1 次提交
  7. 08 1月, 2010 5 次提交
  8. 07 1月, 2010 4 次提交
  9. 28 12月, 2009 2 次提交
  10. 27 12月, 2009 4 次提交
  11. 26 12月, 2009 1 次提交
  12. 25 12月, 2009 1 次提交
    • W
      ALSA: hda - HDMI sticky stream tag support · ef18bede
      Wu Fengguang 提交于
      When we run the following commands in turn (with
      CONFIG_SND_HDA_POWER_SAVE_DEFAULT=0),
      
      	speaker-test -Dhw:0,3 -c2 -twav  # HDMI
      	speaker-test -Dhw:0,0 -c2 -twav  # Analog
      
      The second command will produce sound in the analog lineout _as well as_
      HDMI sink. The root cause is, device 0 "reuses" the same stream tag that
      was used by device 3, and the "intelhdmi - sticky stream id" patch leaves
      the HDMI codec in a functional state. So the HDMI codec happily accepts
      the audio samples which reuse its stream tag.
      
      The proposed solution is to remember the last device each azx_dev was
      assigned to, and prefer to
      1) reuse the azx_dev (and hence the stream tag) the HDMI codec last used
      2) or assign a never-used azx_dev for HDMI
      
      With this patch and the above two speaker-test commands,
      HDMI codec will use stream tag 8 and Analog codec will use 5.
      
      The stream tag used by HDMI codec won't be reused by others, as long
      as we don't run out of the 4 playback azx_dev's. The legacy Analog
      codec will continue to use stream tag 5 because its device id is 0
      (this is a bit tricky).
      Signed-off-by: NWu Fengguang <fengguang.wu@intel.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      ef18bede
  13. 24 12月, 2009 1 次提交
  14. 23 12月, 2009 3 次提交
  15. 22 12月, 2009 7 次提交
  16. 21 12月, 2009 4 次提交
    • K
      ALSA: sbawe: fix memory detection · db8cf334
      Krzysztof Helt 提交于
      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: NKrzysztof Helt <krzysztof.h1@wp.pl>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      db8cf334
    • K
      ALSA: fix incorrect rounding direction in snd_interval_ratnum() · 40962d7c
      Krzysztof Helt 提交于
      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: NKrzysztof Helt <krzysztof.h1@wp.pl>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      40962d7c
    • H
      ALSA: HDA: add powersaving hook for Realtek · f5de24b0
      Hector Martin 提交于
      The current Realtek code makes no specific provision for turning stuff
      off. The codec chip is placed into low-power mode generically, but this
      doesn't turn off any external hardware connected to it, in particular
      external amplifiers.
      
      This patch creates a hook function that is called by the codec
      suspend/resume functions. It ought to disable any external hardware in a
      device-specific way. I've implemented a generic ALC889 function that
      sets the EAPD pin properly, and used it for the Acer Aspire 8930G which
      can benefit from this feature.
      
      On my laptop, this results in ~0.5W extra savings.
      Signed-off-by: NHector Martin <hector@marcansoft.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      f5de24b0
    • H
      ALSA: HDA: remove useless mixers on Aspire 8930G · 556eea9a
      Hector Martin 提交于
      This patch removes some extra mixers that do nothing on the Acer Aspire
      8930G.
      
      The CD mixer is useless because the SATA DVD/Blu-Ray drive has no analog
      audio output, and the Side mixer is useless because we max out at 6ch
      anyway.
      Signed-off-by: NHector Martin <hector@marcansoft.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      556eea9a