Skip to content

Commit 5534bbb

Browse files
committed
Merge tag 'asoc-fix-v6.2-rc4' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Fixes for v6.1 A relatively large collection of fixes and new platform quirks here, they're all fairly minor though - the widest possible impact is the fix to the use of prefixes on regulator names which would have broken any device that integrates regulators with DAPM and was used in a system where it had a name prefix assigning to it.
2 parents 9d8e536 + 7d945b0 commit 5534bbb

24 files changed

+173
-95
lines changed

.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ TripleX Chung <[email protected]> <[email protected]>
414414
415415
Tsuneo Yoshioka <[email protected]>
416416
417+
417418
Uwe Kleine-König <[email protected]>
418419
Uwe Kleine-König <[email protected]>
419420
Uwe Kleine-König <[email protected]>

Documentation/devicetree/bindings/sound/google,cros-ec-codec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ title: Audio codec controlled by ChromeOS EC
88

99
maintainers:
1010
- Cheng-Yi Chiang <[email protected]>
11-
- Tzung-Bi Shih <tzungbi@google.com>
11+
- Tzung-Bi Shih <tzungbi@kernel.org>
1212

1313
description: |
1414
Google's ChromeOS EC codec is a digital mic codec provided by the

Documentation/devicetree/bindings/sound/realtek,rt1015p.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
77
title: Realtek rt1015p codec devicetree bindings
88

99
maintainers:
10-
- Tzung-Bi Shih <tzungbi@google.com>
10+
- Tzung-Bi Shih <tzungbi@kernel.org>
1111

1212
description: |
1313
Rt1015p is a rt1015 variant which does not support I2C and

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4906,7 +4906,7 @@ F: drivers/platform/chrome/
49064906

49074907
CHROMEOS EC CODEC DRIVER
49084908
M: Cheng-Yi Chiang <[email protected]>
4909-
M: Tzung-Bi Shih <tzungbi@google.com>
4909+
M: Tzung-Bi Shih <tzungbi@kernel.org>
49104910
R: Guenter Roeck <[email protected]>
49114911
49124912
S: Maintained

include/sound/sof/info.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ enum sof_ipc_ext_data {
3636
SOF_IPC_EXT_USER_ABI_INFO = 4,
3737
};
3838

39+
/* Build u32 number in format MMmmmppp */
40+
#define SOF_FW_VER(MAJOR, MINOR, PATCH) ((uint32_t)( \
41+
((MAJOR) << 24) | ((MINOR) << 12) | (PATCH)))
42+
3943
/* FW version - SOF_IPC_GLB_VERSION */
4044
struct sof_ipc_fw_version {
4145
struct sof_ipc_hdr hdr;

sound/hda/intel-dsp-config.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,11 @@ static const struct config_entry config_table[] = {
320320
{}
321321
}
322322
},
323+
{
324+
.flags = FLAG_SOF,
325+
.device = 0x34c8,
326+
.codec_hid = &essx_83x6,
327+
},
323328
{
324329
.flags = FLAG_SOF | FLAG_SOF_ONLY_IF_DMIC_OR_SOUNDWIRE,
325330
.device = 0x34c8,

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,13 @@ static const struct dmi_system_id yc_acp_quirk_table[] = {
206206
DMI_MATCH(DMI_PRODUCT_NAME, "UM5302TA"),
207207
}
208208
},
209+
{
210+
.driver_data = &acp6x_card,
211+
.matches = {
212+
DMI_MATCH(DMI_BOARD_VENDOR, "Alienware"),
213+
DMI_MATCH(DMI_PRODUCT_NAME, "Alienware m17 R5 AMD"),
214+
}
215+
},
209216
{}
210217
};
211218

sound/soc/codecs/rt5514-spi.c

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -298,13 +298,14 @@ static int rt5514_spi_pcm_new(struct snd_soc_component *component,
298298
}
299299

300300
static const struct snd_soc_component_driver rt5514_spi_component = {
301-
.name = DRV_NAME,
302-
.probe = rt5514_spi_pcm_probe,
303-
.open = rt5514_spi_pcm_open,
304-
.hw_params = rt5514_spi_hw_params,
305-
.hw_free = rt5514_spi_hw_free,
306-
.pointer = rt5514_spi_pcm_pointer,
307-
.pcm_construct = rt5514_spi_pcm_new,
301+
.name = DRV_NAME,
302+
.probe = rt5514_spi_pcm_probe,
303+
.open = rt5514_spi_pcm_open,
304+
.hw_params = rt5514_spi_hw_params,
305+
.hw_free = rt5514_spi_hw_free,
306+
.pointer = rt5514_spi_pcm_pointer,
307+
.pcm_construct = rt5514_spi_pcm_new,
308+
.legacy_dai_naming = 1,
308309
};
309310

310311
/**

sound/soc/codecs/rt5677-spi.c

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -396,15 +396,16 @@ static int rt5677_spi_pcm_probe(struct snd_soc_component *component)
396396
}
397397

398398
static const struct snd_soc_component_driver rt5677_spi_dai_component = {
399-
.name = DRV_NAME,
400-
.probe = rt5677_spi_pcm_probe,
401-
.open = rt5677_spi_pcm_open,
402-
.close = rt5677_spi_pcm_close,
403-
.hw_params = rt5677_spi_hw_params,
404-
.hw_free = rt5677_spi_hw_free,
405-
.prepare = rt5677_spi_prepare,
406-
.pointer = rt5677_spi_pcm_pointer,
407-
.pcm_construct = rt5677_spi_pcm_new,
399+
.name = DRV_NAME,
400+
.probe = rt5677_spi_pcm_probe,
401+
.open = rt5677_spi_pcm_open,
402+
.close = rt5677_spi_pcm_close,
403+
.hw_params = rt5677_spi_hw_params,
404+
.hw_free = rt5677_spi_hw_free,
405+
.prepare = rt5677_spi_prepare,
406+
.pointer = rt5677_spi_pcm_pointer,
407+
.pcm_construct = rt5677_spi_pcm_new,
408+
.legacy_dai_naming = 1,
408409
};
409410

410411
/* Select a suitable transfer command for the next transfer to ensure

sound/soc/codecs/tas2764.c

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -438,20 +438,13 @@ static int tas2764_set_dai_tdm_slot(struct snd_soc_dai *dai,
438438
if (tx_mask == 0 || rx_mask != 0)
439439
return -EINVAL;
440440

441-
if (slots == 1) {
442-
if (tx_mask != 1)
443-
return -EINVAL;
444-
left_slot = 0;
445-
right_slot = 0;
441+
left_slot = __ffs(tx_mask);
442+
tx_mask &= ~(1 << left_slot);
443+
if (tx_mask == 0) {
444+
right_slot = left_slot;
446445
} else {
447-
left_slot = __ffs(tx_mask);
448-
tx_mask &= ~(1 << left_slot);
449-
if (tx_mask == 0) {
450-
right_slot = left_slot;
451-
} else {
452-
right_slot = __ffs(tx_mask);
453-
tx_mask &= ~(1 << right_slot);
454-
}
446+
right_slot = __ffs(tx_mask);
447+
tx_mask &= ~(1 << right_slot);
455448
}
456449

457450
if (tx_mask != 0 || left_slot >= slots || right_slot >= slots)

0 commit comments

Comments
 (0)