From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: CMI8768 patch Date: Fri, 18 Feb 2005 11:58:18 +0100 Message-ID: References: <92C0412E07F63549B2A2F2345D3DB515F7D63F@cm-msg-02.cmedia.com.tw> Mime-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: multipart/mixed; boundary="Multipart_Fri_Feb_18_11:58:18_2005-1" In-Reply-To: <92C0412E07F63549B2A2F2345D3DB515F7D63F@cm-msg-02.cmedia.com.tw> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: cltien@cmedia.com.tw Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org --Multipart_Fri_Feb_18_11:58:18_2005-1 Content-Type: text/plain; charset=US-ASCII 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 --Multipart_Fri_Feb_18_11:58:18_2005-1 Content-Type: application/octet-stream Content-Disposition: attachment; filename="CMI8738-MC8.conf" Content-Transfer-Encoding: 7bit # # Configuration for the CMI8768 chip with 8 multi-channel support # 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 ] } } } # 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 } } 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 } } CMI8738-MC8.pcm.surround51.0 "cards.CMI8738-MC8.pcm.surround40.0" CMI8738-MC8.pcm.surround71.0 "cards.CMI8738-MC8.pcm.surround40.0" 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 } } --Multipart_Fri_Feb_18_11:58:18_2005-1-- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click