-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'asoc-v3.15-3' into asoc-next
ASoC: Updates for v3.15 A few more updates for the merge window: - Fixes for the simple-card DAI format DT mess. - A new driver for Cirrus cs42xx8 devices. - DT support for a couple more devices. - A revert of a previous buggy fix for soc-pcm, plus a few more fixes and cleanups. # gpg: Signature made Sun 23 Mar 2014 16:56:11 GMT using RSA key ID 7EA229BD # gpg: Good signature from "Mark Brown <broonie@sirena.org.uk>" # gpg: aka "Mark Brown <broonie@debian.org>" # gpg: aka "Mark Brown <broonie@kernel.org>" # gpg: aka "Mark Brown <broonie@tardis.ed.ac.uk>" # gpg: aka "Mark Brown <broonie@linaro.org>" # gpg: aka "Mark Brown <Mark.Brown@linaro.org>"
- Loading branch information
Showing
37 changed files
with
1,542 additions
and
166 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
CS42448/CS42888 audio CODEC | ||
|
||
Required properties: | ||
|
||
- compatible : must contain one of "cirrus,cs42448" and "cirrus,cs42888" | ||
|
||
- reg : the I2C address of the device for I2C | ||
|
||
- clocks : a list of phandles + clock-specifiers, one for each entry in | ||
clock-names | ||
|
||
- clock-names : must contain "mclk" | ||
|
||
- VA-supply, VD-supply, VLS-supply, VLC-supply: power supplies for the device, | ||
as covered in Documentation/devicetree/bindings/regulator/regulator.txt | ||
|
||
Example: | ||
|
||
codec: cs42888@48 { | ||
compatible = "cirrus,cs42888"; | ||
reg = <0x48>; | ||
clocks = <&codec_mclk 0>; | ||
clock-names = "mclk"; | ||
VA-supply = <®_audio>; | ||
VD-supply = <®_audio>; | ||
VLS-supply = <®_audio>; | ||
VLC-supply = <®_audio>; | ||
}; |
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,96 @@ | ||
Renesas R-Car sound | ||
|
||
Required properties: | ||
- compatible : "renesas,rcar_sound-gen1" if generation1 | ||
"renesas,rcar_sound-gen2" if generation2 | ||
- reg : Should contain the register physical address. | ||
required register is | ||
SRU/ADG/SSI if generation1 | ||
SRU/ADG/SSIU/SSI if generation2 | ||
- rcar_sound,ssi : SSI subnode | ||
- rcar_sound,scu : SCU subnode | ||
- rcar_sound,dai : DAI subnode | ||
|
||
SSI subnode properties: | ||
- interrupts : Should contain SSI interrupt for PIO transfer | ||
- shared-pin : if shared clock pin | ||
|
||
DAI subnode properties: | ||
- playback : list of playback modules | ||
- capture : list of capture modules | ||
|
||
Example: | ||
|
||
rcar_sound: rcar_sound@0xffd90000 { | ||
#sound-dai-cells = <1>; | ||
compatible = "renesas,rcar_sound-gen2"; | ||
reg = <0 0xec500000 0 0x1000>, /* SCU */ | ||
<0 0xec5a0000 0 0x100>, /* ADG */ | ||
<0 0xec540000 0 0x1000>, /* SSIU */ | ||
<0 0xec541000 0 0x1280>; /* SSI */ | ||
|
||
rcar_sound,src { | ||
src0: src@0 { }; | ||
src1: src@1 { }; | ||
src2: src@2 { }; | ||
src3: src@3 { }; | ||
src4: src@4 { }; | ||
src5: src@5 { }; | ||
src6: src@6 { }; | ||
src7: src@7 { }; | ||
src8: src@8 { }; | ||
src9: src@9 { }; | ||
}; | ||
|
||
rcar_sound,ssi { | ||
ssi0: ssi@0 { | ||
interrupts = <0 370 IRQ_TYPE_LEVEL_HIGH>; | ||
}; | ||
ssi1: ssi@1 { | ||
interrupts = <0 371 IRQ_TYPE_LEVEL_HIGH>; | ||
}; | ||
ssi2: ssi@2 { | ||
interrupts = <0 372 IRQ_TYPE_LEVEL_HIGH>; | ||
}; | ||
ssi3: ssi@3 { | ||
interrupts = <0 373 IRQ_TYPE_LEVEL_HIGH>; | ||
}; | ||
ssi4: ssi@4 { | ||
interrupts = <0 374 IRQ_TYPE_LEVEL_HIGH>; | ||
}; | ||
ssi5: ssi@5 { | ||
interrupts = <0 375 IRQ_TYPE_LEVEL_HIGH>; | ||
}; | ||
ssi6: ssi@6 { | ||
interrupts = <0 376 IRQ_TYPE_LEVEL_HIGH>; | ||
}; | ||
ssi7: ssi@7 { | ||
interrupts = <0 377 IRQ_TYPE_LEVEL_HIGH>; | ||
}; | ||
ssi8: ssi@8 { | ||
interrupts = <0 378 IRQ_TYPE_LEVEL_HIGH>; | ||
}; | ||
ssi9: ssi@9 { | ||
interrupts = <0 379 IRQ_TYPE_LEVEL_HIGH>; | ||
}; | ||
}; | ||
|
||
rcar_sound,dai { | ||
dai0 { | ||
playback = <&ssi5 &src5>; | ||
capture = <&ssi6>; | ||
}; | ||
dai1 { | ||
playback = <&ssi3>; | ||
}; | ||
dai2 { | ||
capture = <&ssi4>; | ||
}; | ||
dai3 { | ||
playback = <&ssi7>; | ||
}; | ||
dai4 { | ||
capture = <&ssi8>; | ||
}; | ||
}; | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* | ||
* Cirrus Logic CS42448/CS42888 Audio CODEC DAI I2C driver | ||
* | ||
* Copyright (C) 2014 Freescale Semiconductor, Inc. | ||
* | ||
* Author: Nicolin Chen <Guangyu.Chen@freescale.com> | ||
* | ||
* This file is licensed under the terms of the GNU General Public License | ||
* version 2. This program is licensed "as is" without any warranty of any | ||
* kind, whether express or implied. | ||
*/ | ||
|
||
#include <linux/i2c.h> | ||
#include <linux/module.h> | ||
#include <linux/pm_runtime.h> | ||
#include <sound/soc.h> | ||
|
||
#include "cs42xx8.h" | ||
|
||
static int cs42xx8_i2c_probe(struct i2c_client *i2c, | ||
const struct i2c_device_id *id) | ||
{ | ||
u32 ret = cs42xx8_probe(&i2c->dev, | ||
devm_regmap_init_i2c(i2c, &cs42xx8_regmap_config)); | ||
if (ret) | ||
return ret; | ||
|
||
pm_runtime_enable(&i2c->dev); | ||
pm_request_idle(&i2c->dev); | ||
|
||
return 0; | ||
} | ||
|
||
static int cs42xx8_i2c_remove(struct i2c_client *i2c) | ||
{ | ||
snd_soc_unregister_codec(&i2c->dev); | ||
pm_runtime_disable(&i2c->dev); | ||
|
||
return 0; | ||
} | ||
|
||
static struct i2c_device_id cs42xx8_i2c_id[] = { | ||
{"cs42448", (kernel_ulong_t)&cs42448_data}, | ||
{"cs42888", (kernel_ulong_t)&cs42888_data}, | ||
{} | ||
}; | ||
MODULE_DEVICE_TABLE(i2c, cs42xx8_i2c_id); | ||
|
||
static struct i2c_driver cs42xx8_i2c_driver = { | ||
.driver = { | ||
.name = "cs42xx8", | ||
.owner = THIS_MODULE, | ||
.pm = &cs42xx8_pm, | ||
}, | ||
.probe = cs42xx8_i2c_probe, | ||
.remove = cs42xx8_i2c_remove, | ||
.id_table = cs42xx8_i2c_id, | ||
}; | ||
|
||
module_i2c_driver(cs42xx8_i2c_driver); | ||
|
||
MODULE_DESCRIPTION("Cirrus Logic CS42448/CS42888 ALSA SoC Codec I2C Driver"); | ||
MODULE_AUTHOR("Freescale Semiconductor, Inc."); | ||
MODULE_LICENSE("GPL"); |
Oops, something went wrong.