Skip to content

Commit 27b92d4

Browse files
committed
Merge branch 'topic/asoc' into for-linus
2 parents 5de0ee5 + e58a894 commit 27b92d4

138 files changed

Lines changed: 14087 additions & 2589 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎arch/arm/mach-shmobile/board-ag5evm.c‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,6 @@ static struct platform_device keysc_device = {
119119
};
120120

121121
/* FSI A */
122-
static struct sh_fsi_platform_info fsi_info = {
123-
.porta_flags = SH_FSI_OUT_SLAVE_MODE |
124-
SH_FSI_IN_SLAVE_MODE |
125-
SH_FSI_OFMT(I2S) |
126-
SH_FSI_IFMT(I2S),
127-
};
128-
129122
static struct resource fsi_resources[] = {
130123
[0] = {
131124
.name = "FSI",
@@ -144,9 +137,6 @@ static struct platform_device fsi_device = {
144137
.id = -1,
145138
.num_resources = ARRAY_SIZE(fsi_resources),
146139
.resource = fsi_resources,
147-
.dev = {
148-
.platform_data = &fsi_info,
149-
},
150140
};
151141

152142
static struct resource sh_mmcif_resources[] = {

‎arch/arm/mach-shmobile/board-ap4evb.c‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -673,16 +673,12 @@ static int fsi_set_rate(struct device *dev, int is_porta, int rate, int enable)
673673
}
674674

675675
static struct sh_fsi_platform_info fsi_info = {
676-
.porta_flags = SH_FSI_BRS_INV |
677-
SH_FSI_OUT_SLAVE_MODE |
678-
SH_FSI_IN_SLAVE_MODE |
679-
SH_FSI_OFMT(PCM) |
680-
SH_FSI_IFMT(PCM),
676+
.porta_flags = SH_FSI_BRS_INV,
681677

682678
.portb_flags = SH_FSI_BRS_INV |
683679
SH_FSI_BRM_INV |
684680
SH_FSI_LRS_INV |
685-
SH_FSI_OFMT(SPDIF),
681+
SH_FSI_FMT_SPDIF,
686682
.set_rate = fsi_set_rate,
687683
};
688684

@@ -783,6 +779,10 @@ static struct platform_device hdmi_device = {
783779
},
784780
};
785781

782+
static struct platform_device fsi_hdmi_device = {
783+
.name = "sh_fsi2_b_hdmi",
784+
};
785+
786786
static long ap4evb_clk_optimize(unsigned long target, unsigned long *best_freq,
787787
unsigned long *parent_freq)
788788
{
@@ -936,6 +936,7 @@ static struct platform_device *ap4evb_devices[] __initdata = {
936936
&usb1_host_device,
937937
&fsi_device,
938938
&fsi_ak4643_device,
939+
&fsi_hdmi_device,
939940
&sh_mmcif_device,
940941
&lcdc1_device,
941942
&lcdc_device,

‎arch/arm/mach-shmobile/board-mackerel.c‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,10 @@ static struct platform_device hdmi_device = {
399399
},
400400
};
401401

402+
static struct platform_device fsi_hdmi_device = {
403+
.name = "sh_fsi2_b_hdmi",
404+
};
405+
402406
static int __init hdmi_init_pm_clock(void)
403407
{
404408
struct clk *hdmi_ick = clk_get(&hdmi_device.dev, "ick");
@@ -609,16 +613,12 @@ static int fsi_set_rate(struct device *dev, int is_porta, int rate, int enable)
609613
}
610614

611615
static struct sh_fsi_platform_info fsi_info = {
612-
.porta_flags = SH_FSI_BRS_INV |
613-
SH_FSI_OUT_SLAVE_MODE |
614-
SH_FSI_IN_SLAVE_MODE |
615-
SH_FSI_OFMT(PCM) |
616-
SH_FSI_IFMT(PCM),
616+
.porta_flags = SH_FSI_BRS_INV,
617617

618618
.portb_flags = SH_FSI_BRS_INV |
619619
SH_FSI_BRM_INV |
620620
SH_FSI_LRS_INV |
621-
SH_FSI_OFMT(SPDIF),
621+
SH_FSI_FMT_SPDIF,
622622

623623
.set_rate = fsi_set_rate,
624624
};
@@ -921,6 +921,7 @@ static struct platform_device *mackerel_devices[] __initdata = {
921921
&leds_device,
922922
&fsi_device,
923923
&fsi_ak4643_device,
924+
&fsi_hdmi_device,
924925
&sdhi0_device,
925926
#if !defined(CONFIG_MMC_SH_MMCIF)
926927
&sdhi1_device,
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
* arch/arm/mach-tegra/include/mach/harmony_audio.h
3+
*
4+
* Copyright 2011 NVIDIA, Inc.
5+
*
6+
* This software is licensed under the terms of the GNU General Public
7+
* License version 2, as published by the Free Software Foundation, and
8+
* may be copied, distributed, and modified under those terms.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU General Public License for more details.
14+
*
15+
*/
16+
17+
struct harmony_audio_platform_data {
18+
int gpio_spkr_en;
19+
int gpio_hp_det;
20+
int gpio_int_mic_en;
21+
int gpio_ext_mic_en;
22+
};

‎arch/sh/boards/mach-ecovec24/setup.c‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -723,11 +723,7 @@ static struct platform_device camera_devices[] = {
723723

724724
/* FSI */
725725
static struct sh_fsi_platform_info fsi_info = {
726-
.portb_flags = SH_FSI_BRS_INV |
727-
SH_FSI_OUT_SLAVE_MODE |
728-
SH_FSI_IN_SLAVE_MODE |
729-
SH_FSI_OFMT(I2S) |
730-
SH_FSI_IFMT(I2S),
726+
.portb_flags = SH_FSI_BRS_INV,
731727
};
732728

733729
static struct resource fsi_resources[] = {

‎arch/sh/boards/mach-se/7724/setup.c‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -286,11 +286,7 @@ static struct platform_device ceu1_device = {
286286
/* FSI */
287287
/* change J20, J21, J22 pin to 1-2 connection to use slave mode */
288288
static struct sh_fsi_platform_info fsi_info = {
289-
.porta_flags = SH_FSI_BRS_INV |
290-
SH_FSI_OUT_SLAVE_MODE |
291-
SH_FSI_IN_SLAVE_MODE |
292-
SH_FSI_OFMT(PCM) |
293-
SH_FSI_IFMT(PCM),
289+
.porta_flags = SH_FSI_BRS_INV,
294290
};
295291

296292
static struct resource fsi_resources[] = {

‎include/linux/mfd/wm8994/pdata.h‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,21 @@ struct wm8994_pdata {
103103
unsigned int lineout1fb:1;
104104
unsigned int lineout2fb:1;
105105

106-
/* Microphone biases: 0=0.9*AVDD1 1=0.65*AVVD1 */
106+
/* IRQ for microphone detection if brought out directly as a
107+
* signal.
108+
*/
109+
int micdet_irq;
110+
111+
/* WM8994 microphone biases: 0=0.9*AVDD1 1=0.65*AVVD1 */
107112
unsigned int micbias1_lvl:1;
108113
unsigned int micbias2_lvl:1;
109114

110-
/* Jack detect threashold levels, see datasheet for values */
115+
/* WM8994 jack detect threashold levels, see datasheet for values */
111116
unsigned int jd_scthr:2;
112117
unsigned int jd_thr:2;
118+
119+
/* WM8958 microphone bias configuration */
120+
int micbias[2];
113121
};
114122

115123
#endif

‎include/linux/mfd/wm8994/registers.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363
#define WM8994_MICBIAS 0x3A
6464
#define WM8994_LDO_1 0x3B
6565
#define WM8994_LDO_2 0x3C
66+
#define WM8958_MICBIAS1 0x3D
67+
#define WM8958_MICBIAS2 0x3E
6668
#define WM8994_CHARGE_PUMP_1 0x4C
6769
#define WM8958_CHARGE_PUMP_2 0x4D
6870
#define WM8994_CLASS_W_1 0x51

‎include/sound/control.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ int snd_ctl_add(struct snd_card * card, struct snd_kcontrol * kcontrol);
115115
int snd_ctl_remove(struct snd_card * card, struct snd_kcontrol * kcontrol);
116116
int snd_ctl_remove_id(struct snd_card * card, struct snd_ctl_elem_id *id);
117117
int snd_ctl_rename_id(struct snd_card * card, struct snd_ctl_elem_id *src_id, struct snd_ctl_elem_id *dst_id);
118+
int snd_ctl_activate_id(struct snd_card *card, struct snd_ctl_elem_id *id,
119+
int active);
118120
struct snd_kcontrol *snd_ctl_find_numid(struct snd_card * card, unsigned int numid);
119121
struct snd_kcontrol *snd_ctl_find_id(struct snd_card * card, struct snd_ctl_elem_id *id);
120122

‎include/sound/cs4271.h‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* Definitions for CS4271 ASoC codec driver
3+
*
4+
* Copyright (c) 2010 Alexander Sverdlin <subaparts@yandex.ru>
5+
*
6+
* This program is free software; you can redistribute it and/or
7+
* modify it under the terms of the GNU General Public License
8+
* as published by the Free Software Foundation; either version 2
9+
* of the License, or (at your option) any later version.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU General Public License for more details.
15+
*/
16+
17+
#ifndef __CS4271_H
18+
#define __CS4271_H
19+
20+
struct cs4271_platform_data {
21+
int gpio_nreset; /* GPIO driving Reset pin, if any */
22+
};
23+
24+
#endif /* __CS4271_H */

0 commit comments

Comments
 (0)