19 Nov, 2014

1 commit


27 May, 2014

1 commit


26 May, 2014

4 commits

  • Plug Control Registers have two fields related to the number of established
    connections, one is 'Broadcast connection counter' and another is
    'Point-to-point connection counter'. The driver can know there are established
    connections or not to check these fields.

    This commit is for considering about JACK/FFADO streaming. Currently, when
    JACK/FFADO starts its streaming to the device, cmp_connection_establish() is
    failed expectedly. This seems to be enough but there are some devices which
    needs to change sampling frequency before trying to establish connections.
    For such devices, this functionality is needed.

    Signed-off-by: Takashi Sakamoto
    Signed-off-by: Takashi Iwai

    Takashi Sakamoto
     
  • This patch adds some macros, codes with condition of direction and new functions
    to handle output connection. Once cmp_connection_init() is executed with its
    direction, CMP input and output connection can be handled by the same way.

    Signed-off-by: Takashi Sakamoto
    Signed-off-by: Takashi Iwai

    Takashi Sakamoto
     
  • This patch adds 'direction' member to 'cmp_connection' structure to indicate
    the direction of connection. This patch also adds 'direction' argument to
    cmp_connection_init() function to determine the direction.

    The cmp_connection_init() function is exported and used in snd-firewire-speakers
    so this patch also affect it.

    This patch just add them. Actual implementation will be done by followed
    patches.

    Signed-off-by: Takashi Sakamoto
    Signed-off-by: Takashi Iwai

    Takashi Sakamoto
     
  • Referring to IEC 61883-1, oMPR and iMPR, oPCR and iPCR have some fields with
    the same role in the same position. This patch renames some macros, variables
    and function arguments with "i" in its prefix to reuse them between oMPR and
    iMPR, oPCR and iPCR.

    Signed-off-by: Takashi Sakamoto
    Signed-off-by: Takashi Iwai

    Takashi Sakamoto
     

21 Oct, 2013

1 commit

  • Add a flag to snd_fw_transaction() to allow it to abort when a bus reset
    happens. This removes most of the duplicated error handling loops that
    were required around calls to the low-level fw_run_transaction().

    Also add a flag to suppress error messages; errors are expected when we
    attempt to clean up after the device was unplugged.

    Signed-off-by: Clemens Ladisch

    Clemens Ladisch
     

18 Apr, 2012

1 commit


01 Nov, 2011

1 commit

  • Standardize the style for compiler based printf format verification.
    Standardized the location of __printf too.

    Done via script and a little typing.

    $ grep -rPl --include=*.[ch] -w "__attribute__" * | \
    grep -vP "^(tools|scripts|include/linux/compiler-gcc.h)" | \
    xargs perl -n -i -e 'local $/; while (<>) { s/\b__attribute__\s*\(\s*\(\s*format\s*\(\s*printf\s*,\s*(.+)\s*,\s*(.+)\s*\)\s*\)\s*\)/__printf($1, $2)/g ; print; }'

    [akpm@linux-foundation.org: revert arch bits]
    Signed-off-by: Joe Perches
    Cc: "Kirill A. Shutemov"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     

11 May, 2011

1 commit

  • We do not need slab allocations anymore in order to satisfy
    streaming DMA mapping constraints, thanks to commit da28947e7e36
    "firewire: ohci: avoid separate DMA mapping for small AT payloads".

    (Besides, the slab-allocated buffers that firewire-core, firewire-sbp2,
    and firedtv used to provide for 8-byte write and lock requests were
    still not fully portable since they crossed cacheline boundaries or
    shared a cacheline with unrelated CPU-accessed data. snd-firewire-lib
    got this aspect right by using an extra kmalloc/ kfree just for the
    8-byte transaction buffer.)

    This change replaces kmalloc'ed lock transaction scratch buffers in
    firewire-core, firedtv, and snd-firewire-lib by local stack allocations.
    Perhaps the most notable result of the change is simpler locking because
    there is no need to serialize usages of preallocated per-device buffers
    anymore. Also, allocations and deallocations are simpler.

    Signed-off-by: Stefan Richter
    Acked-by: Clemens Ladisch

    Stefan Richter
     

15 Mar, 2011

2 commits

  • For correct cache coherency on some architectures, DMA buffers must be
    allocated in a different cache line than data that is concurrently used
    by the CPU.

    Signed-off-by: Clemens Ladisch
    Signed-off-by: Takashi Iwai

    Clemens Ladisch
     
  • Add a driver for two playback-only FireWire devices based on the OXFW970
    chip.

    v2: better AMDTP API abstraction; fix fw_unit leak; small fixes
    v3: cache the iPCR value
    v4: FireWave constraints; fix fw_device reference counting;
    fix PCR caching; small changes and fixes
    v5: volume/mute support; fix crashing due to pcm stop races
    v6: fix build; one-channel volume for LaCie
    v7: use signed values to make volume (range checks) work; fix function
    block IDs for volume/mute; always use channel 0 for LaCie volume

    Signed-off-by: Clemens Ladisch
    Acked-by: Stefan Richter
    Tested-by: Jay Fenlason
    Signed-off-by: Takashi Iwai

    Clemens Ladisch