Re: [Alsa-user] Intel HDA: HDMI audio on i945GT

2010-03-03 Thread Paul Menzel
Am Dienstag, den 02.03.2010, 17:56 + schrieb Wil:
 I’ve recently setup a new HTPC with video on HDMI

Great. Just for my interest to know about tried/tested HTPC setups. Did
you put the components you used somewhere?

  and audio via IEC958.

Was it hard to setup? Or did you just follow [1]?

 Unfortunately my amp needs a repair and my TV only supports audio over
 HDMI so I thought it might be good to see if it was possible to get
 HDMI audio working as the motherboard packaging insists that it is J.
 I also have an issue at the moment with the AV sync being out by over
 100ms which hopefully can be resolved by switching to HDMI. I’m quite
 happy to patch the ALSA source and/or the Intel video driver if
 required. So if anyone can confirm if this is known to work / not work
 and what might need doing if it doesn’t work I’d appreciate it.

I have to say, that I do not if it will work. But I am pretty sure that
chances are small that it will work right away. What prevents you from
just trying it?

 I can re-post on the dev list if more appropriate.

Unfortunately the developers and knowledgable users are quite busy, so
you will have to wait on both lists some time until you get a useful
answer.

 I’ve compiled a few basic details on the system below, I can post more
 if required.

Please attach the output of `alsa-info.sh` [2] if you have problems.

[…]

 2.6.31-gentoo-r6
 
 *  media-libs/alsa-lib
 
   Latest version available: 1.0.21a
 
   Latest version installed: 1.0.21a

If it does not work you should also try the latest releases first.

[…]


Thanks,

Paul


[1] http://alsa.opensrc.org/index.php/DigitalOut
[2] http://www.alsa-project.org/alsa-info.sh


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Alsa-user] OpenAL and ALSA (was: digital output device not detected)

2010-03-03 Thread Paul Menzel
Dear Ekhlas,


[Your MUA (mail program) does not set the »References« and »In-Reply-To«
header fields and therefore breaks threading in my MUA. Could you please
ask the manufacturer to fix this or use a different program. Please also
do not send HTML messages.]


Am Dienstag, den 02.03.2010, 16:14 + schrieb Ekhlas Sonu:
 I tried using aplay. It works as long as I mention device as
 plughw:0,0.

Can you use this information to get OpenAL working?

 I have uploaded the output of the alsa-info.sh script. It can be found
 at:
 http://www.alsa-project.org/db/?f=0bfcf870c8d19b7698ab23dcad8a62044cdf1331

Thanks.

[…]

 !!Linux Distribution
 !!--
 
 Red Hat Enterprise Linux Client release 5.4 (Tikanga) Red Hat Enterprise 
 Linux Client release 5.4 (Tikanga)

Are you eligible for support by Red Hat? If yes, you should definately
report this in their bug tracker.

[…]

 !!Sound Servers on this system
 !!
 
 ESound Daemon:
   Installed - Yes (/usr/bin/esd)
   Running - Yes

ESD is running and as far as I know taking/blocking the sound devices so
you have to play sounds through ESD and therefore you can play sounds
simultaneously. If that is true, you should look at how to get OpenAL
and ESD going or search for an alternativ for ESD. Like another sound
server working with OpenAL (PulseAudio?) or disable them and look at
Dmix.

[…]


Thanks,

Paul


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Problem with Gigabyte H55M-S2H Motherboard with Intel HDMI sound

2010-03-03 Thread Paul Menzel
Dear jgmtfia,


Am Dienstag, den 02.03.2010, 07:28 -0700 schrieb jgmtfia Mr:
 (Sorry if this is a repost for you.  I checked the mailing list
 archive and did not see my post, so I am posting again.)

I think, I did not get your messages either.

 I am having a problem with HDMI audio on a Gigabyte H55M-S2H
 motherboard.  No matter what I try, I cannot get sound to the attached
 TV over the HDMI link.
 
 I think that the drivers are in place, and I don't get any errors when
 trying different playback methods, I just don't get sound from the TV.

