Re: [Alsa-user] Can't get amixer to access controls for a specific device on a card

2009-03-18 Thread olly
Eliot Blennerhassett li...@audioscience.com wrote:
 Why do you think that it is not device #0
 
 i.e. the default device?
 
 Best run
 http://www.alsa-project.org/alsa-info.sh
 to give us the full info.
 
 I suspect device #1 is the MIDI uart...

   Sorry about the delay... had to install lspci and fiddle with some other 
stuff to get the script to run and it still complained a bit, but it came up 
with the output below.

   Asking aplay to use device 1 results in no complaints, so surely it can't be 
a MIDI device? I've read somewhere that device 0 has four DXS devices, while 
device 1 has one six-channel playback device.

   All of this is academic anyway unless I can enable Line in as surround 
etc. I've run speaker-test in 6-channel mode and tweaked everything I could 
think of in amixer, but I'm getting nothing out of the other two jacks.

Any help greatly appreciated!

Thanks,
--
Olly

---alsa-info.sh output---
!!
!!ALSA Information Script v 0.4.56
!!

!!Script ran on: Thu Mar  3 23:28:41 UTC 2005


!!Linux Distribution
!!--




!!Kernel Information
!!--

Kernel release:2.6.27.9
Operating System:  Linux
Architecture:  i686
Processor: unknown
SMP Enabled:   No


!!ALSA Version
!!

Driver version: 1.0.17
Library version:
Utilities version:  1.0.19


!!Loaded ALSA modules
!!---



!!Sound Servers on this system
!!

Pulseaudio:
  Installed - Yes ()
  Running - No

ESound Daemon:
  Installed - Yes ()
  Running - No

aRts:
  Installed - Yes ()
  Running - No

Jack:
  Installed - Yes ()
  Running - No

No sound servers found.


!!Soundcards recognised by ALSA
!!-

 0 [V8235  ]: VIA8233 - VIA 8235
  VIA 8235 with VT1616i at 0xe400, irq 10


!!PCI Soundcards installed in the system
!!--



!!Advanced information - PCI Vendor/Device/Susbsystem ID's
!!

00:11.5 0401: 1106:3059 (rev 50)
Subsystem: 1106:aa01


!!Loaded sound module options
!!--


!!AC97 Codec information
!!---
--startcollapse--

0-0/0: ICEnsemble VT1616i

PCI Subsys Vendor: 0x1106
PCI Subsys Device: 0xaa01

Capabilities : -headphone out-
DAC resolution   : 18-bit
ADC resolution   : 18-bit
3D enhancement   : IC Ensemble/KS Waves

Current setup
Mic gain : +0dB [+0dB]
POP path : pre 3D
Sim. stereo  : off
3D enhancement   : off
Loudness : off
Mono output  : MIX
Mic select   : Mic1
ADC/DAC loopback : off
Extended ID  : codec=0 rev=0 LDAC SDAC CDAC DSA=0 SPDIF VRA
Extended status  : SPCV LDAC SDAC CDAC SPDIF=10/11 VRA
PCM front DAC: 48000Hz
PCM Surr DAC : 48000Hz
PCM LFE DAC  : 48000Hz
PCM ADC  : 48000Hz
SPDIF Control: Consumer PCM Copyright Category=0x22 Generation=1 Rate=48kHz

0:00 = 6d50
0:02 = 9f1f
0:04 = 9f1f
0:06 = 801f
0:08 = 
0:0a = 801e
0:0c = 801f
0:0e = 801f
0:10 = 9f1f
0:12 = 9f1f
0:14 = 9f1f
0:16 = 9f1f
0:18 = 0808
0:1a = 
0:1c = 
0:1e = 
0:20 = 
0:22 = 
0:24 = 
0:26 = 000f
0:28 = 01c5
0:2a = 05f1
0:2c = bb80
0:2e = bb80
0:30 = bb80
0:32 = bb80
0:34 = 
0:36 = 9f93
0:38 = 9f9f
0:3a = 2a20
0:3c = 
0:3e = 
0:40 = 
0:42 = 
0:44 = 
0:46 = 
0:48 = 
0:4a = 
0:4c = 
0:4e = 
0:50 = 
0:52 = 
0:54 = 
0:56 = 
0:58 = 
0:5a = 8230
0:5c = 
0:5e = 
0:60 = 
0:62 = 
0:64 = 
0:66 = 
0:68 = 
0:6a = 
0:6c = 
0:6e = 
0:70 = 
0:72 = 
0:74 = 
0:76 = 
0:78 = 
0:7a = 
0:7c = 4943
0:7e = 4552
--endcollapse--


