<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel about="http://blog.gmane.org/gmane.linux.alsa.devel">
    <title>gmane.linux.alsa.devel</title>
    <link>http://blog.gmane.org/gmane.linux.alsa.devel</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.alsa.devel/56016"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.alsa.devel/56015"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.alsa.devel/56013"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.alsa.devel/56012"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.alsa.devel/56000"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.alsa.devel/55999"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.alsa.devel/55997"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.alsa.devel/55990"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.alsa.devel/55989"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.alsa.devel/55988"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.alsa.devel/55987"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.alsa.devel/55986"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.alsa.devel/55985"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.alsa.devel/55983"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.alsa.devel/55982"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.alsa.devel/55981"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.alsa.devel/55980"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.alsa.devel/55979"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.alsa.devel/55959"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.alsa.devel/55932"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.linux.alsa.devel/56016">
    <title>[PATCH1/1] hda: digital slave support for IDT codecs</title>
    <link>http://comments.gmane.org/gmane.linux.alsa.devel/56016</link>
    <description>Added slave_dig_outs entries for several IDT codecs that have multiple
SPDIF outs, and enabled these SPDIF outs in several pin configs.

---
Signed-off-by: Matthew Ranostay &lt;mranostay&lt; at &gt;embeddedalley.com&gt;

diff --git a/pci/hda/patch_sigmatel.c b/pci/hda/patch_sigmatel.c
index 9968ee4..52b3579 100644
--- a/pci/hda/patch_sigmatel.c
+++ b/pci/hda/patch_sigmatel.c
&lt; at &gt;&lt; at &gt; -229,6 +229,10 &lt; at &gt;&lt; at &gt; static hda_nid_t stac92hd73xx_pwr_nids[8] = {
 0x0f, 0x10, 0x11
 };

+static hda_nid_t stac92hd73xx_slave_dig_outs[2] = {
+0x26, 0,
+};
+
 static hda_nid_t stac92hd73xx_adc_nids[2] = {
 0x1a, 0x1b
 };
&lt; at &gt;&lt; at &gt; -274,6 +278,10 &lt; at &gt;&lt; at &gt; static hda_nid_t stac92hd83xxx_pwr_nids[4] = {
 0xa, 0xb, 0xd, 0xe,
 };

+static hda_nid_t stac92hd83xxx_slave_dig_outs[2] = {
+0x1e, 0,
+};
+
 static unsigned int stac92hd83xxx_pwr_mapping[4] = {
 0x03, 0x0c, 0x10, 0x40,
 };
&lt; at &gt;&lt; at &gt; -303,6 +311,10 &lt; at &gt;&lt; at &gt; static hda_nid_t stac92hd71bxx_dmic_nids[STAC92HD71BXX_NUM_DMICS + 1] = {
 0x18, 0x19, 0
 };

+static hda_nid_t stac92hd71bxx_slave_dig_outs[2] = {
+0x22, 0
+};
+
 static hda_nid_t stac925x_adc_nids[1] = {
         0x03,
 };
&lt; at &gt;&lt; at &gt; -396,9 +408,10 &lt; at &gt;&lt; at &gt; static hda_nid_t stac92hd83xxx_pin_nids[14] = {
 0x0f, 0x10, 0x11, 0x12, 0x13,
 0x1d, 0x1e, 0x1f, 0x20
 };
