forked from tiwai/sound
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/sof es8336 quirk #26
Closed
yangxiaohua2009
wants to merge
21
commits into
plbossart:fix/sof-es8336-quirk
from
yangxiaohua2009:fix/sof-es8336-quirk
Closed
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
e918778
ASoC: soc-acpi: fix kernel-doc descriptor
plbossart 3349f9b
ASoC: soc-acpi: add information on I2S/TDM link mask
plbossart 092e260
ASoC: SOF: Intel: hda: retrieve DMIC number for I2S boards
plbossart 01198fd
ALSA: intel-nhlt: add helper to detect SSP link mask
plbossart 31dcc15
ASoC: SOF: Intel: hda: report SSP link mask to machine driver
plbossart 9a92e01
ASoC: Intel: soc-acpi: quirk topology filename dynamically
plbossart dc7d678
ASoC: Intel: sof_es8336: make gpio optional
plbossart 9fde854
ASoC: Intel: sof_es8336: get codec device with ACPI instead of bus se…
plbossart a2588ff
ASoC: Intel: sof_es8336: use NHLT information to set dmic and SSP
plbossart 03d28c5
ALSA: intel-dsp-config: add more ACPI HIDs for ES83x6 devices
plbossart 6a4b9fe
ASoC: Intel: soc-acpi: add more ACPI HIDs for ES83x6 devices
plbossart 0fa152d
ASoC: SOF: ipc3-topology: add quirk for Intel SSP mclk_id
plbossart c8a704c
ASoC: Intel: sof_es8336: log all quirks
plbossart 2f9e82c
ASoC: Intel: sof_es8336: move comment to the right place
plbossart 55ef2fa
ASoC: Intel: sof_es8336: add support for JD inverted quirk
plbossart ecc3ecd
ASoC: Intel: bytcht_es8316: move comment to the right place
plbossart 5929fad
ASoC: Intel: sof_es8336: extend machine driver to support ES8326 codec
plbossart 42c13e5
ALSA: intel-dspconfig: add ES8336 support for CNL
plbossart 3e46914
ASoC: Intel: soc-acpi: add ESSX8336 support on Cannon Lake machines
realnickel e97f887
ASoC: codecs: add support for ES8326
yangxiaohua1977 935ca4b
Now use clock API
yangxiaohua1977 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
110 changes: 110 additions & 0 deletions
110
Documentation/devicetree/bindings/sound/everest,es8326.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/sound/everest,es8326.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Everest ES8326 audio CODEC | ||
|
||
maintainers: | ||
- Daniel Drake <drake@endlessm.com> | ||
- David Yang <yangxiaohua@everest-semi.com> | ||
|
||
properties: | ||
compatible: | ||
const: everest,es8326 | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
clocks: | ||
items: | ||
- description: clock for master clock (MCLK) | ||
|
||
clock-names: | ||
items: | ||
- const: mclk | ||
|
||
"#sound-dai-cells": | ||
const: 0 | ||
|
||
mclk-rate: | ||
description: | ||
clock rate of mclk | ||
$ref: /schemas/types.yaml#/definitions/uint32-array | ||
minItems: 1 | ||
|
||
jack-pol: | ||
description: | ||
just the value of reg 57. Bit(3) decides whether the jack polarity is inverted. | ||
Bit(2) decides whether the bottom on the headset is inverted. | ||
Bit(1)/(0) decides the mic properity to be OMTP/CTIA or auto. | ||
$ref: /schemas/types.yaml#/definitions/uint8-array | ||
minimum: 0 | ||
maximum: 0x0f | ||
default: 0x0f | ||
|
||
mic1-src: | ||
description: | ||
the value of reg 2A when headset plugged. | ||
$ref: /schemas/types.yaml#/definitions/uint8-array | ||
minimum: 0x00 | ||
maximum: 0x77 | ||
default: 0x22 | ||
|
||
mic2-src: | ||
description: | ||
the value of reg 2A when headset unplugged. | ||
$ref: /schemas/types.yaml#/definitions/uint8-array | ||
minimum: 0x00 | ||
maximum: 0x77 | ||
default: 0x44 | ||
|
||
amic1-src: | ||
description: | ||
the value of reg 23 when headset plugged. | ||
$ref: /schemas/types.yaml#/definitions/uint8-array | ||
minimum: 0x19 | ||
maximum: 0x29 | ||
default: 0x19 | ||
|
||
amic2-src: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. don't you need the 'everest,' prefix for all properties? |
||
description: | ||
the value of reg 23 when headset unplugged. | ||
Set to 0x19 if dmic used. Set to 0x29 if amic used. | ||
$ref: /schemas/types.yaml#/definitions/uint8-array | ||
minimum: 0x19 | ||
maximum: 0x29 | ||
default: 0x19 | ||
|
||
everest,jack-detect-inverted: | ||
description: | ||
Defined to invert the jack detection. | ||
$ref: /schemas/types.yaml#/definitions/flag | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- "#sound-dai-cells" | ||
|
||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
i2c0 { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
es8326: codec@19 { | ||
compatible = "everest,es8326"; | ||
reg = <0x19>; | ||
clocks = <&clks 10>; | ||
clock-names = "mclk"; | ||
#sound-dai-cells = <0>; | ||
mic1-src = [22]; | ||
mic2-src = [44]; | ||
amic1-src = [19]; | ||
amic2-src = [19]; | ||
jack-pol = [0e]; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how does this work since you also have the 'jack-inverted' value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A default value is defined here which can be inverted by 'jack-inverted' ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok