Re: [pulseaudio-discuss] Questions about no ports available to select.

2011-02-23 Thread David Henningsson

On 2011-02-23 04:19, fykc...@gmail.com wrote:

Hi David,

Thanks for your reply!

2011/2/22 David Henningssondavid.hennings...@canonical.com


Your log indicates your HDA codec is a Conexant ID 506e - the Conexant driver does not 
yet support this codec, so the driver falls back to a generic driver. I intend to make a new 
attempt later this week to add a quirk for that particular chip. If you, in the meantime, could 
point me to a bug in Launchpad (filed with the ubuntu-bug audio command), that would be 
helpful, as that would include valuable codec info. Thanks!


I'm not running ubuntu, just using that package from ubuntu, so no
that command, sorry.


Ok, alsa info works just as well, see wiki.ubuntu.com/Audio/AlsaInfo



The codec is Conexant CX20671-21Z, id is '0x14f1506e'. I did some
hacks, none works:
  * Switch the driver to latest one (embemed in linux 2.6.38-rc6)
  * Add an entry for 0x14f1506e, using patch_conexant_auto or patch_cxt5066


I just sent an entry for 506e upstream to alsa-devel. You might need a 
second quirk on top of that, just like I added for the Dell machines, 
see 
http://mailman.alsa-project.org/pipermail/alsa-devel/2011-February/037157.html



BTW, I can see ports in alsamixer (for capture: mic1, mic2, mic3),
which they can't be enumerated by PA?


I can't tell without having alsa-info but you might to be helped by my 
input mixer rewrite, which I'm still trying to get tested and committed 
into PulseAudio.


--
David Henningsson, Canonical Ltd.
http://launchpad.net/~diwic
___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Questions about no ports available to select.

2011-02-23 Thread Colin Guthrie
'Twas brillig, and David Henningsson at 23/02/11 13:03 did gyre and gimble:
 my input mixer rewrite, which I'm still trying to get tested and
 committed into PulseAudio

Oh yeah, let's discuss that at the meeting tomorrow too. Added to agenda.

Col

-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mageia Contributor [http://www.mageia.org/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]

___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Questions about no ports available to select.

2011-02-23 Thread fykc...@gmail.com
Hi David,

Thanks for your work!

2011/2/23 David Henningsson david.hennings...@canonical.com

 Ok, alsa info works just as well, see wiki.ubuntu.com/Audio/AlsaInfo

Collected, see the attachment.


 I just sent an entry for 506e upstream to alsa-devel. You might need a second 
 quirk on top of that, just like I added for the Dell machines, see 
 http://mailman.alsa-project.org/pipermail/alsa-devel/2011-February/037157.html

I tried it, but not work for me. I doubt my 506e is not the one you mentioned:
 1. The vendor told me it's a Conexant 'CX20671-21Z', but yours is 'CX20590'.
 2. patch_conexant_auto works better than patch_cxt5066, the former
doesn't break playback and bring PA sink ports, but still no source
ports.


--
Regards,
- cee1
upload=truescript=truecardinfo=
!!
!!ALSA Information Script v 0.4.60
!!

!!Script ran on: Thu Feb 24 09:23:36 UTC 2011


!!Linux Distribution
!!--

Debian GNU/Linux squeeze/sid \n \l


!!DMI Information
!!---

Manufacturer:  
Product Name:  
Product Version:   


!!Kernel Information
!!--

Kernel release:2.6.36+
Operating System:  GNU/Linux
Architecture:  mips64
Processor: unknown
SMP Enabled:   Yes


!!ALSA Version
!!

Driver version: 1.0.23
Library version:1.0.23
Utilities version:  1.0.23


!!Loaded ALSA modules
!!---



!!Sound Servers on this system
!!

Pulseaudio:
  Installed - Yes (/usr/bin/pulseaudio)
  Running - Yes

ESound Daemon:
  Installed - Yes (/usr/bin/esd)
  Running - No


!!Soundcards recognised by ALSA
!!-

 0 [SB ]: HDA-Intel - HDA ATI SB
  HDA ATI SB at 0x1420 irq 5


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

00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA)


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

