Skip to content

Commit

Permalink
Merge remote-tracking branches 'asoc/topic/pxa', 'asoc/topic/qcom' an…
Browse files Browse the repository at this point in the history
…d 'asoc/topic/rockchip' into asoc-next
  • Loading branch information
broonie committed Feb 19, 2017
4 parents a701802 + 80691c8 + b6e643a + eaae2ea commit 8237d99
Show file tree
Hide file tree
Showing 18 changed files with 456 additions and 174 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
ROCKCHIP RK3288 with HDMI and analog audio

Required properties:
- compatible: "rockchip,rk3288-hdmi-analog"
- rockchip,model: The user-visible name of this sound complex
- rockchip,i2s-controller: The phandle of the Rockchip I2S controller that's
connected to the CODEC
- rockchip,audio-codec: The phandle of the analog audio codec.
- rockchip,routing: A list of the connections between audio components.
Each entry is a pair of strings, the first being the
connection's sink, the second being the connection's
source. For this driver the first string should always be
"Analog".

Optionnal properties:
- rockchip,hp-en-gpios = The phandle of the GPIO that power up/down the
headphone (when the analog output is an headphone).
- rockchip,hp-det-gpios = The phandle of the GPIO that detects the headphone
(when the analog output is an headphone).
- pinctrl-names, pinctrl-0: Please refer to pinctrl-bindings.txt

Example:

sound {
compatible = "rockchip,rockchip-audio-es8388";
rockchip,model = "Analog audio output";
rockchip,i2s-controller = <&i2s>;
rockchip,audio-codec = <&es8388>;
rockchip,routing = "Analog", "LOUT2",
"Analog", "ROUT2";
rockchip,hp-en-gpios = <&gpio8 0 GPIO_ACTIVE_HIGH>;
rockchip,hp-det-gpios = <&gpio7 7 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&headphone>;
};

3 changes: 0 additions & 3 deletions sound/soc/pxa/e740_wm9705.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@

#include <asm/mach-types.h>

#include "pxa2xx-ac97.h"


#define E740_AUDIO_OUT 1
#define E740_AUDIO_IN 2

Expand Down
2 changes: 0 additions & 2 deletions sound/soc/pxa/e750_wm9705.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@

#include <asm/mach-types.h>

#include "pxa2xx-ac97.h"

static int e750_spk_amp_event(struct snd_soc_dapm_widget *w,
struct snd_kcontrol *kcontrol, int event)
{
Expand Down
2 changes: 0 additions & 2 deletions sound/soc/pxa/e800_wm9712.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
#include <mach/audio.h>
#include <mach/eseries-gpio.h>

#include "pxa2xx-ac97.h"

static int e800_spk_amp_event(struct snd_soc_dapm_widget *w,
struct snd_kcontrol *kcontrol, int event)
{
Expand Down
2 changes: 0 additions & 2 deletions sound/soc/pxa/em-x270.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
#include <asm/mach-types.h>
#include <mach/audio.h>

#include "pxa2xx-ac97.h"

static struct snd_soc_dai_link em_x270_dai[] = {
{
.name = "AC97",
Expand Down
1 change: 0 additions & 1 deletion sound/soc/pxa/mioa701_wm9713.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
#include <sound/initval.h>
#include <sound/ac97_codec.h>

#include "pxa2xx-ac97.h"
#include "../codecs/wm9713.h"

#define AC97_GPIO_PULL 0x58
Expand Down
2 changes: 0 additions & 2 deletions sound/soc/pxa/palm27x.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
#include <mach/audio.h>
#include <linux/platform_data/asoc-palm27x.h>

#include "pxa2xx-ac97.h"

static struct snd_soc_jack hs_jack;

/* Headphones jack detection DAPM pins */
Expand Down
2 changes: 0 additions & 2 deletions sound/soc/pxa/pxa2xx-ac97.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
#include <mach/regs-ac97.h>
#include <mach/audio.h>

#include "pxa2xx-ac97.h"

static void pxa2xx_ac97_warm_reset(struct snd_ac97 *ac97)
{
pxa2xx_ac97_try_warm_reset(ac97);
Expand Down
17 changes: 0 additions & 17 deletions sound/soc/pxa/pxa2xx-ac97.h

This file was deleted.

2 changes: 0 additions & 2 deletions sound/soc/pxa/tosa.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
#include <mach/tosa.h>
#include <mach/audio.h>

#include "pxa2xx-ac97.h"

#define TOSA_HP 0
#define TOSA_MIC_INT 1
#define TOSA_HEADSET 2
Expand Down
1 change: 0 additions & 1 deletion sound/soc/pxa/zylonite.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include <sound/soc.h>

#include "../codecs/wm9713.h"
#include "pxa2xx-ac97.h"
#include "pxa-ssp.h"

/*
Expand Down
15 changes: 7 additions & 8 deletions sound/soc/qcom/lpass-apq8016.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,29 +175,28 @@ static int apq8016_lpass_init(struct platform_device *pdev)

drvdata->pcnoc_mport_clk = devm_clk_get(dev, "pcnoc-mport-clk");
if (IS_ERR(drvdata->pcnoc_mport_clk)) {
dev_err(&pdev->dev, "%s() error getting pcnoc-mport-clk: %ld\n",
__func__, PTR_ERR(drvdata->pcnoc_mport_clk));
dev_err(&pdev->dev, "error getting pcnoc-mport-clk: %ld\n",
PTR_ERR(drvdata->pcnoc_mport_clk));
return PTR_ERR(drvdata->pcnoc_mport_clk);
}

ret = clk_prepare_enable(drvdata->pcnoc_mport_clk);
if (ret) {
dev_err(&pdev->dev, "%s() Error enabling pcnoc-mport-clk: %d\n",
__func__, ret);
dev_err(&pdev->dev, "Error enabling pcnoc-mport-clk: %d\n",
ret);
return ret;
}

drvdata->pcnoc_sway_clk = devm_clk_get(dev, "pcnoc-sway-clk");
if (IS_ERR(drvdata->pcnoc_sway_clk)) {
dev_err(&pdev->dev, "%s() error getting pcnoc-sway-clk: %ld\n",
__func__, PTR_ERR(drvdata->pcnoc_sway_clk));
dev_err(&pdev->dev, "error getting pcnoc-sway-clk: %ld\n",
PTR_ERR(drvdata->pcnoc_sway_clk));
return PTR_ERR(drvdata->pcnoc_sway_clk);
}

ret = clk_prepare_enable(drvdata->pcnoc_sway_clk);
if (ret) {
dev_err(&pdev->dev, "%s() Error enabling pcnoc_sway_clk: %d\n",
__func__, ret);
dev_err(&pdev->dev, "Error enabling pcnoc_sway_clk: %d\n", ret);
return ret;
}

Expand Down
Loading

0 comments on commit 8237d99

Please sign in to comment.