From: Sasha Khapyorsky <sashak@smlink.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@lists.sourceforge.net
Subject: [conf patch] modem's pcm "two device" config [was: Re: Mo' better modem support]
Date: Mon, 12 Sep 2005 03:27:46 +0300 [thread overview]
Message-ID: <20050912002746.GA31233@tecr> (raw)
In-Reply-To: <20050907160343.GA3375@sashak.softier1.local>
On 19:03 Wed 07 Sep , Sasha Khapyorsky wrote:
> > >
> > > If we really need to auto-"Hoof-Off" we may separate it to logically
> > > different pcm devices (like pcm.modem, pcm.phoneline or so) and then add
> > > hook to one of them.
> >
> > Sounds reasonable.
>
> I will prepare patch this weekend or so (want to test it first).
There is the patch (actually beginning). This defines two PCMs:
"phoneline" is renamed old-style modem and "modem" is pcm with
auto-"Hook-Off".
Sasha.
This defines two modem related pcm devices: "phoneline" is driver's pcm
reference, with "modem" the line will be "Hook-Off"ed automatically.
Signed-off-by: Sasha Khapyorsky <sashak@smlink.com>
Index: alsa-lib/src/conf/alsa.conf
===================================================================
RCS file: /cvsroot/alsa/alsa-lib/src/conf/alsa.conf,v
retrieving revision 1.19
diff -u -p -r1.19 alsa.conf
--- alsa-lib/src/conf/alsa.conf 27 Jan 2005 15:45:05 -0000 1.19
+++ alsa-lib/src/conf/alsa.conf 11 Sep 2005 23:52:34 -0000
@@ -251,6 +251,7 @@ pcm.surround71 cards.pcm.surround71
pcm.iec958 cards.pcm.iec958
pcm.spdif cards.pcm.iec958
pcm.modem cards.pcm.modem
+pcm.phoneline cards.pcm.phoneline
pcm.default cards.pcm.default
pcm.dmix cards.pcm.dmix
Index: alsa-lib/src/conf/pcm/modem.conf
===================================================================
RCS file: /cvsroot/alsa/alsa-lib/src/conf/pcm/modem.conf,v
retrieving revision 1.1
diff -u -p -r1.1 modem.conf
--- alsa-lib/src/conf/pcm/modem.conf 12 Jul 2004 16:21:30 -0000 1.1
+++ alsa-lib/src/conf/pcm/modem.conf 11 Sep 2005 23:52:34 -0000
@@ -1,8 +1,8 @@
#
-# Modem output
+# "raw" modem - phoneline
#
-pcm.!modem {
+pcm.!phoneline {
@args [ CARD DEV ]
@args.CARD {
type string
@@ -45,3 +45,60 @@ pcm.!modem {
]
}
}
+
+#
+# "autohooked" modem
+#
+
+pcm.!modem {
+ @args [ CARD DEV ]
+ @args.CARD {
+ type string
+ default {
+ @func getenv
+ vars [
+ ALSA_MODEM_CARD
+ ALSA_PCM_CARD
+ ALSA_CARD
+ ]
+ default {
+ @func refer
+ name defaults.pcm.modem.card
+ }
+ }
+ }
+ @args.DEV {
+ type integer
+ default {
+ @func igetenv
+ vars [
+ ALSA_MODEM_DEVICE
+ ]
+ default {
+ @func refer
+ name defaults.pcm.modem.device
+ }
+ }
+ }
+ type hooks
+ slave {
+ pcm {
+ @func concat
+ strings [
+ "cards.pcm.phoneline:CARD=" $CARD ",DEV=" $DEV
+ ]
+ }
+ }
+ hooks.0 {
+ type ctl_elems
+ hook_args [
+ {
+ name "Off-hook Switch"
+ preserve true
+ value "on"
+ lock false
+ optional true
+ }
+ ]
+ }
+}
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
next prev parent reply other threads:[~2005-09-12 0:27 UTC|newest]
Thread overview: 88+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-05 17:48 Mo' better modem support Takashi Iwai
2005-09-05 23:29 ` Sasha Khapyorsky
2005-09-06 13:29 ` Takashi Iwai
2005-09-07 16:03 ` Sasha Khapyorsky
2005-09-11 16:36 ` [alsa-lib patch] src/pcm/pcm_hooks.c : fix segfault then hooks list is empty Sasha Khapyorsky
2005-09-12 10:37 ` Takashi Iwai
2005-09-12 0:27 ` Sasha Khapyorsky [this message]
2005-09-12 10:38 ` [conf patch] modem's pcm "two device" config [was: Re: Mo' better modem support] Takashi Iwai
2005-09-12 17:49 ` Takashi Iwai
2005-09-12 22:10 ` Sasha Khapyorsky
2005-09-13 9:34 ` Takashi Iwai
2005-09-13 14:35 ` Sasha Khapyorsky
2005-09-13 12:43 ` Takashi Iwai
2005-09-13 15:36 ` Sasha Khapyorsky
2005-09-13 17:27 ` Sasha Khapyorsky
2005-09-13 0:45 ` [patch] no templated index for mc97 controls Sasha Khapyorsky
2005-09-13 1:06 ` [patch] no templated index for si3036 modem controls Sasha Khapyorsky
2005-09-13 10:24 ` [patch] no templated index for mc97 controls Takashi Iwai
2005-09-12 17:05 ` [conf patch] modem config for HDA-Intel Sasha Khapyorsky
2005-09-12 15:08 ` Takashi Iwai
2005-09-13 0:18 ` [patch] "empty" generic mfg-only codec Sasha Khapyorsky
2005-09-13 10:26 ` Takashi Iwai
2005-09-06 8:37 ` Mo' better modem support Raymond
2005-09-06 14:29 ` Sasha Khapyorsky
2005-09-06 13:19 ` Raymond
2005-09-06 20:43 ` Sasha Khapyorsky
2005-09-07 0:42 ` Raymond
2005-09-07 6:44 ` Philipp Matthias Hahn
2005-09-07 10:05 ` Raymond
2005-09-07 13:15 ` Philipp Matthias Hahn
2005-09-07 17:16 ` Sasha Khapyorsky
2005-09-08 16:10 ` Raymond
2005-09-07 16:10 ` Sasha Khapyorsky
2005-09-09 15:36 ` Raymond
2005-09-10 14:49 ` Sasha Khapyorsky
2005-09-07 16:33 ` Sasha Khapyorsky
2005-09-09 16:17 ` Raymond
2005-09-11 12:45 ` Philipp Matthias Hahn
2005-09-12 16:36 ` Raymond
2005-09-13 0:09 ` au88x0 modem [was: Re: Mo' better modem support] Sasha Khapyorsky
2005-09-13 8:55 ` Philipp Matthias Hahn
2005-09-13 17:35 ` Re: au88x0 modem Sasha Khapyorsky
2005-09-13 17:49 ` Philipp Matthias Hahn
2005-09-13 21:44 ` Sasha Khapyorsky
2005-09-14 7:02 ` Philipp Matthias Hahn
2005-09-14 9:47 ` [Openvortex-dev] " Maarten Vanraes
2005-09-14 12:47 ` Raymond
2005-09-14 21:03 ` Sasha Khapyorsky
2005-09-15 7:25 ` Philipp Matthias Hahn
2005-09-14 8:06 ` Raymond
2005-09-14 20:56 ` Sasha Khapyorsky
2005-09-15 9:11 ` Philipp Matthias Hahn
2005-09-15 9:21 ` Philipp Matthias Hahn
2005-09-15 11:10 ` Raymond
2005-09-15 14:35 ` Sasha Khapyorsky
2005-09-15 15:34 ` Raymond
2005-09-15 21:25 ` Alien
2005-09-16 2:17 ` Raymond
2005-09-16 2:26 ` Lee Revell
2005-09-16 18:05 ` Sasha Khapyorsky
2005-09-15 20:43 ` Sasha Khapyorsky
2005-09-16 4:33 ` Raymond
2005-09-16 7:53 ` Philipp Matthias Hahn
2005-09-16 9:24 ` Raymond
2005-09-16 8:21 ` Raymond
2005-09-16 18:20 ` Sasha Khapyorsky
2005-09-16 8:46 ` Philipp Matthias Hahn
2005-09-16 8:55 ` Raymond
2005-09-16 10:36 ` Philipp Matthias Hahn
2005-09-16 12:04 ` Raymond
2005-09-16 14:42 ` Philipp Matthias Hahn
2005-09-16 14:49 ` Philipp Matthias Hahn
2005-09-16 18:47 ` Sasha Khapyorsky
2005-09-16 18:25 ` Sasha Khapyorsky
2005-09-19 15:00 ` Philipp Matthias Hahn
2005-09-19 15:32 ` Raymond
2005-09-20 13:21 ` Philipp Matthias Hahn
2005-09-21 22:12 ` Sasha Khapyorsky
2005-09-21 22:03 ` Sasha Khapyorsky
2005-09-22 6:24 ` Philipp Matthias Hahn
2005-09-22 20:19 ` Sasha Khapyorsky
2005-09-16 14:09 ` Raymond
2005-09-16 21:34 ` Manuel Jander
2005-09-17 3:52 ` Raymond
2005-09-13 9:12 ` au88x0 modem [was: Re: Mo' better modem support] Raymond
2005-09-13 18:40 ` au88x0 modem Sasha Khapyorsky
2005-09-14 18:07 ` au88x0 modem [was: Re: Mo' better modem support] Philipp Matthias Hahn
2005-09-13 9:22 ` Mo' better modem support Philipp Matthias Hahn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050912002746.GA31233@tecr \
--to=sashak@smlink.com \
--cc=alsa-devel@lists.sourceforge.net \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.