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
60190e46
Commit
60190e46
authored
Nov 10, 2017
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/fix/intel' into asoc-linus
parents
16a077e1
3b47c9dc
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
15 deletions
+26
-15
sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c
sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c
+1
-1
sound/soc/intel/skylake/skl-messages.c
sound/soc/intel/skylake/skl-messages.c
+1
-8
sound/soc/intel/skylake/skl-nhlt.c
sound/soc/intel/skylake/skl-nhlt.c
+9
-0
sound/soc/intel/skylake/skl-pcm.c
sound/soc/intel/skylake/skl-pcm.c
+2
-1
sound/soc/intel/skylake/skl-sst-utils.c
sound/soc/intel/skylake/skl-sst-utils.c
+11
-4
sound/soc/intel/skylake/skl-topology.h
sound/soc/intel/skylake/skl-topology.h
+2
-1
No files found.
sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c
View file @
60190e46
...
@@ -605,7 +605,7 @@ static int kabylake_card_late_probe(struct snd_soc_card *card)
...
@@ -605,7 +605,7 @@ static int kabylake_card_late_probe(struct snd_soc_card *card)
list_for_each_entry
(
pcm
,
&
ctx
->
hdmi_pcm_list
,
head
)
{
list_for_each_entry
(
pcm
,
&
ctx
->
hdmi_pcm_list
,
head
)
{
codec
=
pcm
->
codec_dai
->
codec
;
codec
=
pcm
->
codec_dai
->
codec
;
snprintf
(
jack_name
,
sizeof
(
jack_name
),
snprintf
(
jack_name
,
sizeof
(
jack_name
),
"HDMI/DP,
pcm=%d Jack"
,
pcm
->
device
);
"HDMI/DP,pcm=%d Jack"
,
pcm
->
device
);
err
=
snd_soc_card_jack_new
(
card
,
jack_name
,
err
=
snd_soc_card_jack_new
(
card
,
jack_name
,
SND_JACK_AVOUT
,
&
ctx
->
kabylake_hdmi
[
i
],
SND_JACK_AVOUT
,
&
ctx
->
kabylake_hdmi
[
i
],
NULL
,
0
);
NULL
,
0
);
...
...
sound/soc/intel/skylake/skl-messages.c
View file @
60190e46
...
@@ -702,18 +702,11 @@ static void skl_set_updown_mixer_format(struct skl_sst *ctx,
...
@@ -702,18 +702,11 @@ static void skl_set_updown_mixer_format(struct skl_sst *ctx,
struct
skl_module
*
module
=
mconfig
->
module
;
struct
skl_module
*
module
=
mconfig
->
module
;
struct
skl_module_iface
*
iface
=
&
module
->
formats
[
mconfig
->
fmt_idx
];
struct
skl_module_iface
*
iface
=
&
module
->
formats
[
mconfig
->
fmt_idx
];
struct
skl_module_fmt
*
fmt
=
&
iface
->
outputs
[
0
].
fmt
;
struct
skl_module_fmt
*
fmt
=
&
iface
->
outputs
[
0
].
fmt
;
int
i
=
0
;
skl_set_base_module_format
(
ctx
,
mconfig
,
skl_set_base_module_format
(
ctx
,
mconfig
,
(
struct
skl_base_cfg
*
)
mixer_mconfig
);
(
struct
skl_base_cfg
*
)
mixer_mconfig
);
mixer_mconfig
->
out_ch_cfg
=
fmt
->
ch_cfg
;
mixer_mconfig
->
out_ch_cfg
=
fmt
->
ch_cfg
;
mixer_mconfig
->
ch_map
=
fmt
->
ch_map
;
/* Select F/W default coefficient */
mixer_mconfig
->
coeff_sel
=
0x0
;
/* User coeff, don't care since we are selecting F/W defaults */
for
(
i
=
0
;
i
<
UP_DOWN_MIXER_MAX_COEFF
;
i
++
)
mixer_mconfig
->
coeff
[
i
]
=
0xDEADBEEF
;
}
}
/*
/*
...
...
sound/soc/intel/skylake/skl-nhlt.c
View file @
60190e46
...
@@ -20,6 +20,8 @@
...
@@ -20,6 +20,8 @@
#include <linux/pci.h>
#include <linux/pci.h>
#include "skl.h"
#include "skl.h"
#define NHLT_ACPI_HEADER_SIG "NHLT"
/* Unique identification for getting NHLT blobs */
/* Unique identification for getting NHLT blobs */
static
guid_t
osc_guid
=
static
guid_t
osc_guid
=
GUID_INIT
(
0xA69F886E
,
0x6CEB
,
0x4594
,
GUID_INIT
(
0xA69F886E
,
0x6CEB
,
0x4594
,
...
@@ -45,6 +47,13 @@ struct nhlt_acpi_table *skl_nhlt_init(struct device *dev)
...
@@ -45,6 +47,13 @@ struct nhlt_acpi_table *skl_nhlt_init(struct device *dev)
memremap
(
nhlt_ptr
->
min_addr
,
nhlt_ptr
->
length
,
memremap
(
nhlt_ptr
->
min_addr
,
nhlt_ptr
->
length
,
MEMREMAP_WB
);
MEMREMAP_WB
);
ACPI_FREE
(
obj
);
ACPI_FREE
(
obj
);
if
(
nhlt_table
&&
(
strncmp
(
nhlt_table
->
header
.
signature
,
NHLT_ACPI_HEADER_SIG
,
strlen
(
NHLT_ACPI_HEADER_SIG
))
!=
0
))
{
memunmap
(
nhlt_table
);
dev_err
(
dev
,
"NHLT ACPI header signature incorrect
\n
"
);
return
NULL
;
}
return
nhlt_table
;
return
nhlt_table
;
}
}
...
...
sound/soc/intel/skylake/skl-pcm.c
View file @
60190e46
...
@@ -355,7 +355,8 @@ static void skl_pcm_close(struct snd_pcm_substream *substream,
...
@@ -355,7 +355,8 @@ static void skl_pcm_close(struct snd_pcm_substream *substream,
}
}
mconfig
=
skl_tplg_fe_get_cpr_module
(
dai
,
substream
->
stream
);
mconfig
=
skl_tplg_fe_get_cpr_module
(
dai
,
substream
->
stream
);
skl_tplg_d0i3_put
(
skl
,
mconfig
->
d0i3_caps
);
if
(
mconfig
)
skl_tplg_d0i3_put
(
skl
,
mconfig
->
d0i3_caps
);
kfree
(
dma_params
);
kfree
(
dma_params
);
}
}
...
...
sound/soc/intel/skylake/skl-sst-utils.c
View file @
60190e46
...
@@ -251,6 +251,7 @@ int snd_skl_parse_uuids(struct sst_dsp *ctx, const struct firmware *fw,
...
@@ -251,6 +251,7 @@ int snd_skl_parse_uuids(struct sst_dsp *ctx, const struct firmware *fw,
struct
uuid_module
*
module
;
struct
uuid_module
*
module
;
struct
firmware
stripped_fw
;
struct
firmware
stripped_fw
;
unsigned
int
safe_file
;
unsigned
int
safe_file
;
int
ret
=
0
;
/* Get the FW pointer to derive ADSP header */
/* Get the FW pointer to derive ADSP header */
stripped_fw
.
data
=
fw
->
data
;
stripped_fw
.
data
=
fw
->
data
;
...
@@ -299,8 +300,10 @@ int snd_skl_parse_uuids(struct sst_dsp *ctx, const struct firmware *fw,
...
@@ -299,8 +300,10 @@ int snd_skl_parse_uuids(struct sst_dsp *ctx, const struct firmware *fw,
for
(
i
=
0
;
i
<
num_entry
;
i
++
,
mod_entry
++
)
{
for
(
i
=
0
;
i
<
num_entry
;
i
++
,
mod_entry
++
)
{
module
=
kzalloc
(
sizeof
(
*
module
),
GFP_KERNEL
);
module
=
kzalloc
(
sizeof
(
*
module
),
GFP_KERNEL
);
if
(
!
module
)
if
(
!
module
)
{
return
-
ENOMEM
;
ret
=
-
ENOMEM
;
goto
free_uuid_list
;
}
uuid_bin
=
(
uuid_le
*
)
mod_entry
->
uuid
.
id
;
uuid_bin
=
(
uuid_le
*
)
mod_entry
->
uuid
.
id
;
memcpy
(
&
module
->
uuid
,
uuid_bin
,
sizeof
(
module
->
uuid
));
memcpy
(
&
module
->
uuid
,
uuid_bin
,
sizeof
(
module
->
uuid
));
...
@@ -311,8 +314,8 @@ int snd_skl_parse_uuids(struct sst_dsp *ctx, const struct firmware *fw,
...
@@ -311,8 +314,8 @@ int snd_skl_parse_uuids(struct sst_dsp *ctx, const struct firmware *fw,
size
=
sizeof
(
int
)
*
mod_entry
->
instance_max_count
;
size
=
sizeof
(
int
)
*
mod_entry
->
instance_max_count
;
module
->
instance_id
=
devm_kzalloc
(
ctx
->
dev
,
size
,
GFP_KERNEL
);
module
->
instance_id
=
devm_kzalloc
(
ctx
->
dev
,
size
,
GFP_KERNEL
);
if
(
!
module
->
instance_id
)
{
if
(
!
module
->
instance_id
)
{
kfree
(
module
)
;
ret
=
-
ENOMEM
;
return
-
ENOMEM
;
goto
free_uuid_list
;
}
}
list_add_tail
(
&
module
->
list
,
&
skl
->
uuid_list
);
list_add_tail
(
&
module
->
list
,
&
skl
->
uuid_list
);
...
@@ -323,6 +326,10 @@ int snd_skl_parse_uuids(struct sst_dsp *ctx, const struct firmware *fw,
...
@@ -323,6 +326,10 @@ int snd_skl_parse_uuids(struct sst_dsp *ctx, const struct firmware *fw,
}
}
return
0
;
return
0
;
free_uuid_list:
skl_freeup_uuid_list
(
skl
);
return
ret
;
}
}
void
skl_freeup_uuid_list
(
struct
skl_sst
*
ctx
)
void
skl_freeup_uuid_list
(
struct
skl_sst
*
ctx
)
...
...
sound/soc/intel/skylake/skl-topology.h
View file @
60190e46
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
#define MAX_FIXED_DMIC_PARAMS_SIZE 727
#define MAX_FIXED_DMIC_PARAMS_SIZE 727
/* Maximum number of coefficients up down mixer module */
/* Maximum number of coefficients up down mixer module */
#define UP_DOWN_MIXER_MAX_COEFF
6
#define UP_DOWN_MIXER_MAX_COEFF
8
#define MODULE_MAX_IN_PINS 8
#define MODULE_MAX_IN_PINS 8
#define MODULE_MAX_OUT_PINS 8
#define MODULE_MAX_OUT_PINS 8
...
@@ -161,6 +161,7 @@ struct skl_up_down_mixer_cfg {
...
@@ -161,6 +161,7 @@ struct skl_up_down_mixer_cfg {
u32
coeff_sel
;
u32
coeff_sel
;
/* Pass the user coeff in this array */
/* Pass the user coeff in this array */
s32
coeff
[
UP_DOWN_MIXER_MAX_COEFF
];
s32
coeff
[
UP_DOWN_MIXER_MAX_COEFF
];
u32
ch_map
;
}
__packed
;
}
__packed
;
struct
skl_algo_cfg
{
struct
skl_algo_cfg
{
...
...
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