-static hda_nid_t stac92hd71bxx_pin_nids[10] = {
+static hda_nid_t stac92hd71bxx_pin_nids[11] = {
 0x0a, 0x0b, 0x0c, 0x0d, 0x0e,
 0x0f, 0x14, 0x18, 0x19, 0x1e,
+0x1f,
 };

 static hda_nid_t stac927x_pin_nids[14] = {
&lt; at &gt;&lt; at &gt; -1424,22 +1437,22 &lt; at &gt;&lt; at &gt; static struct snd_pci_quirk stac92hd83xxx_cfg_tbl[] = {
       "DFI LanParty", STAC_92HD71BXX_REF),
 };

-static unsigned int ref92hd71bxx_pin_configs[10] = {
+static unsigned int ref92hd71bxx_pin_configs[11] = {
 0x02214030, 0x02a19040, 0x01a19020, 0x01014010,
 0x0181302e, 0x01114010, 0x01019020, 0x90a000f0,
-0x90a000f0, 0x01452050,
+0x90a000f0, 0x01452050, 0x01452050,
 };

-static unsigned int dell_m4_1_pin_configs[10] = {
+static unsigned int dell_m4_1_pin_configs[11] = {
 0x0421101f, 0x04a11221, 0x40f000f0, 0x90170110,
 0x23a1902e, 0x23014250, 0x40f000f0, 0x90a000f0,
-0x40f000f0, 0x4f0000f0,
+0x40f000f0, 0x4f0000f0, 0x4f0000f0,
 };

-static unsigned int dell_m4_2_pin_configs[10] = {
+static unsigned int dell_m4_2_pin_configs[11] = {
 0x0421101f, 0x04a11221, 0x90a70330, 0x90170110,
 0x23a1902e, 0x23014250, 0x40f000f0, 0x40f000f0,
-0x40f000f0, 0x044413b0,
+0x40f000f0, 0x044413b0, 0x044413b0,
 };

 static unsigned int *stac92hd71bxx_brd_tbl[STAC_92HD71BXX_MODELS] = {
&lt; at &gt;&lt; at &gt; -3841,8 +3854,9 &lt; at &gt;&lt; at &gt; again:

 spec-&gt;num_pwrs = ARRAY_SIZE(stac92hd73xx_pwr_nids);
 spec-&gt;pwr_nids = stac92hd73xx_pwr_nids;
+codec-&gt;slave_dig_outs = stac92hd73xx_slave_dig_outs;

-err = stac92xx_parse_auto_config(codec, 0x22, 0x24);
+err = stac92xx_parse_auto_config(codec, 0x22, 0x25);

 if (!err) {
 if (spec-&gt;board_config &lt; 0) {
&lt; at &gt;&lt; at &gt; -3883,6 +3897,7 &lt; at &gt;&lt; at &gt; static int patch_stac92hd83xxx(struct hda_codec *codec)
 return -ENOMEM;

 codec-&gt;spec = spec;
+codec-&gt;slave_dig_outs = stac92hd83xxx_slave_dig_outs;
 spec-&gt;mono_nid = 0x19;
 spec-&gt;digbeep_nid = 0x21;
 spec-&gt;dmic_nids = stac92hd83xxx_dmic_nids;
&lt; at &gt;&lt; at &gt; -4033,6 +4048,7 &lt; at &gt;&lt; at &gt; again:
 case 0x111d76b5:
 spec-&gt;mixer = stac92hd71bxx_mixer;
 spec-&gt;init = stac92hd71bxx_core_init;
+codec-&gt;slave_dig_outs = stac92hd71bxx_slave_dig_outs;
 break;
 case 0x111d7608: /* 5 Port with Analog Mixer */
 if ((codec-&gt;revision_id &amp; 0xf) == 0 ||
&lt; at &gt;&lt; at &gt; -4065,6 +4081,7 &lt; at &gt;&lt; at &gt; again:
 default:
 spec-&gt;mixer = stac92hd71bxx_analog_mixer;
 spec-&gt;init = stac92hd71bxx_analog_core_init;
+codec-&gt;slave_dig_outs = stac92hd71bxx_slave_dig_outs;
 }

 spec-&gt;aloopback_mask = 0x20;
</description>
    <dc:creator>Matthew Ranostay</dc:creator>
    <dc:date>2008-09-07T18:36:53</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.linux.alsa.devel/56015">
    <title>[PATCH0/1] hda: slave digital out support</title>
    <link>http://comments.gmane.org/gmane.linux.alsa.devel/56015</link>
    <description>Added support for playing a stream on multiple digital outs. This is done
by defining codec-&gt;slave_dig_outs as array of hda_nid_t with a null-terminated entry to set the
slave SPDIF outs, in which the slave outs have cloned settings of the master out (e.g. dig_out_nid).

---
Signed-off-by: Matthew Ranostay &lt;mranostay&lt; at &gt;embeddedalley.com&gt;

diff --git a/pci/hda/hda_codec.c b/pci/hda/hda_codec.c
index 4f32911..696d77e 100644
--- a/pci/hda/hda_codec.c
+++ b/pci/hda/hda_codec.c
&lt; at &gt;&lt; at &gt; -1454,12 +1454,22 &lt; at &gt;&lt; at &gt; static int snd_hda_spdif_default_put(struct snd_kcontrol *kcontrol,
 codec-&gt;spdif_ctls = val;

 if (change) {
+hda_nid_t *d;
 snd_hda_codec_write_cache(codec, nid, 0,
   AC_VERB_SET_DIGI_CONVERT_1,
   val &amp; 0xff);
 snd_hda_codec_write_cache(codec, nid, 0,
   AC_VERB_SET_DIGI_CONVERT_2,
   val &gt;&gt; 8);
+
+for (d = codec-&gt;slave_dig_outs; *d; d++) {
+snd_hda_codec_write_cache(codec, *d, 0,
+  AC_VERB_SET_DIGI_CONVERT_1,
+  val &amp; 0xff);
+snd_hda_codec_write_cache(codec, *d, 0,
+  AC_VERB_SET_DIGI_CONVERT_2,
+  val &gt;&gt; 8);
+}
 }

 mutex_unlock(&amp;codec-&gt;spdif_mutex);
&lt; at &gt;&lt; at &gt; -1491,10 +1501,16 &lt; at &gt;&lt; at &gt; static int snd_hda_spdif_out_switch_put(struct snd_kcontrol *kcontrol,
 val |= AC_DIG1_ENABLE;
 change = codec-&gt;spdif_ctls != val;
 if (change) {
+hda_nid_t *d;
 codec-&gt;spdif_ctls = val;
 snd_hda_codec_write_cache(codec, nid, 0,
   AC_VERB_SET_DIGI_CONVERT_1,
   val &amp; 0xff);
+
+for (d = codec-&gt;slave_dig_outs; *d; d++)
+snd_hda_codec_write_cache(codec, *d, 0,
+  AC_VERB_SET_DIGI_CONVERT_1,
+  val &amp; 0xff);
 /* unmute amp switch (if any) */
 if ((get_wcaps(codec, nid) &amp; AC_WCAP_OUT_AMP) &amp;&amp;
     (val &amp; AC_DIG1_ENABLE))
&lt; at &gt;&lt; at &gt; -1643,9 +1659,14 &lt; at &gt;&lt; at &gt; static int snd_hda_spdif_in_switch_put(struct snd_kcontrol *kcontrol,
 mutex_lock(&amp;codec-&gt;spdif_mutex);
 change = codec-&gt;spdif_in_enable != val;
 if (change) {
+hda_nid_t *d;
 codec-&gt;spdif_in_enable = val;
 snd_hda_codec_write_cache(codec, nid, 0,
   AC_VERB_SET_DIGI_CONVERT_1, val);
+
+for (d = codec-&gt;slave_dig_outs; *d; d++)
+snd_hda_codec_write_cache(codec, *d, 0,
+  AC_VERB_SET_DIGI_CONVERT_1, val);
 }
 mutex_unlock(&amp;codec-&gt;spdif_mutex);
 return change;
&lt; at &gt;&lt; at &gt; -2589,15 +2610,30 &lt; at &gt;&lt; at &gt; int snd_hda_input_mux_put(struct hda_codec *codec,
 static void setup_dig_out_stream(struct hda_codec *codec, hda_nid_t nid,
  unsigned int stream_tag, unsigned int format)
 {
+hda_nid_t *d;
+
 /* turn off SPDIF once; otherwise the IEC958 bits won't be updated */
-if (codec-&gt;spdif_status_reset &amp;&amp; (codec-&gt;spdif_ctls &amp; AC_DIG1_ENABLE))
+if (codec-&gt;spdif_status_reset &amp;&amp; (codec-&gt;spdif_ctls &amp; AC_DIG1_ENABLE)) {
 snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_DIGI_CONVERT_1,
+    codec-&gt;spdif_ctls &amp; ~AC_DIG1_ENABLE &amp; 0xff);
+
+for (d = codec-&gt;slave_dig_outs; *d; d++)
+snd_hda_codec_write(codec, *d, 0,
+AC_VERB_SET_DIGI_CONVERT_1,
     codec-&gt;spdif_ctls &amp; ~AC_DIG1_ENABLE &amp; 0xff);
+}
 snd_hda_codec_setup_stream(codec, nid, stream_tag, 0, format);
 /* turn on again (if needed) */
-if (codec-&gt;spdif_status_reset &amp;&amp; (codec-&gt;spdif_ctls &amp; AC_DIG1_ENABLE))
+if (codec-&gt;spdif_status_reset &amp;&amp; (codec-&gt;spdif_ctls &amp; AC_DIG1_ENABLE)) {
 snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_DIGI_CONVERT_1,
     codec-&gt;spdif_ctls &amp; 0xff);
+
+for (d = codec-&gt;slave_dig_outs; *d; d++)
+snd_hda_codec_write(codec, *d, 0,
+AC_VERB_SET_DIGI_CONVERT_1,
+    codec-&gt;spdif_ctls &amp; 0xff);
+}
+
 }

 /*
&lt; at &gt;&lt; at &gt; -2621,8 +2657,12 &lt; at &gt;&lt; at &gt; int snd_hda_multi_out_dig_prepare(struct hda_codec *codec,
   unsigned int format,
   struct snd_pcm_substream *substream)
 {
+hda_nid_t *nid;
 mutex_lock(&amp;codec-&gt;spdif_mutex);
 setup_dig_out_stream(codec, mout-&gt;dig_out_nid, stream_tag, format);
+if (codec-&gt;slave_dig_outs)
+for (nid = codec-&gt;slave_dig_outs; *nid; nid++)
+setup_dig_out_stream(codec, *nid, stream_tag, format);
 mutex_unlock(&amp;codec-&gt;spdif_mutex);
 return 0;
 }
&lt; at &gt;&lt; at &gt; -2689,6 +2729,7 &lt; at &gt;&lt; at &gt; int snd_hda_multi_out_analog_prepare(struct hda_codec *codec,
      struct snd_pcm_substream *substream)
 {
 hda_nid_t *nids = mout-&gt;dac_nids;
+hda_nid_t *d;
 int chs = substream-&gt;runtime-&gt;channels;
 int i;

&lt; at &gt;&lt; at &gt; -2702,9 +2743,16 &lt; at &gt;&lt; at &gt; int snd_hda_multi_out_analog_prepare(struct hda_codec *codec,
 mout-&gt;dig_out_used = HDA_DIG_ANALOG_DUP;
 setup_dig_out_stream(codec, mout-&gt;dig_out_nid,
      stream_tag, format);
+if (codec-&gt;slave_dig_outs)
+for (d = codec-&gt;slave_dig_outs; *d; d++)
+setup_dig_out_stream(codec, *d,
+stream_tag, format);
 } else {
 mout-&gt;dig_out_used = 0;
 snd_hda_codec_cleanup_stream(codec, mout-&gt;dig_out_nid);
+if (codec-&gt;slave_dig_outs)
+for (d = codec-&gt;slave_dig_outs; *d; d++)
+snd_hda_codec_cleanup_stream(codec, *d);
 }
 }
 mutex_unlock(&amp;codec-&gt;spdif_mutex);
diff --git a/pci/hda/hda_codec.h b/pci/hda/hda_codec.h
index 780e2ff..60468f5 100644
--- a/pci/hda/hda_codec.h
+++ b/pci/hda/hda_codec.h
&lt; at &gt;&lt; at &gt; -725,6 +725,7 &lt; at &gt;&lt; at &gt; struct hda_codec {
 unsigned int spdif_status;/* IEC958 status bits */
 unsigned short spdif_ctls;/* SPDIF control bits */
 unsigned int spdif_in_enable;/* SPDIF input enable? */
+hda_nid_t *slave_dig_outs; /* optional digital out slave widgets */

 struct snd_hwdep *hwdep;/* assigned hwdep device */
</description>
    <dc:creator>Matthew Ranostay</dc:creator>
    <dc:date>2008-09-07T18:31:40</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.linux.alsa.devel/56013">
    <title>[PATCH] fix section mismatch in the sound_core</title>
    <link>http://comments.gmane.org/gmane.linux.alsa.devel/56013</link>
    <description>From: Krzysztof Helt &lt;krzysztof.h1&lt; at &gt;wp.pl&gt;

The __exit cleanup_oss_soundcore() is called from 
the __init init_soundcore(). This causes section mismatch
and breaks kernel's linking on sparc64.

Remove the __exit attribute from the cleanup_oss_soundcore().

Signed-off-by: Krzysztof Helt &lt;krzysztof.h1&lt; at &gt;wp.pl&gt;
---
Patch against 2.6.27-rc5-mm1.

diff -urp linux-ref/sound/sound_core.c linux-2.6.26/sound/sound_core.c
--- linux-ref/sound/sound_core.c2008-09-07 18:54:22.800008536 -0400
+++ linux-2.6.26/sound/sound_core.c2008-09-07 18:55:56.805521447 -0400
&lt; at &gt;&lt; at &gt; -13,7 +13,7 &lt; at &gt;&lt; at &gt;
 
 #ifdef CONFIG_SOUND_OSS_CORE
 static int __init init_oss_soundcore(void);
-static void __exit cleanup_oss_soundcore(void);
+static void cleanup_oss_soundcore(void);
 #else
 static inline int init_oss_soundcore(void){ return 0; }
 static inline void cleanup_oss_soundcore(void){ }
&lt; at &gt;&lt; at &gt; -573,7 +573,7 &lt; at &gt;&lt; at &gt; int soundcore_open(struct inode *inode, 
 
 MODULE_ALIAS_CHARDEV_MAJOR(SOUND_MAJOR);
 
-static void __exit cleanup_oss_soundcore(void)
+static void cleanup_oss_soundcore(void)
 {
 /* We have nothing to really do here - we know the lists must be
    empty */

----------------------------------------------------------------------
Tanie polaczenia z Polska i ze swiatem
Sprawdz &gt;&gt;  http://link.interia.pl/f1f00 
</description>
    <dc:creator>Krzysztof Helt</dc:creator>
    <dc:date>2008-09-07T15:24:33</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.linux.alsa.devel/56012">
    <title>[PATCH] ice1712 drivers coding style fixes (part 2)</title>
    <link>http://comments.gmane.org/gmane.linux.alsa.devel/56012</link>
    <description>I started with Takashi's sound-unstable tree as a base:
Fixed:
* ice1724 compilation error (one { too much)
* checkpatch errors along the files

sound/pci/ice1712/ak4xxx.c total: 1 errors, 3 warnings, 0 checks, 196
lines checked
sound/pci/ice1712/amp.h total: 0 errors, 0 warnings, 1 checks, 51 lines checked
sound/pci/ice1712/aureon.c total: 0 errors, 121 warnings, 3 checks,
2284 lines checked
sound/pci/ice1712/aureon.h total: 0 errors, 1 warnings, 0 checks, 65
lines checked
sound/pci/ice1712/delta.c total: 17 errors, 44 warnings, 1 checks, 817
lines checked
sound/pci/ice1712/delta.h total: 0 errors, 8 warnings, 0 checks, 153
lines checked
sound/pci/ice1712/envy24ht.h total: 0 errors, 21 warnings, 0 checks,
221 lines checked
sound/pci/ice1712/ews.c total: 27 errors, 64 warnings, 2 checks, 1087
lines checked
sound/pci/ice1712/ews.h total: 0 errors, 7 warnings, 0 checks, 86 lines checked
sound/pci/ice1712/hoontech.c total: 13 errors, 10 warnings, 1 checks,
360 lines checked
sound/pci/ice1712/hoontech.h total: 2 errors, 7 warnings, 0 checks, 77
lines checked
sound/pci/ice1712/ice1712.c total: 14 errors, 162 warnings, 3 checks,
2799 lines checked
sound/pci/ice1712/ice1712.h total: 0 errors, 22 warnings, 3 checks,
511 lines checked
sound/pci/ice1712/ice1724.c total: 11 errors, 62 warnings, 8 checks,
2657 lines checked
sound/pci/ice1712/juli.c total: 0 errors, 0 warnings, 1 checks, 687
lines checked
sound/pci/ice1712/maya44.c total: 6 errors, 0 warnings, 16 checks, 761
lines checked
sound/pci/ice1712/pontis.c total: 0 errors, 40 warnings, 3 checks, 836
lines checked
sound/pci/ice1712/prodigy192.c total: 12 errors, 21 warnings, 0
checks, 817 lines checked
sound/pci/ice1712/prodigy_hifi.c total: 0 errors, 0 warnings, 1
checks, 1215 lines checked
sound/pci/ice1712/snd-ice1712.mod.c total: 0 errors, 1 warnings, 0
checks, 113 lines checked
sound/pci/ice1712/snd-ice1724.mod.c total: 0 errors, 1 warnings, 0
checks, 126 lines checked
sound/pci/ice1712/vt1732.c total: 51 errors, 3 warnings, 5 checks,
2759 lines checked
sound/pci/ice1712/vt1732.h total: 9 errors, 0 warnings, 2 checks, 452
lines checked

It compiles. At first run ice1724 complained about something
info-related (it's likely that it's not related to this patch at all)
and generated like 20 or 30 lines of warnings and errors along the
lines 890 - 900. On second run there was no errors or warnings
anymore.

</description>
    <dc:creator>Vedran Miletić</dc:creator>
    <dc:date>2008-09-07T15:07:39</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.linux.alsa.devel/56000">
    <title>[PATCH] ice1712.c: fix coding style</title>
    <link>http://comments.gmane.org/gmane.linux.alsa.devel/56000</link>
    <description>before:
total: 113 errors, 169 warnings, 2786 lines checked
total: 26 errors, 24 warnings, 504 lines checked

after:
total: 14 errors, 163 warnings, 2799 lines checked
total: 0 errors, 24 warnings, 504 lines checked

Compile tested only.

Signed-off-by: Alexander Beregalov &lt;a.beregalov&lt; at &gt;gmail.com&gt;
---

 sound/pci/ice1712/ice1712.c |  237 +++++++++++++++++++++++--------------------
 sound/pci/ice1712/ice1712.h |   52 +++++-----
 2 files changed, 151 insertions(+), 138 deletions(-)

diff --git a/sound/pci/ice1712/ice1712.c b/sound/pci/ice1712/ice1712.c
index 05ffab6..5b44238 100644
--- a/sound/pci/ice1712/ice1712.c
+++ b/sound/pci/ice1712/ice1712.c
&lt; at &gt;&lt; at &gt; -17,7 +17,7 &lt; at &gt;&lt; at &gt;
  *   along with this program; if not, write to the Free Software
  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
  *
- */      
+ */
 
 /*
   NOTES:
&lt; at &gt;&lt; at &gt; -35,7 +35,7 &lt; at &gt;&lt; at &gt;
  *
  *  2002.11.26James Stafford &lt;jstafford&lt; at &gt;ampltd.com&gt;
  *Added support for VT1724 (Envy24HT)
- *I have left out support for 176.4 and 192 KHz for the moment. 
+ *I have left out support for 176.4 and 192 KHz for the moment.
  *  I also haven't done anything with the internal S/PDIF transmitter or the MPU-401
  *
  *  2003.02.20  Taksahi Iwai &lt;tiwai&lt; at &gt;suse.de&gt;
&lt; at &gt;&lt; at &gt; -47,7 +47,7 &lt; at &gt;&lt; at &gt;
  */
 
 
-#include &lt;asm/io.h&gt;
+#include &lt;linux/io.h&gt;
 #include &lt;linux/delay.h&gt;
 #include &lt;linux/interrupt.h&gt;
 #include &lt;linux/init.h&gt;
&lt; at &gt;&lt; at &gt; -123,7 +123,7 &lt; at &gt;&lt; at &gt; static unsigned int PRO_RATE_DEFAULT = 44100;
 /*
  *  Basic I/O
  */
- 
+
 /* check whether the clock mode is spdif-in */
 static inline int is_spdif_master(struct snd_ice1712 *ice)
 {
&lt; at &gt;&lt; at &gt; -135,13 +135,13 &lt; at &gt;&lt; at &gt; static inline int is_pro_rate_locked(struct snd_ice1712 *ice)
 return is_spdif_master(ice) || PRO_RATE_LOCKED;
 }
 
-static inline void snd_ice1712_ds_write(struct snd_ice1712 * ice, u8 channel, u8 addr, u32 data)
+static inline void snd_ice1712_ds_write(struct snd_ice1712 *ice, u8 channel, u8 addr, u32 data)
 {
 outb((channel &lt;&lt; 4) | addr, ICEDS(ice, INDEX));
 outl(data, ICEDS(ice, DATA));
 }
 
-static inline u32 snd_ice1712_ds_read(struct snd_ice1712 * ice, u8 channel, u8 addr)
+static inline u32 snd_ice1712_ds_read(struct snd_ice1712 *ice, u8 channel, u8 addr)
 {
 outb((channel &lt;&lt; 4) | addr, ICEDS(ice, INDEX));
 return inl(ICEDS(ice, DATA));
&lt; at &gt;&lt; at &gt; -260,7 +260,7 &lt; at &gt;&lt; at &gt; static unsigned short snd_ice1712_pro_ac97_read(struct snd_ac97 *ac97,
 static int snd_ice1712_digmix_route_ac97_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
 {
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
-
+
 ucontrol-&gt;value.integer.value[0] = inb(ICEMT(ice, MONITOR_ROUTECTRL)) &amp; ICE1712_ROUTE_AC97 ? 1 : 0;
 return 0;
 }
&lt; at &gt;&lt; at &gt; -269,11 +269,12 &lt; at &gt;&lt; at &gt; static int snd_ice1712_digmix_route_ac97_put(struct snd_kcontrol *kcontrol, stru
 {
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
 unsigned char val, nval;
-
+
 spin_lock_irq(&amp;ice-&gt;reg_lock);
 val = inb(ICEMT(ice, MONITOR_ROUTECTRL));
 nval = val &amp; ~ICE1712_ROUTE_AC97;
-if (ucontrol-&gt;value.integer.value[0]) nval |= ICE1712_ROUTE_AC97;
+if (ucontrol-&gt;value.integer.value[0])
+nval |= ICE1712_ROUTE_AC97;
 outb(nval, ICEMT(ice, MONITOR_ROUTECTRL));
 spin_unlock_irq(&amp;ice-&gt;reg_lock);
 return val != nval;
&lt; at &gt;&lt; at &gt; -329,7 +330,7 &lt; at &gt;&lt; at &gt; static int snd_ice1712_cs8427_set_input_clock(struct snd_ice1712 *ice, int spdif
 unsigned char reg[2] = { 0x80 | 4, 0 };   /* CS8427 auto increment | register number 4 + data */
 unsigned char val, nval;
 int res = 0;
-
+
 snd_i2c_lock(ice-&gt;i2c);
 if (snd_i2c_sendbytes(ice-&gt;cs8427, reg, 1) != 1) {
 snd_i2c_unlock(ice-&gt;i2c);
&lt; at &gt;&lt; at &gt; -381,9 +382,9 &lt; at &gt;&lt; at &gt; int __devinit snd_ice1712_init_cs8427(struct snd_ice1712 *ice, int addr)
 {
 int err;
 
-if ((err = snd_cs8427_create(ice-&gt;i2c, addr,
-     (ice-&gt;cs8427_timeout * HZ) / 1000,
-     &amp;ice-&gt;cs8427)) &lt; 0) {
+err = snd_cs8427_create(ice-&gt;i2c, addr,
+(ice-&gt;cs8427_timeout * HZ) / 1000, &amp;ice-&gt;cs8427);
+if (err &lt; 0) {
 snd_printk(KERN_ERR "CS8427 initialization failed\n");
 return err;
 }
&lt; at &gt;&lt; at &gt; -395,9 +396,9 &lt; at &gt;&lt; at &gt; int __devinit snd_ice1712_init_cs8427(struct snd_ice1712 *ice, int addr)
 
 static void snd_ice1712_set_input_clock_source(struct snd_ice1712 *ice, int spdif_is_master)
 {
-        /* change CS8427 clock source too */
-        if (ice-&gt;cs8427)
-                snd_ice1712_cs8427_set_input_clock(ice, spdif_is_master);
+/* change CS8427 clock source too */
+if (ice-&gt;cs8427)
+snd_ice1712_cs8427_set_input_clock(ice, spdif_is_master);
 /* notify ak4524 chip as well */
 if (spdif_is_master) {
 unsigned int i;
&lt; at &gt;&lt; at &gt; -457,11 +458,12 &lt; at &gt;&lt; at &gt; static irqreturn_t snd_ice1712_interrupt(int irq, void *dev_id)
 u16 pbkstatus;
 struct snd_pcm_substream *substream;
 pbkstatus = inw(ICEDS(ice, INTSTAT));
-//printk("pbkstatus = 0x%x\n", pbkstatus);
+/* printk("pbkstatus = 0x%x\n", pbkstatus); */
 for (idx = 0; idx &lt; 6; idx++) {
 if ((pbkstatus &amp; (3 &lt;&lt; (idx * 2))) == 0)
 continue;
-if ((substream = ice-&gt;playback_con_substream_ds[idx]) != NULL)
+substream = ice-&gt;playback_con_substream_ds[idx];
+if (substream != NULL)
 snd_pcm_period_elapsed(substream);
 outw(3 &lt;&lt; (idx * 2), ICEDS(ice, INTSTAT));
 }
&lt; at &gt;&lt; at &gt; -507,7 +509,7 &lt; at &gt;&lt; at &gt; static int snd_ice1712_playback_trigger(struct snd_pcm_substream *substream,
 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
 int result = 0;
 u32 tmp;
-
+
 spin_lock(&amp;ice-&gt;reg_lock);
 tmp = snd_ice1712_read(ice, ICE1712_IREG_PBK_CTRL);
 if (cmd == SNDRV_PCM_TRIGGER_START) {
&lt; at &gt;&lt; at &gt; -532,7 +534,7 &lt; at &gt;&lt; at &gt; static int snd_ice1712_playback_ds_trigger(struct snd_pcm_substream *substream,
 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
 int result = 0;
 u32 tmp;
-
+
 spin_lock(&amp;ice-&gt;reg_lock);
 tmp = snd_ice1712_ds_read(ice, substream-&gt;number * 2, ICE1712_DSC_CONTROL);
 if (cmd == SNDRV_PCM_TRIGGER_START) {
&lt; at &gt;&lt; at &gt; -557,7 +559,7 &lt; at &gt;&lt; at &gt; static int snd_ice1712_capture_trigger(struct snd_pcm_substream *substream,
 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
 int result = 0;
 u8 tmp;
-
+
 spin_lock(&amp;ice-&gt;reg_lock);
 tmp = snd_ice1712_read(ice, ICE1712_IREG_CAP_CTRL);
 if (cmd == SNDRV_PCM_TRIGGER_START) {
&lt; at &gt;&lt; at &gt; -711,8 +713,7 &lt; at &gt;&lt; at &gt; static snd_pcm_uframes_t snd_ice1712_capture_pointer(struct snd_pcm_substream *s
 return bytes_to_frames(substream-&gt;runtime, ptr);
 }
 
-static const struct snd_pcm_hardware snd_ice1712_playback =
-{
+static const struct snd_pcm_hardware snd_ice1712_playback = {
 .info =(SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
  SNDRV_PCM_INFO_BLOCK_TRANSFER |
  SNDRV_PCM_INFO_MMAP_VALID |
&lt; at &gt;&lt; at &gt; -731,8 +732,7 &lt; at &gt;&lt; at &gt; static const struct snd_pcm_hardware snd_ice1712_playback =
 .fifo_size =0,
 };
 
-static const struct snd_pcm_hardware snd_ice1712_playback_ds =
-{
+static const struct snd_pcm_hardware snd_ice1712_playback_ds = {
 .info =(SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
  SNDRV_PCM_INFO_BLOCK_TRANSFER |
  SNDRV_PCM_INFO_MMAP_VALID |
&lt; at &gt;&lt; at &gt; -751,8 +751,7 &lt; at &gt;&lt; at &gt; static const struct snd_pcm_hardware snd_ice1712_playback_ds =
 .fifo_size =0,
 };
 
-static const struct snd_pcm_hardware snd_ice1712_capture =
-{
+static const struct snd_pcm_hardware snd_ice1712_capture = {
 .info =(SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
  SNDRV_PCM_INFO_BLOCK_TRANSFER |
  SNDRV_PCM_INFO_MMAP_VALID),
&lt; at &gt;&lt; at &gt; -788,7 +787,7 &lt; at &gt;&lt; at &gt; static int snd_ice1712_playback_ds_open(struct snd_pcm_substream *substream)
 
 ice-&gt;playback_con_substream_ds[substream-&gt;number] = substream;
 runtime-&gt;hw = snd_ice1712_playback_ds;
-spin_lock_irq(&amp;ice-&gt;reg_lock); 
+spin_lock_irq(&amp;ice-&gt;reg_lock);
 tmp = inw(ICEDS(ice, INTMASK)) &amp; ~(1 &lt;&lt; (substream-&gt;number * 2));
 outw(tmp, ICEDS(ice, INTMASK));
 spin_unlock_irq(&amp;ice-&gt;reg_lock);
&lt; at &gt;&lt; at &gt; -821,7 +820,7 &lt; at &gt;&lt; at &gt; static int snd_ice1712_playback_ds_close(struct snd_pcm_substream *substream)
 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
 u32 tmp;
 
-spin_lock_irq(&amp;ice-&gt;reg_lock); 
+spin_lock_irq(&amp;ice-&gt;reg_lock);
 tmp = inw(ICEDS(ice, INTMASK)) | (3 &lt;&lt; (substream-&gt;number * 2));
 outw(tmp, ICEDS(ice, INTMASK));
 spin_unlock_irq(&amp;ice-&gt;reg_lock);
&lt; at &gt;&lt; at &gt; -870,7 +869,7 &lt; at &gt;&lt; at &gt; static struct snd_pcm_ops snd_ice1712_capture_ops = {
 .pointer =snd_ice1712_capture_pointer,
 };
 
-static int __devinit snd_ice1712_pcm(struct snd_ice1712 * ice, int device, struct snd_pcm ** rpcm)
+static int __devinit snd_ice1712_pcm(struct snd_ice1712 *ice, int device, struct snd_pcm **rpcm)
 {
 struct snd_pcm *pcm;
 int err;
&lt; at &gt;&lt; at &gt; -900,7 +899,7 &lt; at &gt;&lt; at &gt; static int __devinit snd_ice1712_pcm(struct snd_ice1712 * ice, int device, struc
 return 0;
 }
 
-static int __devinit snd_ice1712_pcm_ds(struct snd_ice1712 * ice, int device, struct snd_pcm ** rpcm)
+static int __devinit snd_ice1712_pcm_ds(struct snd_ice1712 *ice, int device, struct snd_pcm **rpcm)
 {
 struct snd_pcm *pcm;
 int err;
&lt; at &gt;&lt; at &gt; -1029,14 +1028,14 &lt; at &gt;&lt; at &gt; static void snd_ice1712_set_pro_rate(struct snd_ice1712 *ice, unsigned int rate,
 if (inb(ICEMT(ice, PLAYBACK_CONTROL)) &amp; (ICE1712_CAPTURE_START_SHADOW|
  ICE1712_PLAYBACK_PAUSE|
  ICE1712_PLAYBACK_START)) {
-      __out:
+__out:
 spin_unlock_irqrestore(&amp;ice-&gt;reg_lock, flags);
 return;
 }
 if (!force &amp;&amp; is_pro_rate_locked(ice))
 goto __out;
 
-        old = inb(ICEMT(ice, RATE));
+old = inb(ICEMT(ice, RATE));
 if (!force &amp;&amp; old == val)
 goto __out;
 outb(val, ICEMT(ice, RATE));
&lt; at &gt;&lt; at &gt; -1123,8 +1122,7 &lt; at &gt;&lt; at &gt; static snd_pcm_uframes_t snd_ice1712_capture_pro_pointer(struct snd_pcm_substrea
 return bytes_to_frames(substream-&gt;runtime, ptr);
 }
 
-static const struct snd_pcm_hardware snd_ice1712_playback_pro =
-{
+static const struct snd_pcm_hardware snd_ice1712_playback_pro = {
 .info =(SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
  SNDRV_PCM_INFO_BLOCK_TRANSFER |
  SNDRV_PCM_INFO_MMAP_VALID |
&lt; at &gt;&lt; at &gt; -1143,8 +1141,7 &lt; at &gt;&lt; at &gt; static const struct snd_pcm_hardware snd_ice1712_playback_pro =
 .fifo_size =0,
 };
 
-static const struct snd_pcm_hardware snd_ice1712_capture_pro =
-{
+static const struct snd_pcm_hardware snd_ice1712_capture_pro = {
 .info =(SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
  SNDRV_PCM_INFO_BLOCK_TRANSFER |
  SNDRV_PCM_INFO_MMAP_VALID |
&lt; at &gt;&lt; at &gt; -1238,7 +1235,7 &lt; at &gt;&lt; at &gt; static struct snd_pcm_ops snd_ice1712_capture_pro_ops = {
 .pointer =snd_ice1712_capture_pro_pointer,
 };
 
-static int __devinit snd_ice1712_pcm_profi(struct snd_ice1712 * ice, int device, struct snd_pcm ** rpcm)
+static int __devinit snd_ice1712_pcm_profi(struct snd_ice1712 *ice, int device, struct snd_pcm **rpcm)
 {
 struct snd_pcm *pcm;
 int err;
&lt; at &gt;&lt; at &gt; -1262,7 +1259,7 &lt; at &gt;&lt; at &gt; static int __devinit snd_ice1712_pcm_profi(struct snd_ice1712 * ice, int device,
 ice-&gt;pcm_pro = pcm;
 if (rpcm)
 *rpcm = pcm;
-
+
 if (ice-&gt;cs8427) {
 /* assign channels to iec958 */
 err = snd_cs8427_iec958_build(ice-&gt;cs8427,
&lt; at &gt;&lt; at &gt; -1272,7 +1269,8 &lt; at &gt;&lt; at &gt; static int __devinit snd_ice1712_pcm_profi(struct snd_ice1712 * ice, int device,
 return err;
 }
 
-if ((err = snd_ice1712_build_pro_mixer(ice)) &lt; 0)
+err = snd_ice1712_build_pro_mixer(ice);
+if (err &lt; 0)
 return err;
 return 0;
 }
&lt; at &gt;&lt; at &gt; -1299,7 +1297,7 &lt; at &gt;&lt; at &gt; static int snd_ice1712_pro_mixer_switch_get(struct snd_kcontrol *kcontrol, struc
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
 int priv_idx = snd_ctl_get_ioffidx(kcontrol, &amp;ucontrol-&gt;id) +
 kcontrol-&gt;private_value;
-
+
 spin_lock_irq(&amp;ice-&gt;reg_lock);
 ucontrol-&gt;value.integer.value[0] =
 !((ice-&gt;pro_volumes[priv_idx] &gt;&gt; 15) &amp; 1);
&lt; at &gt;&lt; at &gt; -1341,7 +1339,7 &lt; at &gt;&lt; at &gt; static int snd_ice1712_pro_mixer_volume_get(struct snd_kcontrol *kcontrol, struc
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
 int priv_idx = snd_ctl_get_ioffidx(kcontrol, &amp;ucontrol-&gt;id) +
 kcontrol-&gt;private_value;
-
+
 spin_lock_irq(&amp;ice-&gt;reg_lock);
 ucontrol-&gt;value.integer.value[0] =
 (ice-&gt;pro_volumes[priv_idx] &gt;&gt; 0) &amp; 127;
&lt; at &gt;&lt; at &gt; -1406,7 +1404,7 &lt; at &gt;&lt; at &gt; static struct snd_kcontrol_new snd_ice1712_multi_capture_analog_switch __devinit
 
 static struct snd_kcontrol_new snd_ice1712_multi_capture_spdif_switch __devinitdata = {
 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
-.name = SNDRV_CTL_NAME_IEC958("Multi ",CAPTURE,SWITCH),
+.name = SNDRV_CTL_NAME_IEC958("Multi ", CAPTURE, SWITCH),
 .info = snd_ice1712_pro_mixer_switch_info,
 .get = snd_ice1712_pro_mixer_switch_get,
 .put = snd_ice1712_pro_mixer_switch_put,
&lt; at &gt;&lt; at &gt; -1428,7 +1426,7 &lt; at &gt;&lt; at &gt; static struct snd_kcontrol_new snd_ice1712_multi_capture_analog_volume __devinit
 
 static struct snd_kcontrol_new snd_ice1712_multi_capture_spdif_volume __devinitdata = {
 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
-.name = SNDRV_CTL_NAME_IEC958("Multi ",CAPTURE,VOLUME),
+.name = SNDRV_CTL_NAME_IEC958("Multi ", CAPTURE, VOLUME),
 .info = snd_ice1712_pro_mixer_volume_info,
 .get = snd_ice1712_pro_mixer_volume_get,
 .put = snd_ice1712_pro_mixer_volume_put,
&lt; at &gt;&lt; at &gt; -1448,7 +1446,7 &lt; at &gt;&lt; at &gt; static int __devinit snd_ice1712_build_pro_mixer(struct snd_ice1712 *ice)
 if (err &lt; 0)
 return err;
 }
-
+
 if (ice-&gt;num_total_adcs &gt; 0) {
 struct snd_kcontrol_new tmp = snd_ice1712_multi_capture_analog_switch;
 tmp.count = ice-&gt;num_total_adcs;
&lt; at &gt;&lt; at &gt; -1495,7 +1493,7 &lt; at &gt;&lt; at &gt; static void snd_ice1712_mixer_free_ac97(struct snd_ac97 *ac97)
 ice-&gt;ac97 = NULL;
 }
 
-static int __devinit snd_ice1712_ac97_mixer(struct snd_ice1712 * ice)
+static int __devinit snd_ice1712_ac97_mixer(struct snd_ice1712 *ice)
 {
 int err, bus_num = 0;
 struct snd_ac97_template ac97;
&lt; at &gt;&lt; at &gt; -1510,27 +1508,32 &lt; at &gt;&lt; at &gt; static int __devinit snd_ice1712_ac97_mixer(struct snd_ice1712 * ice)
 };
 
 if (ice_has_con_ac97(ice)) {
-if ((err = snd_ac97_bus(ice-&gt;card, bus_num++, &amp;con_ops, NULL, &amp;pbus)) &lt; 0)
+err = snd_ac97_bus(ice-&gt;card, bus_num++, &amp;con_ops, NULL, &amp;pbus);
+if (err &lt; 0)
 return err;
 memset(&amp;ac97, 0, sizeof(ac97));
 ac97.private_data = ice;
 ac97.private_free = snd_ice1712_mixer_free_ac97;
-if ((err = snd_ac97_mixer(pbus, &amp;ac97, &amp;ice-&gt;ac97)) &lt; 0)
+err = snd_ac97_mixer(pbus, &amp;ac97, &amp;ice-&gt;ac97);
+if (err &lt; 0)
 printk(KERN_WARNING "ice1712: cannot initialize ac97 for consumer, skipped\n");
 else {
-if ((err = snd_ctl_add(ice-&gt;card, snd_ctl_new1(&amp;snd_ice1712_mixer_digmix_route_ac97, ice))) &lt; 0)
+err = snd_ctl_add(ice-&gt;card, snd_ctl_new1(&amp;snd_ice1712_mixer_digmix_route_ac97, ice));
+if (err &lt; 0)
 return err;
 return 0;
 }
 }
 
-if (! (ice-&gt;eeprom.data[ICE_EEP1_ACLINK] &amp; ICE1712_CFG_PRO_I2S)) {
-if ((err = snd_ac97_bus(ice-&gt;card, bus_num, &amp;pro_ops, NULL, &amp;pbus)) &lt; 0)
+if (!(ice-&gt;eeprom.data[ICE_EEP1_ACLINK] &amp; ICE1712_CFG_PRO_I2S)) {
+err = snd_ac97_bus(ice-&gt;card, bus_num, &amp;pro_ops, NULL, &amp;pbus);
+if (err &lt; 0)
 return err;
 memset(&amp;ac97, 0, sizeof(ac97));
 ac97.private_data = ice;
 ac97.private_free = snd_ice1712_mixer_free_ac97;
-if ((err = snd_ac97_mixer(pbus, &amp;ac97, &amp;ice-&gt;ac97)) &lt; 0)
+err = snd_ac97_mixer(pbus, &amp;ac97, &amp;ice-&gt;ac97);
+if (err &lt; 0)
 printk(KERN_WARNING "ice1712: cannot initialize pro ac97, skipped\n");
 else
 return 0;
&lt; at &gt;&lt; at &gt; -1549,7 +1552,7 &lt; at &gt;&lt; at &gt; static inline unsigned int eeprom_double(struct snd_ice1712 *ice, int idx)
 return (unsigned int)ice-&gt;eeprom.data[idx] | ((unsigned int)ice-&gt;eeprom.data[idx + 1] &lt;&lt; 8);
 }
 
-static void snd_ice1712_proc_read(struct snd_info_entry *entry, 
+static void snd_ice1712_proc_read(struct snd_info_entry *entry,
   struct snd_info_buffer *buffer)
 {
 struct snd_ice1712 *ice = entry-&gt;private_data;
&lt; at &gt;&lt; at &gt; -1585,15 +1588,15 &lt; at &gt;&lt; at &gt; static void snd_ice1712_proc_read(struct snd_info_entry *entry,
 snd_iprintf(buffer, "  SPDOUT           : 0x%04x\n", (unsigned)inw(ICEMT(ice, ROUTE_SPDOUT)));
 snd_iprintf(buffer, "  RATE             : 0x%02x\n", (unsigned)inb(ICEMT(ice, RATE)));
 snd_iprintf(buffer, "  GPIO_DATA        : 0x%02x\n", (unsigned)snd_ice1712_get_gpio_data(ice));
-        snd_iprintf(buffer, "  GPIO_WRITE_MASK  : 0x%02x\n", (unsigned)snd_ice1712_read(ice, ICE1712_IREG_GPIO_WRITE_MASK));
+snd_iprintf(buffer, "  GPIO_WRITE_MASK  : 0x%02x\n", (unsigned)snd_ice1712_read(ice, ICE1712_IREG_GPIO_WRITE_MASK));
 snd_iprintf(buffer, "  GPIO_DIRECTION   : 0x%02x\n", (unsigned)snd_ice1712_read(ice, ICE1712_IREG_GPIO_DIRECTION));
 }
 
-static void __devinit snd_ice1712_proc_init(struct snd_ice1712 * ice)
+static void __devinit snd_ice1712_proc_init(struct snd_ice1712 *ice)
 {
 struct snd_info_entry *entry;
 
-if (! snd_card_proc_new(ice-&gt;card, "ice1712", &amp;entry))
+if (!snd_card_proc_new(ice-&gt;card, "ice1712", &amp;entry))
 snd_info_set_text_ops(entry, ice, snd_ice1712_proc_read);
 }
 
&lt; at &gt;&lt; at &gt; -1613,7 +1616,7 &lt; at &gt;&lt; at &gt; static int snd_ice1712_eeprom_get(struct snd_kcontrol *kcontrol,
   struct snd_ctl_elem_value *ucontrol)
 {
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
-
+
 memcpy(ucontrol-&gt;value.bytes.data, &amp;ice-&gt;eeprom, sizeof(ice-&gt;eeprom));
 return 0;
 }
&lt; at &gt;&lt; at &gt; -1641,7 +1644,7 &lt; at &gt;&lt; at &gt; static int snd_ice1712_spdif_default_get(struct snd_kcontrol *kcontrol,
 {
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
 if (ice-&gt;spdif.ops.default_get)
-ice-&gt;spdif.ops.default_get(ice, ucontrol); 
+ice-&gt;spdif.ops.default_get(ice, ucontrol);
 return 0;
 }
 
&lt; at &gt;&lt; at &gt; -1657,7 +1660,7 &lt; at &gt;&lt; at &gt; static int snd_ice1712_spdif_default_put(struct snd_kcontrol *kcontrol,
 static struct snd_kcontrol_new snd_ice1712_spdif_default __devinitdata =
 {
 .iface =SNDRV_CTL_ELEM_IFACE_PCM,
-.name =         SNDRV_CTL_NAME_IEC958("",PLAYBACK,DEFAULT),
+.name =         SNDRV_CTL_NAME_IEC958("", PLAYBACK, DEFAULT),
 .info =snd_ice1712_spdif_info,
 .get =snd_ice1712_spdif_default_get,
 .put =snd_ice1712_spdif_default_put
&lt; at &gt;&lt; at &gt; -1709,7 +1712,7 &lt; at &gt;&lt; at &gt; static struct snd_kcontrol_new snd_ice1712_spdif_maskc __devinitdata =
 {
 .access =SNDRV_CTL_ELEM_ACCESS_READ,
 .iface =SNDRV_CTL_ELEM_IFACE_PCM,
-.name =         SNDRV_CTL_NAME_IEC958("",PLAYBACK,CON_MASK),
+.name =         SNDRV_CTL_NAME_IEC958("", PLAYBACK, CON_MASK),
 .info =snd_ice1712_spdif_info,
 .get =snd_ice1712_spdif_maskc_get,
 };
&lt; at &gt;&lt; at &gt; -1718,7 +1721,7 &lt; at &gt;&lt; at &gt; static struct snd_kcontrol_new snd_ice1712_spdif_maskp __devinitdata =
 {
 .access =SNDRV_CTL_ELEM_ACCESS_READ,
 .iface =SNDRV_CTL_ELEM_IFACE_PCM,
-.name =         SNDRV_CTL_NAME_IEC958("",PLAYBACK,PRO_MASK),
+.name =         SNDRV_CTL_NAME_IEC958("", PLAYBACK, PRO_MASK),
 .info =snd_ice1712_spdif_info,
 .get =snd_ice1712_spdif_maskp_get,
 };
&lt; at &gt;&lt; at &gt; -1746,7 +1749,7 &lt; at &gt;&lt; at &gt; static struct snd_kcontrol_new snd_ice1712_spdif_stream __devinitdata =
 .access =(SNDRV_CTL_ELEM_ACCESS_READWRITE |
  SNDRV_CTL_ELEM_ACCESS_INACTIVE),
 .iface =SNDRV_CTL_ELEM_IFACE_PCM,
-.name =         SNDRV_CTL_NAME_IEC958("",PLAYBACK,PCM_STREAM),
+.name =         SNDRV_CTL_NAME_IEC958("", PLAYBACK, PCM_STREAM),
 .info =snd_ice1712_spdif_info,
 .get =snd_ice1712_spdif_stream_get,
 .put =snd_ice1712_spdif_stream_put
&lt; at &gt;&lt; at &gt; -1758,7 +1761,7 &lt; at &gt;&lt; at &gt; int snd_ice1712_gpio_get(struct snd_kcontrol *kcontrol,
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
 unsigned char mask = kcontrol-&gt;private_value &amp; 0xff;
 int invert = (kcontrol-&gt;private_value &amp; (1&lt;&lt;24)) ? 1 : 0;
-
+
 snd_ice1712_save_gpio_status(ice);
 ucontrol-&gt;value.integer.value[0] =
 (snd_ice1712_gpio_read(ice) &amp; mask ? 1 : 0) ^ invert;
&lt; at &gt;&lt; at &gt; -1825,7 +1828,7 &lt; at &gt;&lt; at &gt; static int snd_ice1712_pro_internal_clock_get(struct snd_kcontrol *kcontrol,
 9, 6, 3, 1, 7, 4, 0, 12, 8, 5, 2, 11, 255, 255, 255, 10
 };
 unsigned char val;
-
+
 spin_lock_irq(&amp;ice-&gt;reg_lock);
 if (is_spdif_master(ice)) {
 ucontrol-&gt;value.enumerated.item[0] = 13;
&lt; at &gt;&lt; at &gt; -1867,7 +1870,7 &lt; at &gt;&lt; at &gt; static int snd_ice1712_pro_internal_clock_put(struct snd_kcontrol *kcontrol,
 
 if ((oval &amp; ICE1712_SPDIF_MASTER) !=
     (inb(ICEMT(ice, RATE)) &amp; ICE1712_SPDIF_MASTER))
-        snd_ice1712_set_input_clock_source(ice, is_spdif_master(ice));
+snd_ice1712_set_input_clock_source(ice, is_spdif_master(ice));
 
 return change;
 }
&lt; at &gt;&lt; at &gt; -1897,7 +1900,7 &lt; at &gt;&lt; at &gt; static int snd_ice1712_pro_internal_clock_default_info(struct snd_kcontrol *kcon
 "64000",/* 10: 15 */
 "88200",/* 11: 11 */
 "96000",/* 12: 7 */
-// "IEC958 Input",/* 13: -- */
+/* "IEC958 Input",13: -- */
 };
 uinfo-&gt;type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
 uinfo-&gt;count = 1;
&lt; at &gt;&lt; at &gt; -2026,7 +2029,7 &lt; at &gt;&lt; at &gt; static int snd_ice1712_pro_route_info(struct snd_kcontrol *kcontrol,
 "IEC958 In L", "IEC958 In R", /* 9-10 */
 "Digital Mixer", /* 11 - optional */
 };
-
+
 uinfo-&gt;type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
 uinfo-&gt;count = 1;
 uinfo-&gt;value.enumerated.items =
&lt; at &gt;&lt; at &gt; -2070,7 +2073,7 &lt; at &gt;&lt; at &gt; static int snd_ice1712_pro_route_analog_put(struct snd_kcontrol *kcontrol,
 int change, shift;
 int idx = snd_ctl_get_ioffidx(kcontrol, &amp;ucontrol-&gt;id);
 unsigned int val, old_val, nval;
-
+
 /* update PSDOUT */
 if (ucontrol-&gt;value.enumerated.item[0] &gt;= 11)
 nval = idx &lt; 2 ? 1 : 0; /* dig mixer (or pcm) */
&lt; at &gt;&lt; at &gt; -2140,7 +2143,7 &lt; at &gt;&lt; at &gt; static int snd_ice1712_pro_route_spdif_put(struct snd_kcontrol *kcontrol,
 int change, shift;
 int idx = snd_ctl_get_ioffidx(kcontrol, &amp;ucontrol-&gt;id);
 unsigned int val, old_val, nval;
-
+
 /* update SPDOUT */
 spin_lock_irq(&amp;ice-&gt;reg_lock);
 val = old_val = inw(ICEMT(ice, ROUTE_SPDOUT));
&lt; at &gt;&lt; at &gt; -2182,7 +2185,7 &lt; at &gt;&lt; at &gt; static struct snd_kcontrol_new snd_ice1712_mixer_pro_analog_route __devinitdata
 
 static struct snd_kcontrol_new snd_ice1712_mixer_pro_spdif_route __devinitdata = {
 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
-.name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,NONE) "Route",
+.name = SNDRV_CTL_NAME_IEC958("", PLAYBACK, NONE) "Route",
 .info = snd_ice1712_pro_route_info,
 .get = snd_ice1712_pro_route_spdif_get,
 .put = snd_ice1712_pro_route_spdif_put,
&lt; at &gt;&lt; at &gt; -2204,7 +2207,7 &lt; at &gt;&lt; at &gt; static int snd_ice1712_pro_volume_rate_get(struct snd_kcontrol *kcontrol,
    struct snd_ctl_elem_value *ucontrol)
 {
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
-
+
 ucontrol-&gt;value.integer.value[0] = inb(ICEMT(ice, MONITOR_RATE));
 return 0;
 }
&lt; at &gt;&lt; at &gt; -2245,7 +2248,7 &lt; at &gt;&lt; at &gt; static int snd_ice1712_pro_peak_get(struct snd_kcontrol *kcontrol,
 {
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
 int idx;
-
+
 spin_lock_irq(&amp;ice-&gt;reg_lock);
 for (idx = 0; idx &lt; 22; idx++) {
 outb(idx, ICEMT(ice, MONITOR_PEAKINDEX));
&lt; at &gt;&lt; at &gt; -2296,12 +2299,12 &lt; at &gt;&lt; at &gt; static int __devinit snd_ice1712_read_eeprom(struct snd_ice1712 *ice,
 unsigned int i, size;
 struct snd_ice1712_card_info * const *tbl, *c;
 
-if (! modelname || ! *modelname) {
+if (!modelname || !*modelname) {
 ice-&gt;eeprom.subvendor = 0;
 if ((inb(ICEREG(ice, I2C_CTRL)) &amp; ICE1712_I2C_EEPROM) != 0)
 ice-&gt;eeprom.subvendor = (snd_ice1712_read_i2c(ice, dev, 0x00) &lt;&lt; 0) |
-(snd_ice1712_read_i2c(ice, dev, 0x01) &lt;&lt; 8) | 
-(snd_ice1712_read_i2c(ice, dev, 0x02) &lt;&lt; 16) | 
+(snd_ice1712_read_i2c(ice, dev, 0x01) &lt;&lt; 8) |
+(snd_ice1712_read_i2c(ice, dev, 0x02) &lt;&lt; 16) |
 (snd_ice1712_read_i2c(ice, dev, 0x03) &lt;&lt; 24);
 if (ice-&gt;eeprom.subvendor == 0 ||
     ice-&gt;eeprom.subvendor == (unsigned int)-1) {
&lt; at &gt;&lt; at &gt; -2318,12 +2321,12 &lt; at &gt;&lt; at &gt; static int __devinit snd_ice1712_read_eeprom(struct snd_ice1712 *ice,
 }
 for (tbl = card_tables; *tbl; tbl++) {
 for (c = *tbl; c-&gt;subvendor; c++) {
-if (modelname &amp;&amp; c-&gt;model &amp;&amp; ! strcmp(modelname, c-&gt;model)) {
+if (modelname &amp;&amp; c-&gt;model &amp;&amp; !strcmp(modelname, c-&gt;model)) {
 printk(KERN_INFO "ice1712: Using board model %s\n", c-&gt;name);
 ice-&gt;eeprom.subvendor = c-&gt;subvendor;
 } else if (c-&gt;subvendor != ice-&gt;eeprom.subvendor)
 continue;
-if (! c-&gt;eeprom_size || ! c-&gt;eeprom_data)
+if (!c-&gt;eeprom_size || !c-&gt;eeprom_data)
 goto found;
 /* if the EEPROM is given by the driver, use it */
 snd_printdd("using the defined eeprom..\n");
&lt; at &gt;&lt; at &gt; -2484,13 +2487,13 &lt; at &gt;&lt; at &gt; static int __devinit snd_ice1712_build_controls(struct snd_ice1712 *ice)
 
 static int snd_ice1712_free(struct snd_ice1712 *ice)
 {
-if (! ice-&gt;port)
+if (!ice-&gt;port)
 goto __hw_end;
 /* mask all interrupts */
 outb(0xc0, ICEMT(ice, IRQ));
 outb(0xff, ICEREG(ice, IRQMASK));
 /* --- */
-      __hw_end:
+__hw_end:
 if (ice-&gt;irq &gt;= 0)
 free_irq(ice-&gt;irq, ice);
 
&lt; at &gt;&lt; at &gt; -2515,7 +2518,7 &lt; at &gt;&lt; at &gt; static int __devinit snd_ice1712_create(struct snd_card *card,
 int omni,
 int cs8427_timeout,
 int dxr_enable,
-struct snd_ice1712 ** r_ice1712)
+struct snd_ice1712 **r_ice1712)
 {
 struct snd_ice1712 *ice;
 int err;
&lt; at &gt;&lt; at &gt; -2525,8 +2528,9 &lt; at &gt;&lt; at &gt; static int __devinit snd_ice1712_create(struct snd_card *card,
 
 *r_ice1712 = NULL;
 
-        /* enable PCI device */
-if ((err = pci_enable_device(pci)) &lt; 0)
+/* enable PCI device */
+err = pci_enable_device(pci);
+if (err &lt; 0)
 return err;
 /* check, if we can restrict PCI DMA transfers to 28 bits */
 if (pci_set_dma_mask(pci, DMA_28BIT_MASK) &lt; 0 ||
&lt; at &gt;&lt; at &gt; -2570,7 +2574,8 &lt; at &gt;&lt; at &gt; static int __devinit snd_ice1712_create(struct snd_card *card,
 snd_ice1712_proc_init(ice);
 synchronize_irq(pci-&gt;irq);
 
-if ((err = pci_request_regions(pci, "ICE1712")) &lt; 0) {
+err = pci_request_regions(pci, "ICE1712");
+if (err &lt; 0) {
 kfree(ice);
 pci_disable_device(pci);
 return err;
&lt; at &gt;&lt; at &gt; -2586,7 +2591,7 &lt; at &gt;&lt; at &gt; static int __devinit snd_ice1712_create(struct snd_card *card,
 snd_ice1712_free(ice);
 return -EIO;
 }
-
+
 ice-&gt;irq = pci-&gt;irq;
 
 if (snd_ice1712_read_eeprom(ice, modelname) &lt; 0) {
&lt; at &gt;&lt; at &gt; -2606,9 +2611,10 &lt; at &gt;&lt; at &gt; static int __devinit snd_ice1712_create(struct snd_card *card,
      ICEREG(ice, IRQMASK));
 outb(0x00, ICEMT(ice, IRQ));
 
-if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, ice, &amp;ops)) &lt; 0) {
+err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, ice, &amp;ops);
+if (err &lt; 0) {
 snd_ice1712_free(ice);
- return err;
+return err;
 }
 
 snd_card_set_dev(card, &amp;pci-&gt;dev);
&lt; at &gt;&lt; at &gt; -2648,10 +2654,10 &lt; at &gt;&lt; at &gt; static int __devinit snd_ice1712_probe(struct pci_dev *pci,
 
 strcpy(card-&gt;driver, "ICE1712");
 strcpy(card-&gt;shortname, "ICEnsemble ICE1712");
-
-if ((err = snd_ice1712_create(card, pci, model[dev], omni[dev],
-      cs8427_timeout[dev], dxr_enable[dev],
-      &amp;ice)) &lt; 0) {
+
+err = snd_ice1712_create(card, pci, model[dev], omni[dev],
+cs8427_timeout[dev], dxr_enable[dev], &amp;ice);
+if (err &lt; 0) {
 snd_card_free(card);
 return err;
 }
&lt; at &gt;&lt; at &gt; -2663,7 +2669,8 &lt; at &gt;&lt; at &gt; static int __devinit snd_ice1712_probe(struct pci_dev *pci,
 if (c-&gt;driver) /* specific driver? */
 strcpy(card-&gt;driver, c-&gt;driver);
 if (c-&gt;chip_init) {
-if ((err = c-&gt;chip_init(ice)) &lt; 0) {
+err = c-&gt;chip_init(ice);
+if (err &lt; 0) {
 snd_card_free(card);
 return err;
 }
&lt; at &gt;&lt; at &gt; -2675,47 +2682,52 &lt; at &gt;&lt; at &gt; static int __devinit snd_ice1712_probe(struct pci_dev *pci,
 c = &amp;no_matched;
  __found:
 
-if ((err = snd_ice1712_pcm_profi(ice, pcm_dev++, NULL)) &lt; 0) {
+err = snd_ice1712_pcm_profi(ice, pcm_dev++, NULL);
+if (err &lt; 0) {
 snd_card_free(card);
 return err;
 }
-
+
 if (ice_has_con_ac97(ice))
-if ((err = snd_ice1712_pcm(ice, pcm_dev++, NULL)) &lt; 0) {
+err = snd_ice1712_pcm(ice, pcm_dev++, NULL);
+if (err &lt; 0) {
 snd_card_free(card);
 return err;
 }
 
-if ((err = snd_ice1712_ac97_mixer(ice)) &lt; 0) {
+err = snd_ice1712_ac97_mixer(ice);
+if (err &lt; 0) {
 snd_card_free(card);
 return err;
 }
 
-if ((err = snd_ice1712_build_controls(ice)) &lt; 0) {
+err = snd_ice1712_build_controls(ice);
+if (err &lt; 0) {
 snd_card_free(card);
 return err;
 }
 
 if (c-&gt;build_controls) {
-if ((err = c-&gt;build_controls(ice)) &lt; 0) {
+err = c-&gt;build_controls(ice);
+if (err &lt; 0) {
 snd_card_free(card);
 return err;
 }
 }
 
 if (ice_has_con_ac97(ice))
-if ((err = snd_ice1712_pcm_ds(ice, pcm_dev++, NULL)) &lt; 0) {
+err = snd_ice1712_pcm_ds(ice, pcm_dev++, NULL);
+if (err &lt; 0) {
 snd_card_free(card);
 return err;
 }
 
-if (! c-&gt;no_mpu401) {
-if ((err = snd_mpu401_uart_new(card, 0, MPU401_HW_ICE1712,
-       ICEREG(ice, MPU1_CTRL),
-       (c-&gt;mpu401_1_info_flags |
-MPU401_INFO_INTEGRATED),
-       ice-&gt;irq, 0,
-       &amp;ice-&gt;rmidi[0])) &lt; 0) {
+if (!c-&gt;no_mpu401) {
+err = snd_mpu401_uart_new(card, 0, MPU401_HW_ICE1712,
+ICEREG(ice, MPU1_CTRL),
+(c-&gt;mpu401_1_info_flags | MPU401_INFO_INTEGRATED),
+ice-&gt;irq, 0, &amp;ice-&gt;rmidi[0]);
+if (err &lt; 0) {
 snd_card_free(card);
 return err;
 }
&lt; at &gt;&lt; at &gt; -2727,12 +2739,12 &lt; at &gt;&lt; at &gt; static int __devinit snd_ice1712_probe(struct pci_dev *pci,
 
 if (ice-&gt;eeprom.data[ICE_EEP1_CODEC] &amp; ICE1712_CFG_2xMPU401) {
 /*  2nd port used  */
-if ((err = snd_mpu401_uart_new(card, 1, MPU401_HW_ICE1712,
-       ICEREG(ice, MPU2_CTRL),
-       (c-&gt;mpu401_2_info_flags |
-MPU401_INFO_INTEGRATED),
-       ice-&gt;irq, 0,
-       &amp;ice-&gt;rmidi[1])) &lt; 0) {
+err = snd_mpu401_uart_new(card, 1, MPU401_HW_ICE1712,
+ICEREG(ice, MPU2_CTRL),
+(c-&gt;mpu401_2_info_flags | MPU401_INFO_INTEGRATED),
+ice-&gt;irq, 0, &amp;ice-&gt;rmidi[1]);
+
+if (err &lt; 0) {
 snd_card_free(card);
 return err;
 }
&lt; at &gt;&lt; at &gt; -2750,7 +2762,8 &lt; at &gt;&lt; at &gt; static int __devinit snd_ice1712_probe(struct pci_dev *pci,
 sprintf(card-&gt;longname, "%s at 0x%lx, irq %i",
 card-&gt;shortname, ice-&gt;port, ice-&gt;irq);
 
-if ((err = snd_card_register(card)) &lt; 0) {
+err = snd_card_register(card);
+if (err &lt; 0) {
 snd_card_free(card);
 return err;
 }
diff --git a/sound/pci/ice1712/ice1712.h b/sound/pci/ice1712/ice1712.h
index 762fbd7..fdae6de 100644
--- a/sound/pci/ice1712/ice1712.h
+++ b/sound/pci/ice1712/ice1712.h
&lt; at &gt;&lt; at &gt; -20,7 +20,7 &lt; at &gt;&lt; at &gt;
  *   along with this program; if not, write to the Free Software
  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
  *
- */      
+ */
 
 #include &lt;sound/control.h&gt;
 #include &lt;sound/ac97_codec.h&gt;
&lt; at &gt;&lt; at &gt; -112,7 +112,7 &lt; at &gt;&lt; at &gt;
  */
 
 #define ICEDS(ice, x) ((ice)-&gt;dmapath_port + ICE1712_DS_##x)
- 
+
 #define ICE1712_DS_INTMASK0x00/* word - interrupt mask */
 #define ICE1712_DS_INTSTAT0x02/* word - interrupt status */
 #define ICE1712_DS_DATA0x04/* dword - channel data */
&lt; at &gt;&lt; at &gt; -121,7 +121,7 &lt; at &gt;&lt; at &gt;
 /*
  *  Consumer section channel registers
  */
- 
+
 #define ICE1712_DSC_ADDR00x00/* dword - base address 0 */
 #define ICE1712_DSC_COUNT00x01/* word - count 0 */
 #define ICE1712_DSC_ADDR10x02/* dword - base address 1 */
&lt; at &gt;&lt; at &gt; -138,7 +138,7 &lt; at &gt;&lt; at &gt;
 #define ICE1712_DSC_RATE0x05/* dword - rate */
 #define ICE1712_DSC_VOLUME0x06/* word - volume control */
 
-/* 
+/*
  *  Professional multi-track direct control registers
  */
 
&lt; at &gt;&lt; at &gt; -214,7 +214,7 &lt; at &gt;&lt; at &gt;
 
 
 /*
- *  
+ *
  */
 
 struct snd_ice1712;
&lt; at &gt;&lt; at &gt; -253,12 +253,12 &lt; at &gt;&lt; at &gt; enum {
 ICE_EEP1_ADC_ID2,
 ICE_EEP1_ADC_ID3
 };
-
+
 #define ice_has_con_ac97(ice)(!((ice)-&gt;eeprom.data[ICE_EEP1_CODEC] &amp; ICE1712_CFG_NO_CON_AC97))
 
 
 struct snd_ak4xxx_private {
-unsigned int cif: 1;/* CIF mode */
+unsigned int cif:1;/* CIF mode */
 unsigned char caddr;/* C0 and C1 bits */
 unsigned int data_mask;/* DATA gpio bit */
 unsigned int clk_mask;/* CLK gpio bit */
&lt; at &gt;&lt; at &gt; -306,11 +306,11 &lt; at &gt;&lt; at &gt; struct snd_ice1712 {
 struct snd_pcm *pcm;
 struct snd_pcm *pcm_ds;
 struct snd_pcm *pcm_pro;
-        struct snd_pcm_substream *playback_con_substream;
-        struct snd_pcm_substream *playback_con_substream_ds[6];
-        struct snd_pcm_substream *capture_con_substream;
-        struct snd_pcm_substream *playback_pro_substream;
-        struct snd_pcm_substream *capture_pro_substream;
+struct snd_pcm_substream *playback_con_substream;
+struct snd_pcm_substream *playback_con_substream_ds[6];
+struct snd_pcm_substream *capture_con_substream;
+struct snd_pcm_substream *playback_pro_substream;
+struct snd_pcm_substream *capture_pro_substream;
 unsigned int playback_pro_size;
 unsigned int capture_pro_size;
 unsigned int playback_con_virt_addr[6];
&lt; at &gt;&lt; at &gt; -326,15 +326,15 &lt; at &gt;&lt; at &gt; struct snd_ice1712 {
 struct snd_ice1712_eeprom eeprom;
 
 unsigned int pro_volumes[20];
-unsigned int omni: 1;/* Delta Omni I/O */
-unsigned int dxr_enable: 1;/* Terratec DXR enable for DMX6FIRE */
-unsigned int vt1724: 1;
-unsigned int vt1720: 1;
-unsigned int has_spdif: 1;/* VT1720/4 - has SPDIF I/O */
-unsigned int force_pdma4: 1;/* VT1720/4 - PDMA4 as non-spdif */
-unsigned int force_rdma1: 1;/* VT1720/4 - RDMA1 as non-spdif */
-unsigned int midi_output: 1;/* VT1720/4: MIDI output triggered */
-unsigned int midi_input: 1;/* VT1720/4: MIDI input triggered */
+unsigned int omni:1;/* Delta Omni I/O */
+unsigned int dxr_enable:1;/* Terratec DXR enable for DMX6FIRE */
+unsigned int vt1724:1;
+unsigned int vt1720:1;
+unsigned int has_spdif:1;/* VT1720/4 - has SPDIF I/O */
+unsigned int force_pdma4:1;/* VT1720/4 - PDMA4 as non-spdif */
+unsigned int force_rdma1:1;/* VT1720/4 - RDMA1 as non-spdif */
+unsigned int midi_output:1;/* VT1720/4: MIDI output triggered */
+unsigned int midi_input:1;/* VT1720/4: MIDI input triggered */
 unsigned int num_total_dacs;/* total DACs */
 unsigned int num_total_adcs;/* total ADCs */
 unsigned int cur_rate;/* current rate */
&lt; at &gt;&lt; at &gt; -351,7 +351,7 &lt; at &gt;&lt; at &gt; struct snd_ice1712 {
 struct snd_i2c_bus *i2c;/* I2C bus */
 struct snd_i2c_device *cs8427;/* CS8427 I2C device */
 unsigned int cs8427_timeout;/* CS8427 reset timeout in HZ/100 */
-
+
 struct ice1712_gpio {
 unsigned int direction;/* current direction bits */
 unsigned int write_mask;/* current mask bits */
&lt; at &gt;&lt; at &gt; -455,7 +455,7 &lt; at &gt;&lt; at &gt; static inline int snd_ice1712_gpio_read_bits(struct snd_ice1712 *ice,
 {
 ice-&gt;gpio.direction &amp;= ~mask;
 snd_ice1712_gpio_set_dir(ice, ice-&gt;gpio.direction);
-return  (snd_ice1712_gpio_read(ice) &amp; mask);
+return  snd_ice1712_gpio_read(ice) &amp; mask;
 }
 
 int snd_ice1712_spdif_build_controls(struct snd_ice1712 *ice);
&lt; at &gt;&lt; at &gt; -467,13 +467,13 &lt; at &gt;&lt; at &gt; int snd_ice1712_akm4xxx_build_controls(struct snd_ice1712 *ice);
 
 int snd_ice1712_init_cs8427(struct snd_ice1712 *ice, int addr);
 
-static inline void snd_ice1712_write(struct snd_ice1712 * ice, u8 addr, u8 data)
+static inline void snd_ice1712_write(struct snd_ice1712 *ice, u8 addr, u8 data)
 {
 outb(addr, ICEREG(ice, INDEX));
 outb(data, ICEREG(ice, DATA));
 }
 
-static inline u8 snd_ice1712_read(struct snd_ice1712 * ice, u8 addr)
+static inline u8 snd_ice1712_read(struct snd_ice1712 *ice, u8 addr)
 {
 outb(addr, ICEREG(ice, INDEX));
 return inb(ICEREG(ice, DATA));
&lt; at &gt;&lt; at &gt; -491,7 +491,7 &lt; at &gt;&lt; at &gt; struct snd_ice1712_card_info {
 char *driver;
 int (*chip_init)(struct snd_ice1712 *);
 int (*build_controls)(struct snd_ice1712 *);
-unsigned int no_mpu401: 1;
+unsigned int no_mpu401:1;
 unsigned int mpu401_1_info_flags;
 unsigned int mpu401_2_info_flags;
 const char *mpu401_1_name;
</description>
    <dc:creator>Alexander Beregalov</dc:creator>
    <dc:date>2008-09-07T10:17:02</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.linux.alsa.devel/55999">
    <title>[PATCH] ice1724.c: fix coding style</title>
    <link>http://comments.gmane.org/gmane.linux.alsa.devel/55999</link>
    <description>before:
total: 96 errors, 66 warnings, 2612 lines checked

after:
total: 11 errors, 64 warnings, 2624 lines checked

Compile tested only.

Signed-off-by: Alexander Beregalov &lt;a.beregalov&lt; at &gt;gmail.com&gt;
---

 sound/pci/ice1712/ice1724.c |  180 +++++++++++++++++++++++--------------------
 1 files changed, 96 insertions(+), 84 deletions(-)

diff --git a/sound/pci/ice1712/ice1724.c b/sound/pci/ice1712/ice1724.c
index 7bb99df..1b3f117 100644
--- a/sound/pci/ice1712/ice1724.c
+++ b/sound/pci/ice1712/ice1724.c
&lt; at &gt;&lt; at &gt; -20,9 +20,9 &lt; at &gt;&lt; at &gt;
  *   along with this program; if not, write to the Free Software
  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
  *
- */      
+ */
 
-#include &lt;asm/io.h&gt;
+#include &lt;linux/io.h&gt;
 #include &lt;linux/delay.h&gt;
 #include &lt;linux/interrupt.h&gt;
 #include &lt;linux/init.h&gt;
&lt; at &gt;&lt; at &gt; -105,7 +105,7 &lt; at &gt;&lt; at &gt; static unsigned int PRO_RATE_DEFAULT = 44100;
 /*
  *  Basic I/O
  */
- 
+
 /*
  *  default rates, default clock routines
  */
&lt; at &gt;&lt; at &gt; -198,7 +198,7 &lt; at &gt;&lt; at &gt; static void snd_vt1724_set_gpio_dir(struct snd_ice1712 *ice, unsigned int data)
 static void snd_vt1724_set_gpio_mask(struct snd_ice1712 *ice, unsigned int data)
 {
 outw(data, ICEREG1724(ice, GPIO_WRITE_MASK));
-if (! ice-&gt;vt1720) /* VT1720 supports only 16 GPIO bits */
+if (!ice-&gt;vt1720) /* VT1720 supports only 16 GPIO bits */
 outb((data &gt;&gt; 16) &amp; 0xff, ICEREG1724(ice, GPIO_WRITE_MASK_22));
 inw(ICEREG1724(ice, GPIO_WRITE_MASK)); /* dummy read for pci-posting */
 }
&lt; at &gt;&lt; at &gt; -206,7 +206,7 &lt; at &gt;&lt; at &gt; static void snd_vt1724_set_gpio_mask(struct snd_ice1712 *ice, unsigned int data)
 static void snd_vt1724_set_gpio_data(struct snd_ice1712 *ice, unsigned int data)
 {
 outw(data, ICEREG1724(ice, GPIO_DATA));
-if (! ice-&gt;vt1720)
+if (!ice-&gt;vt1720)
 outb(data &gt;&gt; 16, ICEREG1724(ice, GPIO_DATA_22));
 inw(ICEREG1724(ice, GPIO_DATA)); /* dummy read for pci-posting */
 }
&lt; at &gt;&lt; at &gt; -214,7 +214,7 &lt; at &gt;&lt; at &gt; static void snd_vt1724_set_gpio_data(struct snd_ice1712 *ice, unsigned int data)
 static unsigned int snd_vt1724_get_gpio_data(struct snd_ice1712 *ice)
 {
 unsigned int data;
-if (! ice-&gt;vt1720)
+if (!ice-&gt;vt1720)
 data = (unsigned int)inb(ICEREG1724(ice, GPIO_DATA_22));
 else
 data = 0;
&lt; at &gt;&lt; at &gt; -399,7 +399,7 &lt; at &gt;&lt; at &gt; static irqreturn_t snd_vt1724_interrupt(int irq, void *dev_id)
 break;
 }
 #endif
-handled = 1;
+handled = 1;
 if (status &amp; VT1724_IRQ_MPU_TX) {
 spin_lock(&amp;ice-&gt;reg_lock);
 if (ice-&gt;midi_output)
&lt; at &gt;&lt; at &gt; -468,8 +468,8 &lt; at &gt;&lt; at &gt; static irqreturn_t snd_vt1724_interrupt(int irq, void *dev_id)
 /* ought to really handle this properly */
 if (mtstat &amp; VT1724_MULTI_FIFO_ERR) {
 unsigned char fstat = inb(ICEMT1724(ice, DMA_FIFO_ERR));
-outb(fstat, ICEMT1724(ice, DMA_FIFO_ERR));
-outb(VT1724_MULTI_FIFO_ERR | inb(ICEMT1724(ice, DMA_INT_MASK)), ICEMT1724(ice, DMA_INT_MASK));
+outb(fstat, ICEMT1724(ice, DMA_FIFO_ERR));
+outb(VT1724_MULTI_FIFO_ERR | inb(ICEMT1724(ice, DMA_INT_MASK)), ICEMT1724(ice, DMA_INT_MASK));
 /* If I don't do this, I get machine lockup due to continual interrupts */
 }
 
&lt; at &gt;&lt; at &gt; -733,17 +733,17 &lt; at &gt;&lt; at &gt; static int snd_vt1724_playback_pro_prepare(struct snd_pcm_substream *substream)
 outl(substream-&gt;runtime-&gt;dma_addr, ICEMT1724(ice, PLAYBACK_ADDR));
 
 size = (snd_pcm_lib_buffer_bytes(substream) &gt;&gt; 2) - 1;
-// outl(size, ICEMT1724(ice, PLAYBACK_SIZE));
+/* outl(size, ICEMT1724(ice, PLAYBACK_SIZE)); */
 outw(size, ICEMT1724(ice, PLAYBACK_SIZE));
 outb(size &gt;&gt; 16, ICEMT1724(ice, PLAYBACK_SIZE) + 2);
 size = (snd_pcm_lib_period_bytes(substream) &gt;&gt; 2) - 1;
-// outl(size, ICEMT1724(ice, PLAYBACK_COUNT));
+/* outl(size, ICEMT1724(ice, PLAYBACK_COUNT)); */
 outw(size, ICEMT1724(ice, PLAYBACK_COUNT));
 outb(size &gt;&gt; 16, ICEMT1724(ice, PLAYBACK_COUNT) + 2);
 
 spin_unlock_irq(&amp;ice-&gt;reg_lock);
 
-// printk("pro prepare: ch = %d, addr = 0x%x, buffer = 0x%x, period = 0x%x\n", substream-&gt;runtime-&gt;channels, (unsigned int)substream-&gt;runtime-&gt;dma_addr, snd_pcm_lib_buffer_bytes(substream), snd_pcm_lib_period_bytes(substream));
+/* printk("pro prepare: ch = %d, addr = 0x%x, buffer = 0x%x, period = 0x%x\n", substream-&gt;runtime-&gt;channels, (unsigned int)substream-&gt;runtime-&gt;dma_addr, snd_pcm_lib_buffer_bytes(substream), snd_pcm_lib_period_bytes(substream)); */
 return 0;
 }
 
&lt; at &gt;&lt; at &gt; -771,7 +771,7 &lt; at &gt;&lt; at &gt; static snd_pcm_uframes_t snd_vt1724_playback_pro_pointer(struct snd_pcm_substrea
 ptr = inl(ICEMT1724(ice, PLAYBACK_SIZE)) &amp; 0xffffff;
 ptr = (ptr + 1) &lt;&lt; 2;
 ptr = bytes_to_frames(substream-&gt;runtime, ptr);
-if (! ptr)
+if (!ptr)
 ;
 else if (ptr &lt;= substream-&gt;runtime-&gt;buffer_size)
 ptr = substream-&gt;runtime-&gt;buffer_size - ptr;
&lt; at &gt;&lt; at &gt; -815,7 +815,7 &lt; at &gt;&lt; at &gt; static snd_pcm_uframes_t snd_vt1724_pcm_pointer(struct snd_pcm_substream *substr
 ptr = inw(ice-&gt;profi_port + reg-&gt;size);
 ptr = (ptr + 1) &lt;&lt; 2;
 ptr = bytes_to_frames(substream-&gt;runtime, ptr);
-if (! ptr)
+if (!ptr)
 ;
 else if (ptr &lt;= substream-&gt;runtime-&gt;buffer_size)
 ptr = substream-&gt;runtime-&gt;buffer_size - ptr;
&lt; at &gt;&lt; at &gt; -842,8 +842,7 &lt; at &gt;&lt; at &gt; static const struct vt1724_pcm_reg vt1724_capture_pro_reg = {
 .start = VT1724_RDMA0_START,
 };
 
-static const struct snd_pcm_hardware snd_vt1724_playback_pro =
-{
+static const struct snd_pcm_hardware snd_vt1724_playback_pro = {
 .info =(SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
  SNDRV_PCM_INFO_BLOCK_TRANSFER |
  SNDRV_PCM_INFO_MMAP_VALID |
&lt; at &gt;&lt; at &gt; -861,8 +860,7 &lt; at &gt;&lt; at &gt; static const struct snd_pcm_hardware snd_vt1724_playback_pro =
 .periods_max =1024,
 };
 
-static const struct snd_pcm_hardware snd_vt1724_spdif =
-{
+static const struct snd_pcm_hardware snd_vt1724_spdif = {
 .info =(SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
  SNDRV_PCM_INFO_BLOCK_TRANSFER |
  SNDRV_PCM_INFO_MMAP_VALID |
&lt; at &gt;&lt; at &gt; -883,8 +881,7 &lt; at &gt;&lt; at &gt; static const struct snd_pcm_hardware snd_vt1724_spdif =
 .periods_max =1024,
 };
 
-static const struct snd_pcm_hardware snd_vt1724_2ch_stereo =
-{
+static const struct snd_pcm_hardware snd_vt1724_2ch_stereo = {
 .info =(SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
  SNDRV_PCM_INFO_BLOCK_TRANSFER |
  SNDRV_PCM_INFO_MMAP_VALID |
&lt; at &gt;&lt; at &gt; -1030,7 +1027,7 &lt; at &gt;&lt; at &gt; static struct snd_pcm_ops snd_vt1724_capture_pro_ops = {
 .pointer =snd_vt1724_pcm_pointer,
 };
 
-static int __devinit snd_vt1724_pcm_profi(struct snd_ice1712 * ice, int device)
+static int __devinit snd_vt1724_pcm_profi(struct snd_ice1712 *ice, int device)
 {
 struct snd_pcm *pcm;
 int err;
&lt; at &gt;&lt; at &gt; -1115,7 +1112,7 &lt; at &gt;&lt; at &gt; static void update_spdif_rate(struct snd_ice1712 *ice, unsigned int rate)
 static int snd_vt1724_playback_spdif_prepare(struct snd_pcm_substream *substream)
 {
 struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
-if (! ice-&gt;force_pdma4)
+if (!ice-&gt;force_pdma4)
 update_spdif_rate(ice, substream-&gt;runtime-&gt;rate);
 return snd_vt1724_pcm_prepare(substream);
 }
&lt; at &gt;&lt; at &gt; -1215,7 +1212,7 &lt; at &gt;&lt; at &gt; static struct snd_pcm_ops snd_vt1724_capture_spdif_ops = {
 };
 
 
-static int __devinit snd_vt1724_pcm_spdif(struct snd_ice1712 * ice, int device)
+static int __devinit snd_vt1724_pcm_spdif(struct snd_ice1712 *ice, int device)
 {
 char *name;
 struct snd_pcm *pcm;
&lt; at &gt;&lt; at &gt; -1234,7 +1231,7 &lt; at &gt;&lt; at &gt; static int __devinit snd_vt1724_pcm_spdif(struct snd_ice1712 * ice, int device)
 ice-&gt;has_spdif = 1;
 } else
 capt = 0;
-if (! play &amp;&amp; ! capt)
+if (!play &amp;&amp; !capt)
 return 0; /* no spdif device */
 
 if (ice-&gt;force_pdma4 || ice-&gt;force_rdma1)
&lt; at &gt;&lt; at &gt; -1349,7 +1346,7 &lt; at &gt;&lt; at &gt; static struct snd_pcm_ops snd_vt1724_playback_indep_ops = {
 };
 
 
-static int __devinit snd_vt1724_pcm_indep(struct snd_ice1712 * ice, int device)
+static int __devinit snd_vt1724_pcm_indep(struct snd_ice1712 *ice, int device)
 {
 struct snd_pcm *pcm;
 int play;
&lt; at &gt;&lt; at &gt; -1384,11 +1381,11 &lt; at &gt;&lt; at &gt; static int __devinit snd_vt1724_pcm_indep(struct snd_ice1712 * ice, int device)
  *  Mixer section
  */
 
-static int __devinit snd_vt1724_ac97_mixer(struct snd_ice1712 * ice)
+static int __devinit snd_vt1724_ac97_mixer(struct snd_ice1712 *ice)
 {
 int err;
 
-if (! (ice-&gt;eeprom.data[ICE_EEP2_ACLINK] &amp; VT1724_CFG_PRO_I2S)) {
+if (!(ice-&gt;eeprom.data[ICE_EEP2_ACLINK] &amp; VT1724_CFG_PRO_I2S)) {
 struct snd_ac97_bus *pbus;
 struct snd_ac97_template ac97;
 static struct snd_ac97_bus_ops ops = {
&lt; at &gt;&lt; at &gt; -1401,11 +1398,13 &lt; at &gt;&lt; at &gt; static int __devinit snd_vt1724_ac97_mixer(struct snd_ice1712 * ice)
 mdelay(5); /* FIXME */
 outb(inb(ICEMT1724(ice, AC97_CMD)) &amp; ~0x80, ICEMT1724(ice, AC97_CMD));
 
-if ((err = snd_ac97_bus(ice-&gt;card, 0, &amp;ops, NULL, &amp;pbus)) &lt; 0)
+err = snd_ac97_bus(ice-&gt;card, 0, &amp;ops, NULL, &amp;pbus);
+if (err &lt; 0)
 return err;
 memset(&amp;ac97, 0, sizeof(ac97));
 ac97.private_data = ice;
-if ((err = snd_ac97_mixer(pbus, &amp;ac97, &amp;ice-&gt;ac97)) &lt; 0)
+err = snd_ac97_mixer(pbus, &amp;ac97, &amp;ice-&gt;ac97);
+if (err &lt; 0)
 printk(KERN_WARNING "ice1712: cannot initialize pro ac97, skipped\n");
 else
 return 0;
&lt; at &gt;&lt; at &gt; -1426,7 +1425,7 &lt; at &gt;&lt; at &gt; static inline unsigned int eeprom_triple(struct snd_ice1712 *ice, int idx)
 ((unsigned int)ice-&gt;eeprom.data[idx + 2] &lt;&lt; 16);
 }
 
-static void snd_vt1724_proc_read(struct snd_info_entry *entry, 
+static void snd_vt1724_proc_read(struct snd_info_entry *entry,
  struct snd_info_buffer *buffer)
 {
 struct snd_ice1712 *ice = entry-&gt;private_data;
&lt; at &gt;&lt; at &gt; -1468,11 +1467,11 &lt; at &gt;&lt; at &gt; static void snd_vt1724_proc_read(struct snd_info_entry *entry,
     idx, inb(ice-&gt;profi_port+idx));
 }
 
-static void __devinit snd_vt1724_proc_init(struct snd_ice1712 * ice)
+static void __devinit snd_vt1724_proc_init(struct snd_ice1712 *ice)
 {
 struct snd_info_entry *entry;
 
-if (! snd_card_proc_new(ice-&gt;card, "ice1724", &amp;entry))
+if (!snd_card_proc_new(ice-&gt;card, "ice1724", &amp;entry))
 snd_info_set_text_ops(entry, ice, snd_vt1724_proc_read);
 }
 
&lt; at &gt;&lt; at &gt; -1492,7 +1491,7 &lt; at &gt;&lt; at &gt; static int snd_vt1724_eeprom_get(struct snd_kcontrol *kcontrol,
  struct snd_ctl_elem_value *ucontrol)
 {
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
-
+
 memcpy(ucontrol-&gt;value.bytes.data, &amp;ice-&gt;eeprom, sizeof(ice-&gt;eeprom));
 return 0;
 }
&lt; at &gt;&lt; at &gt; -1607,13 +1606,13 &lt; at &gt;&lt; at &gt; static int snd_vt1724_spdif_default_put(struct snd_kcontrol *kcontrol,
 if (val != old)
 update_spdif_bits(ice, val);
 spin_unlock_irq(&amp;ice-&gt;reg_lock);
-return (val != old);
+return val != old;
 }
 
 static struct snd_kcontrol_new snd_vt1724_spdif_default __devinitdata =
 {
 .iface =SNDRV_CTL_ELEM_IFACE_PCM,
-.name =         SNDRV_CTL_NAME_IEC958("",PLAYBACK,DEFAULT),
+.name =         SNDRV_CTL_NAME_IEC958("", PLAYBACK, DEFAULT),
 .info =snd_vt1724_spdif_info,
 .get =snd_vt1724_spdif_default_get,
 .put =snd_vt1724_spdif_default_put
&lt; at &gt;&lt; at &gt; -1646,7 +1645,7 &lt; at &gt;&lt; at &gt; static struct snd_kcontrol_new snd_vt1724_spdif_maskc __devinitdata =
 {
 .access =SNDRV_CTL_ELEM_ACCESS_READ,
 .iface =SNDRV_CTL_ELEM_IFACE_PCM,
-.name =         SNDRV_CTL_NAME_IEC958("",PLAYBACK,CON_MASK),
+.name =         SNDRV_CTL_NAME_IEC958("", PLAYBACK, CON_MASK),
 .info =snd_vt1724_spdif_info,
 .get =snd_vt1724_spdif_maskc_get,
 };
&lt; at &gt;&lt; at &gt; -1655,7 +1654,7 &lt; at &gt;&lt; at &gt; static struct snd_kcontrol_new snd_vt1724_spdif_maskp __devinitdata =
 {
 .access =SNDRV_CTL_ELEM_ACCESS_READ,
 .iface =SNDRV_CTL_ELEM_IFACE_PCM,
-.name =         SNDRV_CTL_NAME_IEC958("",PLAYBACK,PRO_MASK),
+.name =         SNDRV_CTL_NAME_IEC958("", PLAYBACK, PRO_MASK),
 .info =snd_vt1724_spdif_info,
 .get =snd_vt1724_spdif_maskp_get,
 };
&lt; at &gt;&lt; at &gt; -1692,8 +1691,8 &lt; at &gt;&lt; at &gt; static struct snd_kcontrol_new snd_vt1724_spdif_switch __devinitdata =
 {
 .iface =SNDRV_CTL_ELEM_IFACE_MIXER,
 /* FIXME: the following conflict with IEC958 Playback Route */
-// .name =         SNDRV_CTL_NAME_IEC958("",PLAYBACK,SWITCH),
-.name =         SNDRV_CTL_NAME_IEC958("Output ",NONE,SWITCH),
+/* .name =         SNDRV_CTL_NAME_IEC958("", PLAYBACK, SWITCH), */
+.name =         SNDRV_CTL_NAME_IEC958("Output ", NONE, SWITCH),
 .info =snd_vt1724_spdif_sw_info,
 .get =snd_vt1724_spdif_sw_get,
 .put =snd_vt1724_spdif_sw_put
&lt; at &gt;&lt; at &gt; -1713,7 +1712,7 &lt; at &gt;&lt; at &gt; int snd_vt1724_gpio_get(struct snd_kcontrol *kcontrol,
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
 int shift = kcontrol-&gt;private_value &amp; 0xff;
 int invert = (kcontrol-&gt;private_value &amp; (1&lt;&lt;24)) ? 1 : 0;
-
+
 snd_ice1712_save_gpio_status(ice);
 ucontrol-&gt;value.integer.value[0] =
 (snd_ice1712_gpio_read(ice) &amp; (1 &lt;&lt; shift) ? 1 : 0) ^ invert;
&lt; at &gt;&lt; at &gt; -1768,7 +1767,7 &lt; at &gt;&lt; at &gt; static int snd_vt1724_pro_internal_clock_get(struct snd_kcontrol *kcontrol,
 {
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
 unsigned int i, rate;
-
+
 spin_lock_irq(&amp;ice-&gt;reg_lock);
 if (ice-&gt;is_spdif_master(ice)) {
 ucontrol-&gt;value.enumerated.item[0] = ice-&gt;hw_rates-&gt;count;
&lt; at &gt;&lt; at &gt; -1924,7 +1923,7 &lt; at &gt;&lt; at &gt; static int snd_vt1724_pro_route_info(struct snd_kcontrol *kcontrol,
 "H/W In 0", "H/W In 1", /* 1-2 */
 "IEC958 In L", "IEC958 In R", /* 3-4 */
 };
-
+
 uinfo-&gt;type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
 uinfo-&gt;count = 1;
 uinfo-&gt;value.enumerated.items = 5;
&lt; at &gt;&lt; at &gt; -1954,7 +1953,7 &lt; at &gt;&lt; at &gt; static int get_route_val(struct snd_ice1712 *ice, int shift)
 
 val = inl(ICEMT1724(ice, ROUTE_PLAYBACK));
 val &gt;&gt;= shift;
-val &amp;= 7;//we now have 3 bits per output
+val &amp;= 7; /* we now have 3 bits per output */
 eitem = xlate[val];
 if (eitem == 255) {
 snd_BUG();
&lt; at &gt;&lt; at &gt; -2033,7 +2032,7 &lt; at &gt;&lt; at &gt; static struct snd_kcontrol_new snd_vt1724_mixer_pro_analog_route __devinitdata =
 
 static struct snd_kcontrol_new snd_vt1724_mixer_pro_spdif_route __devinitdata = {
 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
-.name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,NONE) "Route",
+.name = SNDRV_CTL_NAME_IEC958("", PLAYBACK, NONE) "Route",
 .info = snd_vt1724_pro_route_info,
 .get = snd_vt1724_pro_route_spdif_get,
 .put = snd_vt1724_pro_route_spdif_put,
&lt; at &gt;&lt; at &gt; -2056,7 +2055,7 &lt; at &gt;&lt; at &gt; static int snd_vt1724_pro_peak_get(struct snd_kcontrol *kcontrol,
 {
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
 int idx;
-
+
 spin_lock_irq(&amp;ice-&gt;reg_lock);
 for (idx = 0; idx &lt; 22; idx++) {
 outb(idx, ICEMT1724(ice, MONITOR_PEAKINDEX));
&lt; at &gt;&lt; at &gt; -2083,7 +2082,7 &lt; at &gt;&lt; at &gt; static struct snd_ice1712_card_info no_matched __devinitdata;
 
 static struct snd_ice1712_card_info *card_tables[] __devinitdata = {
 snd_vt1724_revo_cards,
-snd_vt1724_amp_cards, 
+snd_vt1724_amp_cards,
 snd_vt1724_aureon_cards,
 snd_vt1720_mobo_cards,
 snd_vt1720_pontis_cards,
&lt; at &gt;&lt; at &gt; -2121,7 +2120,7 &lt; at &gt;&lt; at &gt; unsigned char snd_vt1724_read_i2c(struct snd_ice1712 *ice,
 wait_i2c_busy(ice);
 val = inb(ICEREG1724(ice, I2C_DATA));
 mutex_unlock(&amp;ice-&gt;i2c_mutex);
-//printk("i2c_read: [0x%x,0x%x] = 0x%x\n", dev, addr, val);
+/* printk("i2c_read: [0x%x,0x%x] = 0x%x\n", dev, addr, val); */
 return val;
 }
 
&lt; at &gt;&lt; at &gt; -2130,7 +2129,7 &lt; at &gt;&lt; at &gt; void snd_vt1724_write_i2c(struct snd_ice1712 *ice,
 {
 mutex_lock(&amp;ice-&gt;i2c_mutex);
 wait_i2c_busy(ice);
-//printk("i2c_write: [0x%x,0x%x] = 0x%x\n", dev, addr, data);
+/* printk("i2c_write: [0x%x,0x%x] = 0x%x\n", dev, addr, data); */
 outb(addr, ICEREG1724(ice, I2C_BYTE_ADDR));
 outb(data, ICEREG1724(ice, I2C_DATA));
 outb(dev | VT1724_I2C_WRITE, ICEREG1724(ice, I2C_DEV_ADDR));
&lt; at &gt;&lt; at &gt; -2145,13 +2144,13 &lt; at &gt;&lt; at &gt; static int __devinit snd_vt1724_read_eeprom(struct snd_ice1712 *ice,
 unsigned int i, size;
 struct snd_ice1712_card_info * const *tbl, *c;
 
-if (! modelname || ! *modelname) {
+if (!modelname || !*modelname) {
 ice-&gt;eeprom.subvendor = 0;
 if ((inb(ICEREG1724(ice, I2C_CTRL)) &amp; VT1724_I2C_EEPROM) != 0)
 ice-&gt;eeprom.subvendor =
 (snd_vt1724_read_i2c(ice, dev, 0x00) &lt;&lt; 0) |
-(snd_vt1724_read_i2c(ice, dev, 0x01) &lt;&lt; 8) | 
-(snd_vt1724_read_i2c(ice, dev, 0x02) &lt;&lt; 16) | 
+(snd_vt1724_read_i2c(ice, dev, 0x01) &lt;&lt; 8) |
+(snd_vt1724_read_i2c(ice, dev, 0x02) &lt;&lt; 16) |
 (snd_vt1724_read_i2c(ice, dev, 0x03) &lt;&lt; 24);
 if (ice-&gt;eeprom.subvendor == 0 ||
     ice-&gt;eeprom.subvendor == (unsigned int)-1) {
&lt; at &gt;&lt; at &gt; -2174,13 +2173,13 &lt; at &gt;&lt; at &gt; static int __devinit snd_vt1724_read_eeprom(struct snd_ice1712 *ice,
 for (tbl = card_tables; *tbl; tbl++) {
 for (c = *tbl; c-&gt;subvendor; c++) {
 if (modelname &amp;&amp; c-&gt;model &amp;&amp;
-    ! strcmp(modelname, c-&gt;model)) {
+    !strcmp(modelname, c-&gt;model)) {
 printk(KERN_INFO "ice1724: Using board model %s\n",
        c-&gt;name);
 ice-&gt;eeprom.subvendor = c-&gt;subvendor;
 } else if (c-&gt;subvendor != ice-&gt;eeprom.subvendor)
 continue;
-if (! c-&gt;eeprom_size || ! c-&gt;eeprom_data)
+if (!c-&gt;eeprom_size || !c-&gt;eeprom_data)
 goto found;
 /* if the EEPROM is given by the driver, use it */
 snd_printdd("using the defined eeprom..\n");
&lt; at &gt;&lt; at &gt; -2322,13 +2321,13 &lt; at &gt;&lt; at &gt; static int __devinit snd_vt1724_build_controls(struct snd_ice1712 *ice)
 
 static int snd_vt1724_free(struct snd_ice1712 *ice)
 {
-if (! ice-&gt;port)
+if (!ice-&gt;port)
 goto __hw_end;
 /* mask all interrupts */
 outb(0xff, ICEMT1724(ice, DMA_INT_MASK));
 outb(0xff, ICEREG1724(ice, IRQMASK));
 /* --- */
-      __hw_end:
+__hw_end:
 if (ice-&gt;irq &gt;= 0)
 free_irq(ice-&gt;irq, ice);
 pci_release_regions(ice-&gt;pci);
&lt; at &gt;&lt; at &gt; -2348,7 +2347,7 &lt; at &gt;&lt; at &gt; static int snd_vt1724_dev_free(struct snd_device *device)
 static int __devinit snd_vt1724_create(struct snd_card *card,
        struct pci_dev *pci,
        const char *modelname,
-       struct snd_ice1712 ** r_ice1712)
+       struct snd_ice1712 **r_ice1712)
 {
 struct snd_ice1712 *ice;
 int err;
&lt; at &gt;&lt; at &gt; -2359,8 +2358,9 &lt; at &gt;&lt; at &gt; static int __devinit snd_vt1724_create(struct snd_card *card,
 
 *r_ice1712 = NULL;
 
-        /* enable PCI device */
-if ((err = pci_enable_device(pci)) &lt; 0)
+/* enable PCI device */
+err = pci_enable_device(pci);
+if (err &lt; 0)
 return err;
 
 ice = kzalloc(sizeof(*ice), GFP_KERNEL);
&lt; at &gt;&lt; at &gt; -2384,7 +2384,8 &lt; at &gt;&lt; at &gt; static int __devinit snd_vt1724_create(struct snd_card *card,
 snd_vt1724_proc_init(ice);
 synchronize_irq(pci-&gt;irq);
 
-if ((err = pci_request_regions(pci, "ICE1724")) &lt; 0) {
+err = pci_request_regions(pci, "ICE1724");
+if (err &lt; 0) {
 kfree(ice);
 pci_disable_device(pci);
 return err;
&lt; at &gt;&lt; at &gt; -2419,9 +2420,10 &lt; at &gt;&lt; at &gt; static int __devinit snd_vt1724_create(struct snd_card *card,
  */
 outb(VT1724_MULTI_FIFO_ERR, ICEMT1724(ice, DMA_INT_MASK));
 
-if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, ice, &amp;ops)) &lt; 0) {
+err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, ice, &amp;ops);
+if (err &lt; 0) {
 snd_vt1724_free(ice);
- return err;
+return err;
 }
 
 snd_card_set_dev(card, &amp;pci-&gt;dev);
&lt; at &gt;&lt; at &gt; -2459,8 +2461,9 &lt; at &gt;&lt; at &gt; static int __devinit snd_vt1724_probe(struct pci_dev *pci,
 
 strcpy(card-&gt;driver, "ICE1724");
 strcpy(card-&gt;shortname, "ICEnsemble ICE1724");
-
-if ((err = snd_vt1724_create(card, pci, model[dev], &amp;ice)) &lt; 0) {
+
+err = snd_vt1724_create(card, pci, model[dev], &amp;ice);
+if (err &lt; 0) {
 snd_card_free(card);
 return err;
 }
&lt; at &gt;&lt; at &gt; -2472,7 +2475,8 &lt; at &gt;&lt; at &gt; static int __devinit snd_vt1724_probe(struct pci_dev *pci,
 if (c-&gt;driver) /* specific driver? */
 strcpy(card-&gt;driver, c-&gt;driver);
 if (c-&gt;chip_init) {
-if ((err = c-&gt;chip_init(ice)) &lt; 0) {
+err = c-&gt;chip_init(ice);
+if (err &lt; 0) {
 snd_card_free(card);
 return err;
 }
&lt; at &gt;&lt; at &gt; -2482,15 +2486,15 &lt; at &gt;&lt; at &gt; static int __devinit snd_vt1724_probe(struct pci_dev *pci,
 }
 }
 c = &amp;no_matched;
- __found:
-       /*
-        * VT1724 has separate DMAs for the analog and the SPDIF streams while
-        * ICE1712 has only one for both (mixed up).
-        *
-        * Confusingly the analog PCM is named "professional" here because it
-        * was called so in ice1712 driver, and vt1724 driver is derived from
-        * ice1712 driver.
-        */
+__found:
+/*
+* VT1724 has separate DMAs for the analog and the SPDIF streams while
+* ICE1712 has only one for both (mixed up).
+*
+* Confusingly the analog PCM is named "professional" here because it
+* was called so in ice1712 driver, and vt1724 driver is derived from
+* ice1712 driver.
+*/
 ice-&gt;pro_rate_default = PRO_RATE_DEFAULT;
 if (!ice-&gt;is_spdif_master)
 ice-&gt;is_spdif_master = stdclock_is_spdif_master;
&lt; at &gt;&lt; at &gt; -2505,46 +2509,53 &lt; at &gt;&lt; at &gt; static int __devinit snd_vt1724_probe(struct pci_dev *pci,
 if (!ice-&gt;hw_rates)
 set_std_hw_rates(ice);
 
-if ((err = snd_vt1724_pcm_profi(ice, pcm_dev++)) &lt; 0) {
+err = snd_vt1724_pcm_profi(ice, pcm_dev++);
+if (err &lt; 0) {
 snd_card_free(card);
 return err;
 }
-
-if ((err = snd_vt1724_pcm_spdif(ice, pcm_dev++)) &lt; 0) {
+
+err = snd_vt1724_pcm_spdif(ice, pcm_dev++);
+if (err &lt; 0) {
 snd_card_free(card);
 return err;
 }
-
-if ((err = snd_vt1724_pcm_indep(ice, pcm_dev++)) &lt; 0) {
+
+err = snd_vt1724_pcm_indep(ice, pcm_dev++);
+if (err &lt; 0) {
 snd_card_free(card);
 return err;
 }
 
-if ((err = snd_vt1724_ac97_mixer(ice)) &lt; 0) {
+err = snd_vt1724_ac97_mixer(ice);
+if (err &lt; 0) {
 snd_card_free(card);
 return err;
 }
 
-if ((err = snd_vt1724_build_controls(ice)) &lt; 0) {
+err = snd_vt1724_build_controls(ice);
+if (err &lt; 0) {
 snd_card_free(card);
 return err;
 }
 
 if (ice-&gt;pcm &amp;&amp; ice-&gt;has_spdif) { /* has SPDIF I/O */
-if ((err = snd_vt1724_spdif_build_controls(ice)) &lt; 0) {
+err = snd_vt1724_spdif_build_controls(ice);
+if (err &lt; 0) {
 snd_card_free(card);
 return err;
 }
 }
 
 if (c-&gt;build_controls) {
-if ((err = c-&gt;build_controls(ice)) &lt; 0) {
+err = c-&gt;build_controls(ice);
+if (err &lt; 0) {
 snd_card_free(card);
 return err;
 }
 }
 
-if (! c-&gt;no_mpu401) {
+if (!c-&gt;no_mpu401) {
 if (ice-&gt;eeprom.data[ICE_EEP2_SYSCONF] &amp; VT1724_CFG_MPU401) {
 struct snd_rawmidi *rmidi;
 
&lt; at &gt;&lt; at &gt; -2576,7 +2587,8 &lt; at &gt;&lt; at &gt; static int __devinit snd_vt1724_probe(struct pci_dev *pci,
 sprintf(card-&gt;longname, "%s at 0x%lx, irq %i",
 card-&gt;shortname, ice-&gt;port, ice-&gt;irq);
 
-if ((err = snd_card_register(card)) &lt; 0) {
+err = snd_card_register(card);
+if (err &lt; 0) {
 snd_card_free(card);
 return err;
 }
</description>
    <dc:creator>Alexander Beregalov</dc:creator>
    <dc:date>2008-09-07T10:11:04</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.linux.alsa.devel/55997">
    <title>[PATCH] phase and juli coding style fixes (more comingup)</title>
    <link>http://comments.gmane.org/gmane.linux.alsa.devel/55997</link>
    <description>From my signoff:

From b4a282ae0d54087bc152571c250afcd57fa9fa38 Mon Sep 17 00:00:00 2001
From: Vedran Miletic &lt;rivanvx&lt; at &gt;gmail.com&gt;
Date: Sun, 7 Sep 2008 11:22:35 +0200
Subject: [PATCH] ALSA: ice1712/ice1724: Coding style fixes part 1
(more coming up)

Inspired by Alexander Beregalov's patches for wtm and aureon.c,
I decided to run checkpatch on some more files. After some work
checkpatch.pl-0.23 --no-tree --file --strict &lt;file&gt; reports
0 errors, 0 warnings, 0 checks, n lines checked for:
phase.c
phase.h
juli.c (1 check about unused code, maybe we should comment it)
juli.h (no changes necessary)
In other files I have just fixed // comments and long lines along the
way (but not all of them), more coming up.

Signed-off-by: Vedran Miletic &lt;rivanvx&lt; at &gt;gmail.com&gt;

Patch is attached.

</description>
    <dc:creator>Vedran Miletić</dc:creator>
    <dc:date>2008-09-07T09:39:10</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.linux.alsa.devel/55990">
    <title>[PATCH 0/5] ARM: OMAP2: Add support for GUmstix Overo(rev 3)</title>
    <link>http://comments.gmane.org/gmane.linux.alsa.devel/55990</link>
    <description>This patch series adds support for the Gumstix Overo board.

This is the third submission and incorporates all previous feedback from both linux-omap and alsa-devel.  Careful readers will also notice that this version includes nand support rather than onenand.
</description>
    <dc:creator>sakoman&lt; at &gt;gmail.com</dc:creator>
    <dc:date>2008-09-07T06:41:39</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.linux.alsa.devel/55989">
    <title>HP tx2000 and snd-hda-intel</title>
    <link>http://comments.gmane.org/gmane.linux.alsa.devel/55989</link>
    <description>Note:
The other message did not go through because it was too big.
I can email the schematics I mentioned if anyone is interested

**************************************************************

Hello,

I have an HP Pavillion TX2000z.
This laptop has uses the snd-hda-intel and has the ALC861VD realtek
codec. 
The existing configuration for the codec does not support the tx2000
series laptops fully.

There are several configurations that have various levels of support.

If you specify for the model to use the existing hp model (made for the
tx1000 series) then:

1.Headphones Work
2.Speakers Work
3.Front Mic Works (the jack mic by the headphone jack)
4.The External Mics do not work (There are two mics at the top of the
laptop... I am guessing left and right for a stereo Mic)
5.It seems like there is something mapped to an input that does not
belong there. The simplest way to explain this is when I open audacity
and set it to monitor input that there is significant white noise coming
in. The Ext. Mics are not working so it can't come from there (as far as
I know) and I have nothing plugged into the front Mic. I cannot find any
way to mute this noise.

When using the 3-stack model (with the option position_fix):
1. Headphones do not work (in either ports)
2. Speakers Work
3. Front Mic Works
4. The external mics work
5. Same problem as expressed above

All other models do not work in any significant way.

Also one of the Headphone ports (there are two on the front)
has Digital Out (optical) that I have no way of confirming if it works.

Now, that being said, I have tried working on the driver. I have
virtually no programing experience. I was able to have the driver
autodetect the soundcard and apply a certain model (before it had to be
applied with a module config file.)
And was able to interpret some of how the driver worked. But I am so
lost. I am not sure how hard it would be for a programmer to modify the
driver to support the tx2000.

So I want to put out a call to anyone who could help.
I am fully available for testing and some debugging if someone could try
and help.
I am uploading the codec file and the codec schematic ( I don't think
this is actually accurate, but It may help...)

Also here is the lspci -nn for the soundcard and other info I found

00:10.1 Audio device [0403]: nVidia Corporation MCP51 High Definition
Audio [10de:026c] (rev a2)


lshw
*-multimedia
          description: Audio device
          product: MCP51 High Definition Audio
          vendor: nVidia Corporation
          physical id: 10.1
          bus info: pci&lt; at &gt;0000:00:10.1
          version: a2
          width: 32 bits
          clock: 66MHz
          capabilities: pm msi ht bus_master cap_list
          configuration: driver=HDA Intel latency=0 maxlatency=5
mingnt=2 module=snd_hda_intel
 
If anyone could help or use additional information I would appreciate
it.
Thanks,
Kory

p.s. if this is the wrong place to post, please redirect me.
Codec: Realtek ALC861-VD
Address: 0
Vendor Id: 0x10ec0862
Subsystem Id: 0x103c30e5
Revision Id: 0x100001
No Modem Function Group found
Default PCM:
    rates [0x160]: 44100 48000 96000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
GPIO: io=2, o=0, i=0, unsolicited=1, wake=0
  IO[0]: enable=0, dir=0, wake=0, sticky=0, data=0
  IO[1]: enable=0, dir=0, wake=0, sticky=0, data=0
Node 0x02 [Audio Output] wcaps 0x1d: Stereo Amp-Out
  Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0
  Amp-Out vals:  [0x40 0x40]
  Converter: stream=0, channel=0
  PCM:
    rates [0x160]: 44100 48000 96000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Node 0x03 [Audio Output] wcaps 0x1d: Stereo Amp-Out
  Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0
  Amp-Out vals:  [0x00 0x00]
  Converter: stream=0, channel=0
  PCM:
    rates [0x160]: 44100 48000 96000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Node 0x04 [Audio Output] wcaps 0x1d: Stereo Amp-Out
  Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0
  Amp-Out vals:  [0x00 0x00]
  Converter: stream=0, channel=0
  PCM:
    rates [0x160]: 44100 48000 96000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Node 0x05 [Audio Output] wcaps 0x1d: Stereo Amp-Out
  Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0
  Amp-Out vals:  [0x00 0x00]
  Converter: stream=0, channel=0
  PCM:
    rates [0x160]: 44100 48000 96000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Node 0x06 [Audio Output] wcaps 0x211: Stereo Digital
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  PCM:
    rates [0x160]: 44100 48000 96000
    bits [0x1e]: 16 20 24 32
    formats [0x1]: PCM
Node 0x07 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x08 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x09 [Audio Input] wcaps 0x10011b: Stereo Amp-In
  Amp-In caps: ofs=0x09, nsteps=0x1f, stepsize=0x05, mute=1
  Amp-In vals:  [0x1f 0x1f]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x160]: 44100 48000 96000
    bits [0x6]: 16 20
    formats [0x1]: PCM
  Connection: 1
     0x22
Node 0x0a [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0b [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
  Amp-In vals:  [0x1f 0x1f] [0x1f 0x1f] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
  Connection: 6
     0x18 0x19 0x1a 0x1b 0x1c 0x1d
Node 0x0c [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x00 0x00] [0x00 0x00]
  Connection: 2
     0x02 0x0b
Node 0x0d [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x00 0x00] [0x00 0x00]
  Connection: 2
     0x03 0x0b
Node 0x0e [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x80 0x80] [0x80 0x80]
  Connection: 2
     0x04 0x0b
Node 0x0f [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x80 0x80] [0x80 0x80]
  Connection: 2
     0x05 0x0b
Node 0x10 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x11 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x12 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x13 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x14 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x081003c: IN OUT HP EAPD Detect
  EAPD 0x2: EAPD
  Pin Default 0x99130110: [Fixed] Speaker at Int ATAPI
    Conn = ATAPI, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x0c
Node 0x15 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x0810034: IN OUT EAPD Detect
  EAPD 0x2: EAPD
  Pin Default 0x02014020: [Jack] Line Out at Ext Front
    Conn = 1/8, Color = Green
    DefAssociation = 0x2, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=04, enabled=1
  Connection: 1
     0x0d
Node 0x16 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x0834: IN OUT Detect
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x0e
Node 0x17 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x0834: IN OUT Detect
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x0f
Node 0x18 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x081734: IN OUT Detect
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x02a19830: [Jack] Mic at Ext Front
    Conn = 1/8, Color = Pink
    DefAssociation = 0x3, Sequence = 0x0
  Pin-ctls: 0x21: IN VREF_50
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x0e
Node 0x19 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x08173c: IN OUT HP Detect
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x99a3013f: [Fixed] Mic at Int ATAPI
    Conn = ATAPI, Color = Unknown
    DefAssociation = 0x3, Sequence = 0xf
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Connection: 2
     0x0c* 0x0f
Node 0x1a [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x0834: IN OUT Detect
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x0d
Node 0x1b [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x08173c: IN OUT HP Detect
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Connection: 2
     0x0c* 0x0f
Node 0x1c [Pin Complex] wcaps 0x400001: Stereo
  Pincap 0x0820: IN
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
Node 0x1d [Pin Complex] wcaps 0x400000: Mono
  Pincap 0x0820: IN
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
Node 0x1e [Pin Complex] wcaps 0x400300: Mono Digital
  Pincap 0x0810: OUT
  Pin Default 0x99430140: [Fixed] SPDIF Out at Int ATAPI
    Conn = ATAPI, Color = Unknown
    DefAssociation = 0x4, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Connection: 1
     0x06
Node 0x1f [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono
  Processing caps: benign=0, ncoeff=17
Node 0x21 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x22 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
  Connection: 11
     0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b
Node 0x23 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x24 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x25 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x26 [Vendor Defined Widget] wcaps 0xf00000: Mono
_______________________________________________
Alsa-devel mailing list
Alsa-devel&lt; at &gt;alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
</description>
    <dc:creator>Kory Prince</dc:creator>
    <dc:date>2008-09-07T04:26:10</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.linux.alsa.devel/55988">
    <title>[PATCH] ice1712/wtm: fix coding style</title>
    <link>http://comments.gmane.org/gmane.linux.alsa.devel/55988</link>
    <description>before:
total: 2 errors, 0 warnings, 20 lines checked
total: 49 errors, 2 warnings, 518 lines checked

after:
total: 0 errors, 0 warnings, 20 lines checked
total: 0 errors, 0 warnings, 518 lines checked

Compile tested, size and code are equal.


Signed-off-by: Alexander Beregalov &lt;a.beregalov&lt; at &gt;gmail.com&gt;
---

 sound/pci/ice1712/wtm.c |  104 +++++++++++++++++++++++-----------------------
 sound/pci/ice1712/wtm.h |    4 +-
 2 files changed, 54 insertions(+), 54 deletions(-)

diff --git a/sound/pci/ice1712/wtm.c b/sound/pci/ice1712/wtm.c
index a08d17c..5af9e84 100644
--- a/sound/pci/ice1712/wtm.c
+++ b/sound/pci/ice1712/wtm.c
&lt; at &gt;&lt; at &gt; -1,12 +1,12 &lt; at &gt;&lt; at &gt;
 /*
  *ALSA driver for ICEnsemble VT1724 (Envy24HT)
- *
+ *
  *Lowlevel functions for Ego Sys Waveterminal 192M
  *
  *Copyright (c) 2006 Guedez Clement &lt;klem.dev&lt; at &gt;gmail.com&gt;
  *Some functions are taken from the Prodigy192 driver
  *source
- *
+ *
  *This program is free software; you can redistribute it and/or modify
  *it under the terms of the GNU General Public License as published by
  *the Free Software Foundation; either version 2 of the License, or
&lt; at &gt;&lt; at &gt; -20,12 +20,12 &lt; at &gt;&lt; at &gt;
  *You should have received a copy of the GNU General Public License
  *along with this program; if not, write to the Free Software
  *Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- */
+ *
+ */
 
 
 
-#include &lt;asm/io.h&gt;
+#include &lt;linux/io.h&gt;
 #include &lt;linux/delay.h&gt;
 #include &lt;linux/interrupt.h&gt;
 #include &lt;linux/init.h&gt;
&lt; at &gt;&lt; at &gt; -39,9 +39,9 &lt; at &gt;&lt; at &gt;
 
 
 /*
- *2*ADC 6*DAC no1 ringbuffer r/w on i2c bus 
+ *2*ADC 6*DAC no1 ringbuffer r/w on i2c bus
  */
-static inline void stac9460_put(struct snd_ice1712 *ice, int reg, 
+static inline void stac9460_put(struct snd_ice1712 *ice, int reg,
 unsigned char val)
 {
 snd_vt1724_write_i2c(ice, STAC9460_I2C_ADDR, reg, val);
&lt; at &gt;&lt; at &gt; -73,7 +73,7 &lt; at &gt;&lt; at &gt; static inline unsigned char stac9460_2_get(struct snd_ice1712 *ice, int reg)
 #define stac9460_dac_mute_infosnd_ctl_boolean_mono_info
 
 static int stac9460_dac_mute_get(struct snd_kcontrol *kcontrol,
-       struct snd_ctl_elem_value *ucontrol)
+struct snd_ctl_elem_value *ucontrol)
 {
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
 unsigned char val;
&lt; at &gt;&lt; at &gt; -88,14 +88,14 &lt; at &gt;&lt; at &gt; static int stac9460_dac_mute_get(struct snd_kcontrol *kcontrol,
 }
 if (id &lt; 6)
 val = stac9460_get(ice, idx);
-else 
-val = stac9460_2_get(ice,idx - 6);
+else
+val = stac9460_2_get(ice, idx - 6);
 ucontrol-&gt;value.integer.value[0] = (~val &gt;&gt; 7) &amp; 0x1;
 return 0;
 }
 
 static int stac9460_dac_mute_put(struct snd_kcontrol *kcontrol,
-       struct snd_ctl_elem_value *ucontrol)
+struct snd_ctl_elem_value *ucontrol)
 {
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
 unsigned char new, old;
&lt; at &gt;&lt; at &gt; -105,8 +105,8 &lt; at &gt;&lt; at &gt; static int stac9460_dac_mute_put(struct snd_kcontrol *kcontrol,
 if (kcontrol-&gt;private_value) {
 idx = STAC946X_MASTER_VOLUME;
 old = stac9460_get(ice, idx);
-new = (~ucontrol-&gt;value.integer.value[0]&lt;&lt; 7 &amp; 0x80) |
-       (old &amp; ~0x80);
+new = (~ucontrol-&gt;value.integer.value[0] &lt;&lt; 7 &amp; 0x80) |
+(old &amp; ~0x80);
 change = (new != old);
 if (change) {
 stac9460_put(ice, idx, new);
&lt; at &gt;&lt; at &gt; -117,16 +117,16 &lt; at &gt;&lt; at &gt; static int stac9460_dac_mute_put(struct snd_kcontrol *kcontrol,
 idx = id + STAC946X_LF_VOLUME;
 if (id &lt; 6)
 old = stac9460_get(ice, idx);
-else 
+else
 old = stac9460_2_get(ice, idx - 6);
-new = (~ucontrol-&gt;value.integer.value[0]&lt;&lt; 7 &amp; 0x80) |
+new = (~ucontrol-&gt;value.integer.value[0] &lt;&lt; 7 &amp; 0x80) |
 (old &amp; ~0x80);
 change = (new != old);
 if (change) {
 if (id &lt; 6)
-       stac9460_put(ice, idx, new);
+stac9460_put(ice, idx, new);
 else
-       stac9460_2_put(ice, idx - 6, new);
+stac9460_2_put(ice, idx - 6, new);
 }
 }
 return change;
&lt; at &gt;&lt; at &gt; -136,7 +136,7 &lt; at &gt;&lt; at &gt; static int stac9460_dac_mute_put(struct snd_kcontrol *kcontrol,
  * DAC volume attenuation mixer control
  */
 static int stac9460_dac_vol_info(struct snd_kcontrol *kcontrol,
-       struct snd_ctl_elem_info *uinfo)
+struct snd_ctl_elem_info *uinfo)
 {
 uinfo-&gt;type = SNDRV_CTL_ELEM_TYPE_INTEGER;
 uinfo-&gt;count = 1;
&lt; at &gt;&lt; at &gt; -146,7 +146,7 &lt; at &gt;&lt; at &gt; static int stac9460_dac_vol_info(struct snd_kcontrol *kcontrol,
 }
 
 static int stac9460_dac_vol_get(struct snd_kcontrol *kcontrol,
-       struct snd_ctl_elem_value *ucontrol)
+struct snd_ctl_elem_value *ucontrol)
 {
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
 int idx, id;
&lt; at &gt;&lt; at &gt; -161,14 +161,14 &lt; at &gt;&lt; at &gt; static int stac9460_dac_vol_get(struct snd_kcontrol *kcontrol,
 }
 if (id &lt; 6)
 vol = stac9460_get(ice, idx) &amp; 0x7f;
-else 
+else
 vol = stac9460_2_get(ice, idx - 6) &amp; 0x7f;
 ucontrol-&gt;value.integer.value[0] = 0x7f - vol;
 return 0;
 }
 
 static int stac9460_dac_vol_put(struct snd_kcontrol *kcontrol,
-       struct snd_ctl_elem_value *ucontrol)
+struct snd_ctl_elem_value *ucontrol)
 {
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
 int idx, id;
&lt; at &gt;&lt; at &gt; -182,8 +182,8 &lt; at &gt;&lt; at &gt; static int stac9460_dac_vol_put(struct snd_kcontrol *kcontrol,
 ovol = 0x7f - (tmp &amp; 0x7f);
 change = (ovol != nvol);
 if (change) {
- stac9460_put(ice, idx, (0x7f - nvol) | (tmp &amp; 0x80));
- stac9460_2_put(ice, idx, (0x7f - nvol) | (tmp &amp; 0x80));
+stac9460_put(ice, idx, (0x7f - nvol) | (tmp &amp; 0x80));
+stac9460_2_put(ice, idx, (0x7f - nvol) | (tmp &amp; 0x80));
 }
 } else {
 id = snd_ctl_get_ioffidx(kcontrol, &amp;ucontrol-&gt;id);
&lt; at &gt;&lt; at &gt; -191,17 +191,17 &lt; at &gt;&lt; at &gt; static int stac9460_dac_vol_put(struct snd_kcontrol *kcontrol,
 nvol = ucontrol-&gt;value.integer.value[0] &amp; 0x7f;
 if (id &lt; 6)
 tmp = stac9460_get(ice, idx);
-else 
+else
 tmp = stac9460_2_get(ice, idx - 6);
 ovol = 0x7f - (tmp &amp; 0x7f);
 change = (ovol != nvol);
 if (change) {
 if (id &lt; 6)
 stac9460_put(ice, idx, (0x7f - nvol) |
-       (tmp &amp; 0x80));
-else 
+(tmp &amp; 0x80));
+else
 stac9460_2_put(ice, idx-6, (0x7f - nvol) |
-       (tmp &amp; 0x80));
+(tmp &amp; 0x80));
 }
 }
 return change;
&lt; at &gt;&lt; at &gt; -213,12 +213,12 &lt; at &gt;&lt; at &gt; static int stac9460_dac_vol_put(struct snd_kcontrol *kcontrol,
 #define stac9460_adc_mute_infosnd_ctl_boolean_stereo_info
 
 static int stac9460_adc_mute_get(struct snd_kcontrol *kcontrol,
-       struct snd_ctl_elem_value *ucontrol)
+struct snd_ctl_elem_value *ucontrol)
 {
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
 unsigned char val;
 int i, id;
-
+
 id = snd_ctl_get_ioffidx(kcontrol, &amp;ucontrol-&gt;id);
 if (id == 0) {
 for (i = 0; i &lt; 2; ++i) {
&lt; at &gt;&lt; at &gt; -235,20 +235,20 &lt; at &gt;&lt; at &gt; static int stac9460_adc_mute_get(struct snd_kcontrol *kcontrol,
 }
 
 static int stac9460_adc_mute_put(struct snd_kcontrol *kcontrol,
-       struct snd_ctl_elem_value *ucontrol)
+struct snd_ctl_elem_value *ucontrol)
 {
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
 unsigned char new, old;
 int i, reg, id;
 int change;
-
+
 id = snd_ctl_get_ioffidx(kcontrol, &amp;ucontrol-&gt;id);
 if (id == 0) {
 for (i = 0; i &lt; 2; ++i) {
 reg = STAC946X_MIC_L_VOLUME + i;
 old = stac9460_get(ice, reg);
 new = (~ucontrol-&gt;value.integer.value[i]&lt;&lt;7&amp;0x80) |
-       (old&amp;~0x80);
+(old&amp;~0x80);
 change = (new != old);
 if (change)
 stac9460_put(ice, reg, new);
&lt; at &gt;&lt; at &gt; -258,7 +258,7 &lt; at &gt;&lt; at &gt; static int stac9460_adc_mute_put(struct snd_kcontrol *kcontrol,
 reg = STAC946X_MIC_L_VOLUME + i;
 old = stac9460_2_get(ice, reg);
 new = (~ucontrol-&gt;value.integer.value[i]&lt;&lt;7&amp;0x80) |
-       (old&amp;~0x80);
+(old&amp;~0x80);
 change = (new != old);
 if (change)
 stac9460_2_put(ice, reg, new);
&lt; at &gt;&lt; at &gt; -271,7 +271,7 &lt; at &gt;&lt; at &gt; static int stac9460_adc_mute_put(struct snd_kcontrol *kcontrol,
  *ADC gain mixer control
  */
 static int stac9460_adc_vol_info(struct snd_kcontrol *kcontrol,
-       struct snd_ctl_elem_info *uinfo)
+struct snd_ctl_elem_info *uinfo)
 {
 uinfo-&gt;type = SNDRV_CTL_ELEM_TYPE_INTEGER;
 uinfo-&gt;count = 2;
&lt; at &gt;&lt; at &gt; -281,12 +281,12 &lt; at &gt;&lt; at &gt; static int stac9460_adc_vol_info(struct snd_kcontrol *kcontrol,
 }
 
 static int stac9460_adc_vol_get(struct snd_kcontrol *kcontrol,
-       struct snd_ctl_elem_value *ucontrol)
+struct snd_ctl_elem_value *ucontrol)
 {
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
 int i, reg, id;
 unsigned char vol;
-
+
 id = snd_ctl_get_ioffidx(kcontrol, &amp;ucontrol-&gt;id);
 if (id == 0) {
 for (i = 0; i &lt; 2; ++i) {
&lt; at &gt;&lt; at &gt; -305,13 +305,13 &lt; at &gt;&lt; at &gt; static int stac9460_adc_vol_get(struct snd_kcontrol *kcontrol,
 }
 
 static int stac9460_adc_vol_put(struct snd_kcontrol *kcontrol,
-       struct snd_ctl_elem_value *ucontrol)
+struct snd_ctl_elem_value *ucontrol)
 {
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
 int i, reg, id;
 unsigned char ovol, nvol;
 int change;
-
+
 id = snd_ctl_get_ioffidx(kcontrol, &amp;ucontrol-&gt;id);
 if (id == 0) {
 for (i = 0; i &lt; 2; ++i) {
&lt; at &gt;&lt; at &gt; -321,7 +321,7 &lt; at &gt;&lt; at &gt; static int stac9460_adc_vol_put(struct snd_kcontrol *kcontrol,
 change = ((ovol &amp; 0x0f) != nvol);
 if (change)
 stac9460_put(ice, reg, (0x0f - nvol) |
-       (ovol &amp; ~0x0f));
+(ovol &amp; ~0x0f));
 }
 } else {
 for (i = 0; i &lt; 2; ++i) {
&lt; at &gt;&lt; at &gt; -331,7 +331,7 &lt; at &gt;&lt; at &gt; static int stac9460_adc_vol_put(struct snd_kcontrol *kcontrol,
 change = ((ovol &amp; 0x0f) != nvol);
 if (change)
 stac9460_2_put(ice, reg, (0x0f - nvol) |
-       (ovol &amp; ~0x0f));
+(ovol &amp; ~0x0f));
 }
 }
 return change;
&lt; at &gt;&lt; at &gt; -344,23 +344,23 &lt; at &gt;&lt; at &gt; static int stac9460_adc_vol_put(struct snd_kcontrol *kcontrol,
 #define stac9460_mic_sw_infosnd_ctl_boolean_mono_info
 
 static int stac9460_mic_sw_get(struct snd_kcontrol *kcontrol,
-       struct snd_ctl_elem_value *ucontrol)
+struct snd_ctl_elem_value *ucontrol)
 {
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
 unsigned char val;
 int id;
-
+
 id = snd_ctl_get_ioffidx(kcontrol, &amp;ucontrol-&gt;id);
 if (id == 0)
-       val = stac9460_get(ice, STAC946X_GENERAL_PURPOSE);
+val = stac9460_get(ice, STAC946X_GENERAL_PURPOSE);
 else
-       val = stac9460_2_get(ice, STAC946X_GENERAL_PURPOSE);
+val = stac9460_2_get(ice, STAC946X_GENERAL_PURPOSE);
 ucontrol-&gt;value.integer.value[0] = ~val&gt;&gt;7 &amp; 0x1;
 return 0;
 }
 
 static int stac9460_mic_sw_put(struct snd_kcontrol *kcontrol,
-       struct snd_ctl_elem_value *ucontrol)
+struct snd_ctl_elem_value *ucontrol)
 {
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
 unsigned char new, old;
&lt; at &gt;&lt; at &gt; -368,16 +368,16 &lt; at &gt;&lt; at &gt; static int stac9460_mic_sw_put(struct snd_kcontrol *kcontrol,
 
 id = snd_ctl_get_ioffidx(kcontrol, &amp;ucontrol-&gt;id);
 if (id == 0)
-       old = stac9460_get(ice, STAC946X_GENERAL_PURPOSE);
+old = stac9460_get(ice, STAC946X_GENERAL_PURPOSE);
 else
-       old = stac9460_2_get(ice, STAC946X_GENERAL_PURPOSE);
-new = (~ucontrol-&gt;value.integer.value[0]&lt;&lt; 7 &amp; 0x80) | (old &amp; ~0x80);
+old = stac9460_2_get(ice, STAC946X_GENERAL_PURPOSE);
+new = (~ucontrol-&gt;value.integer.value[0] &lt;&lt; 7 &amp; 0x80) | (old &amp; ~0x80);
 change = (new != old);
 if (change) {
 if (id == 0)
-       stac9460_put(ice, STAC946X_GENERAL_PURPOSE, new);
+stac9460_put(ice, STAC946X_GENERAL_PURPOSE, new);
 else
-       stac9460_2_put(ice, STAC946X_GENERAL_PURPOSE, new);
+stac9460_2_put(ice, STAC946X_GENERAL_PURPOSE, new);
 }
 return change;
 }
&lt; at &gt;&lt; at &gt; -443,7 +443,7 &lt; at &gt;&lt; at &gt; static struct snd_kcontrol_new stac9640_controls[] __devinitdata = {
 .get = stac9460_adc_vol_get,
 .put = stac9460_adc_vol_put,
 
-}
+}
 };
 
 
&lt; at &gt;&lt; at &gt; -470,7 +470,7 &lt; at &gt;&lt; at &gt; static int __devinit wtm_init(struct snd_ice1712 *ice)
 (unsigned short)-1
 };
 unsigned short *p;
-
+
 /*WTM 192M*/
 ice-&gt;num_total_dacs = 8;
 ice-&gt;num_total_adcs = 4;
diff --git a/sound/pci/ice1712/wtm.h b/sound/pci/ice1712/wtm.h
index 03a394e..423c1a2 100644
--- a/sound/pci/ice1712/wtm.h
+++ b/sound/pci/ice1712/wtm.h
&lt; at &gt;&lt; at &gt; -10,8 +10,8 &lt; at &gt;&lt; at &gt;
  */
 
 #defineAK4114_ADDR0x20/*S/PDIF receiver*/
-#define STAC9460_I2C_ADDR0x54/* ADC*2 | DAC*6 */
-#define STAC9460_2_I2C_ADDR0x56/* ADC|DAC *2 */
+#define STAC9460_I2C_ADDR0x54/* ADC*2 | DAC*6 */
+#define STAC9460_2_I2C_ADDR0x56/* ADC|DAC *2 */
 
 
 extern struct snd_ice1712_card_info snd_vt1724_wtm_cards[];
</description>
    <dc:creator>Alexander Beregalov</dc:creator>
    <dc:date>2008-09-06T21:54:27</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.linux.alsa.devel/55987">
    <title>[PATCH] ice1712/aureon.c: fix coding style</title>
    <link>http://comments.gmane.org/gmane.linux.alsa.devel/55987</link>
    <description>before:
total: 304 errors, 137 warnings, 2259 lines checked

after:
total: 0 errors, 121 warnings, 2284 lines checked

Compile tested, size is different because of include was changed,
but without that change md5sum is different because of cmp cx,dx/cmp
dx,cx swap and __LINE__ was changed in printk function. 

Signed-off-by: Alexander Beregalov &lt;a.beregalov&lt; at &gt;gmail.com&gt;
---

 sound/pci/ice1712/aureon.c |  677 +++++++++++++++++++++++---------------------
 1 files changed, 351 insertions(+), 326 deletions(-)

diff --git a/sound/pci/ice1712/aureon.c b/sound/pci/ice1712/aureon.c
index a137fc1..110d16e 100644
--- a/sound/pci/ice1712/aureon.c
+++ b/sound/pci/ice1712/aureon.c
&lt; at &gt;&lt; at &gt; -44,10 +44,9 &lt; at &gt;&lt; at &gt;
  *       not working: prety much everything else, at least i could verify that
  *                    we have no digital output, no capture, pretty bad clicks and poops
  *                    on mixer switch and other coll stuff.
- *
- */      
+ */
 
-#include &lt;asm/io.h&gt;
+#include &lt;linux/io.h&gt;
 #include &lt;linux/delay.h&gt;
 #include &lt;linux/interrupt.h&gt;
 #include &lt;linux/init.h&gt;
&lt; at &gt;&lt; at &gt; -131,7 +130,7 &lt; at &gt;&lt; at &gt; static void aureon_pca9554_write(struct snd_ice1712 *ice, unsigned char reg,
 snd_ice1712_gpio_write(ice, tmp);
 udelay(50);
 
-/* 
+/*
  * send i2c stop condition and start condition
  * to obtain sane state
  */
&lt; at &gt;&lt; at &gt; -152,10 +151,16 &lt; at &gt;&lt; at &gt; static void aureon_pca9554_write(struct snd_ice1712 *ice, unsigned char reg,
  * skipping ack cycles inbetween
  */
 for (j = 0; j &lt; 3; j++) {
-switch(j) {
-case 0: val = dev; break;
-case 1: val = reg; break;
-case 2: val = data; break;
+switch (j) {
+case 0:
+val = dev;
+break;
+case 1:
+val = reg;
+break;
+case 2:
+val = data;
+break;
 }
 for (i = 7; i &gt;= 0; i--) {
 tmp &amp;= ~AUREON_SPI_CLK;
&lt; at &gt;&lt; at &gt; -171,7 +176,7 &lt; at &gt;&lt; at &gt; static void aureon_pca9554_write(struct snd_ice1712 *ice, unsigned char reg,
 snd_ice1712_gpio_write(ice, tmp);
 udelay(40);
 }
-                tmp &amp;= ~AUREON_SPI_CLK;
+tmp &amp;= ~AUREON_SPI_CLK;
 snd_ice1712_gpio_write(ice, tmp);
 udelay(40);
 tmp |= AUREON_SPI_CLK;
&lt; at &gt;&lt; at &gt; -203,7 +208,7 &lt; at &gt;&lt; at &gt; static int aureon_universe_inmux_info(struct snd_kcontrol *kcontrol,
 uinfo-&gt;type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
 uinfo-&gt;count = 1;
 uinfo-&gt;value.enumerated.items = 3;
-if(uinfo-&gt;value.enumerated.item &gt;= uinfo-&gt;value.enumerated.items)
+if (uinfo-&gt;value.enumerated.item &gt;= uinfo-&gt;value.enumerated.items)
 uinfo-&gt;value.enumerated.item = uinfo-&gt;value.enumerated.items - 1;
 strcpy(uinfo-&gt;value.enumerated.name, texts[uinfo-&gt;value.enumerated.item]);
 return 0;
&lt; at &gt;&lt; at &gt; -231,12 +236,12 &lt; at &gt;&lt; at &gt; static int aureon_universe_inmux_put(struct snd_kcontrol *kcontrol,
 return -EINVAL;
 snd_ice1712_save_gpio_status(ice);
 oval = spec-&gt;pca9554_out;
-if ((change = (oval != nval))) {
+change = (oval != nval);
+if (change) {
 aureon_pca9554_write(ice, PCA9554_OUT, nval);
 spec-&gt;pca9554_out = nval;
 }
 snd_ice1712_restore_gpio_status(ice);
-
 return change;
 }
 
&lt; at &gt;&lt; at &gt; -256,7 +261,7 &lt; at &gt;&lt; at &gt; static void aureon_ac97_write(struct snd_ice1712 *ice, unsigned short reg,
 udelay(10);
 tmp &amp;= ~AUREON_AC97_ADDR;
 snd_ice1712_gpio_write(ice, tmp);
-udelay(10);
+udelay(10);
 
 /* Send low-order byte to XILINX chip */
 tmp &amp;= ~AUREON_AC97_DATA_MASK;
&lt; at &gt;&lt; at &gt; -269,7 +274,7 &lt; at &gt;&lt; at &gt; static void aureon_ac97_write(struct snd_ice1712 *ice, unsigned short reg,
 tmp &amp;= ~AUREON_AC97_DATA_LOW;
 snd_ice1712_gpio_write(ice, tmp);
 udelay(10);
-
+
 /* Send high-order byte to XILINX chip */
 tmp &amp;= ~AUREON_AC97_DATA_MASK;
 tmp |= (val &gt;&gt; 8) &amp; AUREON_AC97_DATA_MASK;
&lt; at &gt;&lt; at &gt; -282,7 +287,7 &lt; at &gt;&lt; at &gt; static void aureon_ac97_write(struct snd_ice1712 *ice, unsigned short reg,
 tmp &amp;= ~AUREON_AC97_DATA_HIGH;
 snd_ice1712_gpio_write(ice, tmp);
 udelay(10);
-
+
 /* Instruct XILINX chip to parse the data to the STAC9744 chip */
 tmp |= AUREON_AC97_COMMIT;
 snd_ice1712_gpio_write(ice, tmp);
&lt; at &gt;&lt; at &gt; -290,7 +295,7 &lt; at &gt;&lt; at &gt; static void aureon_ac97_write(struct snd_ice1712 *ice, unsigned short reg,
 tmp &amp;= ~AUREON_AC97_COMMIT;
 snd_ice1712_gpio_write(ice, tmp);
 udelay(10);
-
+
 /* Store the data in out private buffer */
 spec-&gt;stac9744[(reg &amp; 0x7F) &gt;&gt; 1] = val;
 }
&lt; at &gt;&lt; at &gt; -304,7 +309,7 &lt; at &gt;&lt; at &gt; static unsigned short aureon_ac97_read(struct snd_ice1712 *ice, unsigned short r
 /*
  * Initialize STAC9744 chip
  */
-static int aureon_ac97_init (struct snd_ice1712 *ice)
+static int aureon_ac97_init(struct snd_ice1712 *ice)
 {
 struct aureon_spec *spec = ice-&gt;spec;
 int i;
&lt; at &gt;&lt; at &gt; -335,20 +340,21 &lt; at &gt;&lt; at &gt; static int aureon_ac97_init (struct snd_ice1712 *ice)
 tmp = (snd_ice1712_gpio_read(ice) | AUREON_AC97_RESET) &amp; ~AUREON_AC97_DATA_MASK;
 snd_ice1712_gpio_write(ice, tmp);
 udelay(3);
-
+
 tmp &amp;= ~AUREON_AC97_RESET;
 snd_ice1712_gpio_write(ice, tmp);
 udelay(3);
-
+
 tmp |= AUREON_AC97_RESET;
 snd_ice1712_gpio_write(ice, tmp);
 udelay(3);
-
+
 memset(&amp;spec-&gt;stac9744, 0, sizeof(spec-&gt;stac9744));
-for (i=0; ac97_defaults[i] != (unsigned short)-1; i+=2)
+for (i = 0; ac97_defaults[i] != (unsigned short)-1; i += 2)
 spec-&gt;stac9744[(ac97_defaults[i]) &gt;&gt; 1] = ac97_defaults[i+1];
-
-aureon_ac97_write(ice, AC97_MASTER, 0x0000); // Unmute AC'97 master volume permanently - muting is done by WM8770
+
+/* Unmute AC'97 master volume permanently - muting is done by WM8770 */
+aureon_ac97_write(ice, AC97_MASTER, 0x0000);
 
 return 0;
 }
&lt; at &gt;&lt; at &gt; -388,7 +394,7 &lt; at &gt;&lt; at &gt; static int aureon_ac97_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_ele
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
 unsigned short ovol, nvol;
 int change;
-
+
 snd_ice1712_save_gpio_status(ice);
 
 ovol = aureon_ac97_read(ice, kcontrol-&gt;private_value &amp; 0x7F);
&lt; at &gt;&lt; at &gt; -396,13 +402,14 &lt; at &gt;&lt; at &gt; static int aureon_ac97_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_ele
 if (kcontrol-&gt;private_value &amp; AUREON_AC97_STEREO)
 nvol |= ((0x1F - ucontrol-&gt;value.integer.value[1]) &lt;&lt; 8) &amp; 0x1F00;
 nvol |= ovol &amp; ~0x1F1F;
-
-if ((change = (ovol != nvol)))
+
+change = (ovol != nvol);
+if (change)
 aureon_ac97_write(ice, kcontrol-&gt;private_value &amp; 0x7F, nvol);
 
 snd_ice1712_restore_gpio_status(ice);
 
-return change;
+return change;
 }
 
 /*
&lt; at &gt;&lt; at &gt; -416,7 +423,8 &lt; at &gt;&lt; at &gt; static int aureon_ac97_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_el
 
 mutex_lock(&amp;ice-&gt;gpio_mutex);
 
-ucontrol-&gt;value.integer.value[0] = aureon_ac97_read(ice, kcontrol-&gt;private_value &amp; 0x7F) &amp; 0x8000 ? 0 : 1;
+ucontrol-&gt;value.integer.value[0] = aureon_ac97_read(ice,
+kcontrol-&gt;private_value &amp; 0x7F) &amp; 0x8000 ? 0 : 1;
 
 mutex_unlock(&amp;ice-&gt;gpio_mutex);
 return 0;
&lt; at &gt;&lt; at &gt; -429,13 +437,14 &lt; at &gt;&lt; at &gt; static int aureon_ac97_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_el
 int change;
 
 snd_ice1712_save_gpio_status(ice);
-
+
 ovol = aureon_ac97_read(ice, kcontrol-&gt;private_value &amp; 0x7F);
-nvol = (ucontrol-&gt;value.integer.value[0] ? 0x0000 : 0x8000) | (ovol &amp; ~0x8000);
-
-if ((change = (ovol != nvol)))
+nvol = (ucontrol-&gt;value.integer.value[0] ? 0x0000 : 0x8000) | (ovol &amp; ~0x8000);
+
+change = (ovol != nvol);
+if (change)
 aureon_ac97_write(ice, kcontrol-&gt;private_value &amp; 0x7F, nvol);
-
+
 snd_ice1712_restore_gpio_status(ice);
 
 return change;
&lt; at &gt;&lt; at &gt; -465,13 +474,14 &lt; at &gt;&lt; at &gt; static int aureon_ac97_micboost_put(struct snd_kcontrol *kcontrol, struct snd_ct
 int change;
 
 snd_ice1712_save_gpio_status(ice);
-
+
 ovol = aureon_ac97_read(ice, AC97_MIC);
 nvol = (ucontrol-&gt;value.integer.value[0] ? 0x0000 : 0x0020) | (ovol &amp; ~0x0020);
-
-if ((change = (ovol != nvol)))
+
+change = (ovol != nvol);
+if (change)
 aureon_ac97_write(ice, AC97_MIC, nvol);
-
+
 snd_ice1712_restore_gpio_status(ice);
 
 return change;
&lt; at &gt;&lt; at &gt; -493,16 +503,15 &lt; at &gt;&lt; at &gt; static void aureon_spi_write(struct snd_ice1712 *ice, unsigned int cs, unsigned
 snd_ice1712_gpio_set_mask(ice, ~(PRODIGY_SPI_MOSI|PRODIGY_SPI_CLK|PRODIGY_WM_CS));
 mosi = PRODIGY_SPI_MOSI;
 clk = PRODIGY_SPI_CLK;
-}
-else {
+} else {
 snd_ice1712_gpio_set_mask(ice, ~(AUREON_WM_RW|AUREON_SPI_MOSI|AUREON_SPI_CLK|
  AUREON_WM_CS|AUREON_CS8415_CS));
 mosi = AUREON_SPI_MOSI;
 clk = AUREON_SPI_CLK;
-
+
 tmp |= AUREON_WM_RW;
 }
-
+
 tmp &amp;= ~cs;
 snd_ice1712_gpio_write(ice, tmp);
 udelay(1);
&lt; at &gt;&lt; at &gt; -534,7 +543,9 &lt; at &gt;&lt; at &gt; static void aureon_spi_write(struct snd_ice1712 *ice, unsigned int cs, unsigned
 /*
  * Read data in SPI mode
  */
-static void aureon_spi_read(struct snd_ice1712 *ice, unsigned int cs, unsigned int data, int bits, unsigned char *buffer, int size) {
+static void aureon_spi_read(struct snd_ice1712 *ice, unsigned int cs,
+unsigned int data, int bits, unsigned char *buffer, int size)
+{
 int i, j;
 unsigned int tmp;
 
&lt; at &gt;&lt; at &gt; -544,7 +555,7 &lt; at &gt;&lt; at &gt; static void aureon_spi_read(struct snd_ice1712 *ice, unsigned int cs, unsigned i
 snd_ice1712_gpio_write(ice, tmp);
 udelay(1);
 
-for (i=bits-1; i&gt;=0; i--) {
+for (i = bits-1; i &gt;= 0; i--) {
 if (data &amp; (1 &lt;&lt; i))
 tmp |= AUREON_SPI_MOSI;
 else
&lt; at &gt;&lt; at &gt; -561,9 +572,9 &lt; at &gt;&lt; at &gt; static void aureon_spi_read(struct snd_ice1712 *ice, unsigned int cs, unsigned i
 udelay(1);
 }
 
-for (j=0; j&lt;size; j++) {
+for (j = 0; j &lt; size; j++) {
 unsigned char outdata = 0;
-for (i=7; i&gt;=0; i--) {
+for (i = 7; i &gt;= 0; i--) {
 tmp = snd_ice1712_gpio_read(ice);
 outdata &lt;&lt;= 1;
 outdata |= (tmp &amp; AUREON_SPI_MISO) ? 1 : 0;
&lt; at &gt;&lt; at &gt; -584,19 +595,24 &lt; at &gt;&lt; at &gt; static void aureon_spi_read(struct snd_ice1712 *ice, unsigned int cs, unsigned i
 snd_ice1712_gpio_write(ice, tmp);
 }
 
-static unsigned char aureon_cs8415_get(struct snd_ice1712 *ice, int reg) {
+static unsigned char aureon_cs8415_get(struct snd_ice1712 *ice, int reg)
+{
 unsigned char val;
 aureon_spi_write(ice, AUREON_CS8415_CS, 0x2000 | reg, 16);
 aureon_spi_read(ice, AUREON_CS8415_CS, 0x21, 8, &amp;val, 1);
 return val;
 }
 
-static void aureon_cs8415_read(struct snd_ice1712 *ice, int reg, unsigned char *buffer, int size) {
+static void aureon_cs8415_read(struct snd_ice1712 *ice, int reg,
+unsigned char *buffer, int size)
+{
 aureon_spi_write(ice, AUREON_CS8415_CS, 0x2000 | reg, 16);
 aureon_spi_read(ice, AUREON_CS8415_CS, 0x21, 8, buffer, size);
 }
 
-static void aureon_cs8415_put(struct snd_ice1712 *ice, int reg, unsigned char val) {
+static void aureon_cs8415_put(struct snd_ice1712 *ice, int reg,
+unsigned char val)
+{
 aureon_spi_write(ice, AUREON_CS8415_CS, 0x200000 | (reg &lt;&lt; 8) | val, 24);
 }
 
&lt; at &gt;&lt; at &gt; -654,18 +670,20 &lt; at &gt;&lt; at &gt; static int aureon_ac97_mmute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_e
 return 0;
 }
 
-static int aureon_ac97_mmute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {
+static int aureon_ac97_mmute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
+{
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
 unsigned short ovol, nvol;
 int change;
-
+
 snd_ice1712_save_gpio_status(ice);
-
+
 ovol = wm_get(ice, WM_OUT_MUX1);
 nvol = (ovol &amp; ~0x02) | (ucontrol-&gt;value.integer.value[0] ? 0x02 : 0x00);
-if ((change = (ovol != nvol)))
+change = (ovol != nvol);
+if (change)
 wm_put(ice, WM_OUT_MUX1, nvol);
-
+
 snd_ice1712_restore_gpio_status(ice);
 
 return change;
&lt; at &gt;&lt; at &gt; -702,12 +720,12 &lt; at &gt;&lt; at &gt; static const unsigned char wm_vol[256] = {
 static void wm_set_vol(struct snd_ice1712 *ice, unsigned int index, unsigned short vol, unsigned short master)
 {
 unsigned char nvol;
-
+
 if ((master &amp; WM_VOL_MUTE) || (vol &amp; WM_VOL_MUTE))
 nvol = 0;
 else
 nvol = 127 - wm_vol[(((vol &amp; ~WM_VOL_MUTE) * (master &amp; ~WM_VOL_MUTE)) / 127) &amp; WM_VOL_MAX];
-
+
 wm_put(ice, index, nvol);
 wm_put_nocache(ice, index, 0x180 | nvol);
 }
&lt; at &gt;&lt; at &gt; -736,7 +754,8 &lt; at &gt;&lt; at &gt; static int wm_pcm_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_va
 snd_ice1712_save_gpio_status(ice);
 oval = wm_get(ice, WM_MUTE);
 nval = (oval &amp; ~0x10) | (ucontrol-&gt;value.integer.value[0] ? 0 : 0x10);
-if ((change = (nval != oval)))
+change = (oval != nval);
+if (change)
 wm_put(ice, WM_MUTE, nval);
 snd_ice1712_restore_gpio_status(ice);
 
&lt; at &gt;&lt; at &gt; -760,7 +779,7 &lt; at &gt;&lt; at &gt; static int wm_master_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
 struct aureon_spec *spec = ice-&gt;spec;
 int i;
-for (i=0; i&lt;2; i++)
+for (i = 0; i &lt; 2; i++)
 ucontrol-&gt;value.integer.value[i] =
 spec-&gt;master[i] &amp; ~WM_VOL_MUTE;
 return 0;
&lt; at &gt;&lt; at &gt; -849,7 +868,8 &lt; at &gt;&lt; at &gt; static int wm_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *
 /*
  * WM8770 mute control
  */
-static int wm_mute_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) {
+static int wm_mute_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
+{
 uinfo-&gt;type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
 uinfo-&gt;count = kcontrol-&gt;private_value &gt;&gt; 8;
 uinfo-&gt;value.integer.min = 0;
&lt; at &gt;&lt; at &gt; -862,7 +882,7 &lt; at &gt;&lt; at &gt; static int wm_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
 struct aureon_spec *spec = ice-&gt;spec;
 int voices, ofs, i;
-
+
 voices = kcontrol-&gt;private_value &gt;&gt; 8;
 ofs = kcontrol-&gt;private_value &amp; 0xFF;
 
&lt; at &gt;&lt; at &gt; -907,7 +927,7 &lt; at &gt;&lt; at &gt; static int wm_master_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem
 {
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
 struct aureon_spec *spec = ice-&gt;spec;
-
+
 ucontrol-&gt;value.integer.value[0] =
 (spec-&gt;master[0] &amp; WM_VOL_MUTE) ? 0 : 1;
 ucontrol-&gt;value.integer.value[1] =
&lt; at &gt;&lt; at &gt; -1083,21 +1103,21 &lt; at &gt;&lt; at &gt; static int wm_adc_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_val
 static int wm_adc_mux_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
 {
 static const char * const texts[] = {
-"CD",//AIN1
-"Aux",//AIN2
-"Line",//AIN3
-"Mic",//AIN4
-"AC97"//AIN5
+"CD",/* AIN1 */
+"Aux",/* AIN2 */
+"Line",/* AIN3 */
+"Mic",/* AIN4 */
+"AC97"/* AIN5 */
 };
 static const char * const universe_texts[] = {
-"Aux1",//AIN1
-"CD",//AIN2
-"Phono",//AIN3
-"Line",//AIN4
-"Aux2",//AIN5
-"Mic",//AIN6
-"Aux3",//AIN7
-"AC97"//AIN8
+"Aux1",/* AIN1 */
+"CD",/* AIN2 */
+"Phono",/* AIN3 */
+"Line",/* AIN4 */
+"Aux2",/* AIN5 */
+"Mic",/* AIN6 */
+"Aux3",/* AIN7 */
+"AC97"/* AIN8 */
 };
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
 
&lt; at &gt;&lt; at &gt; -1108,8 +1128,7 &lt; at &gt;&lt; at &gt; static int wm_adc_mux_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_in
 if (uinfo-&gt;value.enumerated.item &gt;= uinfo-&gt;value.enumerated.items)
 uinfo-&gt;value.enumerated.item = uinfo-&gt;value.enumerated.items - 1;
 strcpy(uinfo-&gt;value.enumerated.name, universe_texts[uinfo-&gt;value.enumerated.item]);
-}
-else {
+} else {
 uinfo-&gt;value.enumerated.items = 5;
 if (uinfo-&gt;value.enumerated.item &gt;= uinfo-&gt;value.enumerated.items)
 uinfo-&gt;value.enumerated.item = uinfo-&gt;value.enumerated.items - 1;
&lt; at &gt;&lt; at &gt; -1156,8 +1175,8 &lt; at &gt;&lt; at &gt; static int aureon_cs8415_mux_info(struct snd_kcontrol *kcontrol, struct snd_ctl_
 {
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
 static const char * const aureon_texts[] = {
-"CD",//RXP0
-"Optical"//RXP1
+"CD",/* RXP0 */
+"Optical"/* RXP1 */
 };
 static const char * const prodigy_texts[] = {
 "CD",
&lt; at &gt;&lt; at &gt; -1180,10 +1199,10 &lt; at &gt;&lt; at &gt; static int aureon_cs8415_mux_get(struct snd_kcontrol *kcontrol, struct snd_ctl_e
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
 struct aureon_spec *spec = ice-&gt;spec;
 
-//snd_ice1712_save_gpio_status(ice);
-//val = aureon_cs8415_get(ice, CS8415_CTRL2);
+/* snd_ice1712_save_gpio_status(ice); */
+/* val = aureon_cs8415_get(ice, CS8415_CTRL2); */
 ucontrol-&gt;value.enumerated.item[0] = spec-&gt;cs8415_mux;
-//snd_ice1712_restore_gpio_status(ice);
+/* snd_ice1712_restore_gpio_status(ice); */
 return 0;
 }
 
&lt; at &gt;&lt; at &gt; -1206,7 +1225,7 &lt; at &gt;&lt; at &gt; static int aureon_cs8415_mux_put(struct snd_kcontrol *kcontrol, struct snd_ctl_e
 return change;
 }
 
-static int aureon_cs8415_rate_info (struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
+static int aureon_cs8415_rate_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
 {
 uinfo-&gt;type = SNDRV_CTL_ELEM_TYPE_INTEGER;
 uinfo-&gt;count = 1;
&lt; at &gt;&lt; at &gt; -1215,7 +1234,7 &lt; at &gt;&lt; at &gt; static int aureon_cs8415_rate_info (struct snd_kcontrol *kcontrol, struct snd_ct
 return 0;
 }
 
-static int aureon_cs8415_rate_get (struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
+static int aureon_cs8415_rate_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
 {
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
 unsigned char ratio;
&lt; at &gt;&lt; at &gt; -1229,7 +1248,7 &lt; at &gt;&lt; at &gt; static int aureon_cs8415_rate_get (struct snd_kcontrol *kcontrol, struct snd_ctl
  */
 #define aureon_cs8415_mute_infosnd_ctl_boolean_mono_info
 
-static int aureon_cs8415_mute_get (struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
+static int aureon_cs8415_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
 {
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
 snd_ice1712_save_gpio_status(ice);
&lt; at &gt;&lt; at &gt; -1238,7 +1257,7 &lt; at &gt;&lt; at &gt; static int aureon_cs8415_mute_get (struct snd_kcontrol *kcontrol, struct snd_ctl
 return 0;
 }
 
-static int aureon_cs8415_mute_put (struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
+static int aureon_cs8415_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
 {
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
 unsigned char oval, nval;
&lt; at &gt;&lt; at &gt; -1249,7 +1268,8 &lt; at &gt;&lt; at &gt; static int aureon_cs8415_mute_put (struct snd_kcontrol *kcontrol, struct snd_ctl
 nval = oval &amp; ~0x20;
 else
 nval = oval | 0x20;
-if ((change = (oval != nval)))
+change = (oval != nval);
+if (change)
 aureon_cs8415_put(ice, CS8415_CTRL1, nval);
 snd_ice1712_restore_gpio_status(ice);
 return change;
&lt; at &gt;&lt; at &gt; -1258,15 +1278,17 &lt; at &gt;&lt; at &gt; static int aureon_cs8415_mute_put (struct snd_kcontrol *kcontrol, struct snd_ctl
 /*
  * CS8415A Q-Sub info
  */
-static int aureon_cs8415_qsub_info (struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) {
+static int aureon_cs8415_qsub_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
+{
 uinfo-&gt;type = SNDRV_CTL_ELEM_TYPE_BYTES;
 uinfo-&gt;count = 10;
 return 0;
 }
 
-static int aureon_cs8415_qsub_get (struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {
+static int aureon_cs8415_qsub_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
+{
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
-
+
 snd_ice1712_save_gpio_status(ice);
 aureon_cs8415_read(ice, CS8415_QSUB, ucontrol-&gt;value.bytes.data, 10);
 snd_ice1712_restore_gpio_status(ice);
&lt; at &gt;&lt; at &gt; -1274,18 +1296,21 &lt; at &gt;&lt; at &gt; static int aureon_cs8415_qsub_get (struct snd_kcontrol *kcontrol, struct snd_ctl
 return 0;
 }
 
-static int aureon_cs8415_spdif_info (struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) {
+static int aureon_cs8415_spdif_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
+{
 uinfo-&gt;type = SNDRV_CTL_ELEM_TYPE_IEC958;
 uinfo-&gt;count = 1;
 return 0;
 }
 
-static int aureon_cs8415_mask_get (struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {
+static int aureon_cs8415_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
+{
 memset(ucontrol-&gt;value.iec958.status, 0xFF, 24);
 return 0;
 }
 
-static int aureon_cs8415_spdif_get (struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {
+static int aureon_cs8415_spdif_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
+{
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
 
 snd_ice1712_save_gpio_status(ice);
&lt; at &gt;&lt; at &gt; -1311,9 +1336,9 &lt; at &gt;&lt; at &gt; static int aureon_set_headphone_amp(struct snd_ice1712 *ice, int enable)
 else
 if (ice-&gt;eeprom.subvendor != VT1724_SUBDEVICE_PRODIGY71LT &amp;&amp;
     ice-&gt;eeprom.subvendor != VT1724_SUBDEVICE_PRODIGY71XT)
-tmp &amp;= ~ AUREON_HP_SEL;
+tmp &amp;= ~AUREON_HP_SEL;
 else
-tmp &amp;= ~ PRODIGY_HP_SEL;
+tmp &amp;= ~PRODIGY_HP_SEL;
 if (tmp != tmp2) {
 snd_ice1712_gpio_write(ice, tmp);
 return 1;
&lt; at &gt;&lt; at &gt; -1325,7 +1350,7 &lt; at &gt;&lt; at &gt; static int aureon_get_headphone_amp(struct snd_ice1712 *ice)
 {
 unsigned int tmp = snd_ice1712_gpio_read(ice);
 
-return ( tmp &amp; AUREON_HP_SEL )!= 0;
+return (tmp &amp; AUREON_HP_SEL) != 0;
 }
 
 #define aureon_hpamp_infosnd_ctl_boolean_mono_info
&lt; at &gt;&lt; at &gt; -1343,7 +1368,7 &lt; at &gt;&lt; at &gt; static int aureon_hpamp_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_v
 {
 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
 
-return aureon_set_headphone_amp(ice,ucontrol-&gt;value.integer.value[0]);
+return aureon_set_headphone_amp(ice, ucontrol-&gt;value.integer.value[0]);
 }
 
 /*
&lt; at &gt;&lt; at &gt; -1390,7 +1415,7 &lt; at &gt;&lt; at &gt; static int aureon_oversampling_info(struct snd_kcontrol *k, struct snd_ctl_elem_
 uinfo-&gt;value.enumerated.item = uinfo-&gt;value.enumerated.items - 1;
 strcpy(uinfo-&gt;value.enumerated.name, texts[uinfo-&gt;value.enumerated.item]);
 
-        return 0;
+return 0;
 }
 
 static int aureon_oversampling_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
&lt; at &gt;&lt; at &gt; -1434,7 +1459,7 &lt; at &gt;&lt; at &gt; static struct snd_kcontrol_new aureon_dac_controls[] __devinitdata = {
 {
 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
 .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE |
-   SNDRV_CTL_ELEM_ACCESS_TLV_READ),
+SNDRV_CTL_ELEM_ACCESS_TLV_READ),
 .name = "Master Playback Volume",
 .info = wm_master_vol_info,
 .get = wm_master_vol_get,
&lt; at &gt;&lt; at &gt; -1452,7 +1477,7 &lt; at &gt;&lt; at &gt; static struct snd_kcontrol_new aureon_dac_controls[] __devinitdata = {
 {
 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
 .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE |
-   SNDRV_CTL_ELEM_ACCESS_TLV_READ),
+SNDRV_CTL_ELEM_ACCESS_TLV_READ),
 .name = "Front Playback Volume",
 .info = wm_vol_info,
 .get = wm_vol_get,
&lt; at &