1. 26 1月, 2013 1 次提交
    • T
      ALSA: Make snd_printd() and snd_printdd() inline · 86b27237
      Takashi Iwai 提交于
      Because currently snd_printd() and snd_printdd() macros are expanded
      to empty when CONFIG_SND_DEBUG=n, a compile warning like below
      appears sometimes, and we had to covert it by ugly ifdefs:
        sound/pci/hda/patch_sigmatel.c: In function ‘stac92hd71bxx_fixup_hp’:
        sound/pci/hda/patch_sigmatel.c:2434:24: warning: unused variable ‘spec’ [-Wunused-variable]
      
      For "fixing" these issues better, this patch replaces snd_printd() and
      snd_printdd() definitions with empty inline functions instead of
      macros.  This should have the same effect but shut up warnings like
      above.
      
      But since we had already put ifdefs, changing to inline functions
      would trigger compile errors.  So, such ifdefs is removed in this
      patch.
      
      In addition, snd_pci_quirk name field is defined only when
      CONFIG_SND_DEBUG_VERBOSE is set, and the reference to it in
      snd_printdd() argument triggers the build errors, too.  For avoiding
      these errors, introduce a new macro snd_pci_quirk_name() that is
      defined no matter how the debug option is set.
      Reported-by: NStratos Karafotis <stratosk@semaphore.gr>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      86b27237
  2. 03 1月, 2013 1 次提交
  3. 21 12月, 2012 1 次提交
  4. 15 12月, 2012 1 次提交
    • M
      ASoC: Prevent pop_wait overwrite · 9bffb1fb
      Misael Lopez Cruz 提交于
      pop_wait is used to determine if a deferred playback close
      needs to be cancelled when the a PCM is open or if after
      the power-down delay expires it needs to run. pop_wait is
      associated with the CODEC DAI, so the CODEC DAI must be
      unique. This holds true for most CODECs, except for the
      dummy CODEC and its DAI.
      
      In DAI links with non-unique dummy CODECs (e.g. front-ends),
      pop_wait can be overwritten by another DAI link using also a
      dummy CODEC. Failure to cancel a deferred close can cause
      mute due to the DAPM STOP event sent in the deferred work.
      
      One scenario where pop_wait is overwritten and causing mute
      is below (where hw:0,0 and hw:0,1 are two front-ends with
      default pmdown_time = 5 secs):
      
      aplay /dev/urandom -D hw:0,0 -c 2 -r 48000 -f S16_LE -d 1
      sleep 1
      aplay /dev/urandom -D hw:0,1 -c 2 -r 48000 -f S16_LE -d 3 &
      aplay /dev/urandom -D hw:0,0 -c 2 -r 48000 -f S16_LE
      
      Since CODECs may not be unique, pop_wait is moved to the PCM
      runtime structure. Creating separate dummy CODECs for each
      DAI link can also solve the problem, but at this point it's
      only pop_wait variable in the CODEC DAI that has negative
      effects by not being unique.
      Signed-off-by: NMisael Lopez Cruz <misael.lopez@ti.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      9bffb1fb
  5. 02 12月, 2012 1 次提交
  6. 23 11月, 2012 3 次提交
  7. 20 11月, 2012 1 次提交
  8. 06 11月, 2012 1 次提交
  9. 01 11月, 2012 1 次提交
  10. 30 10月, 2012 1 次提交
  11. 23 10月, 2012 2 次提交
  12. 15 10月, 2012 1 次提交
  13. 09 10月, 2012 1 次提交
  14. 03 10月, 2012 1 次提交
  15. 28 9月, 2012 1 次提交
  16. 26 9月, 2012 1 次提交
  17. 23 9月, 2012 1 次提交
  18. 21 9月, 2012 1 次提交
  19. 19 9月, 2012 2 次提交
  20. 17 9月, 2012 1 次提交
  21. 14 9月, 2012 2 次提交
  22. 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
  23. 08 9月, 2012 1 次提交
  24. 07 9月, 2012 3 次提交
    • 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: ac97: Implement channel map workaround for ALC650 · 833a493b
      Takashi Iwai 提交于
      ALC650 has a channel swap option between surround and CLFE channels,
      so we need to tweak the channel maps dynamically depending on the
      register bit.
      
      Now struct snd_ac97 can contain chmap pointers for playback and
      capture.  The driver may store these and let ac97 driver changing the
      channel mapping dynamically.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      833a493b
    • 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
  25. 06 9月, 2012 3 次提交
  26. 04 9月, 2012 1 次提交
    • J
      ALSA: remove the main version information · 42662748
      Jaroslav Kysela 提交于
      Remove the main ALSA version number from the kernel ALSA driver.
      The ALSA driver package release diverges from the upstream. This may
      confuse users to see the same ALSA version for many kernel releases
      and this version lost it's original purpose and connection.
      
      The "ioctl" APIs have own version numbers, so the user space may check
      for specific API changes only.
      Signed-off-by: NJaroslav Kysela <perex@perex.cz>
      42662748
  27. 23 8月, 2012 2 次提交
  28. 21 8月, 2012 1 次提交
  29. 20 8月, 2012 2 次提交