Hi Jeeja, >-----Original Message----- >From: Kp, Jeeja >Sent: Thursday, March 30, 2017 4:07 PM >To: Yang, Libin <libin.yang@xxxxxxxxx>; alsa-devel@xxxxxxxxxxxxxxxx; >tiwai@xxxxxxx >Cc: Lin, Mengdong <mengdong.lin@xxxxxxxxx>; infernix@xxxxxxxxxxxx >Subject: RE: [PATCH] ALSA: hda - set intel audio clock to a properly >value > >> >-----Original Message----- >> >From: Kp, Jeeja >> >Sent: Thursday, March 23, 2017 9:11 PM >> >To: Yang, Libin <libin.yang@xxxxxxxxx>; alsa-devel@xxxxxxxxxxxxxxxx; >> >tiwai@xxxxxxx >> >Cc: Lin, Mengdong <mengdong.lin@xxxxxxxxx>; infernix@xxxxxxxxxxxx >> >Subject: RE: [PATCH] ALSA: hda - set intel audio clock >> >to a properly value >> > >> >> -----Original Message----- >> >> From: alsa-devel-bounces@xxxxxxxxxxxxxxxx [mailto:alsa-devel- >> >> bounces@xxxxxxxxxxxxxxxx] On Behalf Of Yang, Libin >> >> Sent: Tuesday, March 7, 2017 11:50 AM >> >> To: alsa-devel@xxxxxxxxxxxxxxxx; tiwai@xxxxxxx >> >> Cc: Yang, Libin <libin.yang@xxxxxxxxx>; Lin, Mengdong >> >> <mengdong.lin@xxxxxxxxx>; infernix@xxxxxxxxxxxx >> >> Subject: [PATCH] ALSA: hda - set intel audio clock to >> >> a properly value >> >> >> >> From: Libin Yang <libin.yang@xxxxxxxxx> >> >> >> >> On some Intel platforms, the audio clock may not be set correctly >> >> with initial setting. This will cause the audio playback/capture rates wrong. >> >> >> >> This patch checks the audio clock setting and will set it to a >> >> properly value if it is not set correct. >> >> >> >> Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=188411 >> >> >> >> Signed-off-by: Libin Yang <libin.yang@xxxxxxxxx> >> >> --- >> >> include/sound/hda_register.h | 12 +++-- >> >> sound/hda/ext/hdac_ext_controller.c | 6 +-- >> >> sound/pci/hda/hda_intel.c | 91 >> >> +++++++++++++++++++++++++++++++++++++ >> >> 3 files changed, 103 insertions(+), 6 deletions(-) >> >> >> >> diff --git a/include/sound/hda_register.h >> >> b/include/sound/hda_register.h index 0013063..7ea16cb 100644 >> >> --- a/include/sound/hda_register.h >> >> +++ b/include/sound/hda_register.h >> >> @@ -227,6 +227,8 @@ enum { SDI0, SDI1, SDI2, SDI3, SDO0, SDO1, >> >> SDO2, >> >> SDO3 }; >> >> #define AZX_REG_PPLCLLPU 0xC >> >> >> >> /* registers for Multiple Links Capability Structure */ >> >> +/* Multiple Links Capability */ >> >> +#define AZX_REG_ML_CAP_BASE 0xc00 >> >Base is already available as part of bus, use bus->mlcap >> > >> > >> >> +#define AZX_REG_ML_LCAPx(x) (AZX_REG_ML_CAP_BASE + (0x40 + >> >> 0x40 * x)) >> >> +#define AZX_REG_ML_LCTLx(x) (AZX_REG_ML_CAP_BASE + (0x44 + >> >> 0x40 * x)) >> >This is specific to the had legacy driver as only link0 is used, I >> >think this can be moved to driver As define. If it required to use >> >all the link, then need to use ext functions to initialize the address per link. >> >> I'm not very sure what's your meaning. Do you mean using > >Use bus->mlcap + 0x44 as you are always using link0 (add offset, no need to >define explicitly - AZX_REG_ML_LCTLx(x)). OK. Thanks for suggestion. It can avoid new definition. Thanks for suggestion. Regards, Libin _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel