Skip to content

Commit 7ec298d

Browse files
committed
Merge branch 'topic/asoc' into for-linus
2 parents 02e5fbf + de0853c commit 7ec298d

112 files changed

Lines changed: 15215 additions & 2596 deletions

Some content is hidden

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

‎MAINTAINERS‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5854,7 +5854,7 @@ F: include/sound/
58545854
F: sound/
58555855

58565856
SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEMENT (ASoC)
5857-
M: Liam Girdwood <lrg@slimlogic.co.uk>
5857+
M: Liam Girdwood <lrg@ti.com>
58585858
M: Mark Brown <broonie@opensource.wolfsonmicro.com>
58595859
T: git git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound-2.6.git
58605860
L: alsa-devel@alsa-project.org (moderated for non-subscribers)
@@ -6105,7 +6105,7 @@ F: drivers/mmc/host/tifm_sd.c
61056105
F: include/linux/tifm.h
61066106

61076107
TI TWL4030 SERIES SOC CODEC DRIVER
6108-
M: Peter Ujfalusi <peter.ujfalusi@nokia.com>
6108+
M: Peter Ujfalusi <peter.ujfalusi@ti.com>
61096109
L: alsa-devel@alsa-project.org (moderated for non-subscribers)
61106110
S: Maintained
61116111
F: sound/soc/codecs/twl4030*
@@ -6749,7 +6749,7 @@ F: drivers/scsi/vmw_pvscsi.c
67496749
F: drivers/scsi/vmw_pvscsi.h
67506750

67516751
VOLTAGE AND CURRENT REGULATOR FRAMEWORK
6752-
M: Liam Girdwood <lrg@slimlogic.co.uk>
6752+
M: Liam Girdwood <lrg@ti.com>
67536753
M: Mark Brown <broonie@opensource.wolfsonmicro.com>
67546754
W: http://opensource.wolfsonmicro.com/node/15
67556755
W: http://www.slimlogic.co.uk/?p=48

‎arch/arm/mach-tegra/Kconfig‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@ comment "Tegra board type"
2727

2828
config MACH_HARMONY
2929
bool "Harmony board"
30+
select MACH_HAS_SND_SOC_TEGRA_WM8903
3031
help
3132
Support for nVidia Harmony development platform
3233

3334
config MACH_KAEN
3435
bool "Kaen board"
3536
select MACH_SEABOARD
37+
select MACH_HAS_SND_SOC_TEGRA_WM8903
3638
help
3739
Support for the Kaen version of Seaboard
3840

@@ -43,6 +45,7 @@ config MACH_PAZ00
4345

4446
config MACH_SEABOARD
4547
bool "Seaboard board"
48+
select MACH_HAS_SND_SOC_TEGRA_WM8903
4649
help
4750
Support for nVidia Seaboard development platform. It will
4851
also be included for some of the derivative boards that

‎arch/arm/mach-tegra/board-harmony.c‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include <asm/mach/time.h>
3535
#include <asm/setup.h>
3636

37-
#include <mach/harmony_audio.h>
37+
#include <mach/tegra_wm8903_pdata.h>
3838
#include <mach/iomap.h>
3939
#include <mach/irqs.h>
4040
#include <mach/sdhci.h>
@@ -67,15 +67,16 @@ static struct platform_device debug_uart = {
6767
},
6868
};
6969

