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
3b88210d
Commit
3b88210d
authored
Dec 23, 2015
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/dapm' into asoc-next
parents
6b8bd8b2
20bb0184
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
include/sound/soc-dapm.h
include/sound/soc-dapm.h
+4
-0
include/sound/soc.h
include/sound/soc.h
+3
-0
sound/soc/soc-dapm.c
sound/soc/soc-dapm.c
+6
-1
No files found.
include/sound/soc-dapm.h
View file @
3b88210d
...
@@ -49,6 +49,9 @@ struct device;
...
@@ -49,6 +49,9 @@ struct device;
#define SND_SOC_DAPM_SIGGEN(wname) \
#define SND_SOC_DAPM_SIGGEN(wname) \
{ .id = snd_soc_dapm_siggen, .name = wname, .kcontrol_news = NULL, \
{ .id = snd_soc_dapm_siggen, .name = wname, .kcontrol_news = NULL, \
.num_kcontrols = 0, .reg = SND_SOC_NOPM }
.num_kcontrols = 0, .reg = SND_SOC_NOPM }
#define SND_SOC_DAPM_SINK(wname) \
{ .id = snd_soc_dapm_sink, .name = wname, .kcontrol_news = NULL, \
.num_kcontrols = 0, .reg = SND_SOC_NOPM }
#define SND_SOC_DAPM_INPUT(wname) \
#define SND_SOC_DAPM_INPUT(wname) \
{ .id = snd_soc_dapm_input, .name = wname, .kcontrol_news = NULL, \
{ .id = snd_soc_dapm_input, .name = wname, .kcontrol_news = NULL, \
.num_kcontrols = 0, .reg = SND_SOC_NOPM }
.num_kcontrols = 0, .reg = SND_SOC_NOPM }
...
@@ -485,6 +488,7 @@ enum snd_soc_dapm_type {
...
@@ -485,6 +488,7 @@ enum snd_soc_dapm_type {
snd_soc_dapm_aif_in
,
/* audio interface input */
snd_soc_dapm_aif_in
,
/* audio interface input */
snd_soc_dapm_aif_out
,
/* audio interface output */
snd_soc_dapm_aif_out
,
/* audio interface output */
snd_soc_dapm_siggen
,
/* signal generator */
snd_soc_dapm_siggen
,
/* signal generator */
snd_soc_dapm_sink
,
snd_soc_dapm_dai_in
,
/* link to DAI structure */
snd_soc_dapm_dai_in
,
/* link to DAI structure */
snd_soc_dapm_dai_out
,
snd_soc_dapm_dai_out
,
snd_soc_dapm_dai_link
,
/* link between two DAI structures */
snd_soc_dapm_dai_link
,
/* link between two DAI structures */
...
...
include/sound/soc.h
View file @
3b88210d
...
@@ -293,6 +293,9 @@
...
@@ -293,6 +293,9 @@
{.base = xbase, .num_regs = xregs, \
{.base = xbase, .num_regs = xregs, \
.mask = xmask }) }
.mask = xmask }) }
/*
* SND_SOC_BYTES_EXT is deprecated, please USE SND_SOC_BYTES_TLV instead
*/
#define SND_SOC_BYTES_EXT(xname, xcount, xhandler_get, xhandler_put) \
#define SND_SOC_BYTES_EXT(xname, xcount, xhandler_get, xhandler_put) \
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
.info = snd_soc_bytes_info_ext, \
.info = snd_soc_bytes_info_ext, \
...
...
sound/soc/soc-dapm.c
View file @
3b88210d
...
@@ -1300,7 +1300,7 @@ static int dapm_supply_check_power(struct snd_soc_dapm_widget *w)
...
@@ -1300,7 +1300,7 @@ static int dapm_supply_check_power(struct snd_soc_dapm_widget *w)
static
int
dapm_always_on_check_power
(
struct
snd_soc_dapm_widget
*
w
)
static
int
dapm_always_on_check_power
(
struct
snd_soc_dapm_widget
*
w
)
{
{
return
1
;
return
w
->
connected
;
}
}
static
int
dapm_seq_compare
(
struct
snd_soc_dapm_widget
*
a
,
static
int
dapm_seq_compare
(
struct
snd_soc_dapm_widget
*
a
,
...
@@ -3358,6 +3358,11 @@ snd_soc_dapm_new_control_unlocked(struct snd_soc_dapm_context *dapm,
...
@@ -3358,6 +3358,11 @@ snd_soc_dapm_new_control_unlocked(struct snd_soc_dapm_context *dapm,
w
->
is_ep
=
SND_SOC_DAPM_EP_SOURCE
;
w
->
is_ep
=
SND_SOC_DAPM_EP_SOURCE
;
w
->
power_check
=
dapm_always_on_check_power
;
w
->
power_check
=
dapm_always_on_check_power
;
break
;
break
;
case
snd_soc_dapm_sink
:
w
->
is_ep
=
SND_SOC_DAPM_EP_SINK
;
w
->
power_check
=
dapm_always_on_check_power
;
break
;
case
snd_soc_dapm_mux
:
case
snd_soc_dapm_mux
:
case
snd_soc_dapm_demux
:
case
snd_soc_dapm_demux
:
case
snd_soc_dapm_switch
:
case
snd_soc_dapm_switch
:
...
...
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