alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Raymond Yau <superquad.vortex2@gmail.com>
To: ALSA Development Mailing List <alsa-devel@alsa-project.org>
Subject: Re: USB Headset, digital profile problem
Date: Sat, 25 Feb 2012 15:42:53 +0800	[thread overview]
Message-ID: <CAN8cciZjZC2CSigFCWCcXrzssbB_1VLw5wv2ZaEvcLJXuKOi1g@mail.gmail.com> (raw)
In-Reply-To: <4F4768D6.60506@canonical.com>

2012/2/24, David Henningsson <david.henningsson@canonical.com>:
> Hi,
>
> I'm researching I problem I'm seeing here. As you might know PulseAudio
> tries to open devices in different ways, and so it is trying to open my
> USB headset (at card index 1) with the device string "iec958:1", and I
> want this to fail (to make sure this device is not shown in the user
> interface).
>
> So far it seems like a cold boot will cause the issue to disappear (i e,
> the call fails), whereas a suspend/resume can cause it to appear; but
> I'm not completely sure this is the actual trigger.
>
> When the call fails (that's what I want), the PulseAudio log looks like:
>
> D: [pulseaudio] alsa-util.c: Trying iec958:1 with SND_PCM_NO_AUTO_FORMAT ...
> I: [pulseaudio] (alsa-lib)confmisc.c: Unable to find definition
> 'cards.USB-Audio.pcm.iec958.0:CARD=1,AES0=4,AES1=130,AES2=0,AES3=2'
> I: [pulseaudio] (alsa-lib)conf.c: function snd_func_refer returned
> error: Filen eller katalogen finns inte
> I: [pulseaudio] (alsa-lib)conf.c: Evaluate error: Filen eller katalogen
> finns inte
> I: [pulseaudio] (alsa-lib)pcm.c: Unknown PCM iec958:1
> I: [pulseaudio] alsa-util.c: Error opening PCM device iec958:1: Filen
> eller katalogen finns inte
>
> ("Filen eller katalogen finns inte" means "File or directory not found")
>
> When the call succeeds, the PulseAudio log looks like:
>
> D: [pulseaudio] alsa-util.c: Trying iec958:1 with SND_PCM_NO_AUTO_FORMAT ...
> D: [pulseaudio] alsa-util.c: Managed to open iec958:1
>
> I have yet to master the alsa-lib configuration language fully, but at
> least I'm not changing the files between runs. Do you have an idea of
> what the problem could be, or how I can debug it a little deeper?
>
> For reference, all logs are at
> https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/940145
>
> With alsa-infos at:
> https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/940145/+attachment/2778111/+files/alsa-info.txt.xWdouSRV4Z
> https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/940145/+attachment/2778122/+files/alsa-info.txt.oGGls82x6Q
>

seem  iec958 of usb-audio default to device zero



diff --git a/src/conf/cards/USB-Audio.conf b/src/conf/cards/USB-Audio.conf
index 0726c34..5ca380b 100644
--- a/src/conf/cards/USB-Audio.conf
+++ b/src/conf/cards/USB-Audio.conf
@@ -367,7 +367,7 @@ USB-Audio.pcm.iec958.0 {
 					{ @func card_name card $CARD }
 				]
 			}
-			default 0
+			default 1
 		}
 	}
 }

      reply	other threads:[~2012-02-25  7:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-24 10:39 USB Headset, digital profile problem David Henningsson
2012-02-25  7:42 ` Raymond Yau [this message]

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=CAN8cciZjZC2CSigFCWCcXrzssbB_1VLw5wv2ZaEvcLJXuKOi1g@mail.gmail.com \
    --to=superquad.vortex2@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    /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;
as well as URLs for NNTP newsgroup(s).