1. 26 5月, 2014 2 次提交
  2. 18 10月, 2013 1 次提交
    • C
      ALSA: add DICE driver · 82fbb4f7
      Clemens Ladisch 提交于
      As a start point for further development, this is an incomplete driver
      for DICE devices:
      - only playback (so no clock source except the bus clock)
      - only 44.1 kHz
      - no MIDI
      - recovery after bus reset is slow
      - hwdep device is created, but not actually implemented
      
      Contains compilation fixes by Stefan Richter.
      Signed-off-by: NClemens Ladisch <clemens@ladisch.de>
      82fbb4f7
  3. 28 6月, 2013 1 次提交
  4. 18 4月, 2013 1 次提交
    • D
      ALSA: add DSD formats · ef7a4f97
      Daniel Mack 提交于
      This patch adds two formats for Direct Stream Digital (DSD), a
      pulse-density encoding format which is described here:
      https://en.wikipedia.org/wiki/Direct_Stream_Digital
      
      DSD operates on 2.8, 5.6 or 11.2MHz sample rates and as a 1-bit
      stream.
      
      The two new types added by this patch describe streams that are capable
      of handling DSD samples in DOP format as 8-bit or in 16-bit (or at a x8
      or x16 data rate, respectively).
      
      DSD itself specifies samples in *bit*, while DOP and ALSA handle them
      as *bytes*. Hence, a factor of 8 or 16 has to be applied for the sample
      rare configuration, according to the following table:
      
                                                        configured hardware
              176.4KHz   352.8kHz   705.6KHz     <----       sample rate
      
      8-bit                2.8MHz     5.6MHz
      16-bit    2.8Mhz     5.6MHz    11.2MHz
      
               `-----------------------------'
                   actual DSD sample rates
      Signed-off-by: NDaniel Mack <zonque@gmail.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      ef7a4f97
  5. 26 11月, 2012 1 次提交
  6. 28 10月, 2012 1 次提交
  7. 23 10月, 2012 1 次提交
    • P
      ALSA: core: add hooks for audio timestamps · 4eeaaeae
      Pierre-Louis Bossart 提交于
      ALSA did not provide any direct means to infer the audio time for A/V
      sync and system/audio time correlations (eg. PulseAudio).
      Applications had to track the number of samples read/written and
      add/subtract the number of samples queued in the ring buffer.  This
      accounting led to small errors, typically several samples, due to the
      two-step process.  Computing the audio time in the kernel is more
      direct, as all the information is available in the same routines.
      
      Also add new .audio_wallclock routine to enable fine-grain synchronization
      between monotonic system time and audio hardware time.
      Using the wallclock, if supported in hardware, allows for a
      much better sub-microsecond precision and a common drift tracking for
      all devices sharing the same wall clock (master clock).
      Signed-off-by: NPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      4eeaaeae
  8. 09 10月, 2012 1 次提交
  9. 13 9月, 2012 1 次提交
    • T
      ALSA: Define more channel map positions · 7b31d009
      Takashi Iwai 提交于
      For following the standard, define more channel map positions and
      shuffle the items a bit:
      
      - As both PulseAudio and gstreamer define MONO channel position
        explicitly, we should follow that, too.  The mono streams point to
        this channel position unless they are explicitly assigned to certain
        channel positions.
      
      - Top-front-* and Top-rear-* positions are added, carried from
        PulseAudio's definitions.
      
      - Move NA and MONO definitions at the top of table right after
        UNKNOWN, since these are more abstract in comparison with other
        practical positions.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      7b31d009
  10. 07 9月, 2012 2 次提交
    • T
      ALSA: Follow channel position definitions to alsa-lib mixer · 080108c4
      Takashi Iwai 提交于
      There is already a set of channel position definitions in alsa-lib
      mixer.h, and it'd be more practical to keep the same order for the
      PCM channel map, too.  The value is shifted with 1 to keep zero for
      UNKNOWN.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      080108c4
    • T
      ALSA: PCM: channel mapping API implementation · 2d3391ec
      Takashi Iwai 提交于
      This patch implements the basic data types for the standard channel
      mapping API handling.
      
      - The definitions of the channel positions and the new TLV types are
        added in sound/asound.h and sound/tlv.h, so that they can be
        referred from user-space.
      
      - Introduced a new helper function snd_pcm_add_chmap_ctls() to create
        control elements representing the channel maps for each PCM
        (sub)stream.
      
      - Some standard pre-defined channel maps are provided for
        convenience.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      2d3391ec
  11. 18 4月, 2012 1 次提交
  12. 09 10月, 2011 1 次提交
  13. 22 11月, 2010 1 次提交
    • C
      ALSA: pcm: support for period wakeup disabling · ab69a490
      Clemens Ladisch 提交于
      This patch allows to disable period interrupts which are
      not needed when the application relies on a system timer
      to wake-up and refill the ring buffer. The behavior of
      the driver is left unchanged, and interrupts are only
      disabled if the application requests this configuration.
      The behavior in case of underruns is slightly different,
      instead of being detected during the period interrupts the
      underruns are detected when the application calls
      snd_pcm_update_avail, which in turns forces a refresh of the
      hw pointer and shows the buffer is empty.
      
      More specifically this patch makes a lot of sense when
      PulseAudio relies on timer-based scheduling to access audio
      devices such as HDAudio or Intel SST. Disabling interrupts
      removes two unwanted wake-ups due to period elapsed events
      in low-power playback modes. It also simplifies PulseAudio
      voice modules used for speech calls.
      
      To quote Lennart "This patch looks very interesting and
      desirable. This is something have long been waiting for."
      
      Support for this in hardware drivers is optional.
      Signed-off-by: NPierre-Louis Bossart <pierre-louis.bossart@intel.com>
      Signed-off-by: NClemens Ladisch <clemens@ladisch.de>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      ab69a490
  14. 31 5月, 2010 1 次提交
  15. 12 5月, 2010 1 次提交
  16. 04 3月, 2010 1 次提交
  17. 28 8月, 2009 1 次提交
  18. 29 5月, 2009 1 次提交
  19. 27 3月, 2009 2 次提交
    • A
      make most exported headers use strict integer types · 9adfbfb6
      Arnd Bergmann 提交于
      This takes care of all files that have only a small number
      of non-strict integer type uses.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
      Cc: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
      Cc: netdev@vger.kernel.org
      Cc: linux-ppp@vger.kernel.org
      Cc: Jaroslav Kysela <perex@perex.cz>
      Cc: Takashi Iwai <tiwai@suse.de>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Signed-off-by: NH. Peter Anvin <hpa@linux.intel.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      9adfbfb6
    • A
      make exported headers use strict posix types · 85efde6f
      Arnd Bergmann 提交于
      A number of standard posix types are used in exported headers, which
      is not allowed if __STRICT_KERNEL_NAMES is defined. In order to
      get rid of the non-__STRICT_KERNEL_NAMES part and to make sane headers
      the default, we have to change them all to safe types.
      
      There are also still some leftovers in reiserfs_fs.h, elfcore.h
      and coda.h, but these files have not compiled in user space for
      a long time.
      
      This leaves out the various integer types ({u_,u,}int{8,16,32,64}_t),
      which we take care of separately.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
      Cc: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
      Cc: netdev@vger.kernel.org
      Cc: linux-ppp@vger.kernel.org
      Cc: Jaroslav Kysela <perex@perex.cz>
      Cc: Takashi Iwai <tiwai@suse.de>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Signed-off-by: NH. Peter Anvin <hpa@linux.intel.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      85efde6f
  20. 11 3月, 2009 2 次提交
  21. 25 10月, 2008 1 次提交
  22. 10 10月, 2008 2 次提交
  23. 01 8月, 2008 1 次提交
  24. 26 6月, 2008 1 次提交
    • J
      [ALSA] Revert "alsa: add annotations to bitwise type snd_pcm_hw_param_t" · eabe3228
      Jaroslav Kysela 提交于
      This reverts commit 36b34d2437104f323e09d7c6af6451d3c0b9c0cd.
      
      From: Al Viro <viro@ZenIV.linux.org.uk>
      
      WIW, *all* this stuff is not bitwise at all.  For crying out loud, half
      of these types are routinely used as array indices and loop variables...
      
      If anything, we want a different set of allowed operations - subtraction
      between elements of type (yielding integer), addition/subtraction of
      integer types not bigger than ours (yielding our type), comparisons,
      assignments (=, +=, -=, passing to function as argument, return from
      function, initializers) and second/third arguments in ?:.  With 0 *not*
      being allowed as a constant of such type.
      
      It's not bitwise; we may use the same infrastructure in sparse, but it
      should be a separate class of types (__attribute__((affine))).
      
      dma_addr_t is another candidate for the same treatment, but there we'll
      need helpers for conversions to hw-acceptable form (dma_to_le32(), etc.)
      and gradual conversion of drivers.
      
      ALSA ones and pm mess are absolutely straightforward cases, though.
      Signed-off-by: NJaroslav Kysela <perex@perex.cz>
      eabe3228
  25. 19 6月, 2008 1 次提交
  26. 01 2月, 2008 6 次提交
  27. 16 10月, 2007 2 次提交
  28. 23 9月, 2006 2 次提交