Commit b83923a3 authored by Wu Fengguang's avatar Wu Fengguang Committed by Takashi Iwai

ALSA: hda - minor HDMI code cleanups

Some minor code cleanups.
Signed-off-by: default avatarWu Fengguang <wfg@linux.intel.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent b2022266
...@@ -431,7 +431,7 @@ static int hdmi_setup_channel_allocation(struct hda_codec *codec, ...@@ -431,7 +431,7 @@ static int hdmi_setup_channel_allocation(struct hda_codec *codec,
* expand ELD's speaker allocation mask * expand ELD's speaker allocation mask
* *
* ELD tells the speaker mask in a compact(paired) form, * ELD tells the speaker mask in a compact(paired) form,
* expand ELD's notions to match the ones used by audio infoframe. * expand ELD's notions to match the ones used by Audio InfoFrame.
*/ */
for (i = 0; i < ARRAY_SIZE(eld_speaker_allocation_bits); i++) { for (i = 0; i < ARRAY_SIZE(eld_speaker_allocation_bits); i++) {
if (eld->spk_alloc & (1 << i)) if (eld->spk_alloc & (1 << i))
...@@ -592,8 +592,8 @@ static struct hda_pcm_stream intel_hdmi_pcm_playback = { ...@@ -592,8 +592,8 @@ static struct hda_pcm_stream intel_hdmi_pcm_playback = {
.channels_max = 8, .channels_max = 8,
.nid = CVT_NID, /* NID to query formats and rates and setup streams */ .nid = CVT_NID, /* NID to query formats and rates and setup streams */
.ops = { .ops = {
.open = intel_hdmi_playback_pcm_open, .open = intel_hdmi_playback_pcm_open,
.close = intel_hdmi_playback_pcm_close, .close = intel_hdmi_playback_pcm_close,
.prepare = intel_hdmi_playback_pcm_prepare .prepare = intel_hdmi_playback_pcm_prepare
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment