ALSA: hda: Fix LLCH register read
authorB, Jayachandran <jayachandran.b@intel.com>
Fri, 24 Mar 2017 17:40:24 +0000 (23:10 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 29 Mar 2017 11:01:35 +0000 (12:01 +0100)
LLCH is a 16 bit register. Use readw instead of readl API.

Signed-off-by: B, Jayachandran <jayachandran.b@intel.com>
Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Acked-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/hda/hdac_controller.c

index 043065867656d0bf2a5221fb9741bfc29c14c439..6f1e99c9fed98b768c8bbadac0837ebcfc3b730d 100644 (file)
@@ -268,7 +268,7 @@ int snd_hdac_bus_parse_capabilities(struct hdac_bus *bus)
        unsigned int offset;
        unsigned int counter = 0;
 
-       offset = snd_hdac_chip_readl(bus, LLCH);
+       offset = snd_hdac_chip_readw(bus, LLCH);
 
        /* Lets walk the linked capabilities list */
        do {