Commit 3c365027 authored by Mark Brown's avatar Mark Brown

Merge series "ASoC: soundwire: SDCA device quirk and cleanups" from...

Merge series "ASoC: soundwire: SDCA device quirk and cleanups" from Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>:

Add one quirk to handle new TigerLake-SDCA device and cleanup code.

Pierre-Louis Bossart (4):
  ASoC: Intel: sof_sdw: add quirk for new TigerLake-SDCA device
  ASoC: codecs: rt*.c: remove useless pointer cast
  ASoC: rt711: remove warnings
  ASoC: codecs: max98373-sdw: align regmap use with other codecs

 sound/soc/codecs/max98373-sdw.c  |  2 +-
 sound/soc/codecs/rt1308-sdw.c    |  2 +-
 sound/soc/codecs/rt5682-sdw.c    |  2 +-
 sound/soc/codecs/rt700.c         |  2 +-
 sound/soc/codecs/rt711-sdw.c     | 15 ++++++++-------
 sound/soc/codecs/rt711.c         |  2 +-
 sound/soc/codecs/rt715.c         |  2 +-
 sound/soc/intel/boards/sof_sdw.c | 10 ++++++++++
 8 files changed, 24 insertions(+), 13 deletions(-)

--
2.25.1
parents 76462eff f1848926
...@@ -247,7 +247,7 @@ static __maybe_unused int max98373_suspend(struct device *dev) ...@@ -247,7 +247,7 @@ static __maybe_unused int max98373_suspend(struct device *dev)
struct max98373_priv *max98373 = dev_get_drvdata(dev); struct max98373_priv *max98373 = dev_get_drvdata(dev);
regcache_cache_only(max98373->regmap, true); regcache_cache_only(max98373->regmap, true);
regcache_mark_dirty(max98373->regmap);
return 0; return 0;
} }
......
...@@ -475,7 +475,7 @@ static int rt1308_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, ...@@ -475,7 +475,7 @@ static int rt1308_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream,
if (!stream) if (!stream)
return -ENOMEM; return -ENOMEM;
stream->sdw_stream = (struct sdw_stream_runtime *)sdw_stream; stream->sdw_stream = sdw_stream;
/* Use tx_mask or rx_mask to configure stream tag and set dma_data */ /* Use tx_mask or rx_mask to configure stream tag and set dma_data */
if (direction == SNDRV_PCM_STREAM_PLAYBACK) if (direction == SNDRV_PCM_STREAM_PLAYBACK)
......
...@@ -103,7 +103,7 @@ static int rt5682_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, ...@@ -103,7 +103,7 @@ static int rt5682_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream,
if (!stream) if (!stream)
return -ENOMEM; return -ENOMEM;
stream->sdw_stream = (struct sdw_stream_runtime *)sdw_stream; stream->sdw_stream = sdw_stream;
/* Use tx_mask or rx_mask to configure stream tag and set dma_data */ /* Use tx_mask or rx_mask to configure stream tag and set dma_data */
if (direction == SNDRV_PCM_STREAM_PLAYBACK) if (direction == SNDRV_PCM_STREAM_PLAYBACK)
......
...@@ -867,7 +867,7 @@ static int rt700_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, ...@@ -867,7 +867,7 @@ static int rt700_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream,
if (!stream) if (!stream)
return -ENOMEM; return -ENOMEM;
stream->sdw_stream = (struct sdw_stream_runtime *)sdw_stream; stream->sdw_stream = sdw_stream;
/* Use tx_mask or rx_mask to configure stream tag and set dma_data */ /* Use tx_mask or rx_mask to configure stream tag and set dma_data */
if (direction == SNDRV_PCM_STREAM_PLAYBACK) if (direction == SNDRV_PCM_STREAM_PLAYBACK)
......
...@@ -338,7 +338,8 @@ static int rt711_update_status(struct sdw_slave *slave, ...@@ -338,7 +338,8 @@ static int rt711_update_status(struct sdw_slave *slave,
static int rt711_read_prop(struct sdw_slave *slave) static int rt711_read_prop(struct sdw_slave *slave)
{ {
struct sdw_slave_prop *prop = &slave->prop; struct sdw_slave_prop *prop = &slave->prop;
int nval, i; int nval;
int i, j;
u32 bit; u32 bit;
unsigned long addr; unsigned long addr;
struct sdw_dpn_prop *dpn; struct sdw_dpn_prop *dpn;
...@@ -379,15 +380,15 @@ static int rt711_read_prop(struct sdw_slave *slave) ...@@ -379,15 +380,15 @@ static int rt711_read_prop(struct sdw_slave *slave)
if (!prop->sink_dpn_prop) if (!prop->sink_dpn_prop)
return -ENOMEM; return -ENOMEM;
i = 0; j = 0;
dpn = prop->sink_dpn_prop; dpn = prop->sink_dpn_prop;
addr = prop->sink_ports; addr = prop->sink_ports;
for_each_set_bit(bit, &addr, 32) { for_each_set_bit(bit, &addr, 32) {
dpn[i].num = bit; dpn[j].num = bit;
dpn[i].type = SDW_DPN_FULL; dpn[j].type = SDW_DPN_FULL;
dpn[i].simple_ch_prep_sm = true; dpn[j].simple_ch_prep_sm = true;
dpn[i].ch_prep_timeout = 10; dpn[j].ch_prep_timeout = 10;
i++; j++;
} }
/* set the timeout values */ /* set the timeout values */
......
...@@ -913,7 +913,7 @@ static int rt711_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, ...@@ -913,7 +913,7 @@ static int rt711_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream,
if (!stream) if (!stream)
return -ENOMEM; return -ENOMEM;
stream->sdw_stream = (struct sdw_stream_runtime *)sdw_stream; stream->sdw_stream = sdw_stream;
/* Use tx_mask or rx_mask to configure stream tag and set dma_data */ /* Use tx_mask or rx_mask to configure stream tag and set dma_data */
if (direction == SNDRV_PCM_STREAM_PLAYBACK) if (direction == SNDRV_PCM_STREAM_PLAYBACK)
......
...@@ -537,7 +537,7 @@ static int rt715_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, ...@@ -537,7 +537,7 @@ static int rt715_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream,
if (!stream) if (!stream)
return -ENOMEM; return -ENOMEM;
stream->sdw_stream = (struct sdw_stream_runtime *)sdw_stream; stream->sdw_stream = sdw_stream;
/* Use tx_mask or rx_mask to configure stream tag and set dma_data */ /* Use tx_mask or rx_mask to configure stream tag and set dma_data */
if (direction == SNDRV_PCM_STREAM_PLAYBACK) if (direction == SNDRV_PCM_STREAM_PLAYBACK)
......
...@@ -48,6 +48,16 @@ static int sof_sdw_quirk_cb(const struct dmi_system_id *id) ...@@ -48,6 +48,16 @@ static int sof_sdw_quirk_cb(const struct dmi_system_id *id)
} }
static const struct dmi_system_id sof_sdw_quirk_table[] = { static const struct dmi_system_id sof_sdw_quirk_table[] = {
{
.callback = sof_sdw_quirk_cb,
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc"),
DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "0A32")
},
.driver_data = (void *)(SOF_RT711_JD_SRC_JD2 |
SOF_RT715_DAI_ID_FIX |
SOF_SDW_FOUR_SPK),
},
{ {
.callback = sof_sdw_quirk_cb, .callback = sof_sdw_quirk_cb,
.matches = { .matches = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment