1. 29 9月, 2008 1 次提交
    • T
      ALSA: make the CS4270 driver a new-style I2C driver · ec2cd95f
      Timur Tabi 提交于
      Update the CS4270 ALSA device driver to use the new-style I2C interface.
      Starting with the 2.6.27 PowerPC kernel, I2C devices that have entries in the
      device trees can no longer be probed by old-style I2C drivers.  The device
      tree for Freescale MPC8610 HPCD has included an entry for the CS4270 since
      2.6.25, but that entry was previously ignored by the PowerPC I2C subsystem.
      Since that's no longer the case, the best solution is to update the CS4270
      driver to a new-style interface, rather than try to revert the behavior of
      new PowerPC I2C subsystem.
      Signed-off-by: NTimur Tabi <timur@freescale.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      ec2cd95f
  2. 25 9月, 2008 2 次提交
    • T
      ALSA: remove unneeded power_mutex lock in snd_pcm_drop · 24e8fc49
      Takashi Iwai 提交于
      The power_mutex lock in snd_pcm_drop may cause a possible deadlock
      chain, and above all, it's unneeded.  Let's get rid of it.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      24e8fc49
    • T
      ALSA: fix locking in snd_pcm_open*() and snd_rawmidi_open*() · 399ccdc1
      Takashi Iwai 提交于
      The PCM and rawmidi open callbacks have a lock against card->controls_list
      but it takes a wrong one, card->controls_rwsem, instead of a right one
      card->ctl_files_rwlock.  This patch fixes them.
      
      This change also fixes automatically the potential deadlocks due to
      mm->mmap_sem in munmap and copy_from/to_user, reported by Sitsofe
      Wheeler:
      
        A: snd_ctl_elem_user_tlv(): card->controls_rwsem => mm->mmap_sem
        B: snd_pcm_open(): card->open_mutex => card->controls_rwsem
        C: munmap: mm->mmap_sem => snd_pcm_release(): card->open_mutex
      
      The patch breaks the chain.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      399ccdc1
  3. 23 9月, 2008 1 次提交
  4. 22 9月, 2008 1 次提交
  5. 06 9月, 2008 1 次提交
  6. 02 9月, 2008 2 次提交
  7. 01 9月, 2008 2 次提交
  8. 29 8月, 2008 1 次提交
    • C
      ALSA: oxygen: fix distorted output on AK4396-based cards · df91bc23
      Clemens Ladisch 提交于
      When changing the sample rate, the CMI8788's master clock output becomes
      unstable for a short time.  The AK4396 needs the master clock to do SPI
      writes, so writing to an AK4396 control register directly after a sample
      rate change will garble the value.  In our case, this leads to the DACs
      being misconfigured to I2S sample format, which results in a wrong
      output level and horrible distortions on samples louder than -6 dB.
      
      To fix this, we need to wait until the new master clock signal has
      become stable before doing SPI writes.
      Signed-off-by: NClemens Ladisch <clemens@ladisch.de>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      df91bc23
  9. 27 8月, 2008 1 次提交
  10. 26 8月, 2008 25 次提交
  11. 25 8月, 2008 3 次提交
    • P
      sched_clock: fix cpu_clock() · 354879bb
      Peter Zijlstra 提交于
      This patch fixes 3 issues:
      
      a) it removes the dependency on jiffies, because jiffies are incremented
         by a single CPU, and the tick is not synchronized between CPUs. Therefore
         relying on it to calculate a window to clip whacky TSC values doesn't work
         as it can drift around.
      
         So instead use [GTOD, GTOD+TICK_NSEC) as the window.
      
      b) __update_sched_clock() did (roughly speaking):
      
         delta = sched_clock() - scd->tick_raw;
         clock += delta;
      
         Which gives exponential growth, instead of linear.
      
      c) allows the sched_clock_cpu() value to warp the u64 without breaking.
      
      the results are more reliable sched_clock() deltas:
      
                 before       after   sched_clock
      
      cpu_clock: 15750        51312   51488
      cpu_clock: 59719        51052   50947
      cpu_clock: 15879        51249   51061
      cpu_clock: 1            50933   51198
      cpu_clock: 1            50931   51039
      cpu_clock: 1            51093   50981
      cpu_clock: 1            51043   51040
      cpu_clock: 1            50959   50938
      cpu_clock: 1            50981   51011
      cpu_clock: 1            51364   51212
      cpu_clock: 1            51219   51273
      cpu_clock: 1            51389   51048
      cpu_clock: 1            51285   51611
      cpu_clock: 1            50964   51137
      cpu_clock: 1            50973   50968
      cpu_clock: 1            50967   50972
      cpu_clock: 1            58910   58485
      cpu_clock: 1            51082   51025
      cpu_clock: 1            50957   50958
      cpu_clock: 1            50958   50957
      cpu_clock: 1006128      51128   50971
      cpu_clock: 1            51107   51155
      cpu_clock: 1            51371   51081
      cpu_clock: 1            51104   51365
      cpu_clock: 1            51363   51309
      cpu_clock: 1            51107   51160
      cpu_clock: 1            51139   51100
      cpu_clock: 1            51216   51136
      cpu_clock: 1            51207   51215
      cpu_clock: 1            51087   51263
      cpu_clock: 1            51249   51177
      cpu_clock: 1            51519   51412
      cpu_clock: 1            51416   51255
      cpu_clock: 1            51591   51594
      cpu_clock: 1            50966   51374
      cpu_clock: 1            50966   50966
      cpu_clock: 1            51291   50948
      cpu_clock: 1            50973   50867
      cpu_clock: 1            50970   50970
      cpu_clock: 998306       50970   50971
      cpu_clock: 1            50971   50970
      cpu_clock: 1            50970   50970
      cpu_clock: 1            50971   50971
      cpu_clock: 1            50970   50970
      cpu_clock: 1            51351   50970
      cpu_clock: 1            50970   51352
      cpu_clock: 1            50971   50970
      cpu_clock: 1            50970   50970
      cpu_clock: 1            51321   50971
      cpu_clock: 1            50974   51324
      Signed-off-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      354879bb
    • A
      x86: add X86_FEATURE_XMM4_2 definitions · 2a61812a
      Austin Zhang 提交于
      Added Intel processor SSE4.2 feature flag.
      
      No in-tree user at the moment, but makes the tree-merging life easier
      for the crypto tree.
      Signed-off-by: NAustin Zhang <austin.zhang@intel.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      2a61812a
    • A
      KVM: fix userspace ABI breakage · 1327138e
      Adrian Bunk 提交于
      The following part of commit 9ef621d3
      (KVM: Support mixed endian machines) changed on the size of a struct
      that is exported to userspace:
      
      include/linux/kvm.h:
      
      @@ -318,14 +318,14 @@ struct kvm_trace_rec {
       	__u32 vcpu_id;
       	union {
       		struct {
      -			__u32 cycle_lo, cycle_hi;
      +			__u64 cycle_u64;
       			__u32 extra_u32[KVM_TRC_EXTRA_MAX];
       		} cycle;
       		struct {
       			__u32 extra_u32[KVM_TRC_EXTRA_MAX];
       		} nocycle;
       	} u;
      -};
      +} __attribute__((packed));
      
      Packing a struct was the correct idea, but it packed the wrong struct.
      Signed-off-by: NAdrian Bunk <bunk@kernel.org>
      Signed-off-by: NAvi Kivity <avi@qumranet.com>
      1327138e