All of lore.kernel.org
 help / color / mirror / Atom feed
* different between "default" and "hw:0,0"?
@ 2006-11-28  5:26 \x05
  2006-11-28 16:08 ` Lee Revell
  0 siblings, 1 reply; 4+ messages in thread
From: \x05 @ 2006-11-28  5:26 UTC (permalink / raw)
  To: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 884 bytes --]


Hi all,
I'm new to alsa, and get some confused with "default" device and and the
"hw:0,0" device, do they have any difference?
i write a very simple media player app, using xine-lib, i modify the
xine config file, set the "audio.device.alsa_front_device" value to
"hw:0,0". 
i found that, when the value is "hw:0,0", the program can NOT run more
than one process at same time(I mean only one process can play
sound,others hang),
when the value set to "default", i can run more than one process, and
every app can play sound at same time.
so, it seems that, the "default" and he "hw0,0" are not same, and i
don't know the detail.

can anybody help me? thanks a lot!
Bhpan 




_________________________________________________________________
率先尝试 Windows Live Mail。
http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d


[-- Attachment #2: Type: text/plain, Size: 347 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] 4+ messages in thread

* Re: different between "default" and "hw:0,0"?
  2006-11-28  5:26 different between "default" and "hw:0,0"? \x05
@ 2006-11-28 16:08 ` Lee Revell
  2006-11-28 16:57   ` Oliver Schinagl
  0 siblings, 1 reply; 4+ messages in thread
From: Lee Revell @ 2006-11-28 16:08 UTC (permalink / raw)
  Cc: alsa-devel

On Tue, 2006-11-28 at 13:26 +0800, \x05 wrote:
> Hi all,
> I'm new to alsa, and get some confused with "default" device and and the
> "hw:0,0" device, do they have any difference?
> i write a very simple media player app, using xine-lib, i modify the
> xine config file, set the "audio.device.alsa_front_device" value to
> "hw:0,0". 
> i found that, when the value is "hw:0,0", the program can NOT run more
> than one process at same time(I mean only one process can play
> sound,others hang),
> when the value set to "default", i can run more than one process, and
> every app can play sound at same time.
> so, it seems that, the "default" and he "hw0,0" are not same, and i
> don't know the detail.

Using the hw device bypasses ALSA's software mixing layer and thus only
one app can play at a time.  Apps should always use "default" unless you
know what you are doing.

Lee


-------------------------------------------------------------------------
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

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

* Re: different between "default" and "hw:0,0"?
  2006-11-28 16:08 ` Lee Revell
@ 2006-11-28 16:57   ` Oliver Schinagl
  2006-11-28 17:11     ` Lee Revell
  0 siblings, 1 reply; 4+ messages in thread
From: Oliver Schinagl @ 2006-11-28 16:57 UTC (permalink / raw)
  To: alsa-devel

This would only apply to the PCM/data side of Alsa right? Not the 
control/mixer part, as from what I gatherd from the alsa wiki, 'default' 
is just a name for card 0.

Other than that, how can I still use software mixing, but force an 
application to use hw1 instead of hw0?

Lee Revell wrote:
> On Tue, 2006-11-28 at 13:26 +0800, \x05 wrote:
>   
>> Hi all,
>> I'm new to alsa, and get some confused with "default" device and and the
>> "hw:0,0" device, do they have any difference?
>> i write a very simple media player app, using xine-lib, i modify the
>> xine config file, set the "audio.device.alsa_front_device" value to
>> "hw:0,0". 
>> i found that, when the value is "hw:0,0", the program can NOT run more
>> than one process at same time(I mean only one process can play
>> sound,others hang),
>> when the value set to "default", i can run more than one process, and
>> every app can play sound at same time.
>> so, it seems that, the "default" and he "hw0,0" are not same, and i
>> don't know the detail.
>>     
>
> Using the hw device bypasses ALSA's software mixing layer and thus only
> one app can play at a time.  Apps should always use "default" unless you
> know what you are doing.
>
> Lee
>
>
> -------------------------------------------------------------------------
> 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
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/alsa-devel
>   

-------------------------------------------------------------------------
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

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

* Re: different between "default" and "hw:0,0"?
  2006-11-28 16:57   ` Oliver Schinagl
@ 2006-11-28 17:11     ` Lee Revell
  0 siblings, 0 replies; 4+ messages in thread
From: Lee Revell @ 2006-11-28 17:11 UTC (permalink / raw)
  To: Oliver Schinagl; +Cc: alsa-devel

On Tue, 2006-11-28 at 17:57 +0100, Oliver Schinagl wrote:
> This would only apply to the PCM/data side of Alsa right? Not the 
> control/mixer part, as from what I gatherd from the alsa wiki, 'default' 
> is just a name for card 0.
> 
> Other than that, how can I still use software mixing, but force an 
> application to use hw1 instead of hw0?

No, default just refers to the default PCM, not the default card.  The
full device name is default:X where X is the card number.  The card
number just defaults to 0 if you don't specify it.

To use the default PCM of card 1, your app should use "default:1".

Lee



-------------------------------------------------------------------------
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

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

end of thread, other threads:[~2006-11-28 17:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-28  5:26 different between "default" and "hw:0,0"? \x05
2006-11-28 16:08 ` Lee Revell
2006-11-28 16:57   ` Oliver Schinagl
2006-11-28 17:11     ` Lee Revell

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.