mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
ALSA: hda - add more ML register definitions
This patch refines the definition of AZX_MLCTL_SPA and AZX_MLCTL_CPA and add more definitions of ML registers Signed-off-by: Libin Yang <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
This commit is contained in:
parent
7e1621de14
commit
dde5bff541
2 changed files with 8 additions and 6 deletions
|
|
@ -171,7 +171,7 @@ static int check_hdac_link_power_active(struct hdac_ext_link *link, bool enable)
|
|||
{
|
||||
int timeout;
|
||||
u32 val;
|
||||
int mask = (1 << AZX_MLCTL_CPA);
|
||||
int mask = (1 << AZX_MLCTL_CPA_SHIFT);
|
||||
|
||||
udelay(3);
|
||||
timeout = 150;
|
||||
|
|
@ -179,10 +179,10 @@ static int check_hdac_link_power_active(struct hdac_ext_link *link, bool enable)
|
|||
do {
|
||||
val = readl(link->ml_addr + AZX_REG_ML_LCTL);
|
||||
if (enable) {
|
||||
if (((val & mask) >> AZX_MLCTL_CPA))
|
||||
if (((val & mask) >> AZX_MLCTL_CPA_SHIFT))
|
||||
return 0;
|
||||
} else {
|
||||
if (!((val & mask) >> AZX_MLCTL_CPA))
|
||||
if (!((val & mask) >> AZX_MLCTL_CPA_SHIFT))
|
||||
return 0;
|
||||
}
|
||||
udelay(3);
|
||||
|
|
|
|||
Loading…
Reference in a new issue