aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAge
* ALSA: hda - remove unused clear of STATESTSDylan Reid2014-03-01
| | | | | | | | | Although the code was updated last year the "#if 0" surrounding it dates back to the original git commit. The function will be moved to a new file, no need to carry the dead code. Signed-off-by: Dylan Reid <dgreid@chromium.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* ALSA: hda - Add function pointer for disabling MSIDylan Reid2014-03-01
| | | | | | | | | This is a PCI-only feature, but adding a callback for it in the chip structure breaks the PCI dependency in the RIRB code allowing the logic there to be re-used by the platform HDA driver. Signed-off-by: Dylan Reid <dgreid@chromium.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* ALSA: hda - Use device pointer from the card instead of pciDylan Reid2014-03-01
| | | | | | | | This removes calls to get the device via PCI from other parts of the code that will be able to be re-used by the platform driver. Signed-off-by: Dylan Reid <dgreid@chromium.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* ALSA: hda - Keep pointer to bdl_pos_fix in chip structDylan Reid2014-03-01
| | | | | | | | | This will allow for a platform hda driver to use it as well. It removes the dependency on the module param from hda_intel, which will allow for azx_setup_periods to be shared. Signed-off-by: Dylan Reid <dgreid@chromium.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* ALSA: hda - Allow different ops to read/write registersDylan Reid2014-03-01
| | | | | | | | | | | | | | | The forthcoming platform hda driver needs to override the way registers are read and written. In preparation for that, introduce a reg_ops struct that can be implemented differently by the new driver. Change the existing macros to use the new structure, and move them to hda_priv.h where they will be accessible to both PCI and platform drivers. Start with register access, but later commits will add more ops that differ between PCI and platform. Signed-off-by: Dylan Reid <dgreid@chromium.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* ALSA: hda - Move some definitions to new hda_priv.hDylan Reid2014-03-01
| | | | | | | | | | | | Later commits adding support for hda platform drivers will want to use the same defines and structures. Put them in a place reachable by both hda_intel and the new platform driver. This is a mostly a direct copy with a few whitespace and comment changes to make checkpatch happy. Signed-off-by: Dylan Reid <dgreid@chromium.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* ALSA: hda - Fix CORB reset to follow specificationDavid Henningsson2014-02-28
| | | | | | | | | | | | | | | | According to the HDA spec, we must write 1 to bit 15 on a CORBRP reset, read back 1, then write 0, then read back 0. This must be done while the DMA is not running. We accidentaly ended up writing back the 0 by using a writel instead of a writew to CORBWP. This caused occasional controller failure on Bay Trail hardware. [replaced error messages with dev_err() by tiwai] Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* ALSA: hda - Fix registration of beep input deviceTakashi Iwai2014-02-28
| | | | | | | | | | | | | | | | | | The beep input device is registered via input_register_device(), but this is called in snd_hda_attach_beep_device() where the sound devices aren't registered yet. This leads to the binding to non-existing object, thus results in failure. And, even if the binding worked (against the PCI object), it's still racy; the input device appears before the sound objects. For fixing this, register the input device properly at dev_register ops of the codec object it's bound with. Also, call snd_hda_detach_beep_device() at dev_disconnection so that it's detached at the right timing. As a bonus, since it's called in the codec's ops, we can get rid of the further call from the other codec drivers. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Merge branch 'topic/cvt-dev-prints' into for-nextTakashi Iwai2014-02-28
|\ | | | | | | | | This merges the bunch of changes over pci and usb sound drivers to convert to dev_err() and co.
| * ALSA: 6fire: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: usb-audio: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. As there are too deep indirections (e.g. ep->chip->dev->dev), a few new local macros, usb_audio_err() & co, are introduced. Also, the device numbers in some messages are dropped, as they are shown in the prefix automatically. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: ymfpci: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: vx222: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: trident: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: rme9652: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: hdspm: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: hdsp: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: pcxhr: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: oxygen: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: nm256: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: mixart: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: lx6464es: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: lola: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: ice17xx: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: emu10k1: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: emu10k1x: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: echoaudio: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: cs46xx: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: cs5535audio: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: ca0106: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. A couple of prints are difficult to convert with dev_err() so they are converted to pr_err() at least. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: aw2: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. A couple of prints are difficult to convert with dev_err() so they are converted to pr_err() at least. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: ali5451: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Some debug prints are replaced with dev_dbg(), too. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: ac97: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: via82xx_modem: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: via82xx: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: sonicvibes: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. The debug prints are also reformatted to suit with dev_dbg(). Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: rme96: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: rme32: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: maestro3: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: intel8x0m: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: intel8x0: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: fm801: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: es1968: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: es1938: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Some debug prints are replaced with dev_dbg(), too. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: ens137x: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: cs5530: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: cs4281: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: cmipci: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Some commented debug prints are also enabled as dev_dbg(). Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: bt87x: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: azt3328: Use standard printk helpersTakashi Iwai2014-02-26
| | | | | | | | | | | | | | | | Convert with dev_err() and co from snd_printk(), etc. All debug print macros have been replaced with dev_dbg(), too. Also, added the missing definition of snd_azf3328_ctrl_inw(). Signed-off-by: Takashi Iwai <tiwai@suse.de>