Skip to content

Commit b22b2e3

Browse files
committed
Merge branch 'for-linus' into for-next
Pull 6.12-devel branch for cleanup of USB-audio driver code. Signed-off-by: Takashi Iwai <[email protected]>
2 parents 8ae4c65 + dabc44c commit b22b2e3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+513
-146
lines changed

Documentation/devicetree/bindings/sound/davinci-mcasp-audio.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -102,21 +102,21 @@ properties:
102102
default: 2
103103

104104
interrupts:
105-
oneOf:
106-
- minItems: 1
107-
items:
108-
- description: TX interrupt
109-
- description: RX interrupt
110-
- items:
111-
- description: common/combined interrupt
105+
minItems: 1
106+
maxItems: 2
112107

113108
interrupt-names:
114109
oneOf:
115-
- minItems: 1
110+
- description: TX interrupt
111+
const: tx
112+
- description: RX interrupt
113+
const: rx
114+
- description: TX and RX interrupts
116115
items:
117116
- const: tx
118117
- const: rx
119-
- const: common
118+
- description: Common/combined interrupt
119+
const: common
120120

121121
fck_parent:
122122
$ref: /schemas/types.yaml#/definitions/string

Documentation/devicetree/bindings/sound/rockchip,rk3308-codec.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ properties:
4848
- const: mclk_rx
4949
- const: hclk
5050

51+
port:
52+
$ref: audio-graph-port.yaml#
53+
unevaluatedProperties: false
54+
5155
resets:
5256
maxItems: 1
5357

MAINTAINERS

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14986,6 +14986,7 @@ F: drivers/spi/spi-at91-usart.c
1498614986

1498714987
MICROCHIP AUDIO ASOC DRIVERS
1498814988
M: Claudiu Beznea <[email protected]>
14989+
M: Andrei Simion <[email protected]>
1498914990
1499014991
S: Supported
1499114992
F: Documentation/devicetree/bindings/sound/atmel*
@@ -15094,6 +15095,7 @@ F: include/video/atmel_lcdc.h
1509415095

1509515096
MICROCHIP MCP16502 PMIC DRIVER
1509615097
M: Claudiu Beznea <[email protected]>
15098+
M: Andrei Simion <[email protected]>
1509715099
L: [email protected] (moderated for non-subscribers)
1509815100
S: Supported
1509915101
F: Documentation/devicetree/bindings/regulator/microchip,mcp16502.yaml
@@ -15224,6 +15226,7 @@ F: drivers/spi/spi-atmel.*
1522415226

1522515227
MICROCHIP SSC DRIVER
1522615228
M: Claudiu Beznea <[email protected]>
15229+
M: Andrei Simion <[email protected]>
1522715230
L: [email protected] (moderated for non-subscribers)
1522815231
S: Supported
1522915232
F: Documentation/devicetree/bindings/misc/atmel-ssc.txt
@@ -23143,7 +23146,7 @@ F: Documentation/devicetree/bindings/iio/adc/ti,lmp92064.yaml
2314323146
F: drivers/iio/adc/ti-lmp92064.c
2314423147

2314523148
TI PCM3060 ASoC CODEC DRIVER
23146-
M: Kirill Marinushkin <kmarinushkin@birdec.com>
23149+
M: Kirill Marinushkin <k.marinushkin@gmail.com>
2314723150
2314823151
S: Maintained
2314923152
F: Documentation/devicetree/bindings/sound/pcm3060.txt

