All of lore.kernel.org
 help / color / mirror / Atom feed
* _test_channels() / plug:surround51 / Hardware Mixing And dmix / SW or HW Resampling / Volume Control
@ 2006-09-28  8:54 Daniel Yek
  2006-09-28 13:17 ` Takashi Iwai
  0 siblings, 1 reply; 16+ messages in thread
From: Daniel Yek @ 2006-09-28  8:54 UTC (permalink / raw)
  To: Alsa Developement


[-- Attachment #1.1: Type: text/plain, Size: 2510 bytes --]

Hi,

I have a lot of questions here; please feel free to pick and choose while 
answering them. I hope all questions will eventually be answered.

(A) Test Channels:

I have the following sound card.
Card: Intel ICH7
Chip: Analog Devices AD1981B
(AD1981B is AC '97 2.3 Compliant CODEC, 2 Channels of Audio with SPDIF)

Why the following code reports that the system supports 6 channels audio 
when the "default" device is used?
   channels = 6;
   snd_pcm_hw_params_test_channels( PCMHandle, hwparams, channels);

As a result, many channels were simply lost, not being heard. The same 
happens even on a 5.1 system if "default" device is used.

(B) Plug:

If opening "surround51" device failed, does it make sense for a media 
application to try to open "plug:surround51"?

Would "plug" play 5.1 channels content without losing any channel?

Or would it make more sense for the application to mix the channels into a 
2 channels output (in software)?

(C)  dmix:

Does ALSA use dmix if the sound card supports hardware mixing?

Are there different levels of hardware mixing supports? That is, if a sound 
card has hardware mixing support, does it always has 5.1 channel hardware 
mixing support?

ALSA library version 1.0.9rc2 and later is using dmix by default.
In the case of the sound card supporting hardware mixing, should a 
demanding media application prefers another device name because "default" 
is now configured with dmix?

If an application opens "surround51" device, would it hold the device 
exclusively and preventing other media application from using it?

If so, are they any standard dmix device name for surround51?


(D) Sampling Rate:

What is the best Sampling Rate to be produced by a media application for 
ALSA and ALSA dmix device?

The following page claimed that dmix write directly to the soundcard's DMA 
buffer.
Does that implicitly referring to sound card with hardware mixer?
http://www.alsa-project.org/alsa-doc/doc-php/asoundrc.php

The same page says that ALSA dmix device is default to RATE=48000.
With sound quality in mind, should a media application with resampling 
capability tries to resample to 48000Hz in software or should it let dmix 
or the hardware handle resampling?


(E) Volume Control:

How can I use ALSA's Playback controls volume level interface?
Is it for the application to use or more for alsa-lib?
Refer to http://www.sabi.co.uk/Notes/linuxSoundALSA.html

Are there any per-process Volume Control interface available?

Thanks very much.

-- 
Daniel

[-- Attachment #1.2: Type: text/html, Size: 2908 bytes --]

[-- Attachment #2: Type: text/plain, Size: 348 bytes --]

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

[-- Attachment #3: Type: text/plain, Size: 161 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2006-10-09 15:21 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-28  8:54 _test_channels() / plug:surround51 / Hardware Mixing And dmix / SW or HW Resampling / Volume Control Daniel Yek
2006-09-28 13:17 ` Takashi Iwai
2006-09-28 14:40   ` Lee Revell
2006-09-28 14:46     ` Takashi Iwai
2006-09-28 14:58       ` Takashi Iwai
2006-09-28 15:06       ` Default soundcard (UDEV?) Jaroslav Kysela
2006-09-28 15:15         ` Lee Revell
2006-09-28 15:27         ` Takashi Iwai
2006-09-28 16:00           ` Jaroslav Kysela
2006-09-28 16:30             ` Takashi Iwai
2006-09-28 23:44   ` _test_channels() / plug:surround51 / Hardware Mixing And dmix / SW or HW Resampling / Volume Control Daniel Yek
2006-09-29 11:38     ` Takashi Iwai
2006-10-06  8:52       ` 5.1 surround sound playback XRUN / snd_pcm_writei() didn't unblock immediately / small 114 msec buffer Daniel Yek
2006-10-06 13:09         ` Clemens Ladisch
2006-10-06 20:34           ` Daniel Yek
2006-10-09 15:21             ` Clemens Ladisch

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.