I really have no clue. But did you check, that the cable works. Do you
get sound on the TV with another system?

 I have tried/checked:
 
 a. the mixer settings.
 b. various playback methods
   mythtv
   mplayer
   aplay
 c. various distributions (ubuntu 9.10, Fedora 12)
 d. various asound.conf's the web has to offer
 e. removed pulseaudio so that myth-22 would start
 
 After reading a HD audio debug text file, I added debug output to the
 built in kernel modules and got the following information.

Can you attach the diff with what you changed in the modules?

[…]

 When I try to play using mplayer
 
 mplayer -ao alsa:device=hdmi test.vob
 
 I get the following in the log:
 
 
 [  365.432851] hda-intel: azx_pcm_prepare: bufsize=0x1, format=0x11
 [  365.432862] hda_codec_setup_stream: NID=0x2, stream=0x5, channel=0,
 format=0x11
 [  365.438248] HDMI: ELD buf size is 0
 [  365.438284] HDMI: DIP GP[0] buf size is 0
 [  365.438328] HDMI: DIP GP[1] buf size is 0
 [  365.438372] HDMI: DIP GP[2] buf size is 0
 [  365.438415] HDMI: DIP GP[3] buf size is 0
 [  365.438449] HDMI: DIP GP[4] buf size is 0
 [  365.438492] HDMI: DIP GP[5] buf size is 0
 [  365.438536] HDMI: DIP GP[6] buf size is 0
 [  365.438579] HDMI: DIP GP[7] buf size is 0
 [  367.263245] hda_codec_cleanup_stream: NID=0x2
 [  367.263282] hda_codec_cleanup_stream: NID=0x2

I have no clue, but a buffer size of 0 is not that good, isn’t it?

 Here are the details of the system:

[…]

 Output from the ALSA information script:
 r...@tvv3:~# cat /tmp/alsa-info.txt.56DFICnMce
 name=roottype=33description=/tmp/alsa-info.txtexpiry=s=Submit+Postcontent=
 !!
 !!ALSA Information Script v 0.4.58
 !!

[…]

 !!ALSA Version
 !!
 
 Driver version: 1.0.21
 Library version:1.0.20
 Utilities version:  1.0.20

You could try to use the latest releases and even Git head.

 !!Loaded ALSA modules
 !!---

That does not look right. You should have ALSA modules loaded.

[…]


Thanks,

Paul



signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Alsa-user] ALSA dsnoop and RAT (Robust Audio Tool)

2010-03-03 Thread Ушаков Андрей
Hello all!

I got a RAT (Robust Audio Tool) application and try to make works many
instances of it properly. There is a my configuration:
http://www.alsa-project.org/db/?f=e6185615279fc6dec5bbc81336ec6d346b9d0a9d(its
default)

By default I can start two or more instances of RAT, but sound from
microphone is ugly (have a lot of jamming and interference) in this
application (in arecord and aplay sound is perfect). I waste some time and
found a problem. Problem is RAT cannot work properly with dsnoop plugin. I
go to the my card config /usr/share/alsa/cards/HDA-Intel.conf and just
change dsnoop plugin to hw:

from
# default with dmix+softvol  dsnoop
HDA-Intel.pcm.default {
...
type asym
playback.pcm {
...
}
capture.pcm {
type plug
slave.pcm {
type softvol
slave.pcm {
@func concat
strings [ dsnoop: $CARD ]
}
...
}
...
}
hint.device 0
}
to
# default with dmix+softvol  dsnoop
HDA-Intel.pcm.default {
...
type asym
playback.pcm {
...
}
capture.pcm {
type plug
slave.pcm {
type softvol
slave.pcm {
@func concat
strings [ hw: $CARD ]
}
...
}
...
}
hint.device 0
}

Sound from mic become perfect everywhere but I cant start many instances of
RAT any more. Looks like without dsnoop capture device become used monopoly
by first instance of RAT so second instances of application cannot use it.
My question is how to make works many instances of this application (or
share default capture device if you like) without dsnoop. dshare plugin
cannot work with capture so I looking for another way.

Also I try to change default settings for dsnoop many times, it helps only
time for time and not for long but I need stable solution. Sorry for my
English :)
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] ALSA dsnoop and RAT (Robust Audio Tool)

2010-03-03 Thread Paul Menzel
Dear Ушаков,


