]> asedeno.scripts.mit.edu Git - linux.git/commit
ALSA: x86: Move stream status into pcm_stream_info
authorTakashi Iwai <tiwai@suse.de>
Thu, 2 Feb 2017 13:57:22 +0000 (14:57 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 3 Feb 2017 16:36:35 +0000 (17:36 +0100)
commitf69bd104b5cded0db547636fddd9512d7e6cfbf3
tree9ce92a9713217d671d86c357fc917c19229e27b5
parent182cdf23dbf6672954ac646871bf5902050268c7
ALSA: x86: Move stream status into pcm_stream_info

The only remaining field in struct had_stream_data is stream_type that
holds the current stream status.  Such information fits better in
struct pcm_stream_info, so move it as a boolean "running" field to be
clearer.

This allows us to get rid or had_stream_data definition and
references.

Also, the superfluous status check get removed in a couple of places
where we can call PCM helpers in anyway.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/x86/intel_hdmi_audio.c
sound/x86/intel_hdmi_audio.h
sound/x86/intel_hdmi_lpe_audio.h