I have to correct my statement in this bug report :)
Actually, script works right, but only when modem is as major device. It doesn't look for modems as subdevices of cards. For that, /proc/asound/cards won't show you any information, but aplay -l will. Therefore I added additional check in alsaload method in init.d script for situation when there is no "modem" string in /proc/asound/cards, but there is such string in aplay -l output. This check then takes row from output, extracts card and subdevice numbers, and create ALSA device address, e.t. "hw:0,6" and passes it to slmodemd as needed.
I have to correct my statement in this bug report :)
Actually, script works right, but only when modem is as major device. It doesn't look for modems as subdevices of cards. For that, /proc/asound/cards won't show you any information, but aplay -l will. Therefore I added additional check in alsaload method in init.d script for situation when there is no "modem" string in /proc/asound/cards, but there is such string in aplay -l output. This check then takes row from output, extracts card and subdevice numbers, and create ALSA device address, e.t. "hw:0,6" and passes it to slmodemd as needed.
Patch is for debian/ sl-modem- daemon. init file.