Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…git/broonie/sound into for-next

ASoC: Updates for v6.7

This is quite a large set of changes but mostly due to API cleanups and
in driver specific ways rather than due to anything subsystem wide.
Highlights include:

 - Standardisation of API prefixes on snd_soc_, removing asoc_.
 - GPIO API usage improvements.
 - Support for HDA patches.
 - Lots of work on SOF, including crash dump support.
 - Support for AMD platforms with es83xx, Awinc AT87390, many Intel
   platforms, many Mediatek platforms, Qualcomm SM6115,  Richtek RTQ9128
   and Texas Instruments TAS575x.

[ the merge conflicts around SOF Intel HD-audio and CS35L41 subcodec
  drivers are resolved here -- tiwai ]
  • Loading branch information
tiwai committed Oct 21, 2023
2 parents e6d0c13 + 45f1b12 commit 39cd06e
Show file tree
Hide file tree
Showing 597 changed files with 10,333 additions and 5,183 deletions.
20 changes: 6 additions & 14 deletions Documentation/devicetree/bindings/sound/audio-graph-port.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,17 @@ select: false

definitions:
port-base:
$ref: /schemas/graph.yaml#/$defs/port-base
allOf:
- $ref: /schemas/graph.yaml#/$defs/port-base
- $ref: /schemas/sound/dai-params.yaml#
properties:
convert-rate:
$ref: /schemas/sound/dai-params.yaml#/$defs/dai-sample-rate
convert-channels:
$ref: /schemas/sound/dai-params.yaml#/$defs/dai-channels
convert-sample-format:
$ref: /schemas/sound/dai-params.yaml#/$defs/dai-sample-format
mclk-fs:
$ref: simple-card.yaml#/definitions/mclk-fs

endpoint-base:
$ref: /schemas/graph.yaml#/$defs/endpoint-base
allOf:
- $ref: /schemas/graph.yaml#/$defs/endpoint-base
- $ref: /schemas/sound/dai-params.yaml#
properties:
mclk-fs:
$ref: simple-card.yaml#/definitions/mclk-fs
Expand Down Expand Up @@ -68,12 +66,6 @@ definitions:
- pdm
- msb
- lsb
convert-rate:
$ref: /schemas/sound/dai-params.yaml#/$defs/dai-sample-rate
convert-channels:
$ref: /schemas/sound/dai-params.yaml#/$defs/dai-channels
convert-sample-format:
$ref: /schemas/sound/dai-params.yaml#/$defs/dai-sample-format

dai-tdm-slot-num:
description: Number of slots in use.
Expand Down
9 changes: 3 additions & 6 deletions Documentation/devicetree/bindings/sound/audio-graph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ title: Audio Graph
maintainers:
- Kuninori Morimoto <[email protected]>

allOf:
- $ref: /schemas/sound/dai-params.yaml#

properties:
dais:
$ref: /schemas/types.yaml#/definitions/phandle-array
Expand All @@ -30,12 +33,6 @@ properties:
widget ("Microphone", "Line", "Headphone", "Speaker"), the
second being the machine specific name for the widget.
$ref: /schemas/types.yaml#/definitions/non-unique-string-array
convert-rate:
$ref: /schemas/sound/dai-params.yaml#/$defs/dai-sample-rate
convert-channels:
$ref: /schemas/sound/dai-params.yaml#/$defs/dai-channels
convert-sample-format:
$ref: /schemas/sound/dai-params.yaml#/$defs/dai-sample-format

pa-gpios:
maxItems: 1
Expand Down
58 changes: 58 additions & 0 deletions Documentation/devicetree/bindings/sound/awinic,aw87390.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/awinic,aw87390.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Awinic Aw87390 Audio Amplifier

maintainers:
- Weidong Wang <[email protected]>

description:
The awinic aw87390 is specifically designed to improve
the musical output dynamic range, enhance the overall
sound quallity, which is a new high efficiency, low
noise, constant large volume, 6th Smart K audio amplifier.

allOf:
- $ref: dai-common.yaml#

properties:
compatible:
const: awinic,aw87390

reg:
maxItems: 1

"#sound-dai-cells":
const: 0

awinic,audio-channel:
description:
It is used to distinguish multiple PA devices, so that different
configurations can be loaded to different PA devices
$ref: /schemas/types.yaml#/definitions/uint32
minimum: 0
maximum: 7

required:
- compatible
- reg
- "#sound-dai-cells"
- awinic,audio-channel

unevaluatedProperties: false

examples:
- |
i2c {
#address-cells = <1>;
#size-cells = <0>;
audio-codec@58 {
compatible = "awinic,aw87390";
reg = <0x58>;
#sound-dai-cells = <0>;
awinic,audio-channel = <0>;
};
};
32 changes: 28 additions & 4 deletions Documentation/devicetree/bindings/sound/awinic,aw88395.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ description:
digital Smart K audio amplifier with an integrated 10.25V
smart boost convert.

allOf:
- $ref: dai-common.yaml#

properties:
compatible:
enum:
Expand All @@ -32,11 +29,36 @@ properties:
reset-gpios:
maxItems: 1

awinic,audio-channel:
description:
It is used to distinguish multiple PA devices, so that different
configurations can be loaded to different PA devices
$ref: /schemas/types.yaml#/definitions/uint32
minimum: 0
maximum: 7

awinic,sync-flag:
description:
Flag bit used to keep the phase synchronized in the case of multiple PA
$ref: /schemas/types.yaml#/definitions/flag