00:14.2 0403: 1002:4383
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx-


!!Modprobe options (Sound related)
!!

snd-atiixp-modem: index=-2
snd-intel8x0m: index=-2
snd-via82xx-modem: index=-2
snd-pcsp: index=-2
snd-usb-audio: index=-2


!!Loaded sound module options
!!--


!!HDA-Intel Codec information
!!---
--startcollapse--

Codec: Conexant ID 506e
Address: 0
AFG Function Id: 0x1 (unsol 1)
Vendor Id: 0x14f1506e
Subsystem Id: 0x14f10101
Revision Id: 0x10
No Modem Function Group found
Default PCM:
rates [0x160]: 44100 48000 96000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
GPIO: io=4, o=0, i=0, unsolicited=1, wake=0
  IO[0]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  IO[1]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  IO[2]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  IO[3]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
Node 0x10 [Audio Output] wcaps 0xc1d: Stereo Amp-Out R/L
  Control: name=Master Playback Switch, index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name=Master Playback Volume, index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Device: name=HDA Generic, type=Audio, device=0
  Amp-Out caps: ofs=0x4a, nsteps=0x4a, stepsize=0x03, mute=1
  Amp-Out vals:  [0x4a 0x4a]
  Converter: stream=5, channel=0
  PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
  Power states:  D0 D1 D2 D3 D3cold EPSS
  Power: setting=D0, actual=D0
Node 0x11 [Audio Output] wcaps 0xc1d: Stereo Amp-Out R/L
  Amp-Out caps: ofs=0x4a, nsteps=0x4a, stepsize=0x03, mute=1
  Amp-Out vals:  [0x3c 0x3c]
  Converter: stream=0, channel=0
  PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
  Power states:  D0 D1 D2 D3 D3cold EPSS
  Power: setting=D0, actual=D0
Node 0x12 [Audio Output] wcaps 0x611: Stereo Digital
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  PCM:
rates [0x160]: 44100 48000 96000
bits [0xe]: 16 20 24
formats [0x5]: PCM AC3
  Power states:  D0 D1 D2 D3 D3cold EPSS
  Power: setting=D0, actual=D0
Node 0x13 [Beep Generator Widget] wcaps 0x7c: Mono Amp-Out
  Amp-Out caps: ofs=0x07, nsteps=0x07, stepsize=0x0f, mute=0
  Amp-Out vals:  [0x00]
Node 0x14 [Audio Input] wcaps 0x100d1b: Stereo Amp-In R/L
  Control: name=Capture Source, index=0, device=0
  Control: name=Mic Capture Volume, index=0, device=0
ControlAmp: chs=3, dir=In, idx=2, ofs=0
  Control: name=Mic 1 Capture Volume, index=0, device=0
ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name=Mic 2 Capture Volume, index=0, device=0
ControlAmp: chs=3, dir=In, idx=1, ofs=0
  Device: name=HDA 

Re: [pulseaudio-discuss] Questions about no ports available to select.

2011-02-23 Thread David Henningsson

On 2011-02-24 03:27, fykc...@gmail.com wrote:

Hi David,

Thanks for your work!


You're welcome!


2011/2/23 David Henningssondavid.hennings...@canonical.com


Ok, alsa info works just as well, see wiki.ubuntu.com/Audio/AlsaInfo


Collected, see the attachment.



I just sent an entry for 506e upstream to alsa-devel. You might need a second 
quirk on top of that, just like I added for the Dell machines, see 
http://mailman.alsa-project.org/pipermail/alsa-devel/2011-February/037157.html


I tried it, but not work for me. I doubt my 506e is not the one you mentioned:
  1. The vendor told me it's a Conexant 'CX20671-21Z', but yours is 'CX20590'.


I have no idea of what the real name of the chip is - I picked 20590 
because 506e is hexadecimal for 20590.



  2. patch_conexant_auto works better than patch_cxt5066, the former
doesn't break playback and bring PA sink ports, but still no source
ports.


From your alsa info I can note the following:

1) The node graph is just like the other 506e:s I've seen, and identical 
to the 5066 family. So the 506e patch is correct.


