Hello, I am new to linux and recently installed Kubuntu 7.04 and am trying to use dial-up to connect. I used scanModem and followed all the directions I could find for my Intel Corporation 82801G modem. I installed slmodemd and ALSA drivers that were recommended, but when I try to dial, I get "period size 48 not supported by playback (64)" within the terminal window that is running the slmodem deamon..I also get a "No carrier" message in the KPPP dialer window. I searched for a while and came across a patch for this problem from Hell Labs and another suggestion from a different site addressing this problem:
I'm not sure if this is a issue in alsa, it seems to be slmodemd's fault. slmodemd requests a period size of 48 using snd_pcm_hw_params_set_period_size_near() in setup_stream() and aborts if alsa returns anything different. Newer alsa versions return 64, and this should be gracefully handled by slmodemd. The following quick-and-dirty patch to slmodemd allows it to start and communicate, but proper error handling must be implemented:
taken from here
My question is, how/where do I add the above patches to get slmodemd to work correctly? I did ask this question in the beginners section of this forum, but got no response and thought this would be a more appropriate place to ask. Thank you to anyone who can help.
=^_^=
I'm not sure if this is a issue in alsa, it seems to be slmodemd's fault. slmodemd requests a period size of 48 using snd_pcm_hw_params_set_period_size_near() in setup_stream() and aborts if alsa returns anything different. Newer alsa versions return 64, and this should be gracefully handled by slmodemd. The following quick-and-dirty patch to slmodemd allows it to start and communicate, but proper error handling must be implemented:
Code:
diff -rud slmodem-2.9.11-20060727-orig/modem/modem_main.c slmodem-2.9.11-20060727/modem/modem_main.c --- slmodem-2.9.11-20060727-orig/modem/modem_main.c 2005-09-22 10:05:27.000000000 -0300 +++ slmodem-2.9.11-20060727/modem/modem_main.c 2007-07-09 16:26:15.000000000 -0300 @@ -379,11 +379,13 @@ ERR("cannot set periods for %s: %s\n", stream_name, snd_strerror(err)); return err; } +#if 0 if ( rsize != size ) { ERR("period size %ld is not supported by %s (%ld).\n", size, stream_name, rsize); return -1; } +#endif rsize = size = use_short_buffer ? rsize * dev->buf_periods : rsize * 32; err = snd_pcm_hw_params_set_buffer_size_near(handle, hw_params, &rsize); if (err < 0) {
My question is, how/where do I add the above patches to get slmodemd to work correctly? I did ask this question in the beginners section of this forum, but got no response and thought this would be a more appropriate place to ask. Thank you to anyone who can help.
=^_^=