Am Mittwoch, den 03.03.2010, 13:40 +0300 schrieb Ушаков Андрей:
 I got a RAT (Robust Audio Tool) application and try to make works many
 instances of it properly. There is a my configuration:
 http://www.alsa-project.org/db/?f=e6185615279fc6dec5bbc81336ec6d346b9d0a9d 
 (its default)
 
 By default I can start two or more instances of RAT, but sound from
 microphone is ugly (have a lot of jamming and interference) in this
 application

also if you are just running one RAT instance?

 (in arecord and aplay sound is perfect).

Did you try `arecord` with the dsnoop device?

 I waste some time and found a problem. Problem is RAT cannot work
 properly with dsnoop plugin. I go to the my card
 config /usr/share/alsa/cards/HDA-Intel.conf and just change dsnoop
 plugin to hw:

[…]

 Sound from mic become perfect everywhere but I cant start many
 instances of RAT any more. Looks like without dsnoop capture device
 become used monopoly by first instance of RAT so second instances of
 application cannot use it. My question is how to make works many
 instances of this application (or share default capture device if you
 like) without dsnoop. dshare plugin cannot work with capture so I
 looking for another way.

Did you try to use a sound server like PulseAudio?

 Also I try to change default settings for dsnoop many times, it helps
 only time for time and not for long but I need stable solution.

Could you please rephrase this sentence. I did not get its meaning? What
did you change and what were the differences.


Thanks,

Paul


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] ALSA dsnoop and RAT (Robust Audio Tool)

2010-03-03 Thread Jaroslav Kysela

On Wed, 3 Mar 2010, Ушаков Андрей wrote:


Hello all!

I got a RAT (Robust Audio Tool) application and try to make works many
instances of it properly. There is a my configuration:
http://www.alsa-project.org/db/?f=e6185615279fc6dec5bbc81336ec6d346b9d0a9d
(its default)

By default I can start two or more instances of RAT, but sound from
microphone is ugly (have a lot of jamming and interference) in this
application (in arecord and aplay sound is perfect). I waste some time and
found a problem. Problem is RAT cannot work properly with dsnoop plugin. I
go to the my card config /usr/share/alsa/cards/HDA-Intel.conf and just
change dsnoop plugin to hw:


Have you tried to set variable defaults.pcm.dmix.rate to 16000 (or to 
frequency which RAT uses)? Just add this line to your ~/.asoundrc:


defaults.pcm.dmix.!rate 16000

Jaroslav

-
Jaroslav Kysela pe...@perex.cz
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] CA0110-IBG, ac3 spdif capture and analog playback

2010-03-03 Thread Peter Desjardins
Please note, I am no expert.  But I bought a computer with an SB X-Fi
Xtreme Audio PCIe card.  It seems that the card is currently
unsupported by ALSA and I was not able to find any way to work around
the problem.  Other cards that are named SB X-Fi are supported so it's
a little confusing to search for solutions.

I ended up getting a USB external card and I've been happy since.

Good luck.  If you find a way to make the card work with ALSA, please post.

Peter

On Mon, Mar 1, 2010 at 5:26 AM, UjinT34 u...@aaanet.ru wrote:
 I have Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG and I want to decode
 AC3 stream coming from spdif and output sound to analog out. I use PS3 as the
 source.

 I can't get any sound with this soundcard:
 speaker-test -c 6 -t wav -D hw:2,0

 speaker-test 1.0.22

 Playback device is hw:2,0
 Stream parameters are 48000Hz, S16_LE, 6 channels
 WAV file(s)
 Rate set to 48000Hz (requested 48000Hz)
 Buffer size range from 64 to 5440
 Period size range from 32 to 2720
 Using max buffer size 5440
 Periods = 4
 was set period_size = 1088
 was set buffer_size = 5440
  0 - Front Left
 Write error: -5,Input/output error
 xrun_recovery failed: -5,Input/output error
 Transfer failed: Operation not permitted

 So I use other card for analog output.

 Capturing and playing 2ch linear pcm works well:
 arecord -D hw:2,1 -f dat -t raw -c 2 --disable-resample --disable-channels --
 disable-format --disable-softvol | aplay -D hw:0,0 -f dat

 AC3 fails:
 arecord -D hw:2,1 -f dat -t raw -c 2 --disable-resample --disable-channels --
 disable-format --disable-softvol | mplayer -demuxer rawaudio -rawaudio
 format=0x2000:rate=48000:channels=2 -ac ffac3 -ao alsa:device=hw=0.0 -

 [ac3 @ 0x2d67150]unsupported frame type : skipping frame
 [ac3 @ 0x2d67150]frame CRC mismatch
 [ac3 @ 0x2d67150]frame sync error
 [ac3 @ 0x2d67150]frame CRC mismatch
 [ac3 @ 0x2d67150]frame sync error
 [ac3 @ 0x2d67150]frame CRC mismatch



 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 Alsa-user mailing list
 Alsa-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/alsa-user


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] ALSA dsnoop and RAT (Robust Audio Tool)

