Update of /cvsroot/alsa/alsa-kernel/pci/ice1712
In directory sc8-pr-cvs1:/tmp/cvs-serv998

Modified Files:
        ice1712.c 
Log Message:
Moved spdif.setup_rate to snd_ice1712_set_pro_rate() function

Index: ice1712.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ice1712/ice1712.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- ice1712.c   16 Aug 2003 09:58:29 -0000      1.34
+++ ice1712.c   30 Sep 2003 11:30:35 -0000      1.35
@@ -1040,6 +1040,7 @@
        default:
                snd_BUG();
                val = 0;
+               rate = 48000;
                break;
        }
        outb(val, ICEMT(ice, RATE));
@@ -1050,6 +1051,8 @@
                if (ice->akm[i].ops.set_rate_val)
                        ice->akm[i].ops.set_rate_val(&ice->akm[i], rate);
        }
+       if (ice->spdif.ops.setup_rate)
+               ice->spdif.ops.setup_rate(ice, rate);
 }
 
 static int snd_ice1712_playback_pro_prepare(snd_pcm_substream_t * substream)
@@ -1072,8 +1075,6 @@
        ice1712_t *ice = snd_pcm_substream_chip(substream);
 
        snd_ice1712_set_pro_rate(ice, params_rate(hw_params), 0);
-       if (ice->spdif.ops.setup_rate)
-               ice->spdif.ops.setup_rate(ice, params_rate(hw_params));
        return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params));
 }
 



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to