All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] USB-Audio: Disable "Logitech USB Headset" iec958 device
@ 2012-03-07 10:23 David Henningsson
  2012-03-08  0:57 ` Raymond Yau
  2012-03-08 15:47 ` Clemens Ladisch
  0 siblings, 2 replies; 5+ messages in thread
From: David Henningsson @ 2012-03-07 10:23 UTC (permalink / raw)
  To: alsa-devel; +Cc: clemens, 940145, David Henningsson

Because Logitech USB Headsets do not have any digital devices,
prevent them from being opened. This simplifies probing the
device in PulseAudio.

BugLink: https://bugs.launchpad.net/bugs/940145
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
---

I did not get any responses to my "digital profile" mail sent to alsa-devel
Feb 24th, but it seems the easiest workaround is the below patch for alsa-lib.
Alsa-info at:
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/940145/+attachment/2778111/+files/alsa-info.txt.xWdouSRV4Z

 src/conf/cards/USB-Audio.conf |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/conf/cards/USB-Audio.conf b/src/conf/cards/USB-Audio.conf
index 0726c34..f488284 100644
--- a/src/conf/cards/USB-Audio.conf
+++ b/src/conf/cards/USB-Audio.conf
@@ -36,6 +36,8 @@ USB-Audio.pcm.surround40_type {
 # number for the iec958 device can be changed here.
 USB-Audio.pcm.iec958_device {
 	# "NoiseBlaster 3000" 42
+	# Make sure we can't open this device digitally, because it does not exist
+	"Logitech USB Headset" 999 
 }
 
 
-- 
1.7.9

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

* Re: [PATCH] USB-Audio: Disable "Logitech USB Headset" iec958 device
  2012-03-07 10:23 [PATCH] USB-Audio: Disable "Logitech USB Headset" iec958 device David Henningsson
@ 2012-03-08  0:57 ` Raymond Yau
  2012-03-08  5:35   ` David Henningsson
  2012-03-08 15:47 ` Clemens Ladisch
  1 sibling, 1 reply; 5+ messages in thread
From: Raymond Yau @ 2012-03-08  0:57 UTC (permalink / raw)
  To: clemens; +Cc: alsa-devel

2012/3/7, David Henningsson <david.henningsson@canonical.com>:
> Because Logitech USB Headsets do not have any digital devices,
> prevent them from being opened. This simplifies probing the
> device in PulseAudio.
>
> BugLink: https://bugs.launchpad.net/bugs/940145
> Signed-off-by: David Henningsson <david.henningsson@canonical.com>
> ---
>
> I did not get any responses to my "digital profile" mail sent to alsa-devel
> Feb 24th, but it seems the easiest workaround is the below patch for
> alsa-lib.
> Alsa-info at:
> https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/940145/+attachment/2778111/+files/alsa-info.txt.xWdouSRV4Z
>
>  src/conf/cards/USB-Audio.conf |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/src/conf/cards/USB-Audio.conf b/src/conf/cards/USB-Audio.conf
> index 0726c34..f488284 100644
> --- a/src/conf/cards/USB-Audio.conf
> +++ b/src/conf/cards/USB-Audio.conf
> @@ -36,6 +36,8 @@ USB-Audio.pcm.surround40_type {
>  # number for the iec958 device can be changed here.
>  USB-Audio.pcm.iec958_device {
>  	# "NoiseBlaster 3000" 42
> +	# Make sure we can't open this device digitally, because it does not exist
> +	"Logitech USB Headset" 999
>  }
>
>

your patch does not fix the "IEC958" at device 0 for "Logitech Web Camera"

arecord -L

iec958:CARD=U0x46d0x992,DEV=0
    USB Device 0x46d:0x992, USB Audio
    IEC958 (S/PDIF) Digital Audio Output

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

* Re: [PATCH] USB-Audio: Disable "Logitech USB Headset" iec958 device
  2012-03-08  0:57 ` Raymond Yau
@ 2012-03-08  5:35   ` David Henningsson
  2012-03-08 15:06     ` Takashi Iwai
  0 siblings, 1 reply; 5+ messages in thread
From: David Henningsson @ 2012-03-08  5:35 UTC (permalink / raw)
  To: Raymond Yau; +Cc: alsa-devel, Clemens Ladisch

On 03/08/2012 01:57 AM, Raymond Yau wrote:
> 2012/3/7, David Henningsson<david.henningsson@canonical.com>:
>> Because Logitech USB Headsets do not have any digital devices,
>> prevent them from being opened. This simplifies probing the
>> device in PulseAudio.
>>
>> BugLink: https://bugs.launchpad.net/bugs/940145
>> Signed-off-by: David Henningsson<david.henningsson@canonical.com>
>> ---
>>
>> I did not get any responses to my "digital profile" mail sent to alsa-devel
>> Feb 24th, but it seems the easiest workaround is the below patch for
>> alsa-lib.
>> Alsa-info at:
>> https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/940145/+attachment/2778111/+files/alsa-info.txt.xWdouSRV4Z
>>
>>   src/conf/cards/USB-Audio.conf |    2 ++
>>   1 files changed, 2 insertions(+), 0 deletions(-)
>>
>> diff --git a/src/conf/cards/USB-Audio.conf b/src/conf/cards/USB-Audio.conf
>> index 0726c34..f488284 100644
>> --- a/src/conf/cards/USB-Audio.conf
>> +++ b/src/conf/cards/USB-Audio.conf
>> @@ -36,6 +36,8 @@ USB-Audio.pcm.surround40_type {
>>   # number for the iec958 device can be changed here.
>>   USB-Audio.pcm.iec958_device {
>>   	# "NoiseBlaster 3000" 42
>> +	# Make sure we can't open this device digitally, because it does not exist
>> +	"Logitech USB Headset" 999
>>   }
>>
>>
>
> your patch does not fix the "IEC958" at device 0 for "Logitech Web Camera"

Sure, we can add "Logitech Web Camera" there as well - I'm more 
interested in knowing from Takashi/Clemens/Jaroslav/etc if it is the 
right way to solve the problem?

> arecord -L
>
> iec958:CARD=U0x46d0x992,DEV=0
>      USB Device 0x46d:0x992, USB Audio
>      IEC958 (S/PDIF) Digital Audio Output

I believe the name to use is what shows up in "/proc/asound/cards" 
(first line after the dash).

-- 
David Henningsson, Canonical Ltd.
http://launchpad.net/~diwic

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

* Re: [PATCH] USB-Audio: Disable "Logitech USB Headset" iec958 device
  2012-03-08  5:35   ` David Henningsson
@ 2012-03-08 15:06     ` Takashi Iwai
  0 siblings, 0 replies; 5+ messages in thread
From: Takashi Iwai @ 2012-03-08 15:06 UTC (permalink / raw)
  To: David Henningsson; +Cc: Raymond Yau, alsa-devel, Clemens Ladisch

At Thu, 08 Mar 2012 06:35:42 +0100,
David Henningsson wrote:
> 
> On 03/08/2012 01:57 AM, Raymond Yau wrote:
> > 2012/3/7, David Henningsson<david.henningsson@canonical.com>:
> >> Because Logitech USB Headsets do not have any digital devices,
> >> prevent them from being opened. This simplifies probing the
> >> device in PulseAudio.
> >>
> >> BugLink: https://bugs.launchpad.net/bugs/940145
> >> Signed-off-by: David Henningsson<david.henningsson@canonical.com>
> >> ---
> >>
> >> I did not get any responses to my "digital profile" mail sent to alsa-devel
> >> Feb 24th, but it seems the easiest workaround is the below patch for
> >> alsa-lib.
> >> Alsa-info at:
> >> https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/940145/+attachment/2778111/+files/alsa-info.txt.xWdouSRV4Z
> >>
> >>   src/conf/cards/USB-Audio.conf |    2 ++
> >>   1 files changed, 2 insertions(+), 0 deletions(-)
> >>
> >> diff --git a/src/conf/cards/USB-Audio.conf b/src/conf/cards/USB-Audio.conf
> >> index 0726c34..f488284 100644
> >> --- a/src/conf/cards/USB-Audio.conf
> >> +++ b/src/conf/cards/USB-Audio.conf
> >> @@ -36,6 +36,8 @@ USB-Audio.pcm.surround40_type {
> >>   # number for the iec958 device can be changed here.
> >>   USB-Audio.pcm.iec958_device {
> >>   	# "NoiseBlaster 3000" 42
> >> +	# Make sure we can't open this device digitally, because it does not exist
> >> +	"Logitech USB Headset" 999
> >>   }
> >>
> >>
> >
> > your patch does not fix the "IEC958" at device 0 for "Logitech Web Camera"
> 
> Sure, we can add "Logitech Web Camera" there as well - I'm more 
> interested in knowing from Takashi/Clemens/Jaroslav/etc if it is the 
> right way to solve the problem?

Well, it's not so sexy but would be practically working.
I find it's OK to merge unless Clemens and others say NAK.


Takashi

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

* Re: [PATCH] USB-Audio: Disable "Logitech USB Headset" iec958 device
  2012-03-07 10:23 [PATCH] USB-Audio: Disable "Logitech USB Headset" iec958 device David Henningsson
  2012-03-08  0:57 ` Raymond Yau
@ 2012-03-08 15:47 ` Clemens Ladisch
  1 sibling, 0 replies; 5+ messages in thread
From: Clemens Ladisch @ 2012-03-08 15:47 UTC (permalink / raw)
  To: David Henningsson; +Cc: clemens, alsa-devel, 940145

David Henningsson wrote:
> Because Logitech USB Headsets do not have any digital devices,
> prevent them from being opened. This simplifies probing the
> device in PulseAudio.
>
> --- a/src/conf/cards/USB-Audio.conf
> +++ b/src/conf/cards/USB-Audio.conf
> @@ -36,6 +36,8 @@ USB-Audio.pcm.surround40_type {
>  # number for the iec958 device can be changed here.
>  USB-Audio.pcm.iec958_device {
>  	# "NoiseBlaster 3000" 42
> +	# Make sure we can't open this device digitally, because it does not exist
> +	"Logitech USB Headset" 999
>  }

This introduces a blacklist of devices that do not have digital outputs.
There are lot of other such devices that need such entries to make PA
work better, but at the moment, the only alternative would be a whitelist
of devices with digital outputs, which would have exactly the same
maintenance problems.

As long as there is no mechanism for .conf files to find out whether
a USB device actually has digital outputs, there's no better way to
solve the problem.


Regards,
Clemens

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

end of thread, other threads:[~2012-03-08 15:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-07 10:23 [PATCH] USB-Audio: Disable "Logitech USB Headset" iec958 device David Henningsson
2012-03-08  0:57 ` Raymond Yau
2012-03-08  5:35   ` David Henningsson
2012-03-08 15:06     ` Takashi Iwai
2012-03-08 15:47 ` 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.