From: Takashi Sakamoto <o-takashi@sakamocchi.jp>
To: Clemens Ladisch <clemens@ladisch.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: [usb-audio] VIA/Audinst HUD-mx2: One of two PCM device is available for playback
Date: Sat, 06 Jul 2013 20:21:09 +0900 [thread overview]
Message-ID: <51D7FDA5.3080006@sakamocchi.jp> (raw)
In-Reply-To: <51D55B01.2090705@ladisch.de>
Thanks Clemens,
> This device has multiple alternate settings for PCM and AC-3 playback.
> The driver creates multiple devices for those because it has no other
> mechanism to distinguish them.
I want to ask further question about this.
Can we realize whether the PCM device for AC-3 stream (hw:0,0) works or
not from the output of lsusb? The sound card has several outputs
(headphone, line, S/PDIF) and I don't know only hw:0,1 connects to all
of them or not.
> Entires like these in ~/.asoundrc or /etc/asound.conf:
>
> defaults.pcm.card 0
> defaults.pcm.device 1
But the device is connected by USB. The card ID differs depending on the
user's system. If the other sound card is identified as "card 0", this
setting is applied to it, not to the target device.
Can we write additional information to identify this sound card in these
line?
> I'd guess the driver could be changed to enumerate alternate settings
> in two steps, first for PCM formats, then for others.
This is a better solution. But I have a little knowledgement about USB
Audio Class and it's implementation to ALSA.
Regards
Takashi Sakamoto
(Jun 04 2013 20:22), Clemens Ladisch wrote:
> Takashi Sakamoto wrote:
>> This sound card has two PCM devices. If the sound card is realized "card
>> 0", there are "hw:0,0" and "hw:0,1". But former seems not to generate
>> sound and latter seems to generate.
>
> This device has multiple alternate settings for PCM and AC-3 playback.
> The driver creates multiple devices for those because it has no other
> mechanism to distinguish them.
>
> The AC-3 setting happens to be listed first in the descriptors.
>
>> 2. are there some ways to use hw:0,1 as a default?
>
> Entires like these in ~/.asoundrc or /etc/asound.conf:
>
> defaults.pcm.card 0
> defaults.pcm.device 1
>
>
> I'd guess the driver could be changed to enumerate alternate settings in
> two steps, first for PCM formats, then for others.
>
>
> Regards,
> Clemens
next prev parent reply other threads:[~2013-07-06 11:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-02 23:45 [usb-audio] VIA/Audinst HUD-mx2: One of two PCM device is available for playback Takashi Sakamoto
2013-07-04 11:22 ` Clemens Ladisch
2013-07-06 11:21 ` Takashi Sakamoto [this message]
2013-07-06 14:30 ` Clemens Ladisch
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=51D7FDA5.3080006@sakamocchi.jp \
--to=o-takashi@sakamocchi.jp \
--cc=alsa-devel@alsa-project.org \
--cc=clemens@ladisch.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 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.