aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_codec.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2008-08-11 04:04:40 -0400
committerJaroslav Kysela <perex@perex.cz>2008-08-13 05:46:59 -0400
commit963f803fb1bbce87f6049c22c737ae379e1047d3 (patch)
tree9af7cb772e9202e40385520748f0b15b37bc5f3c /sound/pci/hda/hda_codec.h
parent6e8d90cd3418f18f3913c8ae558eee1ba21e4d6c (diff)
ALSA: hda - Don't reset SPDIF in each status change
The SPDIF output is toggled at each time any SPDIF status bits are changed because of the known problems on some codecs. But, this also results in loosing the sync, and the problem is more obvious on HDMI output over SPDIF. Since the toggle is necessary only for some codecs, we should check whether this workaround is needed and skip if unnecessary. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/pci/hda/hda_codec.h')
-rw-r--r--sound/pci/hda/hda_codec.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h
index 2f112626f244..aeee58161537 100644
--- a/sound/pci/hda/hda_codec.h
+++ b/sound/pci/hda/hda_codec.h
@@ -654,6 +654,11 @@ struct hda_codec {
654 654
655 struct snd_hwdep *hwdep; /* assigned hwdep device */ 655 struct snd_hwdep *hwdep; /* assigned hwdep device */
656 656
657 /* misc flags */
658 unsigned int spdif_status_reset :1; /* needs to toggle SPDIF for each
659 * status change
660 * (e.g. Realtek codecs)
661 */
657#ifdef CONFIG_SND_HDA_POWER_SAVE 662#ifdef CONFIG_SND_HDA_POWER_SAVE
658 unsigned int power_on :1; /* current (global) power-state */ 663 unsigned int power_on :1; /* current (global) power-state */
659 unsigned int power_transition :1; /* power-state in transition */ 664 unsigned int power_transition :1; /* power-state in transition */