!!ALSA Device nodes
!!-

crw-rw1 root audio116,   7 Mar  3 23:27 /dev/snd/controlC0
crw-rw1 root audio116,   6 Mar  3 23:27 /dev/snd/pcmC0D0c
crw-rw1 root audio116,   5 Mar  3 23:28 /dev/snd/pcmC0D0p
crw-rw1 root audio116,   4 Mar  3 23:27 /dev/snd/pcmC0D1c
crw-rw1 root audio116,   3 Mar  3 23:27 /dev/snd/pcmC0D1p
crw-rw1 root audio116,   2 Mar  3 23:27 /dev/snd/timer


!!Aplay/Arecord output
!!

APLAY

 List of PLAYBACK Hardware Devices 
card 0: V8235 [VIA 8235], device 0: VIA 8235 [VIA 8235]
  Subdevices: 2/4
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
card 0: V8235 [VIA 8235], device 1: VIA 8235 [VIA 8235]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

ARECORD

/bin/alsa-info.sh: line 632: arecord: not found

!!Amixer output
!!-

!!---Mixer controls for card 0 [V8235]

Card hw:0 'V8235'/'VIA 8235 with VT1616i at 0xe400, irq 10'
  Mixer name: 'ICEnsemble VT1616i'
  Components: 

Re: [Alsa-user] Can't get amixer to access controls for a specific device on a card

2009-03-10 Thread Eliot Blennerhassett
o...@funkster.org wrote:
 Hi all,
 
 Hope this is in the right place. I've got a VIA EPIA M1 with an
 LFS system based around kernel 2.6.22.5 and alsa-lib 1.0.19. Sound
 works for 2-channel playback but I want to start using all 6 channels
 that the hardware gives (VIA VT1616 AC97 connected to VT8235 south
 bridge).
 
 However, the 6-channel playback is done via card 0, device 1 

Why do you think that it is not device #0

i.e. the default device?

Best run
http://www.alsa-project.org/alsa-info.sh
to give us the full info.

I suspect device #1 is the MIDI uart...



--
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Can't get amixer to access controls for a specific device on a card

2009-03-08 Thread Oliver Stephenson
From: Eliot Blennerhassett li...@audioscience.com
 Cards have only one mixer, to which all the PCM devices are 'connected'

   Ah, I didn't realise that. Below is the output of amixer -i controls. 
Thanks for your help!

Cheers,
--
Olly



