ASoC: SOF: Intel: hda-stream: use readb/writeb for stream registers
readb/writeb are used directly without any wrappers or references to the BAR, as usually done for other registers. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Link: https://lore.kernel.org/r/20221024165310.246183-17-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
847fd27861
commit
3d824ceb8a
@ -736,11 +736,11 @@ static bool hda_dsp_stream_check(struct hdac_bus *bus, u32 status)
|
||||
|
||||
list_for_each_entry(s, &bus->stream_list, list) {
|
||||
if (status & BIT(s->index) && s->opened) {
|
||||
sd_status = snd_hdac_stream_readb(s, SD_STS);
|
||||
sd_status = readb(s->sd_addr + SOF_HDA_ADSP_REG_SD_STS);
|
||||
|
||||
trace_sof_intel_hda_dsp_stream_status(bus->dev, s, sd_status);
|
||||
|
||||
snd_hdac_stream_writeb(s, SD_STS, sd_status);
|
||||
writeb(sd_status, s->sd_addr + SOF_HDA_ADSP_REG_SD_STS);
|
||||
|
||||
active = true;
|
||||
if ((!s->substream && !s->cstream) ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user