1. 09 6月, 2009 6 次提交
  2. 08 6月, 2009 10 次提交
  3. 07 6月, 2009 1 次提交
  4. 06 6月, 2009 3 次提交
  5. 05 6月, 2009 9 次提交
  6. 04 6月, 2009 7 次提交
    • D
      ASoC: fix NULL pointer dereference in soc_suspend() · e3509ff0
      Daniel Mack 提交于
      In case the initalization of an soc_device failed, there is no codec
      associated with it. soc_suspend() will still dereference the pointer
      and cause an Ooops when entering the sleep mode.
      
      This happens on our board with a multi-target kernel image when booted
      on a machine without audio circuits.
      
      This patch makes the code bail out very early in this special case.
      Signed-off-by: NDaniel Mack <daniel@caiaq.de>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      e3509ff0
    • A
      ALSA: hda_intel: fix build error when !PM · 65f75983
      Alexander Beregalov 提交于
      Fix this build error when CONFIG_PM is not set:
      ound/pci/hda/hda_intel.c: In function 'azx_bus_reset':
      sound/pci/hda/hda_intel.c:1270: error: implicit declaration of function 'snd_pcm_suspend_all'
      sound/pci/hda/hda_intel.c:1271: error: implicit declaration of function 'snd_hda_suspend'
      sound/pci/hda/hda_intel.c:1272: error: implicit declaration of function 'snd_hda_resume'
      Signed-off-by: NAlexander Beregalov <a.beregalov@gmail.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      65f75983
    • T
      ASoC: Fix build error in twl4030.c · d08664fd
      Takashi Iwai 提交于
      Fix the (likely cut-n-paste) error by commit
      16a30fbb, which causes the error below:
        sound/soc/codecs/twl4030.c: In function 'twl4030_read_reg_cache':
        sound/soc/codecs/twl4030.c:152: error: 'cache' undeclared (first use in this function)
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      d08664fd
    • J
      ALSA: Core - clean up snd_card_set_id* calls and remove possible id collision · 5fdc18d9
      Jaroslav Kysela 提交于
      Move locking outside snd_card_set_id_internal() function and rename it
      to snd_card_set_id_no_lock() for better function description.
      
      User defined id is just copied to card structure at allocation time.
      The real unique id procedure is called in snd_card_register() to
      ensure real atomicity.
      Signed-off-by: NJaroslav Kysela <perex@perex.cz>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      5fdc18d9
    • H
      ALSA: hda - More Aspire 8930G fixes · 018df418
      Hector Martin 提交于
      Enable all three capture channels, including the missing nid 7 which is
      the only one capable of capturing DMIC input
      
      Enable Headphone amp for the HP jack. This causes a volume boost for
      headphones, but does not cause any noticeable effect for light loads
      like other amps, so there is no need to make it configurable.
      
      Add Input Mix capture mux setting to capture the output of the playback
      input mux (that is, what goes out the speakers except for PCM)
      
      Hack another coef register because the stereo DMIC for some reason
      produces a nonstandard sum/difference signal. I found a bit to make it
      just use the sum signal for both channels, which makes it behave like a
      standard mono microphone. The stereo is useless anyway (they're 1cm apart).
      
      Tested working: Three capture channels, mic in, line in, DMIC.
      
      Tested not working: CD. Not sure why, might be unconnected in the actual
      hardware or a CD drive issue.
      
      Also looked at SPDIF. It appears to work (emitter lights up inside the
      HP out jack) but I lack a proper miniTOSLINK cable to test it.
      Signed-off-by: NHector Martin <hector@marcansoft.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      018df418
    • R
      ALSA: burgundy: timeout message is off by one. · 13be1bf1
      Roel Kluin 提交于
      Timeout message is off by one.
      Signed-off-by: NRoel Kluin <roel.kluin@gmail.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      13be1bf1
    • M
      ALSA: Fix double locking of card list in snd_card_register() · 872c7820
      Mark Brown 提交于
      The introduction of snd_card_set_id() added a lock on the card list
      to the old choose_default_id() function when using it to implement
      the new API call. This lock is needed to allow us to walk the list
      and check to see if our new name is a duplicate. Unfortunately this
      causes a lockup when called from snd_card_register() (in cases
      where no ID is supplied for the card) since the card list is already
      locked there.
      
      Fix this fairly hideously by factoring out the implementation and
      using a flag to indicate if the lock should be held. A better fix
      would probably be to refactor snd_card_register() to move the
      _set_id() outside the locking region but I can't immediately see
      anything I can convince myself is safe.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      872c7820
  7. 03 6月, 2009 4 次提交