-vt1616controls-
numid=11,iface=MIXER,name='Master Mono Playback Switch'
numid=12,iface=MIXER,name='Master Mono Playback Volume'
numid=47,iface=MIXER,name='Master Playback Switch'
numid=46,iface=MIXER,name='Master Playback Volume'
numid=9,iface=MIXER,name='Headphone Playback Switch'
numid=10,iface=MIXER,name='Headphone Playback Volume'
numid=36,iface=MIXER,name='3D Control - Center'
numid=37,iface=MIXER,name='3D Control - Depth'
numid=33,iface=MIXER,name='3D Control - Switch'
numid=28,iface=MIXER,name='PCM Playback Switch'
numid=29,iface=MIXER,name='PCM Playback Volume'
numid=1,iface=MIXER,name='Front Playback Switch'
numid=2,iface=MIXER,name='Front Playback Volume'
numid=7,iface=MIXER,name='Surround Playback Switch'
numid=8,iface=MIXER,name='Surround Playback Volume'
numid=3,iface=MIXER,name='Center Playback Switch'
numid=4,iface=MIXER,name='Center Playback Volume'
numid=5,iface=MIXER,name='LFE Playback Switch'
numid=6,iface=MIXER,name='LFE Playback Volume'
numid=20,iface=MIXER,name='Line Playback Switch'
numid=21,iface=MIXER,name='Line Playback Volume'
numid=22,iface=MIXER,name='CD Playback Switch'
numid=23,iface=MIXER,name='CD Playback Volume'
numid=19,iface=MIXER,name='Mic Boost (+20dB)'
numid=35,iface=MIXER,name='Mic Select'
numid=17,iface=MIXER,name='Mic Playback Switch'
numid=18,iface=MIXER,name='Mic Playback Volume'
numid=15,iface=MIXER,name='Phone Playback Switch'
numid=16,iface=MIXER,name='Phone Playback Volume'
numid=24,iface=MIXER,name='Video Playback Switch'
numid=25,iface=MIXER,name='Video Playback Volume'
numid=13,iface=MIXER,name='PC Speaker Playback Switch'
numid=14,iface=MIXER,name='PC Speaker Playback Volume'
numid=26,iface=MIXER,name='Aux Playback Switch'
numid=27,iface=MIXER,name='Aux Playback Volume'
numid=34,iface=MIXER,name='Mono Output Select'
numid=30,iface=MIXER,name='Capture Source'
numid=31,iface=MIXER,name='Capture Switch'
numid=32,iface=MIXER,name='Capture Volume'
numid=38,iface=MIXER,name='IEC958 Playback Con Mask'
numid=39,iface=MIXER,name='IEC958 Playback Pro Mask'
numid=42,iface=MIXER,name='IEC958 Playback AC97-SPSA'
numid=40,iface=MIXER,name='IEC958 Playback Default'
numid=41,iface=MIXER,name='IEC958 Playback Switch'
numid=51,iface=MIXER,name='IEC958 Output Switch'
numid=43,iface=MIXER,name='Alternate Level to Surround Out'
numid=44,iface=MIXER,name='Downmix LFE and Center to Front'
numid=45,iface=MIXER,name='Downmix Surround to Front'
numid=48,iface=MIXER,name='External Amplifier'
numid=49,iface=MIXER,name='Input Source Select'
numid=50,iface=MIXER,name='Input Source Select',index=1
numid=52,iface=MIXER,name='VIA DXS Playback Volume'
numid=53,iface=MIXER,name='VIA DXS Playback Volume',index=1
numid=54,iface=MIXER,name='VIA DXS Playback Volume',index=2
numid=55,iface=MIXER,name='VIA DXS Playback Volume',index=3


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Alsa-user] Can't get amixer to access controls for a specific device on a card

2009-03-06 Thread olly
Hi all,

Hope this is in the right place. I've got a VIA EPIA M1 with an LFS system 
based around kernel 2.6.22.5 and alsa-lib 1.0.19. Sound works for 2-channel 
playback but I want to start using all 6 channels that the hardware gives (VIA 
VT1616 AC97 connected to VT8235 south bridge).

However, the 6-channel playback is done via card 0, device 1 and I can only get 
amixer to access the controls of device 0 - which doesn't include the controls 
to enable the other four analogue outputs! (these being Line In as Surround 
and Mic Input as Centre/LFE

I've tried a whole load of command line arguments, but all just give me errors:

# amixer -c 0 -D 1
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL 1
amixer: Mixer attach 1 error: No such file or directory

# amixer -Dhw:0,1
ALSA lib conf.c:3843:(parse_args) Unknown parameter 1
ALSA lib conf.c:3969:(snd_config_expand) Parse arguments error: No such file or 
directory
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL hw:0,1
amixer: Mixer attach hw:0,1 error: No such file or directory

Generally it seems that amixer can only open the default device. So, can I use 
my .asoundrc to force device 1 to be the default CTL? Or is there some format 
of arguments that'll make it open device 1?

Any help would be greatly appreciated, I've lost far too many hours to ALSA and 
am starting to get a bit annoyed with it :o)

Thanks in advance,
--
Olly


___
Sent using funkster.org webmail service





--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Can't get amixer to access controls for a specific device on a card

2009-03-06 Thread Eliot Blennerhassett
o...@funkster.org wrote:
 Hi all,
 
 Hope this is in the right place. I've got a VIA EPIA M1 with an
 LFS system based around kernel 2.6.22.5 and alsa-lib 1.0.19. Sound
 works for 2-channel playback but I want to start using all 6 channels
 that the hardware gives (VIA VT1616 AC97 connected to VT8235 south
 bridge).
 
 However, the 6-channel playback is done via card 0, device 1 and I
 can only get amixer to access the controls of device 0 - which

Cards have only one mixer, to which all the PCM devices are 'connected'
So the controls that you see with just amixer controls are all the
controls you get.

PLease post the output of amixer controls

--
EB



--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user