Skip to content

Commit 75ab3c0

Browse files
crojewsk-intelbroonie
authored andcommitted
ASoC: Intel: Skylake: Drop pipe_config_idx
Field ->pipe_config_idx duplicates the job of ->cur_config_idx so remove it. Signed-off-by: Cezary Rojewski <[email protected]> Tested-by: Lukasz Majczak <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent b0d16e5 commit 75ab3c0

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

sound/soc/intel/skylake/skl-topology.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,9 +1351,9 @@ static int skl_tplg_multi_config_set_get(struct snd_kcontrol *kcontrol,
13511351
return -EIO;
13521352

13531353
if (is_set)
1354-
pipe->pipe_config_idx = ucontrol->value.enumerated.item[0];
1354+
pipe->cur_config_idx = ucontrol->value.enumerated.item[0];
13551355
else
1356-
ucontrol->value.enumerated.item[0] = pipe->pipe_config_idx;
1356+
ucontrol->value.enumerated.item[0] = pipe->cur_config_idx;
13571357

13581358
return 0;
13591359
}
@@ -1814,11 +1814,11 @@ static int skl_tplg_be_fill_pipe_params(struct snd_soc_dai *dai,
18141814
if (ret)
18151815
goto err;
18161816

1817-
dev_dbg(skl->dev, "%s using pipe config: %d\n", __func__, pipe->pipe_config_idx);
1817+
dev_dbg(skl->dev, "%s using pipe config: %d\n", __func__, pipe->cur_config_idx);
18181818
if (pipe->direction == SNDRV_PCM_STREAM_PLAYBACK)
1819-
pipe_fmt = &pipe->configs[pipe->pipe_config_idx].out_fmt;
1819+
pipe_fmt = &pipe->configs[pipe->cur_config_idx].out_fmt;
18201820
else
1821-
pipe_fmt = &pipe->configs[pipe->pipe_config_idx].in_fmt;
1821+
pipe_fmt = &pipe->configs[pipe->cur_config_idx].in_fmt;
18221822

18231823
/* update the blob based on virtual bus_id*/
18241824
cfg = intel_nhlt_get_endpoint_blob(dai->dev, skl->nhlt,

sound/soc/intel/skylake/skl-topology.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,6 @@ struct skl_pipe {
324324
struct skl_path_config configs[SKL_MAX_PATH_CONFIGS];
325325
struct list_head w_list;
326326
bool passthru;
327-
u32 pipe_config_idx;
328327
};
329328

330329
enum skl_module_state {

0 commit comments

Comments
 (0)