-
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.
yaml --- r: 248314 b: refs/heads/master c: a9e3de6 h: refs/heads/master v: v3
- Loading branch information
Mark Brown
committed
Apr 21, 2011
1 parent
f90d6f9
commit 7fb4bba
Showing
76 changed files
with
13,017 additions
and
2,092 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 47912a657ec2aa52c7af5f5e2ecc4efe41094d44 | ||
refs/heads/master: a9e3de6f9f4f3c9deb409d06fa4f4cfbe9878843 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* | ||
* Platform data for MAX98095 | ||
* | ||
* Copyright 2011 Maxim Integrated Products | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License as published by the | ||
* Free Software Foundation; either version 2 of the License, or (at your | ||
* option) any later version. | ||
* | ||
*/ | ||
|
||
#ifndef __SOUND_MAX98095_PDATA_H__ | ||
#define __SOUND_MAX98095_PDATA_H__ | ||
|
||
/* Equalizer filter response configuration */ | ||
struct max98095_eq_cfg { | ||
const char *name; | ||
unsigned int rate; | ||
u16 band1[5]; | ||
u16 band2[5]; | ||
u16 band3[5]; | ||
u16 band4[5]; | ||
u16 band5[5]; | ||
}; | ||
|
||
/* Biquad filter response configuration */ | ||
struct max98095_biquad_cfg { | ||
const char *name; | ||
unsigned int rate; | ||
u16 band1[5]; | ||
u16 band2[5]; | ||
}; | ||
|
||
/* codec platform data */ | ||
struct max98095_pdata { | ||
|
||
/* Equalizers for DAI1 and DAI2 */ | ||
struct max98095_eq_cfg *eq_cfg; | ||
unsigned int eq_cfgcnt; | ||
|
||
/* Biquad filter for DAI1 and DAI2 */ | ||
struct max98095_biquad_cfg *bq_cfg; | ||
unsigned int bq_cfgcnt; | ||
|
||
/* Analog/digital microphone configuration: | ||
* 0 = analog microphone input (normal setting) | ||
* 1 = digital microphone input | ||
*/ | ||
unsigned int digmic_left_mode:1; | ||
unsigned int digmic_right_mode:1; | ||
}; | ||
|
||
#endif |
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,55 @@ | ||
/* | ||
* linux/sound/wm8915.h -- Platform data for WM8915 | ||
* | ||
* Copyright 2011 Wolfson Microelectronics. PLC. | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
*/ | ||
|
||
#ifndef __LINUX_SND_WM8903_H | ||
#define __LINUX_SND_WM8903_H | ||
|
||
enum wm8915_inmode { | ||
WM8915_DIFFERRENTIAL_1 = 0, /* IN1xP - IN1xN */ | ||
WM8915_INVERTING = 1, /* IN1xN */ | ||
WM8915_NON_INVERTING = 2, /* IN1xP */ | ||
WM8915_DIFFERENTIAL_2 = 3, /* IN2xP - IN2xP */ | ||
}; | ||
|
||
/** | ||
* ReTune Mobile configurations are specified with a label, sample | ||
* rate and set of values to write (the enable bits will be ignored). | ||
* | ||
* Configurations are expected to be generated using the ReTune Mobile | ||
* control panel in WISCE - see http://www.wolfsonmicro.com/wisce/ | ||
*/ | ||
struct wm8915_retune_mobile_config { | ||
const char *name; | ||
int rate; | ||
u16 regs[20]; | ||
}; | ||
|
||
#define WM8915_SET_DEFAULT 0x10000 | ||
|
||
struct wm8915_pdata { | ||
int irq_flags; /** Set IRQ trigger flags; default active low */ | ||
|
||
int ldo_ena; /** GPIO for LDO1; -1 for none */ | ||
|
||
int micdet_def; /** Default MICDET_SRC/HP1FB_SRC/MICD_BIAS */ | ||
|
||
enum wm8915_inmode inl_mode; | ||
enum wm8915_inmode inr_mode; | ||
|
||
u32 spkmute_seq; /** Value for register 0x802 */ | ||
|
||
int gpio_base; | ||
u32 gpio_default[5]; | ||
|
||
int num_retune_mobile_cfgs; | ||
struct wm8915_retune_mobile_config *retune_mobile_cfgs; | ||
}; | ||
|
||
#endif |
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.