diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-06-03 02:14:47 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-06-03 02:15:18 -0400 |
commit | efd4b76ef789541e7046e873b3546209352cdb59 (patch) | |
tree | 00651414599c34c265ce48072bee23816430f795 /sound | |
parent | c8109b573b4b761c548a13bc257ca68efa300b03 (diff) | |
parent | 192a98e280e560510a62aca8cfa83b4ae7c095bb (diff) |
Merge branch 'for-linus' into for-next
Just to catch up a few small fixes for HD-audio and DMA engine.
Diffstat (limited to 'sound')
-rw-r--r-- | sound/core/pcm_dmaengine.c | 6 | ||||
-rw-r--r-- | sound/pci/hda/hda_intel.c | 3 | ||||
-rw-r--r-- | sound/pci/hda/patch_analog.c | 1 | ||||
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 10 |
4 files changed, 14 insertions, 6 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 ab0fd6d4961b..cd77b9b19b73 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c | |||
@@ -1743,6 +1743,9 @@ static const struct pci_device_id 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 }, |
diff --git a/sound/pci/hda/patch_analog.c b/sound/pci/hda/patch_analog.c index 40ba06eb44af..06275f8807a8 100644 --- a/sound/pci/hda/patch_analog.c +++ b/sound/pci/hda/patch_analog.c | |||
@@ -332,6 +332,7 @@ static const struct hda_fixup ad1986a_fixups[] = { | |||
332 | 332 | ||
333 | static const struct snd_pci_quirk ad1986a_fixup_tbl[] = { | 333 | static const struct snd_pci_quirk ad1986a_fixup_tbl[] = { |
334 | SND_PCI_QUIRK(0x103c, 0x30af, "HP B2800", AD1986A_FIXUP_LAPTOP_IMIC), | 334 | SND_PCI_QUIRK(0x103c, 0x30af, "HP B2800", AD1986A_FIXUP_LAPTOP_IMIC), |
335 | SND_PCI_QUIRK(0x1043, 0x1447, "ASUS A8JN", AD1986A_FIXUP_EAPD), | ||
335 | SND_PCI_QUIRK_MASK(0x1043, 0xff00, 0x8100, "ASUS P5", AD1986A_FIXUP_3STACK), | 336 | SND_PCI_QUIRK_MASK(0x1043, 0xff00, 0x8100, "ASUS P5", AD1986A_FIXUP_3STACK), |
336 | SND_PCI_QUIRK_MASK(0x1043, 0xff00, 0x8200, "ASUS M2", AD1986A_FIXUP_3STACK), | 337 | SND_PCI_QUIRK_MASK(0x1043, 0xff00, 0x8200, "ASUS M2", AD1986A_FIXUP_3STACK), |
337 | SND_PCI_QUIRK(0x10de, 0xcb84, "ASUS A8N-VM", AD1986A_FIXUP_3STACK), | 338 | SND_PCI_QUIRK(0x10de, 0xcb84, "ASUS A8N-VM", AD1986A_FIXUP_3STACK), |
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index a00cd69bc3aa..12fb411adf77 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -1649,12 +1649,10 @@ static const struct hda_fixup alc260_fixups[] = { | |||
1649 | [ALC260_FIXUP_COEF] = { | 1649 | [ALC260_FIXUP_COEF] = { |
1650 | .type = HDA_FIXUP_VERBS, | 1650 | .type = HDA_FIXUP_VERBS, |
1651 | .v.verbs = (const struct hda_verb[]) { | 1651 | .v.verbs = (const struct hda_verb[]) { |
1652 | { 0x20, AC_VERB_SET_COEF_INDEX, 0x07 }, | 1652 | { 0x1a, AC_VERB_SET_COEF_INDEX, 0x07 }, |
1653 | { 0x20, AC_VERB_SET_PROC_COEF, 0x3040 }, | 1653 | { 0x1a, AC_VERB_SET_PROC_COEF, 0x3040 }, |
1654 | { } | 1654 | { } |
1655 | }, | 1655 | }, |
1656 | .chained = true, | ||
1657 | .chain_id = ALC260_FIXUP_HP_PIN_0F, | ||
1658 | }, | 1656 | }, |
1659 | [ALC260_FIXUP_GPIO1] = { | 1657 | [ALC260_FIXUP_GPIO1] = { |
1660 | .type = HDA_FIXUP_VERBS, | 1658 | .type = HDA_FIXUP_VERBS, |
@@ -1669,8 +1667,8 @@ static const struct hda_fixup alc260_fixups[] = { | |||
1669 | [ALC260_FIXUP_REPLACER] = { | 1667 | [ALC260_FIXUP_REPLACER] = { |
1670 | .type = HDA_FIXUP_VERBS, | 1668 | .type = HDA_FIXUP_VERBS, |
1671 | .v.verbs = (const struct hda_verb[]) { | 1669 | .v.verbs = (const struct hda_verb[]) { |
1672 | { 0x20, AC_VERB_SET_COEF_INDEX, 0x07 }, | 1670 | { 0x1a, AC_VERB_SET_COEF_INDEX, 0x07 }, |
1673 | { 0x20, AC_VERB_SET_PROC_COEF, 0x3050 }, | 1671 | { 0x1a, AC_VERB_SET_PROC_COEF, 0x3050 }, |
1674 | { } | 1672 | { } |
1675 | }, | 1673 | }, |
1676 | .chained = true, | 1674 | .chained = true, |