2) Given your pin configurations, you should add either
options snd-hda-intel model=asus
or
options snd-hda-intel model=thinkpad
to /etc/modprobe.d/alsa-base.conf.
That is, in addition to the 506e patch I sent to alsa-devel.

3) For some reason, parsing has gone wrong on finding the PCI subsystem 
ID. To write a quirk that does model=thinkpad permanently, we'll need 
the PCI subsystem ID for the HDA Intel device.


4) Architecture: Mips64? Never seen HDA Intel connected to anything but 
amd64/i386, but I guess it's possible :-)


Btw, feel free to move this thread to alsa-devel, as we're into ALSA 
level stuff rather than PulseAudio stuff.


--
David Henningsson, Canonical Ltd.
http://launchpad.net/~diwic
___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


[pulseaudio-discuss] Questions about no ports available to select.

2011-02-22 Thread fykc...@gmail.com
Hi all,

I'm running pulseaudio 0.9.22 (from ubuntu natty,
0.9.22~0.9.21+stable-queue-32-g8478-0ubuntu21, see
http://changelogs.ubuntu.com/changelogs/pool/main/p/pulseaudio/pulseaudio_0.9.22~0.9.21+stable-queue-32-g8478-0ubuntu21/changelog).

I need to select a proper port to do record jobs, but find no
ports(both source and sink in pavucontrol) available to select on my
machine. The attachment is related log, any idea?




