diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-01-31 08:14:34 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-02-03 17:30:26 +0100 |
commit | 5647aec26640ffdf099d51b3403eaeac10d74147 (patch) | |
tree | d7d1246ea60f2ade27a4f4277d7e80211d808bef /sound/x86/intel_hdmi_audio.h | |
parent | ALSA: x86: Move dma_mask debug print into intel_hdmi_lpe_audio.c (diff) | |
download | linux-5647aec26640ffdf099d51b3403eaeac10d74147.tar.xz linux-5647aec26640ffdf099d51b3403eaeac10d74147.zip |
ALSA: x86: Embed snd_intelhad into snd_card
Instead of allocating snd_intelhad struct, use the card's private_data
and embed it. It simplifies the code a lot.
While we're at it, embed had_stream into snd_intelhad struct instead
of individually allocating, and rename had_pvt_data to a bit more
specific name, had_stream_data.
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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/x86/intel_hdmi_audio.h b/sound/x86/intel_hdmi_audio.h index 32a2fb766e47..98a004499f3c 100644 --- a/sound/x86/intel_hdmi_audio.h +++ b/sound/x86/intel_hdmi_audio.h @@ -95,7 +95,7 @@ struct had_stream_pvt { ssize_t dbg_cum_bytes; }; -struct had_pvt_data { +struct had_stream_data { enum had_status_stream stream_type; }; @@ -133,7 +133,7 @@ struct snd_intelhad { int valid_buf_cnt; unsigned int aes_bits; int flag_underrun; - struct had_pvt_data *private_data; + struct had_stream_data stream_data; spinlock_t had_spinlock; enum intel_had_aud_buf_type buff_done; struct device *dev; |