aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_hdmi.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2011-11-02 16:40:06 -0400
committerTakashi Iwai <tiwai@suse.de>2011-11-02 16:40:06 -0400
commit112daa7a4c09059ae93e1a3de42e874c13a30728 (patch)
tree750bacd337a4a5e6c3e825c04213c4e58ba0dc1a /sound/pci/hda/patch_hdmi.c
parent1fa1757366783fb52e6e85c2d735db49b818d382 (diff)
ALSA: hda - Remove unused variables
Just clean-up what GCC caught. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_hdmi.c')
-rw-r--r--sound/pci/hda/patch_hdmi.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c
index 342540128fb8..aac3bfacda3f 100644
--- a/sound/pci/hda/patch_hdmi.c
+++ b/sound/pci/hda/patch_hdmi.c
@@ -1006,7 +1006,6 @@ static int hdmi_add_pin(struct hda_codec *codec, hda_nid_t pin_nid)
1006 unsigned int caps, config; 1006 unsigned int caps, config;
1007 int pin_idx; 1007 int pin_idx;
1008 struct hdmi_spec_per_pin *per_pin; 1008 struct hdmi_spec_per_pin *per_pin;
1009 struct hdmi_eld *eld;
1010 int err; 1009 int err;
1011 1010
1012 caps = snd_hda_param_read(codec, pin_nid, AC_PAR_PIN_CAP); 1011 caps = snd_hda_param_read(codec, pin_nid, AC_PAR_PIN_CAP);
@@ -1023,7 +1022,6 @@ static int hdmi_add_pin(struct hda_codec *codec, hda_nid_t pin_nid)
1023 1022
1024 pin_idx = spec->num_pins; 1023 pin_idx = spec->num_pins;
1025 per_pin = &spec->pins[pin_idx]; 1024 per_pin = &spec->pins[pin_idx];
1026 eld = &per_pin->sink_eld;
1027 1025
1028 per_pin->pin_nid = pin_nid; 1026 per_pin->pin_nid = pin_nid;
1029 1027
@@ -1576,7 +1574,7 @@ static int nvhdmi_8ch_7x_pcm_prepare(struct hda_pcm_stream *hinfo,
1576 struct snd_pcm_substream *substream) 1574 struct snd_pcm_substream *substream)
1577{ 1575{
1578 int chs; 1576 int chs;
1579 unsigned int dataDCC1, dataDCC2, channel_id; 1577 unsigned int dataDCC2, channel_id;
1580 int i; 1578 int i;
1581 struct hdmi_spec *spec = codec->spec; 1579 struct hdmi_spec *spec = codec->spec;
1582 struct hda_spdif_out *spdif = 1580 struct hda_spdif_out *spdif =
@@ -1586,7 +1584,6 @@ static int nvhdmi_8ch_7x_pcm_prepare(struct hda_pcm_stream *hinfo,
1586 1584
1587 chs = substream->runtime->channels; 1585 chs = substream->runtime->channels;
1588 1586
1589 dataDCC1 = AC_DIG1_ENABLE | AC_DIG1_COPYRIGHT;
1590 dataDCC2 = 0x2; 1587 dataDCC2 = 0x2;
1591 1588
1592 /* turn off SPDIF once; otherwise the IEC958 bits won't be updated */ 1589 /* turn off SPDIF once; otherwise the IEC958 bits won't be updated */