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
2e8239e7
Commit
2e8239e7
authored
Dec 12, 2016
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/fix/intel' into asoc-linus
parents
69973b83
2fc995a8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
sound/soc/intel/atom/sst-mfld-platform-pcm.c
sound/soc/intel/atom/sst-mfld-platform-pcm.c
+6
-0
sound/soc/intel/atom/sst/sst_acpi.c
sound/soc/intel/atom/sst/sst_acpi.c
+2
-0
sound/soc/intel/boards/cht_bsw_rt5645.c
sound/soc/intel/boards/cht_bsw_rt5645.c
+3
-3
No files found.
sound/soc/intel/atom/sst-mfld-platform-pcm.c
View file @
2e8239e7
...
...
@@ -771,6 +771,9 @@ static int sst_soc_prepare(struct device *dev)
struct
sst_data
*
drv
=
dev_get_drvdata
(
dev
);
struct
snd_soc_pcm_runtime
*
rtd
;
if
(
!
drv
->
soc_card
)
return
0
;
/* suspend all pcms first */
snd_soc_suspend
(
drv
->
soc_card
->
dev
);
snd_soc_poweroff
(
drv
->
soc_card
->
dev
);
...
...
@@ -793,6 +796,9 @@ static void sst_soc_complete(struct device *dev)
struct
sst_data
*
drv
=
dev_get_drvdata
(
dev
);
struct
snd_soc_pcm_runtime
*
rtd
;
if
(
!
drv
->
soc_card
)
return
;
/* restart SSPs */
list_for_each_entry
(
rtd
,
&
drv
->
soc_card
->
rtd_list
,
list
)
{
struct
snd_soc_dai
*
dai
=
rtd
->
cpu_dai
;
...
...
sound/soc/intel/atom/sst/sst_acpi.c
View file @
2e8239e7
...
...
@@ -452,6 +452,8 @@ static struct sst_acpi_mach sst_acpi_bytcr[] = {
static
struct
sst_acpi_mach
sst_acpi_chv
[]
=
{
{
"10EC5670"
,
"cht-bsw-rt5672"
,
"intel/fw_sst_22a8.bin"
,
"cht-bsw"
,
NULL
,
&
chv_platform_data
},
{
"10EC5672"
,
"cht-bsw-rt5672"
,
"intel/fw_sst_22a8.bin"
,
"cht-bsw"
,
NULL
,
&
chv_platform_data
},
{
"10EC5645"
,
"cht-bsw-rt5645"
,
"intel/fw_sst_22a8.bin"
,
"cht-bsw"
,
NULL
,
&
chv_platform_data
},
{
"10EC5650"
,
"cht-bsw-rt5645"
,
"intel/fw_sst_22a8.bin"
,
"cht-bsw"
,
NULL
,
...
...
sound/soc/intel/boards/cht_bsw_rt5645.c
View file @
2e8239e7
...
...
@@ -44,6 +44,7 @@ struct cht_acpi_card {
struct
cht_mc_private
{
struct
snd_soc_jack
jack
;
struct
cht_acpi_card
*
acpi_card
;
char
codec_name
[
16
];
};
static
inline
struct
snd_soc_dai
*
cht_get_codec_dai
(
struct
snd_soc_card
*
card
)
...
...
@@ -354,7 +355,6 @@ static int snd_cht_mc_probe(struct platform_device *pdev)
int
i
;
struct
cht_mc_private
*
drv
;
struct
snd_soc_card
*
card
=
snd_soc_cards
[
0
].
soc_card
;
char
codec_name
[
16
];
struct
sst_acpi_mach
*
mach
;
const
char
*
i2c_name
=
NULL
;
int
dai_index
=
0
;
...
...
@@ -374,12 +374,12 @@ static int snd_cht_mc_probe(struct platform_device *pdev)
}
card
->
dev
=
&
pdev
->
dev
;
mach
=
card
->
dev
->
platform_data
;
sprintf
(
codec_name
,
"i2c-%s:00"
,
drv
->
acpi_card
->
codec_id
);
sprintf
(
drv
->
codec_name
,
"i2c-%s:00"
,
drv
->
acpi_card
->
codec_id
);
/* set correct codec name */
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
cht_dailink
);
i
++
)
if
(
!
strcmp
(
card
->
dai_link
[
i
].
codec_name
,
"i2c-10EC5645:00"
))
{
card
->
dai_link
[
i
].
codec_name
=
kstrdup
(
codec_name
,
GFP_KERNEL
)
;
card
->
dai_link
[
i
].
codec_name
=
drv
->
codec_name
;
dai_index
=
i
;
}
...
...
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