mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: linux-next@vger.kernel.org, linux-kernel@vger.kernel.org,
	Dave Airlie <airlied@linux.ie>,
	Wang Xingchao <xingchao.wang@linux.intel.com>
Subject: Re: linux-next: manual merge of the sound tree with the drm tree
Date: Fri, 30 Aug 2013 08:16:53 +0200	[thread overview]
Message-ID: <s5hhae7g0tm.wl%tiwai@suse.de> (raw)
In-Reply-To: <20130830130355.02cefec7e2308390a506fd1d@canb.auug.org.au>

At Fri, 30 Aug 2013 13:03:55 +1000,
Stephen Rothwell wrote:
> 
> Hi Takashi,
> 
> Today's linux-next merge of the sound tree got a conflict in
> sound/pci/hda/hda_intel.c between commit 246efa4a072f ("snd/hda: add
> runtime suspend/resume on optimus support (v4)") from the drm tree and
> commit 7d4f606c50ff ("ALSA: hda - WAKEEN feature enabling for runtime
> pm") from the sound tree.
> 
> I fixed it up (see below) and can carry the fix as necessary (no action
> is required).

Thanks!  The conflict fix looks correct.


Takashi

> 
> -- 
> Cheers,
> Stephen Rothwell                    sfr@canb.auug.org.au
> 
> diff --cc sound/pci/hda/hda_intel.c
> index bf5e58e,c6c9829..0000000
> --- a/sound/pci/hda/hda_intel.c
> +++ b/sound/pci/hda/hda_intel.c
> @@@ -2975,12 -2971,10 +2975,16 @@@ static int azx_runtime_suspend(struct d
>   	struct snd_card *card = dev_get_drvdata(dev);
>   	struct azx *chip = card->private_data;
>   
>  +	if (chip->disabled)
>  +		return 0;
>  +
>  +	if (!(chip->driver_caps & AZX_DCAPS_PM_RUNTIME))
>  +		return 0;
>  +
> + 	/* enable controller wake up event */
> + 	azx_writew(chip, WAKEEN, azx_readw(chip, WAKEEN) |
> + 		  STATESTS_INT_MASK);
> + 
>   	azx_stop_chip(chip);
>   	azx_enter_link_reset(chip);
>   	azx_clear_irq_pending(chip);
> @@@ -2993,17 -2987,31 +2997,37 @@@ static int azx_runtime_resume(struct de
>   {
>   	struct snd_card *card = dev_get_drvdata(dev);
>   	struct azx *chip = card->private_data;
> + 	struct hda_bus *bus;
> + 	struct hda_codec *codec;
> + 	int status;
>   
>  +	if (chip->disabled)
>  +		return 0;
>  +
>  +	if (!(chip->driver_caps & AZX_DCAPS_PM_RUNTIME))
>  +		return 0;
>  +
>   	if (chip->driver_caps & AZX_DCAPS_I915_POWERWELL)
>   		hda_display_power(true);
> + 
> + 	/* Read STATESTS before controller reset */
> + 	status = azx_readw(chip, STATESTS);
> + 
>   	azx_init_pci(chip);
>   	azx_init_chip(chip, 1);
> + 
> + 	bus = chip->bus;
> + 	if (status && bus) {
> + 		list_for_each_entry(codec, &bus->codec_list, list)
> + 			if (status & (1 << codec->addr))
> + 				queue_delayed_work(codec->bus->workq,
> + 						   &codec->jackpoll_work, codec->jackpoll_interval);
> + 	}
> + 
> + 	/* disable controller Wake Up event*/
> + 	azx_writew(chip, WAKEEN, azx_readw(chip, WAKEEN) &
> + 			~STATESTS_INT_MASK);
> + 
>   	return 0;
>   }
>   

      reply	other threads:[~2013-08-30  6:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-30  3:03 Stephen Rothwell
2013-08-30  6:16 ` Takashi Iwai [this message]

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=s5hhae7g0tm.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=airlied@linux.ie \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=sfr@canb.auug.org.au \
    --cc=xingchao.wang@linux.intel.com \
    /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

all inboxes | Powered by JetHome®