1. 29 Nov, 2014 7 commits
    • Takashi Sakamoto's avatar
      ALSA: dice: Split hwdep functionality into a file · 19af57b4
      Takashi Sakamoto authored
      This commit adds a file and move some codes related to hwdep functionality.
      
      This interface is designed for mixer/control application. By using hwdep
      interface, the application can get information about firewire node, can
      lock/unlock kernel streaming and can get notification at starting/stopping
      kernel streaming.
      
      Additionally, this interface give a way to read Dice notification.
      Signed-off-by: default avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      19af57b4
    • Takashi Sakamoto's avatar
      ALSA: dice: Split PCM functionality into a file · c50fb91f
      Takashi Sakamoto authored
      This commit adds a file and move some codes related to PCM functionality.
      
      Currently PCM playback is supported. PCM capture will be supported in followed
      commits.
      Signed-off-by: default avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      c50fb91f
    • Takashi Sakamoto's avatar
      ALSA: dice: Split stream functionality into a file · 6eb6c81e
      Takashi Sakamoto authored
      This commit adds a file with some helper functions for streaming, and move some
      codes into the file with some arrangements.
      
      Well-known CMP is not used to start/stop streams for Dice chipset. It's
      achieved by writing to specific address. We call this way as 'enable'.
      When devices are 'enabled', streaming starts in registered isochronous channel.
      Some helper functions are already implemented in previous commit.
      
      Basically, the stream is compliant to IEC 61883-6, so-called as AMDTP. But Dice
      has a specific quirk, so called-as 'Dual Wire'. This quirk is applied at
      176.4/192.0kHz. In this mode, each packet includes double number of events than
      number in the specification, and stream runs at a half of sampling rate.
      
      There is another quirk at bus reset. Dice chipset handles drivers' request but
      don't re-enable streaming. So stream should be stopped.
      Signed-off-by: default avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      6eb6c81e
    • Takashi Sakamoto's avatar
      ALSA: dice: Split transaction functionality into a file · 7c2d4c0c
      Takashi Sakamoto authored
      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: default avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      7c2d4c0c
    • Takashi Sakamoto's avatar
      ALSA: dice: Move file to its own directory · 14ff6a09
      Takashi Sakamoto authored
      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: default avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      14ff6a09
    • Takashi Sakamoto's avatar
      ALSA: dice: Rename structure and its members · 732d153f
      Takashi Sakamoto authored
      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: default avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      732d153f
    • Takashi Sakamoto's avatar
      ALSA: dice: suppress checkpatch.pl warnings · 81fc5ad5
      Takashi Sakamoto authored
      The checkpatch.pl generates some warnings due to:
       - C99 comment
       - a line over 80 characters
       - min() for parameters with different types
      Signed-off-by: default avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      81fc5ad5
  2. 28 Nov, 2014 5 commits
  3. 27 Nov, 2014 2 commits
  4. 22 Nov, 2014 11 commits
  5. 21 Nov, 2014 15 commits