Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f2159d1

Browse files
committed
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
2 parents 2826958 + 77f0780 commit f2159d1

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

sound/core/pcm_dmaengine.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ static int dmaengine_pcm_prepare_and_submit(struct snd_pcm_substream *substream)
182182
int snd_dmaengine_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
183183
{
184184
struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream);
185+
struct snd_pcm_runtime *runtime = substream->runtime;
185186
int ret;
186187

187188
switch (cmd) {
@@ -196,6 +197,11 @@ int snd_dmaengine_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
196197
dmaengine_resume(prtd->dma_chan);
197198
break;
198199
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;
199205
case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
200206
dmaengine_pause(prtd->dma_chan);
201207
break;

sound/pci/hda/hda_intel.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1743,6 +1743,9 @@ static DEFINE_PCI_DEVICE_TABLE(azx_ids) = {
17431743
/* Lynx Point */
17441744
{ PCI_DEVICE(0x8086, 0x8c20),
17451745
.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 },
17461749
/* Wellsburg */
17471750
{ PCI_DEVICE(0x8086, 0x8d20),
17481751
.driver_data = AZX_DRIVER_PCH | AZX_DCAPS_INTEL_PCH },

0 commit comments

Comments
 (0)