Donate to
e Foundation
|
Murena
handsets with /e/OS | Own a part of Murena!
Learn more
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
android_kernel_teracube_emerald
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
e
devices
android_kernel_teracube_emerald
Commits
c5a216c3
Unverified
Commit
c5a216c3
authored
7 years ago
by
Mark Brown
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'asoc/topic/qcom' into asoc-next
parents
7ba22264
96e1b9ee
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sound/soc/qcom/apq8016_sbc.c
+5
-5
5 additions, 5 deletions
sound/soc/qcom/apq8016_sbc.c
with
5 additions
and
5 deletions
sound/soc/qcom/apq8016_sbc.c
+
5
−
5
View file @
c5a216c3
...
@@ -43,7 +43,7 @@ struct apq8016_sbc_data {
...
@@ -43,7 +43,7 @@ struct apq8016_sbc_data {
static
int
apq8016_sbc_dai_init
(
struct
snd_soc_pcm_runtime
*
rtd
)
static
int
apq8016_sbc_dai_init
(
struct
snd_soc_pcm_runtime
*
rtd
)
{
{
struct
snd_soc_dai
*
cpu_dai
=
rtd
->
cpu_dai
;
struct
snd_soc_dai
*
cpu_dai
=
rtd
->
cpu_dai
;
struct
snd_soc_co
dec
*
codec
;
struct
snd_soc_co
mponent
*
component
;
struct
snd_soc_dai_link
*
dai_link
=
rtd
->
dai_link
;
struct
snd_soc_dai_link
*
dai_link
=
rtd
->
dai_link
;
struct
snd_soc_card
*
card
=
rtd
->
card
;
struct
snd_soc_card
*
card
=
rtd
->
card
;
struct
apq8016_sbc_data
*
pdata
=
snd_soc_card_get_drvdata
(
card
);
struct
apq8016_sbc_data
*
pdata
=
snd_soc_card_get_drvdata
(
card
);
...
@@ -92,7 +92,7 @@ static int apq8016_sbc_dai_init(struct snd_soc_pcm_runtime *rtd)
...
@@ -92,7 +92,7 @@ static int apq8016_sbc_dai_init(struct snd_soc_pcm_runtime *rtd)
jack
=
pdata
->
jack
.
jack
;
jack
=
pdata
->
jack
.
jack
;
snd_jack_set_key
(
jack
,
SND_JACK_BTN_0
,
KEY_
MEDIA
);
snd_jack_set_key
(
jack
,
SND_JACK_BTN_0
,
KEY_
PLAYPAUSE
);
snd_jack_set_key
(
jack
,
SND_JACK_BTN_1
,
KEY_VOICECOMMAND
);
snd_jack_set_key
(
jack
,
SND_JACK_BTN_1
,
KEY_VOICECOMMAND
);
snd_jack_set_key
(
jack
,
SND_JACK_BTN_2
,
KEY_VOLUMEUP
);
snd_jack_set_key
(
jack
,
SND_JACK_BTN_2
,
KEY_VOLUMEUP
);
snd_jack_set_key
(
jack
,
SND_JACK_BTN_3
,
KEY_VOLUMEDOWN
);
snd_jack_set_key
(
jack
,
SND_JACK_BTN_3
,
KEY_VOLUMEDOWN
);
...
@@ -102,15 +102,15 @@ static int apq8016_sbc_dai_init(struct snd_soc_pcm_runtime *rtd)
...
@@ -102,15 +102,15 @@ static int apq8016_sbc_dai_init(struct snd_soc_pcm_runtime *rtd)
for
(
i
=
0
;
i
<
dai_link
->
num_codecs
;
i
++
)
{
for
(
i
=
0
;
i
<
dai_link
->
num_codecs
;
i
++
)
{
struct
snd_soc_dai
*
dai
=
rtd
->
codec_dais
[
i
];
struct
snd_soc_dai
*
dai
=
rtd
->
codec_dais
[
i
];
co
dec
=
dai
->
co
dec
;
co
mponent
=
dai
->
co
mponent
;
/* Set default mclk for internal codec */
/* Set default mclk for internal codec */
rval
=
snd_soc_co
dec
_set_sysclk
(
co
dec
,
0
,
0
,
DEFAULT_MCLK_RATE
,
rval
=
snd_soc_co
mponent
_set_sysclk
(
co
mponent
,
0
,
0
,
DEFAULT_MCLK_RATE
,
SND_SOC_CLOCK_IN
);
SND_SOC_CLOCK_IN
);
if
(
rval
!=
0
&&
rval
!=
-
ENOTSUPP
)
{
if
(
rval
!=
0
&&
rval
!=
-
ENOTSUPP
)
{
dev_warn
(
card
->
dev
,
"Failed to set mclk: %d
\n
"
,
rval
);
dev_warn
(
card
->
dev
,
"Failed to set mclk: %d
\n
"
,
rval
);
return
rval
;
return
rval
;
}
}
rval
=
snd_soc_co
dec
_set_jack
(
co
dec
,
&
pdata
->
jack
,
NULL
);
rval
=
snd_soc_co
mponent
_set_jack
(
co
mponent
,
&
pdata
->
jack
,
NULL
);
if
(
rval
!=
0
&&
rval
!=
-
ENOTSUPP
)
{
if
(
rval
!=
0
&&
rval
!=
-
ENOTSUPP
)
{
dev_warn
(
card
->
dev
,
"Failed to set jack: %d
\n
"
,
rval
);
dev_warn
(
card
->
dev
,
"Failed to set jack: %d
\n
"
,
rval
);
return
rval
;
return
rval
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment