diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-01-30 18:17:44 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-02-03 17:25:30 +0100 |
commit | 6ddb3ab66f94109c524859ba4dd9d43772893676 (patch) | |
tree | 63defc73cfa9350e07f4c9e2a5d5cf5228f87f69 /sound/x86/intel_hdmi_audio.h | |
parent | ALSA: x86: Drop global ELD copy (diff) | |
download | linux-6ddb3ab66f94109c524859ba4dd9d43772893676.tar.xz linux-6ddb3ab66f94109c524859ba4dd9d43772893676.zip |
ALSA: x86: Move the global underrun_count to struct snd_intelhad
The last one is in intel_hdmi_audio.c, underrun_count: this can be
embedded in snd_intelhad object.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/x86/intel_hdmi_audio.h')
-rw-r--r-- | sound/x86/intel_hdmi_audio.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/x86/intel_hdmi_audio.h b/sound/x86/intel_hdmi_audio.h index 110d1d083000..da0a927d37fe 100644 --- a/sound/x86/intel_hdmi_audio.h +++ b/sound/x86/intel_hdmi_audio.h @@ -119,6 +119,7 @@ struct had_pvt_data { * @chmap: holds channel map info * @audio_reg_base: hdmi audio register base offset * @hw_silence: flag indicates SoC support for HW silence/Keep alive + * @underrun_count: PCM stream underrun counter */ struct snd_intelhad { struct snd_card *card; @@ -142,6 +143,7 @@ struct snd_intelhad { unsigned int *audio_reg_base; unsigned int audio_cfg_offset; bool hw_silence; + int underrun_count; }; int had_event_handler(enum had_event_type event_type, void *data); |