Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Erik Slagter <erik@slagter.name>
To: alsa-devel@alsa-project.org.,
	alsa-user@lists.sourceforge.net,
	Lennart Poettering <mznyfn@0pointer.de>
Subject: Re: [alsa-devel] Hotplug plugin
Date: Tue, 01 Jan 2008 19:26:13 +0100	[thread overview]
Message-ID: <477A85C5.8010104@slagter.name> (raw)
In-Reply-To: <20071231144225.GB4414@tango.0pointer.de>


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

Lennart Poettering wrote:

>>  - pulseaudio, using hal-detection and "combined" device: doesn't work
>> because a removed device is never reinserted into the combined
>> device;
> 
> Of course it is. Just install PA 0.9.7 or newer.

Nope, really.

The relevant config file sections (using pa 0.9.7):

***

load-module module-hal-detect
load-module module-combine sink_name=all
-> master=alsa_output.pci_8086_27d8_alsa_playback_0
-> slaves=alsa_output.usb_device_8bb_2704_noserial_if0_alsa_playback_0
-> adjust_time=5 resample_method=src-sinc-best-quality

 - or -

load-module module-detect
load-module module-combine sink_name=all master=alsa_output.hw_0
-> slaves=alsa_output.hw_1 adjust_time=10
-> resample_method=src-sinc-best-quality

 - or -

load-module module-alsa-sink device=hw:0 format=s16 rate=44100
-> channels=2 sink_name=alc883 channel_map=left,right
load-module module-alsa-sink device=hw:1 format=s16 rate=44100
-> channels=2 sink_name=jvc channel_map=left,right
load-module module-combine sink_name=all master=alc883 slaves=jvc
-> adjust_time=10 resample_method=src-sinc-best-quality

***

-> is line continuation

These combinations all yield the same result: at startup I have an "all"
sink that combines both devices, and does that pretty well, I must say.
But as soon as the USB device is removed, it is removed from the
combined "all" sink. Then when the USB device is reinserted, it gets
detected (module-hal-detect) or not (module-detect, static config).
Using module-hal-detect the reinserted just sits there, it isn't added
to the combined sink. Using the other methods, it's not even detected
that the USB device is back...

The only solution I can think of, is a udev script that casts some magic
spells towards pulse when the USB device is inserted or removed... But
then I could skip pulse altogether, because mpd has an option to
activate and deactivate selected outputs at runtime, as well.

[-- Attachment #1.2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3315 bytes --]

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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

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

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

  parent reply	other threads:[~2008-01-01 18:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-31 14:18 Hotplug plugin Erik Slagter
2007-12-31 14:42 ` Lennart Poettering
2008-01-01 11:29   ` Erik Slagter
2008-01-01 18:26   ` Erik Slagter [this message]
2008-01-12 23:57     ` Lennart Poettering

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=477A85C5.8010104@slagter.name \
    --to=erik@slagter.name \
    --cc=alsa-devel@alsa-project.org. \
    --cc=alsa-user@lists.sourceforge.net \
    --cc=mznyfn@0pointer.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox