diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-05-28 14:17:41 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-05-28 14:17:41 -0400 |
| commit | f2159d1e99612ceb94bf9a2dc2fbca409d828b1b (patch) | |
| tree | d5085f8c7aaebd690d2d2ca902e30747c4b1e65f | |
| parent | 282695802957b069d293a9f8773a14399093bd6f (diff) | |
| parent | 77f07800cb456bed6e5c345e6e4e83e8eda62437 (diff) | |
Merge tag 'sound-3.15-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
Pull sound fixes from Takashi Iwai:
"Just two small stable fixes: an HD-audio fix for the new Intel
chipsets and a PM handling fix in PCM dmaengine core"
* tag 'sound-3.15-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
ALSA: hda - Fix onboard audio on Intel H97/Z97 chipsets
ALSA: pcm_dmaengine: Add check during device suspend
| -rw-r--r-- | sound/core/pcm_dmaengine.c | 6 | ||||
| -rw-r--r-- | sound/pci/hda/hda_intel.c | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/sound/core/pcm_dmaengine.c b/sound/core/pcm_dmaengine.c index 94d08733cb38..76cbb9ec953a 100644 --- a/sound/core/pcm_dmaengine.c +++ b/sound/core/pcm_dmaengine.c | |||
| @@ -182,6 +182,7 @@ static int dmaengine_pcm_prepare_and_submit(struct snd_pcm_substream *substream) | |||
| 182 | int snd_dmaengine_pcm_trigger(struct snd_pcm_substream *substream, int cmd) | 182 | int snd_dmaengine_pcm_trigger(struct snd_pcm_substream *substream, int cmd) |
| 183 | { | 183 | { |
| 184 | struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); | 184 | struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); |
| 185 | struct snd_pcm_runtime *runtime = substream->runtime; | ||
| 185 | int ret; | 186 | int ret; |
| 186 | 187 | ||
| 187 | switch (cmd) { | 188 | switch (cmd) { |
| @@ -196,6 +197,11 @@ int snd_dmaengine_pcm_trigger(struct snd_pcm_substream *substream, int cmd) | |||
| 196 | dmaengine_resume(prtd->dma_chan); | 197 | dmaengine_resume(prtd->dma_chan); |
| 197 | break; | 198 | break; |
| 198 | case SNDRV_PCM_TRIGGER_SUSPEND: | 199 | case SNDRV_PCM_TRIGGER_SUSPEND: |
| 200 | if (runtime->info & SNDRV_PCM_INFO_PAUSE) | ||
| 201 | dmaengine_pause(prtd->dma_chan); | ||
| 202 | else | ||
| 203 | dmaengine_terminate_all(prtd->dma_chan); | ||
| 204 | break; | ||
| 199 | case SNDRV_PCM_TRIGGER_PAUSE_PUSH: | 205 | case SNDRV_PCM_TRIGGER_PAUSE_PUSH: |
| 200 | dmaengine_pause(prtd->dma_chan); | 206 | dmaengine_pause(prtd->dma_chan); |
| 201 | break; | 207 | break; |
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 2c54629d62d1..6cc3cf285558 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c | |||
| @@ -1743,6 +1743,9 @@ static DEFINE_PCI_DEVICE_TABLE(azx_ids) = { | |||
| 1743 | /* Lynx Point */ | 1743 | /* Lynx Point */ |
| 1744 | { PCI_DEVICE(0x8086, 0x8c20), | 1744 | { PCI_DEVICE(0x8086, 0x8c20), |
| 1745 | .driver_data = AZX_DRIVER_PCH | AZX_DCAPS_INTEL_PCH }, | 1745 | .driver_data = AZX_DRIVER_PCH | AZX_DCAPS_INTEL_PCH }, |
| 1746 | /* 9 Series */ | ||
| 1747 | { PCI_DEVICE(0x8086, 0x8ca0), | ||
| 1748 | .driver_data = AZX_DRIVER_PCH | AZX_DCAPS_INTEL_PCH }, | ||
| 1746 | /* Wellsburg */ | 1749 | /* Wellsburg */ |
| 1747 | { PCI_DEVICE(0x8086, 0x8d20), | 1750 | { PCI_DEVICE(0x8086, 0x8d20), |
| 1748 | .driver_data = AZX_DRIVER_PCH | AZX_DCAPS_INTEL_PCH }, | 1751 | .driver_data = AZX_DRIVER_PCH | AZX_DCAPS_INTEL_PCH }, |
