-
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-3.6' of git://git.kernel.org/pub/scm/linux/kernel/git…
…/broonie/sound into for-next ASoC: Updates for 3.6 This has been a pretty quiet release - very little activity in framework terms, mostly just a few new drivers and updates: - Added the ability to add and remove DAPM paths dynamically, mostly for reparenting on clock changes. - New machine drivers for Marvell Brownstone, ST-Ericsson Ux500 reference platform and ttc-dkp. - New CPU drivers for Blackfin BF6xx SPORTs in I2S mode, Marvell MMP, Synopsis Designware I2S controllers, and SPEAr DMA and S/PDIF - New CODEC drivers for Dialog DA732x, ST STA529, ST-Ericsson AB8500, TI Isabelle and Wolfson Microelectronics WM5102 and WM5110
- Loading branch information
Showing
126 changed files
with
16,719 additions
and
1,344 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
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,52 @@ | ||
/* | ||
* Copyright (C) ST-Ericsson SA 2012 | ||
* | ||
* Author: Ola Lilja <ola.o.lilja@stericsson.com> | ||
* for ST-Ericsson. | ||
* | ||
* License terms: | ||
* | ||
* 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 AB8500_CORE_CODEC_H | ||
#define AB8500_CORE_CODEC_H | ||
|
||
/* Mic-types */ | ||
enum amic_type { | ||
AMIC_TYPE_SINGLE_ENDED, | ||
AMIC_TYPE_DIFFERENTIAL | ||
}; | ||
|
||
/* Mic-biases */ | ||
enum amic_micbias { | ||
AMIC_MICBIAS_VAMIC1, | ||
AMIC_MICBIAS_VAMIC2 | ||
}; | ||
|
||
/* Bias-voltage */ | ||
enum ear_cm_voltage { | ||
EAR_CMV_0_95V, | ||
EAR_CMV_1_10V, | ||
EAR_CMV_1_27V, | ||
EAR_CMV_1_58V | ||
}; | ||
|
||
/* Analog microphone settings */ | ||
struct amic_settings { | ||
enum amic_type mic1_type; | ||
enum amic_type mic2_type; | ||
enum amic_micbias mic1a_micbias; | ||
enum amic_micbias mic1b_micbias; | ||
enum amic_micbias mic2_micbias; | ||
}; | ||
|
||
/* Platform data structure for the audio-parts of the AB8500 */ | ||
struct ab8500_codec_platform_data { | ||
struct amic_settings amics; | ||
enum ear_cm_voltage ear_cmv; | ||
}; | ||
|
||
#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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* MMP Platform AUDIO Management | ||
* | ||
* Copyright (c) 2011 Marvell Semiconductors Inc. | ||
* | ||
* 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 MMP_AUDIO_H | ||
#define MMP_AUDIO_H | ||
|
||
struct mmp_audio_platdata { | ||
u32 period_max_capture; | ||
u32 buffer_max_capture; | ||
u32 period_max_playback; | ||
u32 buffer_max_playback; | ||
}; | ||
|
||
#endif /* MMP_AUDIO_H */ |
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,69 @@ | ||
/* | ||
* Copyright (ST) 2012 Rajeev Kumar (rajeev-dlh.kumar@st.com) | ||
* | ||
* 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. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
* | ||
*/ | ||
|
||
#ifndef __SOUND_DESIGNWARE_I2S_H | ||
#define __SOUND_DESIGNWARE_I2S_H | ||
|
||
#include <linux/dmaengine.h> | ||
#include <linux/types.h> | ||
|
||
/* | ||
* struct i2s_clk_config_data - represent i2s clk configuration data | ||
* @chan_nr: number of channel | ||
* @data_width: number of bits per sample (8/16/24/32 bit) | ||
* @sample_rate: sampling frequency (8Khz, 16Khz, 32Khz, 44Khz, 48Khz) | ||
*/ | ||
struct i2s_clk_config_data { | ||
int chan_nr; | ||
u32 data_width; | ||
u32 sample_rate; | ||
}; | ||
|
||
struct i2s_platform_data { | ||
#define DWC_I2S_PLAY (1 << 0) | ||
#define DWC_I2S_RECORD (1 << 1) | ||
unsigned int cap; | ||
int channel; | ||
u32 snd_fmts; | ||
u32 snd_rates; | ||
|
||
void *play_dma_data; | ||
void *capture_dma_data; | ||
bool (*filter)(struct dma_chan *chan, void *slave); | ||
int (*i2s_clk_cfg)(struct i2s_clk_config_data *config); | ||
}; | ||
|
||
struct i2s_dma_data { | ||
void *data; | ||
dma_addr_t addr; | ||
u32 max_burst; | ||
enum dma_slave_buswidth addr_width; | ||
bool (*filter)(struct dma_chan *chan, void *slave); | ||
}; | ||
|
||
/* I2S DMA registers */ | ||
#define I2S_RXDMA 0x01C0 | ||
#define I2S_TXDMA 0x01C8 | ||
|
||
#define TWO_CHANNEL_SUPPORT 2 /* up to 2.0 */ | ||
#define FOUR_CHANNEL_SUPPORT 4 /* up to 3.1 */ | ||
#define SIX_CHANNEL_SUPPORT 6 /* up to 5.1 */ | ||
#define EIGHT_CHANNEL_SUPPORT 8 /* up to 7.1 */ | ||
|
||
#endif /* __SOUND_DESIGNWARE_I2S_H */ |
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
Oops, something went wrong.