1. 30 11月, 2014 4 次提交
    • T
      ALSA: dice: Split transaction functionality into a file · 7c2d4c0c
      Takashi Sakamoto 提交于
      This commit adds a file with some helper functions for transaction, and move
      some codes into the file with some arrangements.
      
      For Dice chipset, well-known FCP or AV/C commands are not used to control
      devices. It's achieved by read/write transactions into specific addresses.
      
      Dice's address area is split into 5 areas. Each area has its own role. The
      offset for each area can be got by reading head of the address area. By
      reading these areas, drivers can get to know device status. By writing these
      areas, drivers can change device status.
      
      Dice has a specific mechanism called as 'notification'. When device status is
      changed, Dice devices tells the event by sending transaction. This notification
      is sent to an address which drivers register in advance. But this causes an
      issue to drivers.
      
      To handle the notification, drivers need to allocate its own callback function
      to the address region in host controller. This region is exclusive. For the
      other applications, drivers must give a mechanism to read the received
      notification. For this purpose, Dice driver already implements hwdep interface.
      
      Dice chipset doesn't allow drivers to register several addresses. In this
      reason, when this driver is applied to a device, the other drivers should
      _not_ try to register its own address to the device.
      Signed-off-by: NTakashi Sakamoto <o-takashi@sakamocchi.jp>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      7c2d4c0c
    • T
      ALSA: dice: Move file to its own directory · 14ff6a09
      Takashi Sakamoto 提交于
      In followed commits, dice driver is split into several files. For easily
      managing these files, this commit adds subdirectory and move file into
      the directory.
      Signed-off-by: NTakashi Sakamoto <o-takashi@sakamocchi.jp>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      14ff6a09
    • T
      ALSA: dice: Rename structure and its members · 732d153f
      Takashi Sakamoto 提交于
      Currently, dice driver supports AMDTP out-stream. In followed commits, AMDTP
      in-stream will be supported but current name of members in dice structure
      are not propper. This commit renames these members to proper name.
      
      Additionally, for easily distinguishing local symbols from structure tag,
      rename dice tag into snd_dice.
      Signed-off-by: NTakashi Sakamoto <o-takashi@sakamocchi.jp>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      732d153f
    • T
      ALSA: dice: suppress checkpatch.pl warnings · 81fc5ad5
      Takashi Sakamoto 提交于
      The checkpatch.pl generates some warnings due to:
       - C99 comment
       - a line over 80 characters
       - min() for parameters with different types
      Signed-off-by: NTakashi Sakamoto <o-takashi@sakamocchi.jp>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      81fc5ad5
  2. 29 11月, 2014 3 次提交
  3. 28 11月, 2014 2 次提交
    • T
      ALSA: hda - Allow forcibly enabling/disabling snoop · 7c732015
      Takashi Iwai 提交于
      User can pass snoop option to enable/disable the snoop behavior, but
      currently azx_check_snoop_available() always turns it off for some
      devices.  For better debuggability, change the parameter as bint, and
      allow user to enable/disable forcibly the snoop when specified via the
      module option.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      7c732015
    • T
      ALSA: hda - Add AZX_DCAPS_SNOOP_OFF (and refactor snoop setup) · 37e661ee
      Takashi Iwai 提交于
      Add a new driver_caps bit, AZX_DCAPS_SNOOP_OFF, to set the snoop off
      as default.  This new bit is used for the checks in
      azx_check_snoop_available().  Most of case-switches are replaced with
      the new dcaps in each entry.
      
      While working on it, for avoiding to spend more bits, combine three
      bits AZX_DCAPS_SNOOP_SCH, AZX_DCAPS_SNOOP_ATI and
      AZX_DCAPS_SNOOP_NVIDIA bits into a flat type of two bits.  This
      reduces the bits usages, and assign AZX_DCAPS_OFF to this empty bit
      now.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      37e661ee
  4. 27 11月, 2014 2 次提交
  5. 23 11月, 2014 11 次提交
  6. 22 11月, 2014 3 次提交
  7. 21 11月, 2014 15 次提交