1. 08 11月, 2012 2 次提交
    • T
      ALSA: usb-audio: Fix crash at re-preparing the PCM stream · f58161ba
      Takashi Iwai 提交于
      There are bug reports of a crash with USB-audio devices when PCM
      prepare is performed immediately after the stream is stopped via
      trigger callback.  It turned out that the problem is that we don't
      wait until all URBs are killed.
      
      This patch adds a new function to synchronize the pending stop
      operation on an endpoint, and calls in the prepare callback for
      avoiding the crash above.
      
      Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=49181Reported-and-tested-by: NArtem S. Tashkinov <t.artem@lycos.com>
      Cc: <stable@vger.kernel.org> [v3.6]
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      f58161ba
    • A
      ALSA: hdspm - Fix sync check reporting on RME RayDAT · d1a3c98d
      Adrian Knoth 提交于
      The RayDAT reports the sync status of its inputs in consecutive bit
      positions, so all we do in hdspm_s1_sync_check is to iterate over idx:
      
          status = hdspm_read(hdspm, HDSPM_RD_STATUS_1);
      
          lock = (status & (0x1<<idx)) ? 1 : 0;
          sync = (status & (0x100<<idx)) ? 1 : 0;
      
      The index is given in kcontrol->private_value:
      
          HDSPM_SYNC_CHECK("WC SyncCheck", 0),
          HDSPM_SYNC_CHECK("AES SyncCheck", 1),
          HDSPM_SYNC_CHECK("SPDIF SyncCheck", 2),
          HDSPM_SYNC_CHECK("ADAT1 SyncCheck", 3),
          HDSPM_SYNC_CHECK("ADAT2 SyncCheck", 4),
          HDSPM_SYNC_CHECK("ADAT3 SyncCheck", 5),
          HDSPM_SYNC_CHECK("ADAT4 SyncCheck", 6),
          HDSPM_SYNC_CHECK("TCO SyncCheck", 7),
          HDSPM_SYNC_CHECK("SYNC IN SyncCheck", 8),
      
      The patch corrects the indicated sync flags by passing the proper index
      value to hdspm_s1_sync_check().
      Signed-off-by: NAdrian Knoth <adi@drcomp.erfurt.thur.de>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      d1a3c98d
  2. 07 11月, 2012 3 次提交
  3. 05 11月, 2012 5 次提交
  4. 04 11月, 2012 2 次提交
  5. 31 10月, 2012 1 次提交
  6. 30 10月, 2012 6 次提交
  7. 28 10月, 2012 3 次提交
  8. 26 10月, 2012 3 次提交
  9. 24 10月, 2012 1 次提交
  10. 22 10月, 2012 1 次提交
  11. 21 10月, 2012 4 次提交
  12. 20 10月, 2012 9 次提交