diff mbox

[v2,01/11] ALSA: hda: Fix LLCH register read

Message ID 1490377234-30257-2-git-send-email-jeeja.kp@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jeeja KP March 24, 2017, 5:40 p.m. UTC
From: "B, Jayachandran" <jayachandran.b@intel.com>

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>
---
 sound/hda/hdac_controller.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Takashi Iwai March 24, 2017, 6:37 p.m. UTC | #1
On Fri, 24 Mar 2017 18:40:24 +0100,
jeeja.kp@intel.com wrote:
> 
> From: "B, Jayachandran" <jayachandran.b@intel.com>
> 
> 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>


Takashi

> ---
>  sound/hda/hdac_controller.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sound/hda/hdac_controller.c b/sound/hda/hdac_controller.c
> index 0430658..6f1e99c 100644
> --- a/sound/hda/hdac_controller.c
> +++ b/sound/hda/hdac_controller.c
> @@ -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 {
> -- 
> 2.5.0
> 
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>
diff mbox

Patch

diff --git a/sound/hda/hdac_controller.c b/sound/hda/hdac_controller.c
index 0430658..6f1e99c 100644
--- a/sound/hda/hdac_controller.c
+++ b/sound/hda/hdac_controller.c
@@ -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 {