diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-24 16:37:37 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-24 16:37:37 -0400 |
commit | dbf7b5915b39bfff548e4c6a3a753fc291a60e25 (patch) | |
tree | 55c457a22aa869d2ab558317877138369ae5f9bb /sound/pci/nm256/nm256.c | |
parent | d14b7a419a664cd7c1c585c9e7fffee9e9051d53 (diff) | |
parent | c1b623d9e4117d18d244e9b7fb30d2c27aeaf074 (diff) |
Merge tag 'sound-3.6' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
Pull sound update from Takashi Iwai:
"This is a fairly quiet release in all sound area. Only a little bit
of changes in the core side while most of changes are seen in the
drivers.
HD-audio:
- A few new codec additions for Nvidia, Realtek and VIA
- Intel Haswell audio support
- Support for "phantom" jacks for consistent jack reporting
- Major clean-ups in HDMI/DP driver codes
- A workaround for inverted digital-mic pins with Realtek codecs
- Removal of beep_mode=2 option
ASoC:
- Added the ability to add and remove DAPM paths dynamically, mostly
for reparenting on clock changes
- New machine drivers for Marvell Brownstone, ST-Ericsson Ux500
reference platform and ttc-dkp
- New CPU drivers for Blackfin BF6xx SPORTs in I2S mode, Marvell MMP,
Synopsis Designware I2S controllers, and SPEAr DMA and S/PDIF
- New CODEC drivers for Dialog DA732x, ST STA529, ST-Ericsson AB8500,
TI Isabelle and Wolfson Microelectronics WM5102 and WM5110
- DAPM fixes for the recent locking changes
- Fix for _PRE and _POST widgets (which have been broken for a few
releases now)
- A couple of minor driver updates
Misc
- Conversion to new dev_pm_ops in platform and PCI drivers
- LTC support and some fixes in PCXHR driver
- A few fixes and PM support for ISA OPti9xx and WSS cards
- Some TLV code cleanup
- Move driver-specific headers from include/sound to local dirs"
* tag 'sound-3.6' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (212 commits)
ASoC: dapm: Fix _PRE and _POST events for DAPM performance improvements
ALSA: hda - add dock support for Thinkpad X230 Tablet
ALSA: hda - Turn on PIN_OUT from hdmi playback prepare.
ASoC imx-audmux: add MX31_AUDMUX_PORT7_SSI_PINS_7 define
ASoC: littlemill: Add userspace control of the WM1250 I/O
ASoC: wm8994: Update micdet for irqdomain conversion
ALSA: hda - make sure alc268 does not OOPS on codec parse
ALSA: hda - Add support for Realtek ALC282
ALSA: hda - Fix index number conflicts of phantom jacks
ALSA: opti9xx: Fix section mismatch by PM support
ALSA: snd-opti9xx: Implement suspend/resume
ALSA: hda - Add new GPU codec ID to snd-hda
ALSA: hda - Fix driver type of Haswell controller to AZX_DRIVER_SCH
ALSA: hda - add Haswell HDMI codec id
ALSA: hda - Add DeviceID for Haswell HDA
ALSA: wss_lib: Fix resume on Yamaha OPL3-SAx
ALSA: wss_lib: fix suspend/resume
ALSA: es1938: replace TLV_DB_RANGE_HEAD with DECLARE_TLV_DB_RANGE
ALSA: tlv: add DECLARE_TLV_DB_RANGE()
ALSA: tlv: add DECLARE_TLV_CONTAINER()
...
Diffstat (limited to 'sound/pci/nm256/nm256.c')
-rw-r--r-- | sound/pci/nm256/nm256.c | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/sound/pci/nm256/nm256.c b/sound/pci/nm256/nm256.c index 8159b05ee94d..465cff25b146 100644 --- a/sound/pci/nm256/nm256.c +++ b/sound/pci/nm256/nm256.c | |||
@@ -1382,9 +1382,10 @@ snd_nm256_peek_for_sig(struct nm256 *chip) | |||
1382 | * APM event handler, so the card is properly reinitialized after a power | 1382 | * APM event handler, so the card is properly reinitialized after a power |
1383 | * event. | 1383 | * event. |
1384 | */ | 1384 | */ |
1385 | static int nm256_suspend(struct pci_dev *pci, pm_message_t state) | 1385 | static int nm256_suspend(struct device *dev) |
1386 | { | 1386 | { |
1387 | struct snd_card *card = pci_get_drvdata(pci); | 1387 | struct pci_dev *pci = to_pci_dev(dev); |
1388 | struct snd_card *card = dev_get_drvdata(dev); | ||
1388 | struct nm256 *chip = card->private_data; | 1389 | struct nm256 *chip = card->private_data; |
1389 | 1390 | ||
1390 | snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); | 1391 | snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); |
@@ -1393,13 +1394,14 @@ static int nm256_suspend(struct pci_dev *pci, pm_message_t state) | |||
1393 | chip->coeffs_current = 0; | 1394 | chip->coeffs_current = 0; |
1394 | pci_disable_device(pci); | 1395 | pci_disable_device(pci); |
1395 | pci_save_state(pci); | 1396 | pci_save_state(pci); |
1396 | pci_set_power_state(pci, pci_choose_state(pci, state)); | 1397 | pci_set_power_state(pci, PCI_D3hot); |
1397 | return 0; | 1398 | return 0; |
1398 | } | 1399 | } |
1399 | 1400 | ||
1400 | static int nm256_resume(struct pci_dev *pci) | 1401 | static int nm256_resume(struct device *dev) |
1401 | { | 1402 | { |
1402 | struct snd_card *card = pci_get_drvdata(pci); | 1403 | struct pci_dev *pci = to_pci_dev(dev); |
1404 | struct snd_card *card = dev_get_drvdata(dev); | ||
1403 | struct nm256 *chip = card->private_data; | 1405 | struct nm256 *chip = card->private_data; |
1404 | int i; | 1406 | int i; |
1405 | 1407 | ||
@@ -1434,6 +1436,11 @@ static int nm256_resume(struct pci_dev *pci) | |||
1434 | chip->in_resume = 0; | 1436 | chip->in_resume = 0; |
1435 | return 0; | 1437 | return 0; |
1436 | } | 1438 | } |
1439 | |||
1440 | static SIMPLE_DEV_PM_OPS(nm256_pm, nm256_suspend, nm256_resume); | ||
1441 | #define NM256_PM_OPS &nm256_pm | ||
1442 | #else | ||
1443 | #define NM256_PM_OPS NULL | ||
1437 | #endif /* CONFIG_PM */ | 1444 | #endif /* CONFIG_PM */ |
1438 | 1445 | ||
1439 | static int snd_nm256_free(struct nm256 *chip) | 1446 | static int snd_nm256_free(struct nm256 *chip) |
@@ -1747,10 +1754,9 @@ static struct pci_driver nm256_driver = { | |||
1747 | .id_table = snd_nm256_ids, | 1754 | .id_table = snd_nm256_ids, |
1748 | .probe = snd_nm256_probe, | 1755 | .probe = snd_nm256_probe, |
1749 | .remove = __devexit_p(snd_nm256_remove), | 1756 | .remove = __devexit_p(snd_nm256_remove), |
1750 | #ifdef CONFIG_PM | 1757 | .driver = { |
1751 | .suspend = nm256_suspend, | 1758 | .pm = NM256_PM_OPS, |
1752 | .resume = nm256_resume, | 1759 | }, |
1753 | #endif | ||
1754 | }; | 1760 | }; |
1755 | 1761 | ||
1756 | module_pci_driver(nm256_driver); | 1762 | module_pci_driver(nm256_driver); |