--
Regards,
- cee1
I: main.c: setrlimit(RLIMIT_NICE, (31, 31)) 失败:Operation not permitted
I: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) 失败:Operation not permitted
I: core-util.c: Failed to acquire high-priority scheduling: Permission denied
I: main.c: 这是 PulseAudio 0.9.22-18-geb966
I: main.c: 页面大小为16384字节
I: main.c: machine ID是45cd5d56050eea628ffb4c3302df。
I: main.c: Session ID is 45cd5d56050eea628ffb4c3302df-1298340367.655416-96766889.
I: main.c: 正在使用运行时文件夹/home/loongson/.pulse/45cd5d56050eea628ffb4c3302df-runtime。
I: main.c: 正在使用状态文件夹/home/loongson/.pulse。
I: main.c: Using modules directory /usr/lib/pulse-0.9.22/modules.
I: main.c: 正在以系统模式运行:no
I: main.c: 新鲜的高分辨率计时器开锅了!吃个饱!
I: module-device-restore.c: Successfully opened database file '/home/loongson/.pulse/45cd5d56050eea628ffb4c3302df-device-volumes'.
I: module.c: Loaded module-device-restore (index: #0; argument: ).
I: module-stream-restore.c: Successfully opened database file '/home/loongson/.pulse/45cd5d56050eea628ffb4c3302df-stream-volumes'.
I: module.c: Loaded module-stream-restore (index: #1; argument: ).
I: module-card-restore.c: Successfully opened database file '/home/loongson/.pulse/45cd5d56050eea628ffb4c3302df-card-database'.
I: module.c: Loaded module-card-restore (index: #2; argument: ).
I: module.c: Loaded module-augment-properties (index: #3; argument: ).
I: alsa-util.c: Failed to set hardware parameters on plug:hw:0: Invalid argument
I: alsa-util.c: Failed to set hardware parameters on plug:hw:0: Invalid argument
I: alsa-util.c: Failed to set hardware parameters on plug:hw:0: Invalid argument
I: alsa-util.c: Failed to set hardware parameters on plug:hw:0: Invalid argument
I: alsa-util.c: Failed to set hardware parameters on plug:hw:0: Invalid argument
I: alsa-util.c: Failed to set hardware parameters on plug:hw:0: Invalid argument
I: (alsa-lib)pcm_hw.c: open '/dev/snd/pcmC0D1c' failed (-2)
I: alsa-util.c: Error opening PCM device iec958:0: No such file or directory
I: (alsa-lib)pcm_hw.c: open '/dev/snd/pcmC0D1c' failed (-2)
I: alsa-util.c: Error opening PCM device iec958:0: No such file or directory
I: alsa-util.c: Failed to set hardware parameters on plug:surround40:0: Invalid argument
I: alsa-util.c: Failed to set hardware parameters on plug:surround40:0: Invalid argument
I: alsa-util.c: Failed to set hardware parameters on plug:surround40:0: Invalid argument
I: alsa-util.c: Failed to set hardware parameters on plug:surround40:0: Invalid argument
I: alsa-util.c: Failed to set hardware parameters on plug:surround40:0: Invalid argument
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: alsa-util.c: Failed to set hardware parameters on plug:surround41:0: Invalid argument
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: alsa-util.c: Failed to set hardware parameters on plug:surround41:0: Invalid argument
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: alsa-util.c: Failed to set hardware parameters on plug:surround41:0: Invalid argument
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: alsa-util.c: Failed to set hardware parameters on plug:surround41:0: Invalid argument
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: alsa-util.c: Failed to set hardware parameters on plug:surround41:0: Invalid argument
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: alsa-util.c: Failed to set hardware parameters on plug:surround50:0: Invalid argument
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: alsa-util.c: Failed to set hardware parameters on plug:surround50:0: Invalid argument
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: alsa-util.c: Failed to set hardware parameters on plug:surround50:0: Invalid argument
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: alsa-util.c: Failed to set hardware parameters on plug:surround50:0: Invalid argument
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: alsa-util.c: Failed to set hardware parameters on plug:surround50:0: Invalid argument
I: alsa-util.c: Failed to set hardware parameters on plug:surround51:0: Invalid argument
I: alsa-util.c: Failed to set hardware parameters on 

Re: [pulseaudio-discuss] Questions about no ports available to select.

2011-02-22 Thread David Henningsson

On 2011-02-22 09:51, fykc...@gmail.com wrote:

Hi all,

I'm running pulseaudio 0.9.22 (from ubuntu natty,
0.9.22~0.9.21+stable-queue-32-g8478-0ubuntu21, see
http://changelogs.ubuntu.com/changelogs/pool/main/p/pulseaudio/pulseaudio_0.9.22~0.9.21+stable-queue-32-g8478-0ubuntu21/changelog).

I need to select a proper port to do record jobs, but find no
ports(both source and sink in pavucontrol) available to select on my
machine. The attachment is related log, any idea?


Your log indicates your HDA codec is a Conexant ID 506e - the Conexant 
driver does not yet support this codec, so the driver falls back to a 
generic driver. I intend to make a new attempt later this week to add a 
quirk for that particular chip. If you, in the meantime, could point me 
to a bug in Launchpad (filed with the ubuntu-bug audio command), that 
would be helpful, as that would include valuable codec info. Thanks!



--
David Henningsson, Canonical Ltd.
http://launchpad.net/~diwic
___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Questions about no ports available to select.

2011-02-22 Thread fykc...@gmail.com
Hi David,

Thanks for your reply!

2011/2/22 David Henningsson david.hennings...@canonical.com

 Your log indicates your HDA codec is a Conexant ID 506e - the Conexant 
 driver does not yet support this codec, so the driver falls back to a generic 
 driver. I intend to make a new attempt later this week to add a quirk for 
 that particular chip. If you, in the meantime, could point me to a bug in 
 Launchpad (filed with the ubuntu-bug audio command), that would be helpful, 
 as that would include valuable codec info. Thanks!

I'm not running ubuntu, just using that package from ubuntu, so no
that command, sorry.

The codec is Conexant CX20671-21Z, id is '0x14f1506e'. I did some
hacks, none works:
 * Switch the driver to latest one (embemed in linux 2.6.38-rc6)
 * Add an entry for 0x14f1506e, using patch_conexant_auto or patch_cxt5066

BTW, I can see ports in alsamixer (for capture: mic1, mic2, mic3),
which they can't be enumerated by PA?


-- 
Regards,
- cee1
___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Questions about no ports available to select.

2011-02-22 Thread fykc...@gmail.com
Sorry for the writing mistake:
 which they can't be enumerated by PA?
Why they can't be enumerated by PA?


-- 
Regards,
- cee1
___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss