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
nexedi
linux
Commits
bc42f363
Commit
bc42f363
authored
Jan 05, 2016
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/fix/intel' into asoc-linus
parents
84a5347b
d8018361
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
sound/soc/intel/skylake/skl-topology.c
sound/soc/intel/skylake/skl-topology.c
+2
-1
sound/soc/intel/skylake/skl.c
sound/soc/intel/skylake/skl.c
+4
-0
sound/soc/intel/skylake/skl.h
sound/soc/intel/skylake/skl.h
+2
-0
No files found.
sound/soc/intel/skylake/skl-topology.c
View file @
bc42f363
...
...
@@ -1240,7 +1240,6 @@ int skl_tplg_init(struct snd_soc_platform *platform, struct hdac_ext_bus *ebus)
*/
ret
=
snd_soc_tplg_component_load
(
&
platform
->
component
,
&
skl_tplg_ops
,
fw
,
0
);
release_firmware
(
fw
);
if
(
ret
<
0
)
{
dev_err
(
bus
->
dev
,
"tplg component load failed%d
\n
"
,
ret
);
return
-
EINVAL
;
...
...
@@ -1249,5 +1248,7 @@ int skl_tplg_init(struct snd_soc_platform *platform, struct hdac_ext_bus *ebus)
skl
->
resource
.
max_mcps
=
SKL_MAX_MCPS
;
skl
->
resource
.
max_mem
=
SKL_FW_MAX_MEM
;
skl
->
tplg
=
fw
;
return
0
;
}
sound/soc/intel/skylake/skl.c
View file @
bc42f363
...
...
@@ -25,6 +25,7 @@
#include <linux/pci.h>
#include <linux/pm_runtime.h>
#include <linux/platform_device.h>
#include <linux/firmware.h>
#include <sound/pcm.h>
#include "skl.h"
...
...
@@ -520,6 +521,9 @@ static void skl_remove(struct pci_dev *pci)
struct
hdac_ext_bus
*
ebus
=
pci_get_drvdata
(
pci
);
struct
skl
*
skl
=
ebus_to_skl
(
ebus
);
if
(
skl
->
tplg
)
release_firmware
(
skl
->
tplg
);
if
(
pci_dev_run_wake
(
pci
))
pm_runtime_get_noresume
(
&
pci
->
dev
);
pci_dev_put
(
pci
);
...
...
sound/soc/intel/skylake/skl.h
View file @
bc42f363
...
...
@@ -68,6 +68,8 @@ struct skl {
struct
skl_dsp_resource
resource
;
struct
list_head
ppl_list
;
struct
list_head
dapm_path_list
;
const
struct
firmware
*
tplg
;
};
#define skl_to_ebus(s) (&(s)->ebus)
...
...
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