aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2014-10-29 10:39:45 -0400
committerTakashi Iwai <tiwai@suse.de>2014-10-29 11:12:32 -0400
commitdf57de172a47f16548ee4bb69d1110e32686d6a9 (patch)
treed3bfcb00c6406ac97031774848376b2fc413cd4a
parentf994cb3a09a5f2018c286f854c10277132f4a9a5 (diff)
ALSA: hdspm: remove unused variable
removed the unused variables. These variables were only being assigned some value, but the values were never being used. it has been build tested after removing the variables. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/pci/rme9652/hdspm.c23
1 files changed, 3 insertions, 20 deletions
diff --git a/sound/pci/rme9652/hdspm.c b/sound/pci/rme9652/hdspm.c
index 7f7277bfb66a..e09348c156d8 100644
--- a/sound/pci/rme9652/hdspm.c
+++ b/sound/pci/rme9652/hdspm.c
@@ -1257,14 +1257,13 @@ static int hdspm_rate_multiplier(struct hdspm *hdspm, int rate)
1257/* check for external sample rate, returns the sample rate in Hz*/ 1257/* check for external sample rate, returns the sample rate in Hz*/
1258static int hdspm_external_sample_rate(struct hdspm *hdspm) 1258static int hdspm_external_sample_rate(struct hdspm *hdspm)
1259{ 1259{
1260 unsigned int status, status2, timecode; 1260 unsigned int status, status2;
1261 int syncref, rate = 0, rate_bits; 1261 int syncref, rate = 0, rate_bits;
1262 1262
1263 switch (hdspm->io_type) { 1263 switch (hdspm->io_type) {
1264 case AES32: 1264 case AES32:
1265 status2 = hdspm_read(hdspm, HDSPM_statusRegister2); 1265 status2 = hdspm_read(hdspm, HDSPM_statusRegister2);
1266 status = hdspm_read(hdspm, HDSPM_statusRegister); 1266 status = hdspm_read(hdspm, HDSPM_statusRegister);
1267 timecode = hdspm_read(hdspm, HDSPM_timecodeRegister);
1268 1267
1269 syncref = hdspm_autosync_ref(hdspm); 1268 syncref = hdspm_autosync_ref(hdspm);
1270 switch (syncref) { 1269 switch (syncref) {
@@ -4862,18 +4861,15 @@ snd_hdspm_proc_read_madi(struct snd_info_entry *entry,
4862 struct snd_info_buffer *buffer) 4861 struct snd_info_buffer *buffer)
4863{ 4862{
4864 struct hdspm *hdspm = entry->private_data; 4863 struct hdspm *hdspm = entry->private_data;
4865 unsigned int status, status2, control, freq; 4864 unsigned int status, status2;
4866 4865
4867 char *pref_sync_ref; 4866 char *pref_sync_ref;
4868 char *autosync_ref; 4867 char *autosync_ref;
4869 char *system_clock_mode; 4868 char *system_clock_mode;
4870 char *insel;
4871 int x, x2; 4869 int x, x2;
4872 4870
4873 status = hdspm_read(hdspm, HDSPM_statusRegister); 4871 status = hdspm_read(hdspm, HDSPM_statusRegister);
4874 status2 = hdspm_read(hdspm, HDSPM_statusRegister2); 4872 status2 = hdspm_read(hdspm, HDSPM_statusRegister2);
4875 control = hdspm->control_register;
4876 freq = hdspm_read(hdspm, HDSPM_timecodeRegister);
4877 4873
4878 snd_iprintf(buffer, "%s (Card #%d) Rev.%x Status2first3bits: %x\n", 4874 snd_iprintf(buffer, "%s (Card #%d) Rev.%x Status2first3bits: %x\n",
4879 hdspm->card_name, hdspm->card->number + 1, 4875 hdspm->card_name, hdspm->card->number + 1,
@@ -4936,17 +4932,6 @@ snd_hdspm_proc_read_madi(struct snd_info_entry *entry,
4936 snd_iprintf(buffer, "Line out: %s\n", 4932 snd_iprintf(buffer, "Line out: %s\n",
4937 (hdspm->control_register & HDSPM_LineOut) ? "on " : "off"); 4933 (hdspm->control_register & HDSPM_LineOut) ? "on " : "off");
4938 4934
4939 switch (hdspm->control_register & HDSPM_InputMask) {
4940 case HDSPM_InputOptical:
4941 insel = "Optical";
4942 break;
4943 case HDSPM_InputCoaxial:
4944 insel = "Coaxial";
4945 break;
4946 default:
4947 insel = "Unknown";
4948 }
4949
4950 snd_iprintf(buffer, 4935 snd_iprintf(buffer,
4951 "ClearTrackMarker = %s, Transmit in %s Channel Mode, " 4936 "ClearTrackMarker = %s, Transmit in %s Channel Mode, "
4952 "Auto Input %s\n", 4937 "Auto Input %s\n",
@@ -5191,15 +5176,13 @@ snd_hdspm_proc_read_raydat(struct snd_info_entry *entry,
5191 struct snd_info_buffer *buffer) 5176 struct snd_info_buffer *buffer)
5192{ 5177{
5193 struct hdspm *hdspm = entry->private_data; 5178 struct hdspm *hdspm = entry->private_data;
5194 unsigned int status1, status2, status3, control, i; 5179 unsigned int status1, status2, status3, i;
5195 unsigned int lock, sync; 5180 unsigned int lock, sync;
5196 5181
5197 status1 = hdspm_read(hdspm, HDSPM_RD_STATUS_1); /* s1 */ 5182 status1 = hdspm_read(hdspm, HDSPM_RD_STATUS_1); /* s1 */
5198 status2 = hdspm_read(hdspm, HDSPM_RD_STATUS_2); /* freq */ 5183 status2 = hdspm_read(hdspm, HDSPM_RD_STATUS_2); /* freq */
5199 status3 = hdspm_read(hdspm, HDSPM_RD_STATUS_3); /* s2 */ 5184 status3 = hdspm_read(hdspm, HDSPM_RD_STATUS_3); /* s2 */
5200 5185
5201 control = hdspm->control_register;
5202
5203 snd_iprintf(buffer, "STATUS1: 0x%08x\n", status1); 5186 snd_iprintf(buffer, "STATUS1: 0x%08x\n", status1);
5204 snd_iprintf(buffer, "STATUS2: 0x%08x\n", status2); 5187 snd_iprintf(buffer, "STATUS2: 0x%08x\n", status2);
5205 snd_iprintf(buffer, "STATUS3: 0x%08x\n", status3); 5188 snd_iprintf(buffer, "STATUS3: 0x%08x\n", status3);