From: Takashi Iwai <tiwai@suse.de>
To: cltien@cmedia.com.tw
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: CMI8768 patch
Date: Fri, 18 Feb 2005 11:58:18 +0100 [thread overview]
Message-ID: <s5hu0oannhx.wl@alsa2.suse.de> (raw)
In-Reply-To: <92C0412E07F63549B2A2F2345D3DB515F7D63F@cm-msg-02.cmedia.com.tw>
[-- Attachment #1: Type: text/plain, Size: 521 bytes --]
At Fri, 18 Feb 2005 06:11:03 +0800,
Tien, C.L. wrote:
>
> 1. 8768 has no PCM volume control.
> 2. The ADC of 8768 can only record in 44.1kHz or 48kHz.
> 3. 8768 can support up to 8 channels.
>
> I made change for item 2 and 3, I want to use the softvol plugin but
> don't know how to. The driver just don't generate the PCM volume slider
> for now.
Regarding the softvol:
Could you try the config below? Copy it to /usr/share/alsa/cards.
And run once like "aplay foo.wav". Then PCM volume should appear.
Takashi
[-- Attachment #2: CMI8738-MC8.conf --]
[-- Type: application/octet-stream, Size: 2302 bytes --]
#
# Configuration for the CMI8768 chip with 8 multi-channel support
#
<confdir:pcm/front.conf>
CMI8738-MC8.pcm.front.0 {
@args [ CARD ]
@args.CARD {
type string
}
type softvol
slave.pcm {
type hw
card $CARD
device 0
}
control {
name "PCM Playback Volume"
card $CARD
}
}
# default with dmix+softvol & dsnoop
CMI8738-MC8.pcm.default {
@args [ CARD ]
@args.CARD {
type integer
}
type asym
playback.pcm {
type plug
slave.pcm {
type softvol
slave.pcm {
@func concat
strings [ "dmix:" $CARD ]
}
control {
name "PCM Playback Volume"
card $CARD
}
}
}
capture.pcm {
type plug
slave.pcm {
@func concat
strings [ "dsnoop:" $CARD ]
}
}
}
<confdir:pcm/rear.conf>
# 2nd DAC
CMI8738-MC8.pcm.rear.0 {
@args [ CARD ]
@args.CARD {
type string
}
type softvol
slave.pcm {
type hw
card $CARD
device 1
}
control {
name "PCM Playback Volume"
card $CARD
}
}
<confdir:pcm/surround40.conf>
CMI8738-MC8.pcm.surround40.0 {
@args [ CARD ]
@args.CARD {
type string
}
type softvol
slave.pcm {
type hooks
slave.pcm {
type hw
card $CARD
device 1
}
hooks.0 {
type ctl_elems
hook_args [
{
name "Four Channel Mode"
lock true
preserve true
value false
}
]
}
}
control {
name "PCM Playback Volume"
card $CARD
}
}
<confdir:pcm/surround41.conf>
<confdir:pcm/surround50.conf>
<confdir:pcm/surround51.conf>
CMI8738-MC8.pcm.surround51.0 "cards.CMI8738-MC8.pcm.surround40.0"
<confdir:pcm/surround71.conf>
CMI8738-MC8.pcm.surround71.0 "cards.CMI8738-MC8.pcm.surround40.0"
<confdir:pcm/iec958.conf>
CMI8738-MC8.pcm.iec958.0 {
@args [ CARD AES0 AES1 AES2 AES3 ]
@args.CARD {
type string
}
@args.AES0 {
type integer
}
@args.AES1 {
type integer
}
@args.AES2 {
type integer
}
@args.AES3 {
type integer
}
type asym
playback.pcm {
type hooks
slave.pcm {
type hw
card $CARD
device 2
}
hooks.0 {
type ctl_elems
hook_args [
{
interface PCM
name "IEC958 Playback PCM Stream"
device 2
lock true
preserve true
value [ $AES0 $AES1 $AES2 $AES3 ]
}
{
name "IEC958 Loop"
lock true
preserve true
value off
}
]
}
}
capture.pcm {
type hw
card $CARD
device 2
}
}
next prev parent reply other threads:[~2005-02-18 10:58 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-17 22:11 CMI8768 patch "Tien, C.L. - 田承禮"
2005-02-18 10:27 ` Takashi Iwai
2005-02-18 10:58 ` Takashi Iwai [this message]
2005-02-19 5:07 ` CMI8768 patch, CMI9761A thomas schorpp
2005-02-19 7:43 ` CMI8768 patch, softvol mixer slider thomas schorpp
2005-02-19 7:56 ` Lee Revell
2005-02-19 18:40 ` thomas schorpp
2005-02-19 19:11 ` Lee Revell
2005-02-19 21:08 ` softvol plugin thomas schorpp
2005-02-19 21:12 ` Lee Revell
2005-02-20 21:03 ` thomas schorpp
-- strict thread matches above, loose matches on Subject: below --
2005-02-20 23:20 CMI8768 patch "Tien, C.L. - 田承禮"
2005-02-22 11:30 ` Takashi Iwai
2005-02-22 19:07 "Tien, C.L. - 田承禮"
2005-02-22 19:51 ` Takashi Iwai
2005-02-22 22:00 "Tien, C.L. - 田承禮"
2005-02-23 3:42 "Tien, C.L. - 田承禮"
2005-02-23 10:42 ` Takashi Iwai
2005-02-23 20:50 "Tien, C.L. - 田承禮"
2005-02-23 22:50 "Tien, C.L. - 田承禮"
2005-02-24 4:20 ` Sergio Monteiro Basto
2005-02-24 10:30 ` Takashi Iwai
2005-02-24 18:42 ` Sergio Monteiro Basto
2005-02-24 18:52 ` Takashi Iwai
2005-02-24 23:23 ` Sergio Monteiro Basto
2005-02-24 9:52 ` Takashi Iwai
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=s5hu0oannhx.wl@alsa2.suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@lists.sourceforge.net \
--cc=cltien@cmedia.com.tw \
/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.