Skip to contentSkip to conversation

Echoaudio, remove useless code

PATCH In review Giuliano Pochini 2 participants 2 messages Oct 8, 2005 – Oct 10, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 Echoaudio, remove useless code

- The whole comm page was zeroed a few lines above.

pci/echoaudio/echoaudio_dsp.c +0 -2
diff -dup alsa-driver__orig/pci/echoaudio/echoaudio_dsp.c alsa-driver/pci/echoaudio/echoaudio_dsp.c
@@ -1000,8 +1000,6 @@ static int init_dsp_comm_page(echoaudio_
 	chip->comm_page->midi_out_free_count = __constant_cpu_to_le32(DSP_MIDI_OUT_FIFO_SIZE);
 	chip->comm_page->sample_rate = __constant_cpu_to_le32(44100);
 	chip->sample_rate = 44100;
-	for (i = 0; i < DSP_MAXAUDIOINPUTS; i++)
-		chip->comm_page->line_in_level[i] = 0;
 
 	/* Set line levels so we don't blast any inputs on startup */
 	memset(chip->comm_page->monitors, ECHOGAIN_MUTED, MONITOR_ARRAY_SIZE);

--
Giuliano.

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl