]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Allow codec-specific set_power_state ops
authorTakashi Iwai <tiwai@suse.de>
Tue, 26 Jul 2011 08:33:10 +0000 (10:33 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 26 Jul 2011 15:21:24 +0000 (17:21 +0200)
commitbac8736ba3e51b5b0c8d473515b327c49959e2cd
treee8b38eb8d7c67388595f11b140c97382a1384b1d
parent231d19610ef75ca7d0e7fa92813da535020a9879
ALSA: hda - Allow codec-specific set_power_state ops

The procedure for codec D-state change may have exceptional cases
depending on the codec chip, such as a longer delay or suppressing D3.

This patch adds a new codec ops, set_power_state() to override the system
default function.  For ease of porting, snd_hda_codec_set_power_to_all()
helper function is extracted from the default set_power_state() function.

As an example, the Conexant codec-specific delay is removed from the
default routine but moved to patch_conexant.c.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_codec.h
sound/pci/hda/patch_conexant.c