70-
static struct harmony_audio_platform_data harmony_audio_pdata = {
70+
static struct tegra_wm8903_platform_data harmony_audio_pdata = {
7171
.gpio_spkr_en = TEGRA_GPIO_SPKR_EN,
7272
.gpio_hp_det = TEGRA_GPIO_HP_DET,
73+
.gpio_hp_mute = -1,
7374
.gpio_int_mic_en = TEGRA_GPIO_INT_MIC_EN,
7475
.gpio_ext_mic_en = TEGRA_GPIO_EXT_MIC_EN,
7576
};
7677

7778
static struct platform_device harmony_audio_device = {
78-
.name = "tegra-snd-harmony",
79+
.name = "tegra-snd-wm8903",
7980
.id = 0,
8081
.dev = {
8182
.platform_data = &harmony_audio_pdata,

arch/arm/mach-tegra/include/mach/harmony_audio.h renamed to arch/arm/mach-tegra/include/mach/tegra_wm8903_pdata.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* arch/arm/mach-tegra/include/mach/harmony_audio.h
2+
* arch/arm/mach-tegra/include/mach/tegra_wm8903_pdata.h
33
*
44
* Copyright 2011 NVIDIA, Inc.
55
*
@@ -14,9 +14,10 @@
1414
*
1515
*/
1616

17-
struct harmony_audio_platform_data {
17+
struct tegra_wm8903_platform_data {
1818
int gpio_spkr_en;
1919
int gpio_hp_det;
20+
int gpio_hp_mute;
2021
int gpio_int_mic_en;
2122
int gpio_ext_mic_en;
2223
};

‎drivers/staging/intel_sst/intel_sst_drv_interface.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,6 @@ int register_sst_card(struct intel_sst_card_ops *card)
508508
sst_drv_ctx->pmic_state = SND_MAD_INIT_DONE;
509509
sst_drv_ctx->rx_time_slot_status = 0; /*default AMIC*/
510510
card->pcm_control = sst_pmic_ops.pcm_control;
511-
sst_drv_ctx->scard_ops->card_status = SND_CARD_UN_INIT;
512511
return 0;
513512
} else {
514513
pr_err("strcmp fail %s\n", card->module_name);

‎drivers/staging/intel_sst/intelmid.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include <linux/platform_device.h>
3333
#include <linux/interrupt.h>
3434
#include <linux/sched.h>
35+
#include <linux/firmware.h>
3536
#include <sound/control.h>
3637
#include <asm/mrst.h>
3738
#include <sound/pcm.h>
@@ -40,6 +41,8 @@
4041
#include <sound/initval.h>
4142
#include "intel_sst.h"
4243
#include "intel_sst_ioctl.h"
44+
#include "intel_sst_fw_ipc.h"
45+
#include "intel_sst_common.h"
4346
#include "intelmid_snd_control.h"
4447
#include "intelmid.h"
4548

@@ -802,6 +805,7 @@ static int __devinit snd_intelmad_sst_register(
802805
pr_err("sst card registration failed\n");
803806
return ret_val;
804807
}
808+
sst_drv_ctx->scard_ops->card_status = SND_CARD_UN_INIT;
805809

806810
sst_card_vendor_id = intelmaddata->sstdrv_ops->vendor_id;
807811
intelmaddata->pmic_status = PMIC_UNINIT;

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

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ struct wm8994_ldo_pdata {
3232
#define WM8994_EQ_REGS 20
3333
#define WM8958_MBC_CUTOFF_REGS 20
3434
#define WM8958_MBC_COEFF_REGS 48
35+
#define WM8958_MBC_COMBINED_REGS 56
36+
#define WM8958_VSS_HPF_REGS 2
37+
#define WM8958_VSS_REGS 148
38+
#define WM8958_ENH_EQ_REGS 32
3539

3640
/**
3741
* DRC configurations are specified with a label and a set of register
@@ -71,6 +75,42 @@ struct wm8958_mbc_cfg {
7175
const char *name;
7276
u16 cutoff_regs[WM8958_MBC_CUTOFF_REGS];
7377
u16 coeff_regs[WM8958_MBC_COEFF_REGS];
78+
79+
/* Coefficient layout when using MBC+VSS firmware */
80+
u16 combined_regs[WM8958_MBC_COMBINED_REGS];
81+
};
82+
83+
/**
84+
* VSS HPF configurations are specified with a label and two values to
85+
* write. Configurations are expected to be generated using the
86+
* multiband compressor configuration panel in WISCE - see
87+
* http://www.wolfsonmicro.com/wisce/
88+
*/
89+
struct wm8958_vss_hpf_cfg {
90+
const char *name;
91+
u16 regs[WM8958_VSS_HPF_REGS];
92+
};
93+
94+
/**
95+
* VSS configurations are specified with a label and array of values
96+
* to write. Configurations are expected to be generated using the
97+
* multiband compressor configuration panel in WISCE - see
98+
* http://www.wolfsonmicro.com/wisce/
99+
*/
100+
struct wm8958_vss_cfg {
101+
const char *name;
102+
u16 regs[WM8958_VSS_REGS];
103+
};
104+
105+
/**
106+
* Enhanced EQ configurations are specified with a label and array of
107+
* values to write. Configurations are expected to be generated using
108+
* the multiband compressor configuration panel in WISCE - see
109+
* http://www.wolfsonmicro.com/wisce/
110+
*/
111+
struct wm8958_enh_eq_cfg {
112+
const char *name;
113+
u16 regs[WM8958_ENH_EQ_REGS];
74114
};
75115

76116
struct wm8994_pdata {
@@ -95,6 +135,15 @@ struct wm8994_pdata {
95135
int num_mbc_cfgs;
96136
struct wm8958_mbc_cfg *mbc_cfgs;
97137

138+
int num_vss_cfgs;
139+
struct wm8958_vss_cfg *vss_cfgs;
140+
141+
int num_vss_hpf_cfgs;
142+
struct wm8958_vss_hpf_cfg *vss_hpf_cfgs;
143+
144+
int num_enh_eq_cfgs;
145+
struct wm8958_enh_eq_cfg *enh_eq_cfgs;
146+
98147
/* LINEOUT can be differential or single ended */
99148
unsigned int lineout1_diff:1;
100149
unsigned int lineout2_diff:1;

‎include/sound/ak4641.h‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* AK4641 ALSA SoC Codec driver
3+
*
4+
* Copyright 2009 Philipp Zabel
5+
*
6+
* This program is free software; you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License version 2 as
8+
* published by the Free Software Foundation.
9+
*/
10+
11+
#ifndef __AK4641_H
12+
#define __AK4641_H
13+
14+
/**
15+
* struct ak4641_platform_data - platform specific AK4641 configuration
16+
* @gpio_power: GPIO to control external power to AK4641
17+
* @gpio_npdn: GPIO connected to AK4641 nPDN pin
18+
*
19+
* Both GPIO parameters are optional.
20+
*/
21+
struct ak4641_platform_data {
22+
int gpio_power;
23+
int gpio_npdn;
24+
};
25+
26+
#endif /* __AK4641_H */

‎include/sound/max98095.h‎

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/*
2+
* Platform data for MAX98095
3+
*
4+
* Copyright 2011 Maxim Integrated Products
5+
*
6+
* This program is free software; you can redistribute it and/or modify it
7+
* under the terms of the GNU General Public License as published by the
8+
* Free Software Foundation; either version 2 of the License, or (at your
9+
* option) any later version.
10+
*
11+
*/
12+
13+
#ifndef __SOUND_MAX98095_PDATA_H__
14+
#define __SOUND_MAX98095_PDATA_H__
15+
16+
/* Equalizer filter response configuration */
17+
struct max98095_eq_cfg {
18+
const char *name;
19+
unsigned int rate;
20+
u16 band1[5];
21+
u16 band2[5];
22+
u16 band3[5];
23+
u16 band4[5];
24+
u16 band5[5];
25+
};
26+
27+
/* Biquad filter response configuration */
28+
struct max98095_biquad_cfg {
29+
const char *name;
30+
unsigned int rate;
31+
u16 band1[5];
32+
u16 band2[5];
33+
};
34+
35+
/* codec platform data */
36+
struct max98095_pdata {
37+
38+
/* Equalizers for DAI1 and DAI2 */
39+
struct max98095_eq_cfg *eq_cfg;
40+
unsigned int eq_cfgcnt;
41+
42+
/* Biquad filter for DAI1 and DAI2 */
43+
struct max98095_biquad_cfg *bq_cfg;
44+
unsigned int bq_cfgcnt;
45+
46+
/* Analog/digital microphone configuration:
47+
* 0 = analog microphone input (normal setting)
48+
* 1 = digital microphone input
49+
*/
50+
unsigned int digmic_left_mode:1;
51+
unsigned int digmic_right_mode:1;
52+
};
53+
54+
#endif

0 commit comments

Comments
 (0)