1. 20 10月, 2012 2 次提交
  2. 20 8月, 2012 1 次提交
  3. 31 5月, 2012 1 次提交
  4. 24 4月, 2012 1 次提交
  5. 08 3月, 2012 1 次提交
  6. 11 1月, 2012 1 次提交
    • A
      ALSA: hdspm - Provide unique driver id based on card serial · f7de8ba3
      Adrian Knoth 提交于
      Before, /proc/asound looked like this:
      
       2 [Default        ]: HDSPM - RME RayDAT_f1cd85
                            RME RayDAT S/N 0xf1cd85 at 0xf7300000, irq 18
      
      In case of a second HDSPM card, its name would be Default_1. This is
      cumbersome, because the order of the cards isn't stable across reboots.
      
      To help userspace tools referring to the correct card, this commit
      provides a unique id for each card:
      
       2 [HDSPMxf1cd85   ]: HDSPM - RME RayDAT_f1cd85
                            RME RayDAT S/N 0xf1cd85 at 0xf7300000, irq 18
      
      In this example, userspace (configuration files) would then use
      hw:HDSPMxf1cd85 to choose the right card.
      
      The serial is masked to 24bits, so this string is always shorter than
      sixteen chars.
      Signed-off-by: NAdrian Knoth <adi@drcomp.erfurt.thur.de>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      f7de8ba3
  7. 08 1月, 2012 1 次提交
  8. 19 12月, 2011 1 次提交
  9. 22 11月, 2011 1 次提交
  10. 01 11月, 2011 1 次提交
  11. 31 10月, 2011 2 次提交
  12. 23 9月, 2011 2 次提交
    • D
      ALSA: hdspm - cleanup __user tags in ioctl() · 2ca595ab
      Dan Carpenter 提交于
      This makes the code cleaner and silences a Sparse complaint:
      sound/pci/rme9652/hdspm.c:6341:23: warning: incorrect type in assignment (incompatible argument 4 (different address spaces))
      sound/pci/rme9652/hdspm.c:6341:23:    expected int ( *ioctl )( ... )
      sound/pci/rme9652/hdspm.c:6341:23:    got int ( static [toplevel] *<noident> )( ... )
      sound/pci/rme9652/hdspm.c:6102:44: warning: dereference of noderef expression
      sound/pci/rme9652/hdspm.c:6225:50: warning: dereference of noderef expression
      sound/pci/rme9652/hdspm.c:6264:50: warning: dereference of noderef expression
      sound/pci/rme9652/hdspm.c:6283:50: warning: dereference of noderef expression
      sound/pci/rme9652/hdspm.c:6289:59: warning: dereference of noderef expression
      Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      2ca595ab
    • D
      ALSA: hdspm - potential info leak in snd_hdspm_hwdep_ioctl() · 643d6bbb
      Dan Carpenter 提交于
      Smatch has a new check for Rosenberg type information leaks where
      structs are copied to the user with uninitialized stack data in them.
      
      The status struct has a hole in it, and on some paths not all the
      members were initialized.
      
      struct hdspm_status {
              unsigned char              card_type;            /*     0     1 */
              /* XXX 3 bytes hole, try to pack */
              enum hdspm_syncsource      autosync_source;      /*     4     4 */
              long long unsigned int     card_clock;           /*     8     8 */
      
      The hdspm_version struct had holes in it as well.
      
      struct hdspm_version {
              unsigned char              card_type;            /*     0     1 */
              char                       cardname[20];         /*     1    20 */
              /* XXX 3 bytes hole, try to pack */
              unsigned int               serial;               /*    24     4 */
              short unsigned int         firmware_rev;         /*    28     2 */
              /* XXX 2 bytes hole, try to pack */
              int                        addons;               /*    32     4 */
      Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      643d6bbb
  13. 15 8月, 2011 8 次提交
  14. 05 8月, 2011 1 次提交
  15. 29 7月, 2011 3 次提交
  16. 30 6月, 2011 1 次提交
    • T
      ALSA: hdspm - Fix compile warnings with PPC · 286bed0f
      Takashi Iwai 提交于
      The char can be unsigned on some architectures.  Since the code checks
      the negative values, they should be declared as signed char explicitly.
      
        sound/pci/rme9652/hdspm.c:5449: warning: comparison is always false due to limited range of data type
        sound/pci/rme9652/hdspm.c:5462: warning: comparison is always false due to limited range of data type
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      286bed0f
  17. 13 6月, 2011 3 次提交
  18. 10 6月, 2011 2 次提交
    • T
      ALSA: use KBUILD_MODNAME for request_irq argument in sound/pci/* · 934c2b6d
      Takashi Iwai 提交于
      The name argument of request_irq() appears in /proc/interrupts, and
      it's quite ugly when the name entry contains a space or special letters.
      In general, it's simpler and more readable when the module name appears
      there, so let's replace all entries with KBUILD_MODNAME.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      934c2b6d
    • T
      ALSA: Use KBUILD_MODNAME for pci_driver.name entries · 3733e424
      Takashi Iwai 提交于
      The convention for pci_driver.name entry in kernel drivers seem to be
      the module name or equivalent ones.  But, so far, almost all PCI sound
      drivers use more verbose name like "ABC Xyz (12)", and these are fairly
      confusing when appearing as a file name.
      
      This patch converts the all pci_driver.name entries in sound/pci/* to
      use KBUILD_MODNAME for more unified appearance.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      3733e424
  19. 31 3月, 2011 1 次提交
  20. 08 3月, 2011 1 次提交
  21. 28 2月, 2011 4 次提交
    • A
      ALSA: hdspm - Fix midi port initialization · 7c7102b7
      Adrian Knoth 提交于
      Depending on the model and the presence of a TCO module, the number of
      midi ports varies. Some have 1 port (MADIface), some have 2 (default),
      with TCO, there are 3.
      
      Don't hardcode the number of midi ports to initialize.
      
      This patch also fixes a boot lockup on MADIface.
      
      [Coding-style fixes by tiwai]
      Signed-off-by: NAdrian Knoth <adi@drcomp.erfurt.thur.de>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      7c7102b7
    • A
      ALSA: hdspm - Abort on unknown firmware revision · 5027f347
      Adrian Knoth 提交于
      Don't continue if we cannot detect the real card type, otherwise, all
      subsequent functions, especially strcpy(), would fail, leaving the whole
      driver in an unusable state.
      
      Without such a protection, dmesg would look like this:
      
      Pid: 1525, comm: modprobe Not tainted 2.6.38-rc6 #1 MSI MS-7250/MS-7250
      EIP: 0060:[<c114e700>] EFLAGS: 00010296 CPU: 1
      EIP is at strcpy+0x10/0x30
      EAX: f4d33e58 EBX: f5990800 ECX: f4d33e58 EDX: 00000000
      ESI: 00000000 EDI: f4d33e58 EBP: f5990930 ESP: f3dd3e0c
      DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
      f53d4204 00000000 f90bfc03 00000001 00000001 f3dd3e64 c10fedff f3dd3e7c
      f3d854e4 f53d4000 c10307b8 00000001 c10307b8 f5990860 c10307b8 00000001
      c10332e5 f59908bc c12f4339 f59908bc f5990860 c11ef207 f4d33e00 f53d4000
      [<f90bfc03>] ? snd_hdspm_probe+0x7e7/0x1166 [snd_hdspm]
      [<c10fedff>] ? __sysfs_add_one+0x1f/0xf0
      [<c10307b8>] ? get_parent_ip+0x8/0x20
      [<c10307b8>] ? get_parent_ip+0x8/0x20
      [<c10307b8>] ? get_parent_ip+0x8/0x20
      [<c10332e5>] ? add_preempt_count+0xa5/0xd0
      [<c12f4339>] ? _raw_spin_lock_irqsave+0x19/0x40
      [<c11ef207>] ? pm_runtime_enable+0x17/0x80
      [<c1160172>] ? local_pci_probe+0x42/0xb0
      [<c1161091>] ? pci_device_probe+0x61/0x80
      [<c11e9587>] ? driver_probe_device+0x77/0x180
      [<c11600f0>] ? pci_match_device+0xa0/0xc0
      [<c11e9709>] ? __driver_attach+0x79/0x80
      [<c11e9690>] ? __driver_attach+0x0/0x80
      [<c11e8e32>] ? bus_for_each_dev+0x52/0x80
      [<c11e9416>] ? driver_attach+0x16/0x20
      [<c11e9690>] ? __driver_attach+0x0/0x80
      [<c11e8771>] ? bus_add_driver+0xa1/0x220
      [<c1160f20>] ? pci_device_remove+0x0/0xf0
      [<c11e99a3>] ? driver_register+0x63/0x120
      [<c11612bd>] ? __pci_register_driver+0x3d/0xb0
      [<c1001132>] ? do_one_initcall+0x32/0x160
      [<f90d6000>] ? alsa_card_hdspm_init+0x0/0x14 [snd_hdspm]
      [<c10676a9>] ? sys_init_module+0x99/0x1e0
      [<c10ade3d>] ? sys_close+0x6d/0xc0
      [<c1002c90>] ? sysenter_do_call+0x12/0x26
      ---[ end trace 239f0661c558378b ]---
      Signed-off-by: NAdrian Knoth <adi@drcomp.erfurt.thur.de>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      5027f347
    • A
      ALSA: hdspm - Add updated firmware revision for AES32 · 526ea867
      Adrian Knoth 提交于
      In contrast to the PCIe version (RME AES), the PCI version (RME AES32)
      has a different firmware revision.
      
      This patch adds the missing PCI revision.
      Signed-off-by: NAdrian Knoth <adi@drcomp.erfurt.thur.de>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      526ea867
    • A
  22. 23 2月, 2011 1 次提交