Commit 59117306 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

Merge tag 'tags/virtio_snd-5.12-rc2' into for-next

ALSA: add virtio sound driver

This series implements a driver part of the virtio sound device
specification v8 [1].

The driver supports PCM playback and capture substreams, jack and
channel map controls. A message-based transport is used to write/read
PCM frames to/from a device.

As a device part was used OpenSynergy proprietary implementation.

v7 changes:
 - Moved the snd_pcm_period_elapsed() call from the interrupt handler to the
   kernel worker for being consistent with the non-atomic mode of the PCM
   device.
 - Removed SNDRV_PCM_INFO_RESUME flag. Now ops->prepare() sets the parameters
   for the substream if it was previously suspended.
 - Some additional code readability improvements/comments.

[1] https://lists.oasis-open.org/archives/virtio-dev/202003/msg00185.html

Link: https://lore.kernel.org/r/20210302164709.3142702-1-anton.yakovlev@opensynergy.com
parents 04f7791b 575483e9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -430,13 +430,13 @@ fifo_expire_async
-----------------

This parameter is used to set the timeout of asynchronous requests. Default
value of this is 248ms.
value of this is 250ms.

fifo_expire_sync
----------------

This parameter is used to set the timeout of synchronous requests. Default
value of this is 124ms. In case to favor synchronous requests over asynchronous
value of this is 125ms. In case to favor synchronous requests over asynchronous
one, this value should be decreased relative to fifo_expire_async.

low_latency
+1 −1
Original line number Diff line number Diff line
@@ -109,7 +109,7 @@ required:
  - resets
  - ddc

unevaluatedProperties: false
additionalProperties: false

examples:
  - |
+7 −7
Original line number Diff line number Diff line
@@ -49,10 +49,14 @@ properties:

  # See ../video-interfaces.txt for more details
  port:
    type: object
    $ref: /schemas/graph.yaml#/properties/port
    additionalProperties: false

    properties:
      endpoint:
        type: object
        $ref: /schemas/media/video-interfaces.yaml#
        unevaluatedProperties: false

        properties:
          data-lanes:
            oneOf:
@@ -65,11 +69,7 @@ properties:
                  - const: 1
                  - const: 2

          link-frequencies:
            allOf:
              - $ref: /schemas/types.yaml#/definitions/uint64-array
            description:
              Allowed data bus frequencies.
          link-frequencies: true

        required:
          - data-lanes
+2 −3
Original line number Diff line number Diff line
@@ -31,7 +31,8 @@ properties:
    maxItems: 1

  port:
    $ref: /schemas/graph.yaml#/$defs/port-base
    $ref: /schemas/graph.yaml#/properties/port
    additionalProperties: false

    properties:
      endpoint:
@@ -41,8 +42,6 @@ properties:
        properties:
          clock-noncontinuous: true

    additionalProperties: false

required:
  - compatible
  - reg
+5 −11
Original line number Diff line number Diff line
@@ -44,19 +44,17 @@ properties:
    description: Reset Pin GPIO Control (active low)

  port:
    type: object
    description: MIPI CSI-2 transmitter port
    $ref: /schemas/graph.yaml#/properties/port
    additionalProperties: false

    properties:
      endpoint:
        type: object
        $ref: /schemas/media/video-interfaces.yaml#
        unevaluatedProperties: false

        properties:
          remote-endpoint: true

          link-frequencies:
            $ref: /schemas/types.yaml#/definitions/uint64-array
            description: Allowed MIPI CSI-2 link frequencies
          link-frequencies: true

          data-lanes:
            minItems: 1
@@ -65,10 +63,6 @@ properties:
        required:
          - data-lanes
          - link-frequencies
          - remote-endpoint

    required:
      - endpoint

required:
  - compatible
Loading