Skip to content

Commit 122d851

Browse files
committed
ASoC: Intel: boards: updates for SOF boards
Merge series from Pierre-Louis Bossart <[email protected]>: One new JasperLake configuration, core refactoring between RT1316 and RT1318 and a minor uninitialized variable corner case.
2 parents 4f143ec + 47d2b66 commit 122d851

File tree

9 files changed

+133
-412
lines changed

9 files changed

+133
-412
lines changed

sound/soc/intel/boards/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ snd-soc-sof_da7219_max98373-objs := sof_da7219_max98373.o
3737
snd-soc-ehl-rt5660-objs := ehl_rt5660.o
3838
snd-soc-sof-ssp-amp-objs := sof_ssp_amp.o
3939
snd-soc-sof-sdw-objs += sof_sdw.o \
40-
sof_sdw_max98373.o sof_sdw_rt1308.o \
41-
sof_sdw_rt1316.o sof_sdw_rt1318.o \
40+
sof_sdw_max98373.o sof_sdw_rt_amp.o \
4241
sof_sdw_rt5682.o sof_sdw_rt700.o \
4342
sof_sdw_rt711.o sof_sdw_rt711_sdca.o \
4443
sof_sdw_rt715.o sof_sdw_rt715_sdca.o \

sound/soc/intel/boards/sof_realtek_common.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ static int rt1015_hw_params(struct snd_pcm_substream *substream,
267267
struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
268268
struct snd_soc_dai_link *dai_link = rtd->dai_link;
269269
struct snd_soc_dai *codec_dai;
270-
int i, clk_freq, ret;
270+
int i, clk_freq;
271+
int ret = 0;
271272

272273
clk_freq = sof_dai_get_bclk(rtd);
273274

sound/soc/intel/boards/sof_rt5682.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,6 +1104,12 @@ static const struct platform_device_id board_ids[] = {
11041104
SOF_RT5682_SSP_AMP(1) |
11051105
SOF_RT5682_NUM_HDMIDEV(4)),
11061106
},
1107+
{
1108+
.name = "jsl_rt5682",
1109+
.driver_data = (kernel_ulong_t)(SOF_RT5682_MCLK_EN |
1110+
SOF_RT5682_MCLK_24MHZ |
1111+
SOF_RT5682_SSP_CODEC(0)),
1112+
},
11071113
{ }
11081114
};
11091115
MODULE_DEVICE_TABLE(platform, board_ids);

sound/soc/intel/boards/sof_sdw.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -550,23 +550,23 @@ static struct sof_sdw_codec_info codec_info_list[] = {
550550
.direction = {true, false},
551551
.dai_name = "rt1308-aif",
552552
.ops = &sof_sdw_rt1308_i2s_ops,
553-
.init = sof_sdw_rt1308_init,
554-
.exit = sof_sdw_rt1308_exit,
553+
.init = sof_sdw_rt_amp_init,
554+
.exit = sof_sdw_rt_amp_exit,
555555
.codec_type = SOF_SDW_CODEC_TYPE_AMP,
556556
},
557557
{
558558
.part_id = 0x1316,
559559
.direction = {true, true},
560560
.dai_name = "rt1316-aif",
561-
.init = sof_sdw_rt1316_init,
562-
.exit = sof_sdw_rt1316_exit,
561+
.init = sof_sdw_rt_amp_init,
562+
.exit = sof_sdw_rt_amp_exit,
563563
.codec_type = SOF_SDW_CODEC_TYPE_AMP,
564564
},
565565
{
566566
.part_id = 0x1318,
567567
.direction = {true, true},
568568
.dai_name = "rt1318-aif",
569-
.init = sof_sdw_rt1318_init,
569+
.init = sof_sdw_rt_amp_init,
570570
.codec_type = SOF_SDW_CODEC_TYPE_AMP,
571571
},
572572
{

sound/soc/intel/boards/sof_sdw_common.h

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -125,30 +125,18 @@ int sof_sdw_rt700_init(struct snd_soc_card *card,
125125
struct sof_sdw_codec_info *info,
126126
bool playback);
127127

128-
/* RT1308 support */
128+
/* RT1308 I2S support */
129129
extern struct snd_soc_ops sof_sdw_rt1308_i2s_ops;
130130

131-
int sof_sdw_rt1308_init(struct snd_soc_card *card,
131+
/* generic amp support */
132+
int sof_sdw_rt_amp_init(struct snd_soc_card *card,
132133
const struct snd_soc_acpi_link_adr *link,
133134
struct snd_soc_dai_link *dai_links,
134135
struct sof_sdw_codec_info *info,
135136
bool playback);
136-
int sof_sdw_rt1308_exit(struct snd_soc_card *card, struct snd_soc_dai_link *dai_link);
137+
int sof_sdw_rt_amp_exit(struct snd_soc_card *card, struct snd_soc_dai_link *dai_link);
137138

138139
/* RT1316 support */
139-
int sof_sdw_rt1316_init(struct snd_soc_card *card,
140-
const struct snd_soc_acpi_link_adr *link,
141-
struct snd_soc_dai_link *dai_links,
142-
struct sof_sdw_codec_info *info,
143-
bool playback);
144-
int sof_sdw_rt1316_exit(struct snd_soc_card *card, struct snd_soc_dai_link *dai_link);
145-
146-
/* RT1318 support */
147-
int sof_sdw_rt1318_init(struct snd_soc_card *card,
148-
const struct snd_soc_acpi_link_adr *link,
149-
struct snd_soc_dai_link *dai_links,
150-
struct sof_sdw_codec_info *info,
151-
bool playback);
152140

153141
/* RT715 support */
154142
int sof_sdw_rt715_init(struct snd_soc_card *card,

sound/soc/intel/boards/sof_sdw_rt1316.c

Lines changed: 0 additions & 239 deletions
This file was deleted.

0 commit comments

Comments
 (0)