Skip to content

Commit eb062e4

Browse files
crojewsk-intelbroonie
authored andcommitted
ASoC: Intel: Remove sst_dsp_get_thread_context
While sst_dsp_get_thread_context() is declared as solution-agnostic, it is only used by /skylake/ solution. Majority of thread_context field usages are direct accesses. Improve code cohesiveness and convert to single usage model. Signed-off-by: Cezary Rojewski <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Acked-by: Liam Girdwood <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 720811f commit eb062e4

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

sound/soc/intel/common/sst-dsp-priv.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,4 @@ struct sst_dsp {
9898
struct snd_dma_buffer dmab;
9999
};
100100

101-
static inline void *sst_dsp_get_thread_context(struct sst_dsp *sst)
102-
{
103-
return sst->thread_context;
104-
}
105-
106101
#endif

sound/soc/intel/skylake/cnl-sst.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ static struct sst_ops cnl_ops = {
311311
static irqreturn_t cnl_dsp_irq_thread_handler(int irq, void *context)
312312
{
313313
struct sst_dsp *dsp = context;
314-
struct skl_dev *cnl = sst_dsp_get_thread_context(dsp);
314+
struct skl_dev *cnl = dsp->thread_context;
315315
struct sst_generic_ipc *ipc = &cnl->ipc;
316316
struct skl_ipc_header header = {0};
317317
u32 hipcida, hipctdr, hipctdd;

sound/soc/intel/skylake/skl-sst-ipc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ void skl_ipc_process_reply(struct sst_generic_ipc *ipc,
489489
irqreturn_t skl_dsp_irq_thread_handler(int irq, void *context)
490490
{
491491
struct sst_dsp *dsp = context;
492-
struct skl_dev *skl = sst_dsp_get_thread_context(dsp);
492+
struct skl_dev *skl = dsp->thread_context;
493493
struct sst_generic_ipc *ipc = &skl->ipc;
494494
struct skl_ipc_header header = {0};
495495
u32 hipcie, hipct, hipcte;

0 commit comments

Comments
 (0)