05 Jun, 2019

1 commit

  • Based on 1 normalized pattern(s):

    licensed under the terms of the gnu general public license version 2

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 88 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Alexios Zavras
    Reviewed-by: Allison Randal
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190530000437.521539229@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

06 Apr, 2017

1 commit

  • In ALSA firewire stack, some AV/C commands are supported, including
    vendor's extensions. Drivers includes response parser of each command,
    according to its requirements, while the parser is written with loose
    fashion in two points; error check and length check. This doesn't cause
    any issues such as kernel corruption, but should be improved.

    This commit modifies evaluations of return value on each parsers.

    Reported-by: Dan Carpenter
    Signed-off-by: Takashi Sakamoto
    Signed-off-by: Takashi Iwai

    Takashi Sakamoto
     

29 Sep, 2015

1 commit


03 Jun, 2014

1 commit


26 May, 2014

2 commits

  • This commit adds three commands, which may be used by some firewire device
    drivers. These commands are defined in 'AV/C Digital Interface Command Set
    General Specification Version 4.2 (2004006, 1394TA)'.

    1. PLUG INFO command (clause 10.1)
    2. INPUT PLUG SIGNAL FORMAT command (clause 10.10)
    3. OUTPUT PLUG SIGNAL FORMAT command (clause 10.11)

    By the command 1, the drivers can get the number of plugs for AV/C unit or
    subunit.
    By the command 2 and 3, the drivers can get/set sampling frequency.

    The 'firewire-speakers' already uses INPUT PLUG SIGNAL FORMAT command to set
    sampling rate. So this commit also affects the driver.

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

    Takashi Sakamoto
     
  • Some devices based on BeBoB use this type of AV/C transaction.

    'Deferred Transaction' is defined in 'AV/C Digital Interface Command Set
    General Specification' and is used by targets to make a response deferred
    during processing it.

    If a target may not be able to complete a command within 100msec since
    receiving the command, then the target shall return INTERIM response,
    to which final response will follow later. CONTROL/NOTIFY commands are
    allowed for deferred transaction.

    In the specification, devices allow to send INTERIM response just one time.
    But this commit allows to handle several INTERIM response with two reasons.
    One reason is to simplify codes, and another reason is to prepare for
    devices which is out of specification.

    There is an issue. In the specification, the interval between INTERIM
    response and final response is 'Unspecified interval'. The specification
    depends on each subunit specification for this interval.

    But we promise to finish this function for caller. In this reason, I use
    FCP_TIMEOUT_MS for this interval. Currently it's 125msec. When we find
    devices which needs more time for this interval, then let us add some codes
    to apply more interval for 'Unspecified interval'.

    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
     

16 Mar, 2011

1 commit


15 Mar, 2011

1 commit

  • 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