required:
- compatible
- reg
- '#sound-dai-cells'
- reset-gpios
- awinic,audio-channel

allOf:
- $ref: dai-common.yaml#
- if:
properties:
compatible:
contains:
enum:
- awinic,aw88261
then:
properties:
reset-gpios: false

unevaluatedProperties: false

Expand All @@ -51,5 +73,7 @@ examples:
reg = <0x34>;
#sound-dai-cells = <0>;
reset-gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
awinic,audio-channel = <0>;
awinic,sync-flag;
};
};
4 changes: 2 additions & 2 deletions Documentation/devicetree/bindings/sound/cirrus,cs42l43.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ properties:
Current at which the headset micbias sense clamp will engage, 0 to
disable.
enum: [ 0, 14, 24, 43, 52, 61, 71, 90, 99 ]
default: 0
default: 14

cirrus,bias-ramp-ms:
description:
Expand All @@ -97,7 +97,7 @@ properties:
Time in microseconds the type detection will run for. Long values will
cause more audible effects, but give more accurate detection.
enum: [ 20, 100, 1000, 10000, 50000, 75000, 100000, 200000 ]
default: 10000
default: 1000

cirrus,button-automute:
type: boolean
Expand Down
11 changes: 4 additions & 7 deletions Documentation/devicetree/bindings/sound/dai-params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@ maintainers:

select: false

$defs:

dai-channels:
properties:
convert-channels:
description: Number of audio channels used by DAI
$ref: /schemas/types.yaml#/definitions/uint32
minimum: 1
maximum: 32

dai-sample-format:
convert-sample-format:
description: Audio sample format used by DAI
$ref: /schemas/types.yaml#/definitions/string
enum:
Expand All @@ -29,12 +28,10 @@ $defs:
- s24_3le
- s32_le

dai-sample-rate:
convert-rate:
description: Audio sample rate used by DAI
$ref: /schemas/types.yaml#/definitions/uint32
minimum: 8000
maximum: 192000

properties: {}

additionalProperties: true
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/sound/dialog,da7219.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ properties:

da7219_aad:
type: object
additionalProperties: false
description:
Configuration of advanced accessory detection.
properties:
Expand Down
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/sound/fsl,qmc-audio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ patternProperties:
description:
A DAI managed by this controller
type: object
additionalProperties: false

properties:
reg:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ properties:
enum:
- mediatek,mt8188-mt6359-evb
- mediatek,mt8188-nau8825
- mediatek,mt8188-rt5682s

audio-routing:
description:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ properties:
enum:
- mediatek,mt8186-mt6366-rt1019-rt5682s-sound
- mediatek,mt8186-mt6366-rt5682s-max98360-sound
- mediatek,mt8186-mt6366-rt5650-sound

mediatek,platform:
$ref: /schemas/types.yaml#/definitions/phandle
Expand Down
44 changes: 44 additions & 0 deletions Documentation/devicetree/bindings/sound/nxp,tfa9879.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/nxp,tfa9879.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: NXP TFA9879 class-D audio amplifier

maintainers:
- Peter Rosin <[email protected]>

allOf:
- $ref: dai-common.yaml#

properties:
compatible:
const: nxp,tfa9879

reg:
maxItems: 1

"#sound-dai-cells":
const: 0

required:
- compatible
- reg
- '#sound-dai-cells'

unevaluatedProperties: false

examples:
- |
i2c1 {
#address-cells = <1>;
#size-cells = <0>;
amplifier@6c {
compatible = "nxp,tfa9879";
reg = <0x6c>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c1>;
#sound-dai-cells = <0>;
};
};
9 changes: 5 additions & 4 deletions Documentation/devicetree/bindings/sound/pcm512x.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
PCM512x audio CODECs
PCM512x and TAS575x audio CODECs/amplifiers

These devices support both I2C and SPI (configured with pin strapping
on the board).
on the board). The TAS575x devices only support I2C.

Required properties:

- compatible : One of "ti,pcm5121", "ti,pcm5122", "ti,pcm5141" or
"ti,pcm5142"
- compatible : One of "ti,pcm5121", "ti,pcm5122", "ti,pcm5141",
"ti,pcm5142", "ti,tas5754" or "ti,tas5756"

- reg : the I2C address of the device for I2C, the chip select
number for SPI.
Expand All @@ -25,6 +25,7 @@ Optional properties:
through <6>. The device will be configured for clock input on the
given pll-in pin and PLL output on the given pll-out pin. An
external connection from the pll-out pin to the SCLK pin is assumed.
Caution: the TAS-desvices only support gpios 1,2 and 3

Examples:

Expand Down
18 changes: 18 additions & 0 deletions Documentation/devicetree/bindings/sound/qcom,lpass-tx-macro.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ properties:
compatible:
enum:
- qcom,sc7280-lpass-tx-macro
- qcom,sm6115-lpass-tx-macro
- qcom,sm8250-lpass-tx-macro
- qcom,sm8450-lpass-tx-macro
- qcom,sm8550-lpass-tx-macro
Expand Down Expand Up @@ -97,6 +98,23 @@ allOf:
- const: dcodec
- const: fsgen

- if:
properties:
compatible:
enum:
- qcom,sm6115-lpass-tx-macro
then:
properties:
clocks:
minItems: 4
maxItems: 4
clock-names:
items:
- const: mclk
- const: npl
- const: dcodec
- const: fsgen

- if:
properties:
compatible:
Expand Down
Loading

0 comments on commit 39cd06e

Please sign in to comment.