drivers/soundwire/intel_ace2x.c

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -376,11 +376,12 @@ static int intel_hw_params(struct snd_pcm_substream *substream,
376376
static int intel_prepare(struct snd_pcm_substream *substream,
377377
struct snd_soc_dai *dai)
378378
{
379+
struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
379380
struct sdw_cdns *cdns = snd_soc_dai_get_drvdata(dai);
380381
struct sdw_intel *sdw = cdns_to_intel(cdns);
381382
struct sdw_cdns_dai_runtime *dai_runtime;
383+
struct snd_pcm_hw_params *hw_params;
382384
int ch, dir;
383-
int ret = 0;
384385

385386
dai_runtime = cdns->dai_runtime_array[dai->id];
386387
if (!dai_runtime) {
@@ -389,12 +390,8 @@ static int intel_prepare(struct snd_pcm_substream *substream,
389390
return -EIO;
390391
}
391392

393+
hw_params = &rtd->dpcm[substream->stream].hw_params;
392394
if (dai_runtime->suspended) {
393-
struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
394-
struct snd_pcm_hw_params *hw_params;
395-
396-
hw_params = &rtd->dpcm[substream->stream].hw_params;
397-
398395
dai_runtime->suspended = false;
399396

400397
/*
@@ -415,15 +412,11 @@ static int intel_prepare(struct snd_pcm_substream *substream,
415412
/* the SHIM will be configured in the callback functions */
416413

417414
sdw_cdns_config_stream(cdns, ch, dir, dai_runtime->pdi);
418-
419-
/* Inform DSP about PDI stream number */
420-
ret = intel_params_stream(sdw, substream, dai,
421-
hw_params,
422-
sdw->instance,
423-
dai_runtime->pdi->intel_alh_id);
424415
}
425416

426-
return ret;
417+
/* Inform DSP about PDI stream number */
418+
return intel_params_stream(sdw, substream, dai, hw_params, sdw->instance,
419+
dai_runtime->pdi->intel_alh_id);
427420
}
428421

429422
static int

include/uapi/sound/asoc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888

8989
/* ABI version */
9090
#define SND_SOC_TPLG_ABI_VERSION 0x5 /* current version */
91-
#define SND_SOC_TPLG_ABI_VERSION_MIN 0x4 /* oldest version supported */
91+
#define SND_SOC_TPLG_ABI_VERSION_MIN 0x5 /* oldest version supported */
9292

9393
/* Max size of TLV data */
9494
#define SND_SOC_TPLG_TLV_SIZE 32

sound/core/ump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,7 @@ static int fill_legacy_mapping(struct snd_ump_endpoint *ump)
12331233

12341234
num = 0;
12351235
for (i = 0; i < SNDRV_UMP_MAX_GROUPS; i++)
1236-
if (group_maps & (1U << i))
1236+
if ((group_maps & (1U << i)) && ump->groups[i].valid)
12371237
ump->legacy_mapping[num++] = i;
12381238

12391239
return num;

sound/firewire/amdtp-stream.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ static int apply_constraint_to_size(struct snd_pcm_hw_params *params,
172172
step = max(step, amdtp_syt_intervals[i]);
173173
}
174174

175+
if (step == 0)
176+
return -EINVAL;
177+
175178
t.min = roundup(s->min, step);
176179
t.max = rounddown(s->max, step);
177180
t.integer = 1;

sound/firewire/tascam/amdtp-tascam.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ int amdtp_tscm_init(struct amdtp_stream *s, struct fw_unit *unit,
238238
err = amdtp_stream_init(s, unit, dir, flags, fmt,
239239
process_ctx_payloads, sizeof(struct amdtp_tscm));
240240
if (err < 0)
241-
return 0;
241+
return err;
242242

243243
if (dir == AMDTP_OUT_STREAM) {
244244
// Use fixed value for FDF field.

sound/hda/intel-dsp-config.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,10 @@ static const struct config_entry acpi_config_table[] = {
721721
#if IS_ENABLED(CONFIG_SND_SST_ATOM_HIFI2_PLATFORM_ACPI) || \
722722
IS_ENABLED(CONFIG_SND_SOC_SOF_BAYTRAIL)
723723
/* BayTrail */
724+
{
725+
.flags = FLAG_SST_OR_SOF_BYT,
726+
.acpi_hid = "LPE0F28",
727+
},
724728
{
725729
.flags = FLAG_SST_OR_SOF_BYT,
726730
.acpi_hid = "80860F28",

sound/pci/hda/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ config SND_HDA_SCODEC_TAS2781_I2C
198198
depends on SND_SOC
199199
select SND_SOC_TAS2781_COMLIB
200200
select SND_SOC_TAS2781_FMWLIB
201-
select CRC32_SARWATE
201+
select CRC32
202202
help
203203
Say Y or M here to include TAS2781 I2C HD-audio side codec support
204204
in snd-hda-intel driver, such as ALC287.

0 commit comments

Comments
 (0)