Skip to content
Snippets Groups Projects
  1. Aug 29, 2013
    • Dave Airlie's avatar
      snd/hda: add runtime suspend/resume on optimus support (v4) · 246efa4a
      Dave Airlie authored
      
      Add support for HDMI audio device on VGA cards that powerdown
      to D3cold using non-standard ACPI/PCI infrastructure (optimus).
      
      This does a couple of things to make it work:
      
      a) add a set of power ops for the hdmi domain, and enables them
      via vga_switcheroo when we are a switcheroo controlled card. This
      just replaces the runtime resume operation so that when the card
      is in D3cold the userspace pci config space access via sysfs,
      the vga switcheroon runtime resume gets called first and it calls
      the GPU resume callback before calling the sound card runtime
      resume.
      
      b) standard ACPI/PCI stacks won't put a device into D3cold without
      an ACPI handle, but since the hdmi audio devices on gpus don't have
      an ACPI handle, we need to manually force the device into D3cold
      after suspend from the switcheroo path only.
      
      c) don't try and do runtime s/r when the GPU is off.
      
      d) call runtime suspend/resume during switcheroo suspend/resume
      this is to make sure the runtime stack knows to try and resume
      the hdmi audio device for pci config space access.
      
      v2: fix incorrect runtime call suspend->resume.
      
      v3: rework irq handler to avoid false irq when we are resuming
      but haven't runtime resumed yet, don't bother trying D3cold,
      it won't work, just set it manually ourselves, move runtime s/r
      calls outside the main s/r hook. enable dnyamic pm properly by
      dropping reference.
      
      v4: put back irq handler check just wrap it with cap check
      
      Acked-by: default avatarTakashi Iwai <tiwai@suse.de>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      246efa4a
  2. Aug 16, 2013
  3. Aug 15, 2013
    • Stephen Warren's avatar
      ASoC: tegra: fix Tegra30 I2S capture parameter setup · c90c0d7a
      Stephen Warren authored
      
      The Tegra30 I2S driver was writing the AHUB interface parameters to the
      playback path register rather than the capture path register. This
      caused the capture parameters not to be configured at all, so if
      capturing using non-HW-default parameters (e.g. 16-bit stereo rather
      than 8-bit mono) the audio would be corrupted.
      
      With this fixed, audio capture from an analog microphone works correctly
      on the Cardhu board.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      c90c0d7a
  4. Aug 12, 2013
  5. Aug 08, 2013
  6. Aug 07, 2013
  7. Aug 06, 2013
  8. Aug 02, 2013
    • Takashi Iwai's avatar
      ALSA: hda - Fix missing fixup for Mac Mini with STAC9221 · 697aebab
      Takashi Iwai authored
      
      A fixup for Apple Mac Mini was lost during the adaption to the generic
      parser because the fallback for the generic ID 8384:7680 was dropped,
      and it resulted in the silence output (and maybe other problems).
      
      Unfortunately, just adding the missing subsystem ID wasn't enough, in
      this case.  The subsystem ID of this machine is 0000:0100 (what Apple
      thought...?), and since snd_hda_pick_fixup() doesn't take the vendor
      id zero into account, the driver ignored this entry.  Now it's fixed
      to regard the vendor id zero as a valid value.
      
      Reported-and-tested-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      Cc: <stable@vger.kernel.org> [v3.9+]
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      697aebab
  9. Aug 01, 2013
  10. Jul 31, 2013
    • Dimitris Papastamos's avatar
      ASoC: wm0010: Fix resource leak · 4f8b1914
      Dimitris Papastamos authored
      
      If kzalloc() fails for `img' then we are going to leak the memory
      for `out'.  We are freeing the memory of all the tx/rx transfers
      but the tx/rx buf pointers will be NULL if we drop out earlier.
      
      Signed-off-by: default avatarDimitris Papastamos <dp@opensource.wolfsonmicro.com>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      4f8b1914
    • Ralf Baechle's avatar
      ASoC: au1x: Fix build · d2ee88d0
      Ralf Baechle authored
      
      d8b51c11 [ASoC: ac97c: Use
      module_platform_driver()] broke the build:
      
       CC      sound/soc/au1x/ac97c.o
      /home/ralf/src/linux/upstream-sfr/sound/soc/au1x/ac97c.c:344:1: error: expected identifier or ‘(’ before ‘&’ token
      /home/ralf/src/linux/upstream-sfr/sound/soc/au1x/ac97c.c:344:1: error: pasting "__initcall_" and "&" does not give a valid preprocessing token
      /home/ralf/src/linux/upstream-sfr/sound/soc/au1x/ac97c.c:344:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘&’ token
      /home/ralf/src/linux/upstream-sfr/sound/soc/au1x/ac97c.c:344:1: error: expected identifier or ‘(’ before ‘&’ token
      /home/ralf/src/linux/upstream-sfr/sound/soc/au1x/ac97c.c:344:1: error: pasting "__exitcall_" and "&" does not give a valid preprocessing token
      /home/ralf/src/linux/upstream-sfr/sound/soc/au1x/ac97c.c:344:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘&’ token
      /home/ralf/src/linux/upstream-sfr/sound/soc/au1x/ac97c.c:334:31: warning: ‘au1xac97c_driver’ defined but not used [-Wunused-variable]
      make[5]: *** [sound/soc/au1x/ac97c.o] Error 1
      make[4]: *** [sound/soc/au1x] Error 2
      make[3]: *** [sound/soc] Error 2
      
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      d2ee88d0
  11. Jul 30, 2013
  12. Jul 29, 2013
  13. Jul 24, 2013
  14. Jul 22, 2013
  15. Jul 21, 2013
  16. Jul 19, 2013
    • H Hartley Sweeten's avatar
      ASoC: ep93xx: fix build of ep93xx-ac97.c · 83e2e4ee
      H Hartley Sweeten authored
      
      Fix the build of this driver. It was broken by:
      
      Commit 453807f3
      ASoC: ep93xx: Use ep93xx_dma_params instead of ep93xx_pcm_dma_params
      
      The removed struct ep93xx_pcm_dma_params use the member 'dma_port' to
      select the dma channel. The struct ep93xx_dma_data uses the member
      'port'.
      
      Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
      Cc: Ryan Mallon <rmallon@gmail.com>
      Cc: Lars-Peter Clausen <lars@metafoo.de>
      Cc: Mark Brown <broonie@kernel.org>
      Cc: Liam Girdwood <lgirdwood@gmail.com>
      Cc: Jaroslav Kysela <perex@perex.cz>
      Cc: Takashi Iwai <tiwai@suse.de>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      83e2e4ee
    • Takashi Iwai's avatar
      ALSA: hda - Remove NO_PRESENCE bit override for Dell 1420n Laptop · f3e351ee
      Takashi Iwai authored
      
      The quirk for Dell laptops with STAC9228 overrides the pin default
      config of NID 0x0f to the value with AC_DEFCFG_MISC_NO_PRESENCE bit
      on.  I'm not quite sure why this was done so, but can guess that this
      was introduced for avoiding this to be muted by another headphone
      plug.  Now, after transition to the generic parser, this workaround
      rather causes a problem (notably as unexpected speaker mutes) because
      the pin is seen as if it's always plugged in.
      
      Since the generic parser can handle multiple headphone plugging
      gracefully, we can get rid of this override now.
      
      Reported-and-tested-by: default avatarEric Shattow <lucent@gmail.com>
      Cc: <stable@vger.kernel.org> [v3.9+]
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      f3e351ee
    • Takashi Iwai's avatar
      ALSA: hda - Fix EAPD GPIO control for Sigmatel codecs · 1ea9a69d
      Takashi Iwai authored
      
      The EAPD GPIO is dynamically turned on/off for some machines with
      Sigmatel codecs, but this didn't work as expected, and it resulted in
      spontaneous lost of speaker outputs per HP plugging or power-saving.
      
      This patch fixes the bug by simply including spec->eapd_mask into
      spec->gpio_mask and spec->gpio_data bits.
      
      Reported-and-tested-by: default avatarEric Shattow <lucent@gmail.com>
      Cc: <stable@vger.kernel.org> [v3.9+]
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      1ea9a69d
  17. Jul 17, 2013
    • Takashi Iwai's avatar
      ALSA: seq-oss: Initialize MIDI clients asynchronously · 256ca9c3
      Takashi Iwai authored
      
      We've got bug reports that the module loading stuck on Debian system
      with 3.10 kernel.  The debugging session revealed that the initial
      registration of OSS sequencer clients stuck at module loading time,
      which involves again with request_module() at the init phase.  This is
      triggered only by special --install stuff Debian is using, but it's
      still not good to have such loops.
      
      As a workaround, call the registration part asynchronously.  This is a
      better approach irrespective of the hang fix, in anyway.
      
      Reported-and-tested-by: default avatarPhilipp Matthias Hahn <pmhahn@pmhahn.de>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      256ca9c3
  18. Jul 16, 2013
  19. Jul 15, 2013
Loading