Skip to content

Commit fa59caa

Browse files
committed
Merge tag 'asoc-fix-v6.12-rc6' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Fixes for v6.12 A moderately large pile of small changes here, split fairly evenly between fixes and ID additions/quirks and all of it driver specific.
2 parents dabc44c + 48b8653 commit fa59caa

File tree

7 files changed

+38
-5
lines changed

7 files changed

+38
-5
lines changed

MAINTAINERS

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21697,6 +21697,15 @@ S: Supported
2169721697
W: https://github.com/thesofproject/linux/
2169821698
F: sound/soc/sof/
2169921699

21700+
SOUND - GENERIC SOUND CARD (Simple-Audio-Card, Audio-Graph-Card)
21701+
M: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
21702+
S: Supported
21703+
L: linux-sound@vger.kernel.org
21704+
F: sound/soc/generic/
21705+
F: include/sound/simple_card*
21706+
F: Documentation/devicetree/bindings/sound/simple-card.yaml
21707+
F: Documentation/devicetree/bindings/sound/audio-graph*.yaml
21708+
2170021709
SOUNDWIRE SUBSYSTEM
2170121710
M: Vinod Koul <vkoul@kernel.org>
2170221711
M: Bard Liao <yung-chuan.liao@linux.intel.com>

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,13 @@ static const struct dmi_system_id yc_acp_quirk_table[] = {
227227
DMI_MATCH(DMI_PRODUCT_NAME, "21M3"),
228228
}
229229
},
230+
{
231+
.driver_data = &acp6x_card,
232+
.matches = {
233+
DMI_MATCH(DMI_BOARD_VENDOR, "LENOVO"),
234+
DMI_MATCH(DMI_PRODUCT_NAME, "21M4"),
235+
}
236+
},
230237
{
231238
.driver_data = &acp6x_card,
232239
.matches = {
@@ -395,6 +402,13 @@ static const struct dmi_system_id yc_acp_quirk_table[] = {
395402
DMI_MATCH(DMI_PRODUCT_NAME, "Redmi Book Pro 15 2022"),
396403
}
397404
},
405+
{
406+
.driver_data = &acp6x_card,
407+
.matches = {
408+
DMI_MATCH(DMI_BOARD_VENDOR, "TIMI"),
409+
DMI_MATCH(DMI_PRODUCT_NAME, "Xiaomi Book Pro 14 2022"),
410+
}
411+
},
398412
{
399413
.driver_data = &acp6x_card,
400414
.matches = {

sound/soc/codecs/tas2781-fmwlib.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1992,6 +1992,7 @@ static int tasdevice_dspfw_ready(const struct firmware *fmw,
19921992
break;
19931993
case 0x202:
19941994
case 0x400:
1995+
case 0x401:
19951996
tas_priv->fw_parse_variable_header =
19961997
fw_parse_variable_header_git;
19971998
tas_priv->fw_parse_program_data =

sound/soc/sof/amd/acp.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,11 +342,19 @@ int acp_dma_status(struct acp_dev_data *adata, unsigned char ch)
342342
{
343343
struct snd_sof_dev *sdev = adata->dev;
344344
unsigned int val;
345+
unsigned int acp_dma_ch_sts;
345346
int ret = 0;
346347

348+
switch (adata->pci_rev) {
349+
case ACP70_PCI_ID:
350+
acp_dma_ch_sts = ACP70_DMA_CH_STS;
351+
break;
352+
default:
353+
acp_dma_ch_sts = ACP_DMA_CH_STS;
354+
}
347355
val = snd_sof_dsp_read(sdev, ACP_DSP_BAR, ACP_DMA_CNTL_0 + ch * sizeof(u32));
348356
if (val & ACP_DMA_CH_RUN) {
349-
ret = snd_sof_dsp_read_poll_timeout(sdev, ACP_DSP_BAR, ACP_DMA_CH_STS, val, !val,
357+
ret = snd_sof_dsp_read_poll_timeout(sdev, ACP_DSP_BAR, acp_dma_ch_sts, val, !val,
350358
ACP_REG_POLL_INTERVAL,
351359
ACP_DMA_COMPLETE_TIMEOUT_US);
352360
if (ret < 0)

sound/soc/sof/sof-client-probes-ipc4.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ static int ipc4_probes_init(struct sof_client_dev *cdev, u32 stream_tag,
125125
msg.primary |= SOF_IPC4_MSG_TARGET(SOF_IPC4_MODULE_MSG);
126126
msg.extension = SOF_IPC4_MOD_EXT_DST_MOD_INSTANCE(INVALID_PIPELINE_ID);
127127
msg.extension |= SOF_IPC4_MOD_EXT_CORE_ID(0);
128+
msg.extension |= SOF_IPC4_MOD_EXT_PARAM_SIZE(sizeof(cfg) / sizeof(uint32_t));
128129

129130
msg.data_size = sizeof(cfg);
130131
msg.data_ptr = &cfg;

sound/soc/stm/stm32_sai_sub.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ static int stm32_sai_get_clk_div(struct stm32_sai_sub_data *sai,
317317
int div;
318318

319319
div = DIV_ROUND_CLOSEST(input_rate, output_rate);
320-
if (div > SAI_XCR1_MCKDIV_MAX(version)) {
320+
if (div > SAI_XCR1_MCKDIV_MAX(version) || div <= 0) {
321321
dev_err(&sai->pdev->dev, "Divider %d out of range\n", div);
322322
return -EINVAL;
323323
}
@@ -378,8 +378,8 @@ static long stm32_sai_mclk_round_rate(struct clk_hw *hw, unsigned long rate,
378378
int div;
379379

380380
div = stm32_sai_get_clk_div(sai, *prate, rate);
381-
if (div < 0)
382-
return div;
381+
if (div <= 0)
382+
return -EINVAL;
383383

384384
mclk->freq = *prate / div;
385385

sound/soc/stm/stm32_spdifrx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ static void stm32_spdifrx_remove(struct platform_device *pdev)
939939
{
940940
struct stm32_spdifrx_data *spdifrx = platform_get_drvdata(pdev);
941941

942-
if (spdifrx->ctrl_chan)
942+
if (!IS_ERR(spdifrx->ctrl_chan))
943943
dma_release_channel(spdifrx->ctrl_chan);
944944

945945
if (spdifrx->dmab)

0 commit comments

Comments
 (0)