1. 15 11月, 2016 2 次提交
    • T
      ALSA: emu10k1: Simplify firmware loader code · 4e4dfe4c
      Takashi Iwai 提交于
      The EMU1010 support in emu10k1 driver has two request_firmware()
      calls, one for the main board and one for the dock.  Both call
      patterns are fairly similar, and we can simplify it by introducing a
      helper function and a table instead of the open switch/case.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      4e4dfe4c
    • T
      ALSA: emu10k1: Fix emu1010 dock attach check · e8c44abe
      Takashi Iwai 提交于
      The emu1010_firmware_thread() checks the previous dock status, but a
      wrong register is recorded as the last status when the dock is plugged
      in.  Usually this isn't a big issue since this value gets overwritten
      by the next loop after one second.  But when a dock is unplugged
      immediately after plugging, it means essentially missing undock
      handling.
      
      This patch addresses it by remembering the correct register value.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      e8c44abe
  2. 30 1月, 2016 1 次提交
  3. 29 5月, 2015 1 次提交
  4. 29 4月, 2015 1 次提交
    • P
      ALSA: emu10k1: Emu10k2 32 bit DMA mode · 7241ea55
      Peter Zubaj 提交于
      Looks like audigy emu10k2 (probably emu10k1 - sb live too) support two
      modes for DMA. Second mode is useful for 64 bit os with more then 2 GB
      of ram (fixes problems with big soundfont loading)
      
      1) 32MB from 2 GB address space using 8192 pages (used now as default)
      2) 16MB from 4 GB address space using 4096 pages
      
      Mode is set using HCFG_EXPANDED_MEM flag in HCFG register.
      Also format of emu10k2 page table is then different.
      Signed-off-by: NPeter Zubaj <pzubaj@marticonet.sk>
      Tested-by: NTakashi Iwai <tiwai@suse.de>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      7241ea55
  5. 27 4月, 2015 1 次提交
    • T
      ALSA: emu10k1: Fix card shortname string buffer overflow · d0226082
      Takashi Iwai 提交于
      Some models provide too long string for the shortname that has 32bytes
      including the terminator, and it results in a non-terminated string
      exposed to the user-space.  This isn't too critical, though, as the
      string is stopped at the succeeding longname string.
      
      This patch fixes such entries by dropping "SB" prefix (it's enough to
      fit within 32 bytes, so far).  Meanwhile, it also changes strcpy()
      with strlcpy() to make sure that this kind of problem won't happen in
      future, too.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      d0226082
  6. 16 4月, 2015 1 次提交
    • Q
      ALSA: remove deprecated use of pci api · 412b979c
      Quentin Lambert 提交于
      Replace occurences of the pci api by appropriate call to the dma api.
      
      A simplified version of the semantic patch that finds this problem is as
      follows: (http://coccinelle.lip6.fr)
      
      @deprecated@
      idexpression id;
      position p;
      @@
      
      (
        pci_dma_supported@p ( id, ...)
      |
        pci_alloc_consistent@p ( id, ...)
      )
      
      @bad1@
      idexpression id;
      position deprecated.p;
      @@
      ...when != &id->dev
         when != pci_get_drvdata ( id )
         when != pci_enable_device ( id )
      (
        pci_dma_supported@p ( id, ...)
      |
        pci_alloc_consistent@p ( id, ...)
      )
      
      @depends on !bad1@
      idexpression id;
      expression direction;
      position deprecated.p;
      @@
      
      (
      - pci_dma_supported@p ( id,
      + dma_supported ( &id->dev,
      ...
      + , GFP_ATOMIC
        )
      |
      - pci_alloc_consistent@p ( id,
      + dma_alloc_coherent ( &id->dev,
      ...
      + , GFP_ATOMIC
        )
      )
      Signed-off-by: NQuentin Lambert <lambert.quentin@gmail.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      412b979c
  7. 11 4月, 2015 1 次提交
  8. 06 4月, 2015 1 次提交
  9. 03 11月, 2014 1 次提交
  10. 26 2月, 2014 1 次提交
  11. 12 2月, 2014 1 次提交
  12. 24 4月, 2013 1 次提交
  13. 25 2月, 2013 1 次提交
  14. 22 2月, 2013 1 次提交
  15. 07 12月, 2012 1 次提交
  16. 23 11月, 2012 3 次提交
  17. 18 10月, 2012 1 次提交
  18. 15 8月, 2012 1 次提交
  19. 01 1月, 2012 1 次提交
  20. 01 11月, 2011 1 次提交
  21. 13 6月, 2011 1 次提交
  22. 10 6月, 2011 1 次提交
  23. 25 2月, 2011 1 次提交
  24. 16 3月, 2010 1 次提交
  25. 26 2月, 2009 1 次提交
    • H
      ALSA: sound/pci/emu10k1: fix sparse warning: different signedness · 730d45f9
      Hannes Eder 提交于
      Fix this sparse warnings:
        sound/pci/emu10k1/emu10k1_main.c:723:66: warning: incorrect type in argument 3 (different signedness)
        sound/pci/emu10k1/emu10k1_main.c:724:68: warning: incorrect type in argument 3 (different signedness)
        sound/pci/emu10k1/emu10k1_main.c:748:74: warning: incorrect type in argument 3 (different signedness)
        sound/pci/emu10k1/emu10k1_main.c:751:66: warning: incorrect type in argument 3 (different signedness)
        sound/pci/emu10k1/emu10k1_main.c:759:73: warning: incorrect type in argument 3 (different signedness)
        sound/pci/emu10k1/emu10k1_main.c:760:73: warning: incorrect type in argument 3 (different signedness)
        sound/pci/emu10k1/emu10k1_main.c:837:50: warning: incorrect type in argument 3 (different signedness)
        sound/pci/emu10k1/emu10k1_main.c:845:50: warning: incorrect type in argument 3 (different signedness)
        sound/pci/emu10k1/emu10k1_main.c:881:50: warning: incorrect type in argument 3 (different signedness)
        sound/pci/emu10k1/emu10k1_main.c:889:57: warning: incorrect type in argument 3 (different signedness)
        sound/pci/emu10k1/emu10k1_main.c:890:57: warning: incorrect type in argument 3 (different signedness)
        sound/pci/emu10k1/emu10k1_main.c:895:60: warning: incorrect type in argument 3 (different signedness)
        sound/pci/emu10k1/emu10k1_main.c:897:60: warning: incorrect type in argument 3 (different signedness)
        sound/pci/emu10k1/emu10k1_main.c:899:60: warning: incorrect type in argument 3 (different signedness)
        sound/pci/emu10k1/emu10k1_main.c:910:56: warning: incorrect type in argument 3 (different signedness)
        sound/pci/emu10k1/emu10k1_main.c:914:57: warning: incorrect type in argument 3 (different signedness)
        sound/pci/emu10k1/emu10k1_main.c:918:56: warning: incorrect type in argument 3 (different signedness)
        sound/pci/emu10k1/emu10k1_main.c:922:57: warning: incorrect type in argument 3 (different signedness)
        sound/pci/emu10k1/emu10k1_main.c:924:58: warning: incorrect type in argument 3 (different signedness)
        sound/pci/emu10k1/emu10k1_main.c:936:60: warning: incorrect type in argument 3 (different signedness)
        sound/pci/emu10k1/emu10k1_main.c:1073:60: warning: incorrect type in argument 3 (different signedness)
        sound/pci/emu10k1/emu10k1_main.c:1088:60: warning: incorrect type in argument 3 (different signedness)
        sound/pci/emu10k1/emu10k1_main.c:1093:58: warning: incorrect type in argument 3 (different signedness)
      Signed-off-by: NHannes Eder <hannes@hanneseder.net>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      730d45f9
  26. 24 2月, 2009 1 次提交
  27. 05 2月, 2009 1 次提交
  28. 03 11月, 2008 1 次提交
  29. 24 10月, 2008 1 次提交
  30. 22 10月, 2008 1 次提交
  31. 21 10月, 2008 1 次提交
  32. 06 6月, 2008 1 次提交
    • J
      sound: emu10k1 - fix system hang with Audigy2 ZS Notebook PCMCIA card · 868e15db
      Jaroslav Franek 提交于
      When the Linux kernel is compiled with CONFIG_DEBUG_SHIRQ=y,
      the Soundblaster Audigy2 ZS Notebook PCMCIA card causes the
      system hang during boot (udev stage) or when the card is hot-plug.
      The CONFIG_DEBUG_SHIRQ flag is by default 'y' with all Fedora
      kernels since 2.6.23. The problem was reported as
      https://bugzilla.redhat.com/show_bug.cgi?id=326411
      
      The issue was hunted down to the snd_emu10k1_create() routine:
      
      /* pseudo-code */
      snd_emu10k1_create(...) {
      	...
      	request_irq(... IRQF_SHARED ...) {
      		register the irq handler
      		#ifdef CONFIG_DEBUG_SHIRQ
      		call the irq handler: snd_emu10k1_interrupt() {
      			poll I/O port   // <---- !! system hangs
      			...
      		}
      		#endif
      	}
      	...
      	snd_emu10k1_cardbus_init(...) {
      		initialize I/O ports
      	}
      	...
      }
      
      The early access to I/O port in the interrupt handler causes
      the freeze. Obviously it is necessary to init the I/O ports
      before accessing them. This patch moves the registration of
      the irq handler after the initialization of the I/O ports.
      Signed-off-by: NJaroslav Franek <jarin.franek@post.cz>
      Acked-by: NJames Courtier-Dutton <James@superbug.co.uk>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      868e15db
  33. 02 6月, 2008 1 次提交
  34. 24 4月, 2008 1 次提交
  35. 01 2月, 2008 3 次提交