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
Kirill Smelkov
linux
Commits
1727428d
Commit
1727428d
authored
Mar 13, 2014
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/s6000' into asoc-next
parents
3025df7f
b92af2b8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
18 deletions
+10
-18
sound/soc/s6000/s6105-ipcam.c
sound/soc/s6000/s6105-ipcam.c
+10
-18
No files found.
sound/soc/s6000/s6105-ipcam.c
View file @
1727428d
...
@@ -104,8 +104,8 @@ static int output_type_get(struct snd_kcontrol *kcontrol,
...
@@ -104,8 +104,8 @@ static int output_type_get(struct snd_kcontrol *kcontrol,
static
int
output_type_put
(
struct
snd_kcontrol
*
kcontrol
,
static
int
output_type_put
(
struct
snd_kcontrol
*
kcontrol
,
struct
snd_ctl_elem_value
*
ucontrol
)
struct
snd_ctl_elem_value
*
ucontrol
)
{
{
struct
snd_soc_c
odec
*
codec
=
kcontrol
->
private_data
;
struct
snd_soc_c
ard
*
card
=
kcontrol
->
private_data
;
struct
snd_soc_dapm_context
*
dapm
=
&
c
odec
->
dapm
;
struct
snd_soc_dapm_context
*
dapm
=
&
c
ard
->
dapm
;
unsigned
int
val
=
(
ucontrol
->
value
.
enumerated
.
item
[
0
]
!=
0
);
unsigned
int
val
=
(
ucontrol
->
value
.
enumerated
.
item
[
0
]
!=
0
);
char
*
differential
=
"Audio Out Differential"
;
char
*
differential
=
"Audio Out Differential"
;
char
*
stereo
=
"Audio Out Stereo"
;
char
*
stereo
=
"Audio Out Stereo"
;
...
@@ -137,13 +137,7 @@ static int s6105_aic3x_init(struct snd_soc_pcm_runtime *rtd)
...
@@ -137,13 +137,7 @@ static int s6105_aic3x_init(struct snd_soc_pcm_runtime *rtd)
{
{
struct
snd_soc_codec
*
codec
=
rtd
->
codec
;
struct
snd_soc_codec
*
codec
=
rtd
->
codec
;
struct
snd_soc_dapm_context
*
dapm
=
&
codec
->
dapm
;
struct
snd_soc_dapm_context
*
dapm
=
&
codec
->
dapm
;
struct
snd_soc_card
*
card
=
rtd
->
card
;
/* Add s6105 specific widgets */
snd_soc_dapm_new_controls
(
dapm
,
aic3x_dapm_widgets
,
ARRAY_SIZE
(
aic3x_dapm_widgets
));
/* Set up s6105 specific audio path audio_map */
snd_soc_dapm_add_routes
(
dapm
,
audio_map
,
ARRAY_SIZE
(
audio_map
));
/* not present */
/* not present */
snd_soc_dapm_nc_pin
(
dapm
,
"MONO_LOUT"
);
snd_soc_dapm_nc_pin
(
dapm
,
"MONO_LOUT"
);
...
@@ -157,17 +151,10 @@ static int s6105_aic3x_init(struct snd_soc_pcm_runtime *rtd)
...
@@ -157,17 +151,10 @@ static int s6105_aic3x_init(struct snd_soc_pcm_runtime *rtd)
snd_soc_dapm_nc_pin
(
dapm
,
"RLOUT"
);
snd_soc_dapm_nc_pin
(
dapm
,
"RLOUT"
);
snd_soc_dapm_nc_pin
(
dapm
,
"HPRCOM"
);
snd_soc_dapm_nc_pin
(
dapm
,
"HPRCOM"
);
/* always connected */
snd_soc_dapm_enable_pin
(
dapm
,
"Audio In"
);
/* must correspond to audio_out_mux.private_value initializer */
/* must correspond to audio_out_mux.private_value initializer */
snd_soc_dapm_disable_pin
(
dapm
,
"Audio Out Differential"
);
snd_soc_dapm_disable_pin
(
&
card
->
dapm
,
"Audio Out Differential"
);
snd_soc_dapm_sync
(
dapm
);
snd_soc_dapm_enable_pin
(
dapm
,
"Audio Out Stereo"
);
snd_soc_dapm_sync
(
dapm
);
snd_ctl_add
(
c
odec
->
card
->
snd_card
,
snd_ctl_new1
(
&
audio_out_mux
,
codec
));
snd_ctl_add
(
c
ard
->
snd_card
,
snd_ctl_new1
(
&
audio_out_mux
,
card
));
return
0
;
return
0
;
}
}
...
@@ -190,6 +177,11 @@ static struct snd_soc_card snd_soc_card_s6105 = {
...
@@ -190,6 +177,11 @@ static struct snd_soc_card snd_soc_card_s6105 = {
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
dai_link
=
&
s6105_dai
,
.
dai_link
=
&
s6105_dai
,
.
num_links
=
1
,
.
num_links
=
1
,
.
dapm_widgets
=
aic3x_dapm_widgets
,
.
num_dapm_widgets
=
ARRAY_SIZE
(
aic3x_dapm_widgets
),
.
dapm_routes
=
audio_map
,
.
num_dapm_routes
=
ARRAY_SIZE
(
audio_map
),
};
};
static
struct
s6000_snd_platform_data
s6105_snd_data
__initdata
=
{
static
struct
s6000_snd_platform_data
s6105_snd_data
__initdata
=
{
...
...
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