[alsa-devel] Cirrus Logic CS4207
Takashi Iwai
tiwai at suse.de
Tue Apr 21 13:41:10 CEST 2009
At Tue, 21 Apr 2009 09:24:31 +0200,
Peter-Jan Deweirdt wrote:
>
> Hi,
>
> This is the patch that I've changed to the 2.6.29 kernel. However I
> need some more help for playing the audio. Since I don't really know
> what is happening.
>
> It's detecting my audio chip. (a part of dmesg)
> [ 5.171478] Advanced Linux Sound Architecture Driver Version 1.0.18a.
> [ 5.176635] HDA Intel 0000:00:1b.0: setting latency timer to 64
> [ 5.220417] ALSA device list:
> [ 5.220434] #0: HDA Intel MID at 0xd0010000 irq 22
>
> So it looks like my audio card is found. Some more outputs
>
> lspci -v
> 00:1b.0 Audio device: Intel Corporation System Controller Hub (SCH
> Poulsbo) HD Audio Controller (rev 06)
> Subsystem: Intel Corporation Unknown device 8119
> Flags: bus master, fast devsel, latency 0, IRQ 22
> Memory at d0010000 (64-bit, non-prefetchable) [size=16K]
> Capabilities: [50] Power Management version 2
> Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
> Kernel driver in use: HDA Intel
>
>
> [root at localhost ~]# cat /proc/asound/cards
> 0 [MID ]: HDA-Intel - HDA Intel MID
> HDA Intel MID at 0xd0010000 irq 22
> [root at localhost ~]#
>
> [root at localhost ~]# aplay -l
> **** List of PLAYBACK Hardware Devices ****
> card 0: MID [HDA Intel MID], device 0: CS4207 Analog [CS4207 Analog]
> Subdevices: 1/1
> Subdevice #0: subdevice #0
> card 0: MID [HDA Intel MID], device 1: CS4207 Digital [CS4207 Digital]
> Subdevices: 1/1
> Subdevice #0: subdevice #0
> [root at localhost ~]#
>
>
> [root at localhost ~]# aplay -L
> front:CARD=MID,DEV=0
> HDA Intel MID, CS4207 Analog
> Front speakers
> surround40:CARD=MID,DEV=0
> HDA Intel MID, CS4207 Analog
> 4.0 Surround output to Front and Rear speakers
> surround41:CARD=MID,DEV=0
> HDA Intel MID, CS4207 Analog
> 4.1 Surround output to Front, Rear and Subwoofer speakers
> surround50:CARD=MID,DEV=0
> HDA Intel MID, CS4207 Analog
> 5.0 Surround output to Front, Center and Rear speakers
> surround51:CARD=MID,DEV=0
> HDA Intel MID, CS4207 Analog
> 5.1 Surround output to Front, Center, Rear and Subwoofer speakers
> surround71:CARD=MID,DEV=0
> HDA Intel MID, CS4207 Analog
> 7.1 Surround output to Front, Center, Side, Rear and Woofer
> speakers
> iec958:CARD=MID,DEV=0
> HDA Intel MID, CS4207 Digital
> IEC958 (S/PDIF) Digital Audio Output
> null
> Discard all samples (playback) or generate zero samples (capture)
> pulse
> PulseAudio Sound Server
> default
> Default
> [root at localhost ~]#
>
> [root at localhost ~]# ls -al /dev/snd/
> total 0
> drwxr-xr-x 2 root root 200 Mar 24 20:00 .
> drwxr-xr-x 15 root root 3360 Mar 24 20:00 ..
> crw-rw---- 1 root audio 116, 9 Mar 24 20:00 controlC0
> crw-rw---- 1 root audio 116, 8 Mar 24 20:00 hwC0D0
> crw-rw---- 1 root audio 116, 7 Mar 24 20:00 pcmC0D0c
> crw-rw---- 1 root audio 116, 6 Mar 24 20:58 pcmC0D0p
> crw-rw---- 1 root audio 116, 5 Mar 24 20:00 pcmC0D1c
> crw-rw---- 1 root audio 116, 4 Mar 24 20:30 pcmC0D1p
> crw-rw---- 1 root audio 116, 3 Mar 24 20:00 seq
> crw-rw---- 1 root audio 116, 2 Mar 24 20:00 timer
> [root at localhost ~]#
All look good, so far.
> The problems that I'm having is:
> - How to play audio?
% aplay foo.wav
> - I am seeing 2 playback devices (what is correct) but no headphones
The streams are just for analog and digital outputs.
The analog outputs are switched either by the automatic HP jack
detection or manual switch (if any).
> - How can I see the difference between the MIC in and LINE IN?
Via mixer controls.
Takashi
More information about the Alsa-devel
mailing list