aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2007-03-12 07:36:16 -0400
committerJaroslav Kysela <perex@suse.cz>2007-05-11 10:55:48 -0400
commit2549413ea6c17c94e42ab14611e487d96c787578 (patch)
treec0f2732cad2844836870be8ef4ef696fbdc692b6 /sound
parente9024ccc2d54a71dfac583ede6082e265264d871 (diff)
[ALSA] hda-codec - Code clean up of patch_sigmatel.c
- Remove superfluous array member in stac9205_dmic_nids[] - Use ARRAY_SIZE() instead of hard-coded numbers Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/patch_sigmatel.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
index fef56ef79d73..7a8241328650 100644
--- a/sound/pci/hda/patch_sigmatel.c
+++ b/sound/pci/hda/patch_sigmatel.c
@@ -175,8 +175,8 @@ static hda_nid_t stac9205_mux_nids[2] = {
175 0x19, 0x1a 175 0x19, 0x1a
176}; 176};
177 177
178static hda_nid_t stac9205_dmic_nids[3] = { 178static hda_nid_t stac9205_dmic_nids[2] = {
179 0x17, 0x18, 0 179 0x17, 0x18,
180}; 180};
181 181
182static hda_nid_t stac9200_pin_nids[8] = { 182static hda_nid_t stac9200_pin_nids[8] = {
@@ -1931,7 +1931,7 @@ static int patch_stac922x(struct hda_codec *codec)
1931 1931
1932 spec->adc_nids = stac922x_adc_nids; 1932 spec->adc_nids = stac922x_adc_nids;
1933 spec->mux_nids = stac922x_mux_nids; 1933 spec->mux_nids = stac922x_mux_nids;
1934 spec->num_muxes = 2; 1934 spec->num_muxes = ARRAY_SIZE(stac922x_mux_nids);
1935 spec->num_dmics = 0; 1935 spec->num_dmics = 0;
1936 1936
1937 spec->init = stac922x_core_init; 1937 spec->init = stac922x_core_init;
@@ -1992,7 +1992,7 @@ static int patch_stac927x(struct hda_codec *codec)
1992 case STAC_D965_3ST: 1992 case STAC_D965_3ST:
1993 spec->adc_nids = stac927x_adc_nids; 1993 spec->adc_nids = stac927x_adc_nids;
1994 spec->mux_nids = stac927x_mux_nids; 1994 spec->mux_nids = stac927x_mux_nids;
1995 spec->num_muxes = 3; 1995 spec->num_muxes = ARRAY_SIZE(stac927x_mux_nids);
1996 spec->num_dmics = 0; 1996 spec->num_dmics = 0;
1997 spec->init = d965_core_init; 1997 spec->init = d965_core_init;
1998 spec->mixer = stac9227_mixer; 1998 spec->mixer = stac9227_mixer;
@@ -2000,7 +2000,7 @@ static int patch_stac927x(struct hda_codec *codec)
2000 case STAC_D965_5ST: 2000 case STAC_D965_5ST:
2001 spec->adc_nids = stac927x_adc_nids; 2001 spec->adc_nids = stac927x_adc_nids;
2002 spec->mux_nids = stac927x_mux_nids; 2002 spec->mux_nids = stac927x_mux_nids;
2003 spec->num_muxes = 3; 2003 spec->num_muxes = ARRAY_SIZE(stac927x_mux_nids);
2004 spec->num_dmics = 0; 2004 spec->num_dmics = 0;
2005 spec->init = d965_core_init; 2005 spec->init = d965_core_init;
2006 spec->mixer = stac9227_mixer; 2006 spec->mixer = stac9227_mixer;
@@ -2008,7 +2008,7 @@ static int patch_stac927x(struct hda_codec *codec)
2008 default: 2008 default:
2009 spec->adc_nids = stac927x_adc_nids; 2009 spec->adc_nids = stac927x_adc_nids;
2010 spec->mux_nids = stac927x_mux_nids; 2010 spec->mux_nids = stac927x_mux_nids;
2011 spec->num_muxes = 3; 2011 spec->num_muxes = ARRAY_SIZE(stac927x_mux_nids);
2012 spec->num_dmics = 0; 2012 spec->num_dmics = 0;
2013 spec->init = stac927x_core_init; 2013 spec->init = stac927x_core_init;
2014 spec->mixer = stac927x_mixer; 2014 spec->mixer = stac927x_mixer;
@@ -2067,9 +2067,9 @@ static int patch_stac9205(struct hda_codec *codec)
2067 2067
2068 spec->adc_nids = stac9205_adc_nids; 2068 spec->adc_nids = stac9205_adc_nids;
2069 spec->mux_nids = stac9205_mux_nids; 2069 spec->mux_nids = stac9205_mux_nids;
2070 spec->num_muxes = 2; 2070 spec->num_muxes = ARRAY_SIZE(stac9205_mux_nids);
2071 spec->dmic_nids = stac9205_dmic_nids; 2071 spec->dmic_nids = stac9205_dmic_nids;
2072 spec->num_dmics = 2; 2072 spec->num_dmics = ARRAY_SIZE(stac9205_dmic_nids);
2073 spec->dmux_nid = 0x1d; 2073 spec->dmux_nid = 0x1d;
2074 2074
2075 spec->init = stac9205_core_init; 2075 spec->init = stac9205_core_init;