Re: [PATCH 2/2] ASoC: Add debug logging for s3c-ac97 resets

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Sep 24, 2010 at 3:41 AM, Mark Brown
<broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> Helps tracing errors further up the stack.
>
> Signed-off-by: Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
> ---
> Âsound/soc/s3c24xx/s3c-ac97.c | Â Â3 +++
> Â1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/sound/soc/s3c24xx/s3c-ac97.c b/sound/soc/s3c24xx/s3c-ac97.c
> index 31e2b3d..f891eb7 100644
> --- a/sound/soc/s3c24xx/s3c-ac97.c
> +++ b/sound/soc/s3c24xx/s3c-ac97.c
> @@ -163,6 +163,7 @@ static void s3c_ac97_write(struct snd_ac97 *ac97, unsigned short reg,
>
> Âstatic void s3c_ac97_cold_reset(struct snd_ac97 *ac97)
> Â{
> + Â Â Â pr_debug("AC97: Cold reset\n");
> Â Â Â Âwritel(S3C_AC97_GLBCTRL_COLDRESET,
> Â Â Â Â Â Â Â Â Â Â Â Âs3c_ac97.regs + S3C_AC97_GLBCTRL);
> Â Â Â Âmsleep(1);
> @@ -179,6 +180,8 @@ static void s3c_ac97_warm_reset(struct snd_ac97 *ac97)
> Â Â Â Âif (stat == S3C_AC97_GLBSTAT_MAINSTATE_ACTIVE)
> Â Â Â Â Â Â Â Âreturn; /* Return if already active */
>
> + Â Â Â pr_debug("AC97: Warm reset\n");
> +
> Â Â Â Âwritel(S3C_AC97_GLBCTRL_WARMRESET, s3c_ac97.regs + S3C_AC97_GLBCTRL);
> Â Â Â Âmsleep(1);

Acked-by: Jassi Brar <jassi.brar@xxxxxxxxxxx>
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux