From: Takashi Iwai <tiwai@suse.de>
To: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ALSA: Don't cold reset AC97 codecs in some ICH chipsets
Date: Wed, 28 Jan 2009 13:06:20 +0100 [thread overview]
Message-ID: <s5hbptrws77.wl%tiwai@suse.de> (raw)
In-Reply-To: <1233136956-16830-1-git-send-email-cascardo@holoscopio.com>
At Wed, 28 Jan 2009 08:02:36 -0200,
Thadeu Lima de Souza Cascardo wrote:
>
> Check in a quirk list if it should do cold reset when AC97 power saving
> is enabled. Some devices do not resume properly when cold reset,
> although power saving works OK.
>
> Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Thanks for the patch.
We can go better further with this patch now :)
The logic is basically fine, but just a few comments...
> diff --git a/sound/pci/intel8x0.c b/sound/pci/intel8x0.c
> index 19d3391..69b3ed8 100644
> --- a/sound/pci/intel8x0.c
> +++ b/sound/pci/intel8x0.c
...
> +static int snd_intel8x0_ich_chip_cold_reset(struct intel8x0 *chip)
> +{
> + unsigned int cnt;
> /* ACLink on, 2 channels */
> +
> + if (snd_pci_quirk_lookup(chip->pci, ich_chip_reset_mode))
> + return -EIO;
I feel it isn't intuitive to return -EIO here.
It'd be more straightforward to call snd_intel8x0_ich_chip_reset()
from here?
if (snd_pci_quirk_lookup(chip->pci, ich_chip_reset_mode))
return snd_intl8x0_ich_chip_reset(chip);
> + if (snd_intel8x0_ich_chip_cold_reset(chip) < 0)
> + if ((err = snd_intel8x0_ich_chip_reset(chip)) < 0)
> + return err;
Please make the change checkpatch-clean.
Could you fix and repost?
thanks,
Takashi
next prev parent reply other threads:[~2009-01-28 12:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-28 10:02 [PATCH] ALSA: Don't cold reset AC97 codecs in some ICH chipsets Thadeu Lima de Souza Cascardo
2009-01-28 12:06 ` Takashi Iwai [this message]
2009-01-28 12:27 ` Thadeu Lima de Souza Cascardo
2009-01-28 13:02 ` Takashi Iwai
-- strict thread matches above, loose matches on Subject: below --
2009-01-28 14:40 Thadeu Lima de Souza Cascardo
2009-01-28 15:20 ` Takashi Iwai
2009-01-28 15:52 ` Thadeu Lima de Souza Cascardo
2009-01-29 7:37 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s5hbptrws77.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=cascardo@holoscopio.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox