Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
1649923d
Commit
1649923d
authored
Jan 07, 2009
by
Mark Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ASoC: Constify pin names for DAPM pin status APIs
Signed-off-by:
Mark Brown
<
broonie@opensource.wolfsonmicro.com
>
parent
ca9c1aae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
include/sound/soc-dapm.h
include/sound/soc-dapm.h
+4
-4
sound/soc/soc-dapm.c
sound/soc/soc-dapm.c
+5
-5
No files found.
include/sound/soc-dapm.h
View file @
1649923d
...
@@ -260,10 +260,10 @@ int snd_soc_dapm_set_bias_level(struct snd_soc_device *socdev,
...
@@ -260,10 +260,10 @@ int snd_soc_dapm_set_bias_level(struct snd_soc_device *socdev,
int
snd_soc_dapm_sys_add
(
struct
device
*
dev
);
int
snd_soc_dapm_sys_add
(
struct
device
*
dev
);
/* dapm audio pin control and status */
/* dapm audio pin control and status */
int
snd_soc_dapm_enable_pin
(
struct
snd_soc_codec
*
codec
,
char
*
pin
);
int
snd_soc_dapm_enable_pin
(
struct
snd_soc_codec
*
codec
,
c
onst
c
har
*
pin
);
int
snd_soc_dapm_disable_pin
(
struct
snd_soc_codec
*
codec
,
char
*
pin
);
int
snd_soc_dapm_disable_pin
(
struct
snd_soc_codec
*
codec
,
c
onst
c
har
*
pin
);
int
snd_soc_dapm_nc_pin
(
struct
snd_soc_codec
*
codec
,
char
*
pin
);
int
snd_soc_dapm_nc_pin
(
struct
snd_soc_codec
*
codec
,
c
onst
c
har
*
pin
);
int
snd_soc_dapm_get_pin_status
(
struct
snd_soc_codec
*
codec
,
char
*
pin
);
int
snd_soc_dapm_get_pin_status
(
struct
snd_soc_codec
*
codec
,
c
onst
c
har
*
pin
);
int
snd_soc_dapm_sync
(
struct
snd_soc_codec
*
codec
);
int
snd_soc_dapm_sync
(
struct
snd_soc_codec
*
codec
);
/* dapm widget types */
/* dapm widget types */
...
...
sound/soc/soc-dapm.c
View file @
1649923d
...
@@ -961,7 +961,7 @@ static void dapm_free_widgets(struct snd_soc_codec *codec)
...
@@ -961,7 +961,7 @@ static void dapm_free_widgets(struct snd_soc_codec *codec)
}
}
static
int
snd_soc_dapm_set_pin
(
struct
snd_soc_codec
*
codec
,
static
int
snd_soc_dapm_set_pin
(
struct
snd_soc_codec
*
codec
,
char
*
pin
,
int
status
)
const
char
*
pin
,
int
status
)
{
{
struct
snd_soc_dapm_widget
*
w
;
struct
snd_soc_dapm_widget
*
w
;
...
@@ -1643,7 +1643,7 @@ int snd_soc_dapm_set_bias_level(struct snd_soc_device *socdev,
...
@@ -1643,7 +1643,7 @@ int snd_soc_dapm_set_bias_level(struct snd_soc_device *socdev,
* NOTE: snd_soc_dapm_sync() needs to be called after this for DAPM to
* NOTE: snd_soc_dapm_sync() needs to be called after this for DAPM to
* do any widget power switching.
* do any widget power switching.
*/
*/
int
snd_soc_dapm_enable_pin
(
struct
snd_soc_codec
*
codec
,
char
*
pin
)
int
snd_soc_dapm_enable_pin
(
struct
snd_soc_codec
*
codec
,
c
onst
c
har
*
pin
)
{
{
return
snd_soc_dapm_set_pin
(
codec
,
pin
,
1
);
return
snd_soc_dapm_set_pin
(
codec
,
pin
,
1
);
}
}
...
@@ -1658,7 +1658,7 @@ EXPORT_SYMBOL_GPL(snd_soc_dapm_enable_pin);
...
@@ -1658,7 +1658,7 @@ EXPORT_SYMBOL_GPL(snd_soc_dapm_enable_pin);
* NOTE: snd_soc_dapm_sync() needs to be called after this for DAPM to
* NOTE: snd_soc_dapm_sync() needs to be called after this for DAPM to
* do any widget power switching.
* do any widget power switching.
*/
*/
int
snd_soc_dapm_disable_pin
(
struct
snd_soc_codec
*
codec
,
char
*
pin
)
int
snd_soc_dapm_disable_pin
(
struct
snd_soc_codec
*
codec
,
c
onst
c
har
*
pin
)
{
{
return
snd_soc_dapm_set_pin
(
codec
,
pin
,
0
);
return
snd_soc_dapm_set_pin
(
codec
,
pin
,
0
);
}
}
...
@@ -1678,7 +1678,7 @@ EXPORT_SYMBOL_GPL(snd_soc_dapm_disable_pin);
...
@@ -1678,7 +1678,7 @@ EXPORT_SYMBOL_GPL(snd_soc_dapm_disable_pin);
* NOTE: snd_soc_dapm_sync() needs to be called after this for DAPM to
* NOTE: snd_soc_dapm_sync() needs to be called after this for DAPM to
* do any widget power switching.
* do any widget power switching.
*/
*/
int
snd_soc_dapm_nc_pin
(
struct
snd_soc_codec
*
codec
,
char
*
pin
)
int
snd_soc_dapm_nc_pin
(
struct
snd_soc_codec
*
codec
,
c
onst
c
har
*
pin
)
{
{
return
snd_soc_dapm_set_pin
(
codec
,
pin
,
0
);
return
snd_soc_dapm_set_pin
(
codec
,
pin
,
0
);
}
}
...
@@ -1693,7 +1693,7 @@ EXPORT_SYMBOL_GPL(snd_soc_dapm_nc_pin);
...
@@ -1693,7 +1693,7 @@ EXPORT_SYMBOL_GPL(snd_soc_dapm_nc_pin);
*
*
* Returns 1 for connected otherwise 0.
* Returns 1 for connected otherwise 0.
*/
*/
int
snd_soc_dapm_get_pin_status
(
struct
snd_soc_codec
*
codec
,
char
*
pin
)
int
snd_soc_dapm_get_pin_status
(
struct
snd_soc_codec
*
codec
,
c
onst
c
har
*
pin
)
{
{
struct
snd_soc_dapm_widget
*
w
;
struct
snd_soc_dapm_widget
*
w
;
...
...
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