Skip to content

Commit c491b04

Browse files
committed
Merge tag 'asoc-fix-v6.11-rc6' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Fixes for v6.11 A larger set of fixes than I'd like at this point, but mainly due to people working on fixing module autoloading by adding missing exports of ID tables rather than anything particularly concerning. There are some other runtime fixes and quirks, and a tweak to the ABI definition for SOF which ensures that a struct layout doesn't vary depending on the architecture of the host.
2 parents a83e4c9 + 77212f3 commit c491b04

23 files changed

+127
-91
lines changed

include/sound/sof/topology.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ enum sof_comp_type {
5454
struct sof_ipc_comp {
5555
struct sof_ipc_cmd_hdr hdr;
5656
uint32_t id;
57-
enum sof_comp_type type;
57+
uint32_t type;
5858
uint32_t pipeline_id;
5959
uint32_t core;
6060

include/uapi/sound/sof/abi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
/* SOF ABI version major, minor and patch numbers */
3030
#define SOF_ABI_MAJOR 3
3131
#define SOF_ABI_MINOR 23
32-
#define SOF_ABI_PATCH 0
32+
#define SOF_ABI_PATCH 1
3333

3434
/* SOF ABI version number. Format within 32bit word is MMmmmppp */
3535
#define SOF_ABI_MAJOR_SHIFT 24

sound/soc/amd/yc/acp6x-mach.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,13 @@ static const struct dmi_system_id yc_acp_quirk_table[] = {
353353
DMI_MATCH(DMI_PRODUCT_NAME, "Bravo 15 C7VF"),
354354
}
355355
},
356+
{
357+
.driver_data = &acp6x_card,
358+
.matches = {
359+
DMI_MATCH(DMI_BOARD_VENDOR, "Micro-Star International Co., Ltd."),
360+
DMI_MATCH(DMI_PRODUCT_NAME, "Bravo 17 D7VEK"),
361+
}
362+
},
356363
{
357364
.driver_data = &acp6x_card,
358365
.matches = {

sound/soc/codecs/chv3-codec.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ static const struct of_device_id chv3_codec_of_match[] = {
2626
{ .compatible = "google,chv3-codec", },
2727
{ }
2828
};
29+
MODULE_DEVICE_TABLE(of, chv3_codec_of_match);
2930

3031
static struct platform_driver chv3_codec_platform_driver = {
3132
.driver = {

sound/soc/codecs/lpass-va-macro.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,13 @@ struct va_macro {
228228
struct va_macro_data {
229229
bool has_swr_master;
230230
bool has_npl_clk;
231+
int version;
231232
};
232233

233234
static const struct va_macro_data sm8250_va_data = {
234235
.has_swr_master = false,
235236
.has_npl_clk = false,
237+
.version = LPASS_CODEC_VERSION_1_0,
236238
};
237239

238240
static const struct va_macro_data sm8450_va_data = {
@@ -1587,7 +1589,14 @@ static int va_macro_probe(struct platform_device *pdev)
15871589
goto err_npl;
15881590
}
15891591

1590-
va_macro_set_lpass_codec_version(va);
1592+
/**
1593+
* old version of codecs do not have a reliable way to determine the
1594+
* version from registers, get them from soc specific data
1595+
*/
1596+
if (data->version)
1597+
lpass_macro_set_codec_version(data->version);
1598+
else /* read version from register */
1599+
va_macro_set_lpass_codec_version(va);
15911600

15921601
if (va->has_swr_master) {
15931602
/* Set default CLK div to 1 */

sound/soc/codecs/tda7419.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,7 @@ static const struct of_device_id tda7419_of_match[] = {
623623
{ .compatible = "st,tda7419" },
624624
{ },
625625
};
626+
MODULE_DEVICE_TABLE(of, tda7419_of_match);
626627

627628
static struct i2c_driver tda7419_driver = {
628629
.driver = {

sound/soc/google/chv3-i2s.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ static const struct of_device_id chv3_i2s_of_match[] = {
322322
{ .compatible = "google,chv3-i2s" },
323323
{},
324324
};
325+
MODULE_DEVICE_TABLE(of, chv3_i2s_of_match);
325326

326327
static struct platform_driver chv3_i2s_driver = {
327328
.probe = chv3_i2s_probe,

sound/soc/intel/boards/bxt_rt298.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ static int broxton_audio_probe(struct platform_device *pdev)
605605
int i;
606606

607607
for (i = 0; i < ARRAY_SIZE(broxton_rt298_dais); i++) {
608-
if (card->dai_link[i].codecs->name &&
608+
if (card->dai_link[i].num_codecs &&
609609
!strncmp(card->dai_link[i].codecs->name, "i2c-INT343A:00",
610610
I2C_NAME_SIZE)) {
611611
if (!strncmp(card->name, "broxton-rt298",

sound/soc/intel/boards/bytcht_cx2072x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ static int snd_byt_cht_cx2072x_probe(struct platform_device *pdev)
241241

242242
/* fix index of codec dai */
243243
for (i = 0; i < ARRAY_SIZE(byt_cht_cx2072x_dais); i++) {
244-
if (byt_cht_cx2072x_dais[i].codecs->name &&
244+
if (byt_cht_cx2072x_dais[i].num_codecs &&
245245
!strcmp(byt_cht_cx2072x_dais[i].codecs->name,
246246
"i2c-14F10720:00")) {
247247
dai_index = i;

sound/soc/intel/boards/bytcht_da7213.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ static int bytcht_da7213_probe(struct platform_device *pdev)
245245

246246
/* fix index of codec dai */
247247
for (i = 0; i < ARRAY_SIZE(dailink); i++) {
248-
if (dailink[i].codecs->name &&
248+
if (dailink[i].num_codecs &&
249249
!strcmp(dailink[i].codecs->name, "i2c-DLGS7213:00")) {
250250
dai_index = i;
251251
break;

0 commit comments

Comments
 (0)