diff options
author | Shenghao Ding <shenghao-ding@ti.com> | 2023-10-02 11:04:33 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-10-02 15:06:27 +0200 |
commit | 4c556d1ea5a771a91f946964d931b4974a6b917e (patch) | |
tree | fef44bfc773b1a2cc9e630fd7202bf0141514bfe /include/sound | |
parent | ASoC: Intel: avs: Remove unused variable (diff) | |
download | linux-4c556d1ea5a771a91f946964d931b4974a6b917e.tar.xz linux-4c556d1ea5a771a91f946964d931b4974a6b917e.zip |
ASoC: tas2781: fixed compiling issue in m68k
fixed m68k compiling issue: mapping table can save code field; storing the
dev_idx as a member of block can reduce unnecessary time and system
resource comsumption of dev_idx mapping every time the block data writing
to the dsp.
Signed-off-by: Shenghao Ding <shenghao-ding@ti.com>
Link: https://lore.kernel.org/r/20231002090434.1896-1-shenghao-ding@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/tas2781-dsp.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sound/tas2781-dsp.h b/include/sound/tas2781-dsp.h index bd1b72bf47a5..ea9af2726a53 100644 --- a/include/sound/tas2781-dsp.h +++ b/include/sound/tas2781-dsp.h @@ -77,6 +77,11 @@ struct tasdev_blk { unsigned int nr_cmds; unsigned int blk_size; unsigned int nr_subblocks; + /* fixed m68k compiling issue, storing the dev_idx as a member of block + * can reduce unnecessary timeand system resource comsumption of + * dev_idx mapping every time the block data writing to the dsp. + */ + unsigned char dev_idx; unsigned char *data; }; |