2010-03-03 Thread Ушаков Андрей
2010/3/3 Jaroslav Kysela pe...@perex.cz


 Have you tried to set variable defaults.pcm.dmix.rate to 16000 (or to
 frequency which RAT uses)? Just add this line to your ~/.asoundrc:

 defaults.pcm.dmix.!rate 16000

Jaroslav

 -
 Jaroslav Kysela pe...@perex.cz
 Linux Kernel Sound Maintainer
 ALSA Project, Red Hat, Inc.


It helps! I put defaults.pcm.dmix.!rate 16000 in ~/.asoundrc and in RAT i
set rate to 16000 too. Sound become fine. Now I see problem is incorrect
settings. I believe.

BTW this trick is not work for rate 48000 . When I set defaults.pcm.dmix.!rate
48000 in ~/.asoundrc and in RAT 48000 I still have interference what sounds
like random bleeps when I listen what I talk to microphone.



2010/3/3 Paul Menzel paulepan...@users.sourceforge.net


 also if you are just running one RAT instance?


Yes with one instance of RAT problem still have.


 Did you try `arecord` with the dsnoop device?


Actually I test recording with Audacity. When microphone sound via RAT have
interference I record my voice in Audacity and sound in recorded track was
fine.


 Did you try to use a sound server like PulseAudio?


Yes! It great server. But RAT have a ugly memory leak and 100% usage CPU
when use PulseAudio device. I cannot find how to fix it So I just turn off
PulseAudio.


 Could you please rephrase this sentence. I did not get its meaning? What
 did you change and what were the differences.


I was try to edit default settings for dsnoop in
/usr/share/alsa/pcm/dsnoop.conf I add channels 2 and bindings.0 0 to
make a mono and also I change format $FORMAT to format S16_LE. Then I
start RAT and sound from microphone was fine few seconds but later
interference occurs again. After this I was try to set various rate's,
enlarge and decease period_size and periods but with no luck.

Thanks a lot! Looks like my problem almost solved. I continue to learn
settings and try to create right configuration.

Any way we will keep talking about ) I use mailing lists first time.
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Console beep on Lenovo Thinkpad X61S

2010-03-03 Thread Lars Bjørndal
Jaroslav Kysela pe...@perex.cz writes:

 On Wed, 24 Feb 2010, kionez wrote:

 #include Lars Bjørndal.h   // created 22/02/2010 15:39

 What could be done to get console beep back?

 i haven't a fix for that, but i have collect many user report about this
 issue, as seen in a mail sent to this ml [1].

 i don't know where i should report that issue, everywhere i reported it
 nobody seems cares about it... (ml, bugreport and so on..)

 It seems that your codec is not properly initialized. Try hda-analyzer
 or other tool to set directly HDA codec widgets and try to find which
 widget controls the analog beep (assuming you're using beep_mode=0 in
 the latest ALSA driver).

 For digital beep (beep_mode=1 or 2), you need to unmute 'Beep' control
 in the alsamixer or any other mixer application.

