Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
8e8fbd8f
Commit
8e8fbd8f
authored
May 22, 2014
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/dapm-init' into asoc-next
parents
6bf88ab2
d77a14b5
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
1 addition
and
102 deletions
+1
-102
sound/soc/atmel/snd-soc-afeb9260.c
sound/soc/atmel/snd-soc-afeb9260.c
+0
-12
sound/soc/intel/byt-rt5640.c
sound/soc/intel/byt-rt5640.c
+0
-6
sound/soc/intel/haswell.c
sound/soc/intel/haswell.c
+0
-6
sound/soc/kirkwood/kirkwood-t5325.c
sound/soc/kirkwood/kirkwood-t5325.c
+0
-13
sound/soc/omap/ams-delta.c
sound/soc/omap/ams-delta.c
+0
-2
sound/soc/pxa/brownstone.c
sound/soc/pxa/brownstone.c
+0
-7
sound/soc/pxa/palm27x.c
sound/soc/pxa/palm27x.c
+0
-8
sound/soc/pxa/poodle.c
sound/soc/pxa/poodle.c
+0
-1
sound/soc/pxa/ttc-dkb.c
sound/soc/pxa/ttc-dkb.c
+0
-4
sound/soc/samsung/h1940_uda1380.c
sound/soc/samsung/h1940_uda1380.c
+0
-5
sound/soc/samsung/rx1950_uda1380.c
sound/soc/samsung/rx1950_uda1380.c
+0
-5
sound/soc/samsung/s3c24xx_simtec_hermes.c
sound/soc/samsung/s3c24xx_simtec_hermes.c
+0
-8
sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c
sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c
+0
-8
sound/soc/samsung/smartq_wm8987.c
sound/soc/samsung/smartq_wm8987.c
+0
-2
sound/soc/samsung/smdk_wm8994.c
sound/soc/samsung/smdk_wm8994.c
+0
-12
sound/soc/tegra/tegra_wm9712.c
sound/soc/tegra/tegra_wm9712.c
+1
-3
No files found.
sound/soc/atmel/snd-soc-afeb9260.c
View file @
8e8fbd8f
...
...
@@ -80,17 +80,6 @@ static const struct snd_soc_dapm_route afeb9260_audio_map[] = {
{
"MICIN"
,
NULL
,
"Mic Jack"
},
};
static
int
afeb9260_tlv320aic23_init
(
struct
snd_soc_pcm_runtime
*
rtd
)
{
struct
snd_soc_codec
*
codec
=
rtd
->
codec
;
struct
snd_soc_dapm_context
*
dapm
=
&
codec
->
dapm
;
snd_soc_dapm_enable_pin
(
dapm
,
"Headphone Jack"
);
snd_soc_dapm_enable_pin
(
dapm
,
"Line In"
);
snd_soc_dapm_enable_pin
(
dapm
,
"Mic Jack"
);
return
0
;
}
/* Digital audio interface glue - connects codec <--> CPU */
static
struct
snd_soc_dai_link
afeb9260_dai
=
{
...
...
@@ -100,7 +89,6 @@ static struct snd_soc_dai_link afeb9260_dai = {
.
codec_dai_name
=
"tlv320aic23-hifi"
,
.
platform_name
=
"atmel_pcm-audio"
,
.
codec_name
=
"tlv320aic23-codec.0-001a"
,
.
init
=
afeb9260_tlv320aic23_init
,
.
dai_fmt
=
SND_SOC_DAIFMT_I2S
|
SND_SOC_DAIFMT_NB_IF
|
SND_SOC_DAIFMT_CBM_CFM
,
.
ops
=
&
afeb9260_ops
,
...
...
sound/soc/intel/byt-rt5640.c
View file @
8e8fbd8f
...
...
@@ -100,12 +100,6 @@ static int byt_rt5640_init(struct snd_soc_pcm_runtime *runtime)
snd_soc_dapm_ignore_suspend
(
dapm
,
"SPORP"
);
snd_soc_dapm_ignore_suspend
(
dapm
,
"SPORN"
);
snd_soc_dapm_enable_pin
(
dapm
,
"Headset Mic"
);
snd_soc_dapm_enable_pin
(
dapm
,
"Headphone"
);
snd_soc_dapm_enable_pin
(
dapm
,
"Speaker"
);
snd_soc_dapm_enable_pin
(
dapm
,
"Internal Mic"
);
snd_soc_dapm_sync
(
dapm
);
return
ret
;
}
...
...
sound/soc/intel/haswell.c
View file @
8e8fbd8f
...
...
@@ -89,8 +89,6 @@ static struct snd_soc_ops haswell_rt5640_ops = {
static
int
haswell_rtd_init
(
struct
snd_soc_pcm_runtime
*
rtd
)
{
struct
snd_soc_codec
*
codec
=
rtd
->
codec
;
struct
snd_soc_dapm_context
*
dapm
=
&
codec
->
dapm
;
struct
sst_pdata
*
pdata
=
dev_get_platdata
(
rtd
->
platform
->
dev
);
struct
sst_hsw
*
haswell
=
pdata
->
dsp
;
int
ret
;
...
...
@@ -104,10 +102,6 @@ static int haswell_rtd_init(struct snd_soc_pcm_runtime *rtd)
return
ret
;
}
/* always connected */
snd_soc_dapm_enable_pin
(
dapm
,
"Headphones"
);
snd_soc_dapm_enable_pin
(
dapm
,
"Mic"
);
return
0
;
}
...
...
sound/soc/kirkwood/kirkwood-t5325.c
View file @
8e8fbd8f
...
...
@@ -52,18 +52,6 @@ static const struct snd_soc_dapm_route t5325_route[] = {
{
"MIC2"
,
NULL
,
"Mic Jack"
},
};
static
int
t5325_dai_init
(
struct
snd_soc_pcm_runtime
*
rtd
)
{
struct
snd_soc_codec
*
codec
=
rtd
->
codec
;
struct
snd_soc_dapm_context
*
dapm
=
&
codec
->
dapm
;
snd_soc_dapm_enable_pin
(
dapm
,
"Mic Jack"
);
snd_soc_dapm_enable_pin
(
dapm
,
"Headphone Jack"
);
snd_soc_dapm_enable_pin
(
dapm
,
"Speaker"
);
return
0
;
}
static
struct
snd_soc_dai_link
t5325_dai
[]
=
{
{
.
name
=
"ALC5621"
,
...
...
@@ -74,7 +62,6 @@ static struct snd_soc_dai_link t5325_dai[] = {
.
codec_name
=
"alc562x-codec.0-001a"
,
.
dai_fmt
=
SND_SOC_DAIFMT_I2S
|
SND_SOC_DAIFMT_CBS_CFS
,
.
ops
=
&
t5325_ops
,
.
init
=
t5325_dai_init
,
},
};
...
...
sound/soc/omap/ams-delta.c
View file @
8e8fbd8f
...
...
@@ -541,8 +541,6 @@ static int ams_delta_cx20442_init(struct snd_soc_pcm_runtime *rtd)
/* Set up initial pin constellation */
snd_soc_dapm_disable_pin
(
dapm
,
"Mouthpiece"
);
snd_soc_dapm_enable_pin
(
dapm
,
"Earpiece"
);
snd_soc_dapm_enable_pin
(
dapm
,
"Microphone"
);
snd_soc_dapm_disable_pin
(
dapm
,
"Speaker"
);
snd_soc_dapm_disable_pin
(
dapm
,
"AGCIN"
);
snd_soc_dapm_disable_pin
(
dapm
,
"AGCOUT"
);
...
...
sound/soc/pxa/brownstone.c
View file @
8e8fbd8f
...
...
@@ -50,11 +50,6 @@ static int brownstone_wm8994_init(struct snd_soc_pcm_runtime *rtd)
struct
snd_soc_codec
*
codec
=
rtd
->
codec
;
struct
snd_soc_dapm_context
*
dapm
=
&
codec
->
dapm
;
snd_soc_dapm_enable_pin
(
dapm
,
"Ext Spk"
);
snd_soc_dapm_enable_pin
(
dapm
,
"Headset Stereophone"
);
snd_soc_dapm_enable_pin
(
dapm
,
"Headset Mic"
);
snd_soc_dapm_enable_pin
(
dapm
,
"Main Mic"
);
/* set endpoints to not connected */
snd_soc_dapm_nc_pin
(
dapm
,
"HPOUT2P"
);
snd_soc_dapm_nc_pin
(
dapm
,
"HPOUT2N"
);
...
...
@@ -70,8 +65,6 @@ static int brownstone_wm8994_init(struct snd_soc_pcm_runtime *rtd)
snd_soc_dapm_nc_pin
(
dapm
,
"IN2RP:VXRP"
);
snd_soc_dapm_nc_pin
(
dapm
,
"IN2LN"
);
snd_soc_dapm_sync
(
dapm
);
return
0
;
}
...
...
sound/soc/pxa/palm27x.c
View file @
8e8fbd8f
...
...
@@ -79,14 +79,6 @@ static int palm27x_ac97_init(struct snd_soc_pcm_runtime *rtd)
struct
snd_soc_dapm_context
*
dapm
=
&
codec
->
dapm
;
int
err
;
/* connected pins */
if
(
machine_is_palmld
())
snd_soc_dapm_enable_pin
(
dapm
,
"MIC1"
);
snd_soc_dapm_enable_pin
(
dapm
,
"HPOUTL"
);
snd_soc_dapm_enable_pin
(
dapm
,
"HPOUTR"
);
snd_soc_dapm_enable_pin
(
dapm
,
"LOUT2"
);
snd_soc_dapm_enable_pin
(
dapm
,
"ROUT2"
);
/* not connected pins */
snd_soc_dapm_nc_pin
(
dapm
,
"OUT3"
);
snd_soc_dapm_nc_pin
(
dapm
,
"MONOOUT"
);
...
...
sound/soc/pxa/poodle.c
View file @
8e8fbd8f
...
...
@@ -230,7 +230,6 @@ static int poodle_wm8731_init(struct snd_soc_pcm_runtime *rtd)
snd_soc_dapm_nc_pin
(
dapm
,
"LLINEIN"
);
snd_soc_dapm_nc_pin
(
dapm
,
"RLINEIN"
);
snd_soc_dapm_enable_pin
(
dapm
,
"MICIN"
);
return
0
;
}
...
...
sound/soc/pxa/ttc-dkb.c
View file @
8e8fbd8f
...
...
@@ -78,10 +78,6 @@ static int ttc_pm860x_init(struct snd_soc_pcm_runtime *rtd)
struct
snd_soc_codec
*
codec
=
rtd
->
codec
;
struct
snd_soc_dapm_context
*
dapm
=
&
codec
->
dapm
;
/* connected pins */
snd_soc_dapm_enable_pin
(
dapm
,
"Ext Speaker"
);
snd_soc_dapm_enable_pin
(
dapm
,
"Ext Mic 1"
);
snd_soc_dapm_enable_pin
(
dapm
,
"Ext Mic 3"
);
snd_soc_dapm_disable_pin
(
dapm
,
"Headset Mic 2"
);
snd_soc_dapm_disable_pin
(
dapm
,
"Headset Stereophone"
);
...
...
sound/soc/samsung/h1940_uda1380.c
View file @
8e8fbd8f
...
...
@@ -176,11 +176,6 @@ static struct platform_device *s3c24xx_snd_device;
static
int
h1940_uda1380_init
(
struct
snd_soc_pcm_runtime
*
rtd
)
{
struct
snd_soc_codec
*
codec
=
rtd
->
codec
;
struct
snd_soc_dapm_context
*
dapm
=
&
codec
->
dapm
;
snd_soc_dapm_enable_pin
(
dapm
,
"Headphone Jack"
);
snd_soc_dapm_enable_pin
(
dapm
,
"Speaker"
);
snd_soc_dapm_enable_pin
(
dapm
,
"Mic Jack"
);
snd_soc_jack_new
(
codec
,
"Headphone Jack"
,
SND_JACK_HEADPHONE
,
&
hp_jack
);
...
...
sound/soc/samsung/rx1950_uda1380.c
View file @
8e8fbd8f
...
...
@@ -221,11 +221,6 @@ static int rx1950_hw_params(struct snd_pcm_substream *substream,
static
int
rx1950_uda1380_init
(
struct
snd_soc_pcm_runtime
*
rtd
)
{
struct
snd_soc_codec
*
codec
=
rtd
->
codec
;
struct
snd_soc_dapm_context
*
dapm
=
&
codec
->
dapm
;
snd_soc_dapm_enable_pin
(
dapm
,
"Headphone Jack"
);
snd_soc_dapm_enable_pin
(
dapm
,
"Speaker"
);
snd_soc_dapm_enable_pin
(
dapm
,
"Mic Jack"
);
snd_soc_jack_new
(
codec
,
"Headphone Jack"
,
SND_JACK_HEADPHONE
,
&
hp_jack
);
...
...
sound/soc/samsung/s3c24xx_simtec_hermes.c
View file @
8e8fbd8f
...
...
@@ -63,14 +63,6 @@ static const struct snd_soc_dapm_route base_map[] = {
*/
static
int
simtec_hermes_init
(
struct
snd_soc_pcm_runtime
*
rtd
)
{
struct
snd_soc_codec
*
codec
=
rtd
->
codec
;
struct
snd_soc_dapm_context
*
dapm
=
&
codec
->
dapm
;
snd_soc_dapm_enable_pin
(
dapm
,
"Headphone Jack"
);
snd_soc_dapm_enable_pin
(
dapm
,
"Line In"
);
snd_soc_dapm_enable_pin
(
dapm
,
"Line Out"
);
snd_soc_dapm_enable_pin
(
dapm
,
"Mic Jack"
);
simtec_audio_init
(
rtd
);
return
0
;
...
...
sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c
View file @
8e8fbd8f
...
...
@@ -52,14 +52,6 @@ static const struct snd_soc_dapm_route base_map[] = {
*/
static
int
simtec_tlv320aic23_init
(
struct
snd_soc_pcm_runtime
*
rtd
)
{
struct
snd_soc_codec
*
codec
=
rtd
->
codec
;
struct
snd_soc_dapm_context
*
dapm
=
&
codec
->
dapm
;
snd_soc_dapm_enable_pin
(
dapm
,
"Headphone Jack"
);
snd_soc_dapm_enable_pin
(
dapm
,
"Line In"
);
snd_soc_dapm_enable_pin
(
dapm
,
"Line Out"
);
snd_soc_dapm_enable_pin
(
dapm
,
"Mic Jack"
);
simtec_audio_init
(
rtd
);
return
0
;
...
...
sound/soc/samsung/smartq_wm8987.c
View file @
8e8fbd8f
...
...
@@ -162,8 +162,6 @@ static int smartq_wm8987_init(struct snd_soc_pcm_runtime *rtd)
snd_soc_dapm_nc_pin
(
dapm
,
"ROUT1"
);
/* set endpoints to default off mode */
snd_soc_dapm_enable_pin
(
dapm
,
"Internal Speaker"
);
snd_soc_dapm_enable_pin
(
dapm
,
"Internal Mic"
);
snd_soc_dapm_disable_pin
(
dapm
,
"Headphone Jack"
);
/* Headphone jack detection */
...
...
sound/soc/samsung/smdk_wm8994.c
View file @
8e8fbd8f
...
...
@@ -89,18 +89,6 @@ static int smdk_wm8994_init_paiftx(struct snd_soc_pcm_runtime *rtd)
struct
snd_soc_codec
*
codec
=
rtd
->
codec
;
struct
snd_soc_dapm_context
*
dapm
=
&
codec
->
dapm
;
/* HeadPhone */
snd_soc_dapm_enable_pin
(
dapm
,
"HPOUT1R"
);
snd_soc_dapm_enable_pin
(
dapm
,
"HPOUT1L"
);
/* MicIn */
snd_soc_dapm_enable_pin
(
dapm
,
"IN1LN"
);
snd_soc_dapm_enable_pin
(
dapm
,
"IN1RN"
);
/* LineIn */
snd_soc_dapm_enable_pin
(
dapm
,
"IN2LN"
);
snd_soc_dapm_enable_pin
(
dapm
,
"IN2RN"
);
/* Other pins NC */
snd_soc_dapm_nc_pin
(
dapm
,
"HPOUT2P"
);
snd_soc_dapm_nc_pin
(
dapm
,
"HPOUT2N"
);
...
...
sound/soc/tegra/tegra_wm9712.c
View file @
8e8fbd8f
...
...
@@ -50,9 +50,7 @@ static int tegra_wm9712_init(struct snd_soc_pcm_runtime *rtd)
struct
snd_soc_codec
*
codec
=
codec_dai
->
codec
;
struct
snd_soc_dapm_context
*
dapm
=
&
codec
->
dapm
;
snd_soc_dapm_force_enable_pin
(
dapm
,
"Mic Bias"
);
return
snd_soc_dapm_sync
(
dapm
);
return
snd_soc_dapm_force_enable_pin
(
dapm
,
"Mic Bias"
);
}
static
struct
snd_soc_dai_link
tegra_wm9712_dai
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment