1. 03 12月, 2012 2 次提交
    • M
      ASoC: wm8994: Simplify button detection code · 78b76dbe
      Mark Brown 提交于
      Currently the WM8994 driver allows the WM8958 microphone detection code to
      be replaced in its entirety, providing a default implementation. This
      doesn't actually reflect the needs of users well. They generally wish to
      replace only the accessory identification parts of the algorithm (eg,
      using an external GPIO to provide the equivalent of the JACKDET support in
      the WM1811A).
      
      In preparation for supporting these users better refactor the existing code
      so that we have separate identification and button detection callbacks,
      selecting between them rather than using the mic_detecting flag in the
      existing callback. This also simplifies the code by introducing a more
      explicit state machine for the detecting and button states.
      
      In anticipation of future refactoring the callback is left in the signature
      for wm8958_mic_detect(), it will be removed at a later stage.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      78b76dbe
    • M
      ASoC: wm8994: Stop mic detection whenever we detect an open circuit · f02b0de0
      Mark Brown 提交于
      Jack detection will not do anything to help us detect a microphone when
      there is a fault in the cable and the debounce we have is enough to avoid
      getting an intermediate result so halt microphone detection when we detect
      that one is not present.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      f02b0de0
  2. 28 11月, 2012 1 次提交
  3. 23 11月, 2012 1 次提交
  4. 22 11月, 2012 1 次提交
  5. 24 10月, 2012 1 次提交
  6. 15 10月, 2012 4 次提交
  7. 10 10月, 2012 7 次提交
  8. 09 10月, 2012 2 次提交
    • D
      ALSA: hda - remove "Mic Jack Mode" for headset jacks (Latitude Exx30) · 8d032a8f
      David Henningsson 提交于
      Dell Latitude 5x30 and 6x30 series of machines all have
      a single 4-pin headset jack. Enabling line in mode for such jack
      is very confusing (you would only get mono input, and would have to
      use non-standard adapters), so remove the option by default.
      Signed-off-by: NDavid Henningsson <david.henningsson@canonical.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      8d032a8f
    • K
      mm: kill vma flag VM_RESERVED and mm->reserved_vm counter · 314e51b9
      Konstantin Khlebnikov 提交于
      A long time ago, in v2.4, VM_RESERVED kept swapout process off VMA,
      currently it lost original meaning but still has some effects:
      
       | effect                 | alternative flags
      -+------------------------+---------------------------------------------
      1| account as reserved_vm | VM_IO
      2| skip in core dump      | VM_IO, VM_DONTDUMP
      3| do not merge or expand | VM_IO, VM_DONTEXPAND, VM_HUGETLB, VM_PFNMAP
      4| do not mlock           | VM_IO, VM_DONTEXPAND, VM_HUGETLB, VM_PFNMAP
      
      This patch removes reserved_vm counter from mm_struct.  Seems like nobody
      cares about it, it does not exported into userspace directly, it only
      reduces total_vm showed in proc.
      
      Thus VM_RESERVED can be replaced with VM_IO or pair VM_DONTEXPAND | VM_DONTDUMP.
      
      remap_pfn_range() and io_remap_pfn_range() set VM_IO|VM_DONTEXPAND|VM_DONTDUMP.
      remap_vmalloc_range() set VM_DONTEXPAND | VM_DONTDUMP.
      
      [akpm@linux-foundation.org: drivers/vfio/pci/vfio_pci.c fixup]
      Signed-off-by: NKonstantin Khlebnikov <khlebnikov@openvz.org>
      Cc: Alexander Viro <viro@zeniv.linux.org.uk>
      Cc: Carsten Otte <cotte@de.ibm.com>
      Cc: Chris Metcalf <cmetcalf@tilera.com>
      Cc: Cyrill Gorcunov <gorcunov@openvz.org>
      Cc: Eric Paris <eparis@redhat.com>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: James Morris <james.l.morris@oracle.com>
      Cc: Jason Baron <jbaron@redhat.com>
      Cc: Kentaro Takeda <takedakn@nttdata.co.jp>
      Cc: Matt Helsley <matthltc@us.ibm.com>
      Cc: Nick Piggin <npiggin@kernel.dk>
      Cc: Oleg Nesterov <oleg@redhat.com>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Robert Richter <robert.richter@amd.com>
      Cc: Suresh Siddha <suresh.b.siddha@intel.com>
      Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
      Cc: Venkatesh Pallipadi <venki@google.com>
      Acked-by: NLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      314e51b9
  9. 08 10月, 2012 4 次提交
  10. 07 10月, 2012 1 次提交
    • A
      ARM: footbridge: nw_gpio_lock is raw_spin_lock · 45ef6ac6
      Arnd Bergmann 提交于
      bd31b859 "locking, ARM: Annotate low level hw locks as raw"
      made nw_gpio_lock a raw spinlock, but did not change all the
      users in device drivers. This fixes the remaining ones.
      
      sound/oss/waveartist.c: In function 'vnc_mute_spkr':
      sound/oss/waveartist.c:1485:2: warning: passing argument 1 of 'spinlock_check' from incompatible pointer type [enabled by default]
      include/linux/spinlock.h:272:102: note: expected 'struct spinlock_t *' but argument is of type 'struct raw_spinlock_t *'
      drivers/char/ds1620.c: In function 'netwinder_lock':
      drivers/char/ds1620.c:77:2: warning: passing argument 1 of 'spinlock_check' from incompatible pointer type [enabled by default]
      include/linux/spinlock.h:272:102: note: expected 'struct spinlock_t *' but argument is of type 'struct raw_spinlock_t *'
      drivers/char/nwflash.c: In function 'kick_open':
      drivers/char/nwflash.c:620:2: warning: passing argument 1 of 'spinlock_check' from incompatible pointer type [enabled by default]
      include/linux/spinlock.h:272:102: note: expected 'struct spinlock_t *' but argument is of type 'struct raw_spinlock_t *'
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Russell King <rmk+kernel@arm.linux.org.uk>
      45ef6ac6
  11. 06 10月, 2012 11 次提交
  12. 02 10月, 2012 1 次提交
    • A
      [media] media/radio/shark2: Fix build error caused by missing dependencies · f39a0dd6
      Arnd Bergmann 提交于
      Without this patch, building rand-0y2jSKT results in:
      
      WARNING: drivers/usb/musb/musb_hdrc.o(.devinit.text+0x9b8): Section mismatch in reference from the function musb_init_controller() to the function .init.text:dma_controller_create()
      The function __devinit musb_init_controller() references
      a function __init dma_controller_create().
      If dma_controller_create is only used by musb_init_controller then
      annotate dma_controller_create with a matching annotation.
      
      ERROR: "snd_tea575x_init" [drivers/media/radio/radio-shark.ko] undefined!
      ERROR: "snd_tea575x_exit" [drivers/media/radio/radio-shark.ko] undefined!
      make[2]: *** [__modpost] Error 1
      make[1]: *** [modules] Error 2
      make: *** [sub-make] Error 2
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      f39a0dd6
  13. 28 9月, 2012 4 次提交