'modprobe snd_hda_intel beep_mode=0' gives the following from 'dmesg':

  snd_hda_intel: Unknown parameter `beep_mode'.

Tried the hda-analyzer, but it requires X, which I don't use.

Lars

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Problem with Gigabyte H55M-S2H Motherboard with Intel HDMI sound

2010-03-03 Thread jgmtfia Mr
 I am having a problem with HDMI audio on a Gigabyte H55M-S2H
 motherboard.  No matter what I try, I cannot get sound to the attached
 TV over the HDMI link.

 I think that the drivers are in place, and I don't get any errors when
 trying different playback methods, I just don't get sound from the TV.

 I really have no clue. But did you check, that the cable works. Do you
 get sound on the TV with another system?

I have tried two cables to two different inputs on the TV.  I only
have 1 TV with HDMI inputs.

 After reading a HD audio debug text file, I added debug output to the
 built in kernel modules and got the following information.

 Can you attach the diff with what you changed in the modules?

I did not change anything with the modules themselves, I just checked
off the debug options in the kernel config.

 Driver version: 1.0.21
 Library version:1.0.20
 Utilities version:  1.0.20

 You could try to use the latest releases and even Git head.

Looks like that this the next step...

 !!Loaded ALSA modules

 That does not look right. You should have ALSA modules loaded.

For the record, they are built into the kernel.  I'm not actually using modules.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] OpenAL and ALSA (was: digital output device not detected)

2010-03-03 Thread ekhlas sonu
Hi,
  Sorry about the HTML messages. Some trouble with my email service
provider. I have switched to another email. I hope that will take care of
it.
I have tried configuring .openalrc file in all possible ways using
plughw:0,0 and even dmix. No progress though. What do you suggest.
Thanks.

-- 
Ekhlas
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] association between MIDI client:port and device

2010-03-03 Thread Markus Grabner
Am Montag 01 März 2010 16:19:58 schrieb J. Pauli:
  Hi!
  
  The commands amidi -l and aplaymidi -l report a list of raw MIDI
  ports
  
  and a list of client:port pairs, respectively. Is there any tool to find
  out the association between these (i.e., find out the client:port pair
  for a given raw MIDI port and vice versa)? Matching the names in the
  lists only works as long as there are no two devices of the same name.
  
  Thanks  kind regards,
  
  Markus
 
 Hi,
 
 the association between client-ids and cards is
 card_number=(client_id-global_clients)/clients_per_card (integer
 division). The values for global_clients and clients_per_card are 16 and
 4 or if you want to be 110% sure, have a look at your kernel source tree
 at sound/core/seq/seq_clientmgr.c at line 57 (or something nearby
 depending on your kernel version). But I think raw MIDI ports are
 associated with cards only and not with client:port pairs.
Thanks a lot, this information solves 99% of my problem! The remaining 1% is 
that I would still prefer to look up the mapping somewhere since it seems 
somewhat arbitrary, and if it changes in the future (e.g., to allow for more 
clients per card, like 640kB ought to be enough for everyone), it will break 
software which uses the (hard-coded) current mapping. Any ideas about that?

Thanks  kind regards,
Markus


-- 
Markus Grabner - Computer Graphics and Vision
Graz University of Technology, Inffeldgasse 16a/II, 8010 Graz, Austria
Phone: +43/316/873-5041, Fax: +43/316/873-5050
WWW: http://www.icg.tugraz.at/Members/grabner

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] association between MIDI client:port and device

2010-03-03 Thread J. Pauli
 Am Montag 01 März 2010 16:19:58 schrieb J. Pauli:
 Hi!
 
 The commands amidi -l and aplaymidi -l report a list of raw MIDI
 ports

 and a list of client:port pairs, respectively. Is there any tool to find
 out the association between these (i.e., find out the client:port pair
 for a given raw MIDI port and vice versa)? Matching the names in the
 lists only works as long as there are no two devices of the same name.

 Thanks  kind regards,
 
 Markus

 Hi,

 the association between client-ids and cards is
 card_number=(client_id-global_clients)/clients_per_card (integer
 division). The values for global_clients and clients_per_card are 16 and
 4 or if you want to be 110% sure, have a look at your kernel source tree
 at sound/core/seq/seq_clientmgr.c at line 57 (or something nearby
 depending on your kernel version). But I think raw MIDI ports are
 associated with cards only and not with client:port pairs.
 Thanks a lot, this information solves 99% of my problem! The remaining 1% is 
 that I would still prefer to look up the mapping somewhere since it seems 
 somewhat arbitrary, and if it changes in the future (e.g., to allow for more 
 clients per card, like 640kB ought to be enough for everyone), it will 
 break 
 software which uses the (hard-coded) current mapping. Any ideas about that?
 
   Thanks  kind regards,
   Markus
 
 

Well, have a look at the file sound/core/seq/seq_clientmgr.c in your
kernel source tree. This time at line 170:

int card = (clientid - SNDRV_SEQ_GLOBAL_CLIENTS) /
   SNDRV_SEQ_CLIENTS_PER_CARD;

Alsa is doing exactly this (if I understand the code correctly). So the
solution to your problem would be to write a little script, which
extracts these two values and then computes the card number.

Cheers, Jan

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Alsa-user] Missing input low-pass filter

2010-03-03 Thread Christian Jaeger
Hello

I've got problems with microphone input quality at low sample rates:
it clearly seems to be missing low-pass filtering of the input signal
before sampling. For more details see the Ekiga mailing list thread at
http://mail.gnome.org/archives/ekiga-list/2010-March/msg7.html

Is this just an ALSA configuration issue (bad config, or, could it be
remedied was a workaround with a special configuration?), a driver
issue, or broken hardware that ALSA is never supposed to fix?

Thanks,
Christian.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Intel HDA: HDMI audio on i945GT

2010-03-03 Thread Wil

 Great. Just for my interest to know about tried/tested HTPC setups. Did
 you put the components you used somewhere?

I'm not sure where these things are listed it was an old purchase stuck into
an existing setup, to be honest I didn't think I was ever going to use it
again as I believe the NVidia ION is now a popular choice due to the HD
acceleration etc. The only reason I got this out again is because the
original motherboard has a broken SPDIF socket, it was an AOpen which used a
very flimsy plug to connect SPDIF through a specialised 3.5mm audio socket.
In this instance I'm only using the onboard hardware of the ABIT iL-90MV so
that really covers it all anyway.

 Was it hard to setup? Or did you just follow [1]?

Again because this was an old setup most of the config for the IEC was on
the backend server and some of it did require a lot of googling to find out
at the time, which was probably a couple of years ago now. But mainly it's
just the appropriate string to stuff into the mythtv setup (the original IEC
settings still work). Other than that the default gentoo build process
worked without too many issues I don’t recall doing anything special to
setup sound. 

 I have to say, that I do not if it will work. But I am pretty sure that
 chances are small that it will work right away. What prevents you from
 just trying it?

I've already tried, if you refer to the aplay -l listing there is no HDMI
connector available to use. 

 If it does not work you should also try the latest releases first.

I've given that a go and unfortunately it doesn't work. What I can say is
that I can trick the system into giving me an HDMI connector by patching the
code (patch_intelhdmi.c) but this of course doesn't give me a useable
device. It does however make me believe that the issue lies with the drivers
and not with something I've forgot to do?

The codec is presented as 0x10ec0882 (I believe that is a Realtek 882), the
hardware is listed as follows using lspci.

00:1b.0 Audio device [0403]: Intel Corporation 82801G (ICH7 Family) High
Definition Audio Controller [8086:27d8] (rev 02)

However afaik HDMI audio is sent using the SDVO interface of the Intel
graphics adapter and probably has little to do with the actual sound
hardware at all. It just needs an Alsa interface so other programs can
interface with it in the normal way.

I believe the process is that the video driver will need to detect the
relevant SDVO output firstly as HDMI and further as HDMI audio capable. I
believe that there is also a mechanism for reconfiguring the audio outputs
at this point. I've done some logging and I don't believe that the video
driver even detects that I have an HDMI connection. If I hard coded the
is_hdmi setting and SDVO_AUDIO_ENABLE there is still no change so I believe
whatever is going on is more complex than that. The problem is I'm not
entirely sure who to ask first, starting here seemed like a good idea as
Audio therefore Alsa. However it is possible that until the video driver is
setup to handle the 945GT chipset no progress can be made. Really at this
point I think I need some advice from the developers as working out how the
linking between the video driver and the audio driver operates may be
difficult. Thanks for your assistance and if you have any other ideas to
follow up on I may give them a try.

Will


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user