OSDN Git Service

ASoC: SOF: Intel: hda-stream: use readb/writeb for stream registers
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Mon, 24 Oct 2022 16:53:10 +0000 (11:53 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 26 Oct 2022 13:18:09 +0000 (14:18 +0100)
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>
sound/soc/sof/intel/hda-stream.c

index 1a39178..c858f30 100644 (file)
@@ -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) ||