Skip to content

Commit 1a32b4b

Browse files
committed
ASoC: Merge fixes due to dependencies
So we can apply the tlv320aic3xxx DT conversion.
2 parents 928314e + f9fd804 commit 1a32b4b

45 files changed

Lines changed: 206 additions & 149 deletions

Some content is hidden

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

Documentation/devicetree/bindings/sound/tlv320aic32x4.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Required properties:
88
"ti,tlv320aic32x6" TLV320AIC3206, TLV320AIC3256
99
"ti,tas2505" TAS2505, TAS2521
1010
- reg: I2C slave address
11-
- supply-*: Required supply regulators are:
11+
- *-supply: Required supply regulators are:
1212
"iov" - digital IO power supply
1313
"ldoin" - LDO power supply
1414
"dv" - Digital core power supply

drivers/firmware/cirrus/cs_dsp.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2124,6 +2124,7 @@ static int cs_dsp_load_coeff(struct cs_dsp *dsp, const struct firmware *firmware
21242124
file, blocks, le32_to_cpu(blk->len),
21252125
type, le32_to_cpu(blk->id));
21262126

2127+
region_name = cs_dsp_mem_region_name(type);
21272128
mem = cs_dsp_find_region(dsp, type);
21282129
if (!mem) {
21292130
cs_dsp_err(dsp, "No base for region %x\n", type);
@@ -2147,8 +2148,8 @@ static int cs_dsp_load_coeff(struct cs_dsp *dsp, const struct firmware *firmware
21472148
reg = dsp->ops->region_to_reg(mem, reg);
21482149
reg += offset;
21492150
} else {
2150-
cs_dsp_err(dsp, "No %x for algorithm %x\n",
2151-
type, le32_to_cpu(blk->id));
2151+
cs_dsp_err(dsp, "No %s for algorithm %x\n",
2152+
region_name, le32_to_cpu(blk->id));
21522153
}
21532154
break;
21542155

include/sound/soc-acpi.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ struct snd_soc_acpi_link_adr {
170170
/* Descriptor for SST ASoC machine driver */
171171
struct snd_soc_acpi_mach {
172172
u8 id[ACPI_ID_LEN];
173+
const char *uid;
173174
const struct snd_soc_acpi_codecs *comp_ids;
174175
const u32 link_mask;
175176
const struct snd_soc_acpi_link_adr *links;

include/sound/soc-dpcm.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ int snd_soc_dpcm_can_be_free_stop(struct snd_soc_pcm_runtime *fe,
122122
int snd_soc_dpcm_can_be_params(struct snd_soc_pcm_runtime *fe,
123123
struct snd_soc_pcm_runtime *be, int stream);
124124

125+
/* can this BE perform prepare */
126+
int snd_soc_dpcm_can_be_prepared(struct snd_soc_pcm_runtime *fe,
127+
struct snd_soc_pcm_runtime *be, int stream);
128+
125129
/* is the current PCM operation for this FE ? */
126130
int snd_soc_dpcm_fe_can_update(struct snd_soc_pcm_runtime *fe, int stream);
127131

include/uapi/sound/skl-tplg-interface.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ enum skl_ch_cfg {
6666
SKL_CH_CFG_DUAL_MONO = 9,
6767
SKL_CH_CFG_I2S_DUAL_STEREO_0 = 10,
6868
SKL_CH_CFG_I2S_DUAL_STEREO_1 = 11,
69-
SKL_CH_CFG_4_CHANNEL = 12,
69+
SKL_CH_CFG_7_1 = 12,
70+
SKL_CH_CFG_4_CHANNEL = SKL_CH_CFG_7_1,
7071
SKL_CH_CFG_INVALID
7172
};
7273

sound/soc/amd/ps/pci-ps.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,7 @@ static int create_acp63_platform_devs(struct pci_dev *pci, struct acp63_dev_data
198198
case ACP63_PDM_DEV_MASK:
199199
adata->pdm_dev_index = 0;
200200
acp63_fill_platform_dev_info(&pdevinfo[0], parent, NULL, "acp_ps_pdm_dma",
201-
0, adata->res, 1, &adata->acp_lock,
202-
sizeof(adata->acp_lock));
201+
0, adata->res, 1, NULL, 0);
203202
acp63_fill_platform_dev_info(&pdevinfo[1], parent, NULL, "dmic-codec",
204203
0, NULL, 0, NULL, 0);
205204
acp63_fill_platform_dev_info(&pdevinfo[2], parent, NULL, "acp_ps_mach",

sound/soc/amd/ps/ps-pdm-dma.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -358,12 +358,12 @@ static int acp63_pdm_audio_probe(struct platform_device *pdev)
358358
{
359359
struct resource *res;
360360
struct pdm_dev_data *adata;
361+
struct acp63_dev_data *acp_data;
362+
struct device *parent;
361363
int status;
362364

363-
if (!pdev->dev.platform_data) {
364-
dev_err(&pdev->dev, "platform_data not retrieved\n");
365-
return -ENODEV;
366-
}
365+
parent = pdev->dev.parent;
366+
acp_data = dev_get_drvdata(parent);
367367
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
368368
if (!res) {
369369
dev_err(&pdev->dev, "IORESOURCE_MEM FAILED\n");
@@ -379,7 +379,7 @@ static int acp63_pdm_audio_probe(struct platform_device *pdev)
379379
return -ENOMEM;
380380

381381
adata->capture_stream = NULL;
382-
adata->acp_lock = pdev->dev.platform_data;
382+
adata->acp_lock = &acp_data->acp_lock;
383383
dev_set_drvdata(&pdev->dev, adata);
384384
status = devm_snd_soc_register_component(&pdev->dev,
385385
&acp63_pdm_component,

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,13 @@ static const struct dmi_system_id yc_acp_quirk_table[] = {
171171
DMI_MATCH(DMI_PRODUCT_NAME, "21CL"),
172172
}
173173
},
174+
{
175+
.driver_data = &acp6x_card,
176+
.matches = {
177+
DMI_MATCH(DMI_BOARD_VENDOR, "LENOVO"),
178+
DMI_MATCH(DMI_PRODUCT_NAME, "21EF"),
179+
}
180+
},
174181
{
175182
.driver_data = &acp6x_card,
176183
.matches = {

sound/soc/codecs/cs35l41-lib.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ static const struct reg_default cs35l41_reg[] = {
4646
{ CS35L41_DSP1_RX5_SRC, 0x00000020 },
4747
{ CS35L41_DSP1_RX6_SRC, 0x00000021 },
4848
{ CS35L41_DSP1_RX7_SRC, 0x0000003A },
49-
{ CS35L41_DSP1_RX8_SRC, 0x00000001 },
49+
{ CS35L41_DSP1_RX8_SRC, 0x0000003B },
5050
{ CS35L41_NGATE1_SRC, 0x00000008 },
5151
{ CS35L41_NGATE2_SRC, 0x00000009 },
5252
{ CS35L41_AMP_DIG_VOL_CTRL, 0x00008000 },
@@ -58,8 +58,8 @@ static const struct reg_default cs35l41_reg[] = {
5858
{ CS35L41_IRQ1_MASK2, 0xFFFFFFFF },
5959
{ CS35L41_IRQ1_MASK3, 0xFFFF87FF },
6060
{ CS35L41_IRQ1_MASK4, 0xFEFFFFFF },
61-
{ CS35L41_GPIO1_CTRL1, 0xE1000001 },
62-
{ CS35L41_GPIO2_CTRL1, 0xE1000001 },
61+
{ CS35L41_GPIO1_CTRL1, 0x81000001 },
62+
{ CS35L41_GPIO2_CTRL1, 0x81000001 },
6363
{ CS35L41_MIXER_NGATE_CFG, 0x00000000 },
6464
{ CS35L41_MIXER_NGATE_CH1_CFG, 0x00000303 },
6565
{ CS35L41_MIXER_NGATE_CH2_CFG, 0x00000303 },

sound/soc/codecs/cs35l56.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -704,9 +704,6 @@ static int cs35l56_sdw_dai_hw_free(struct snd_pcm_substream *substream,
704704
static int cs35l56_sdw_dai_set_stream(struct snd_soc_dai *dai,
705705
void *sdw_stream, int direction)
706706
{
707-
if (!sdw_stream)
708-
return 0;
709-
710707
snd_soc_dai_dma_data_set(dai, direction, sdw_stream);
711708

712709
return 0;

0 commit comments

Comments
 (0)