All of lore.kernel.org
 help / color / mirror / Atom feed
* BROKEN: Support for non-standard rates in USB audio driver
@ 2006-12-17  6:53 Matthias Urlichs
  2006-12-18  9:51 ` Clemens Ladisch
  2006-12-18 11:31 ` Luke Ross
  0 siblings, 2 replies; 5+ messages in thread
From: Matthias Urlichs @ 2006-12-17  6:53 UTC (permalink / raw)
  To: alsa-devel

I had to revert this change:

commit a79eee8d3d8a80c37d235e1181d67c3705c7bbfe
Author: Luke Ross <luke@lukeross.name>
Date:   Tue Aug 29 10:46:32 2006 +0200

    [ALSA] Support for non-standard rates in USB audio driver

    There's at least one USB audio chipset out there which supports only one
    non-standard rate (ID 0e6a:0310 supports 46875Hz). There's a few other
    patches for this card which are unsatisfactory because they attempt to
    map this rate to 44.1k leading to sound distortion.
    The patch below uses SNDRV_PCM_RATE_KNOT to properly support the
    non-standard rates where they are available.

    Signed-off-by: Luke Ross <luke@lukeross.name>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Signed-off-by: Jaroslav Kysela <perex@suse.cz>

:100644 100644 087f9b6... 664dd4c... M  sound/usb/usbaudio.c


... because it caused this crash in snd_interval_list:

 EIP:    0060:[<f0a30916>]    Not tainted VLI
 EFLAGS: 00010202   (2.6.18-1.33 #10)
  [<f0a326a4>] snd_pcm_hw_rule_list+0x22/0x29 [snd_pcm]
  [<f0a2e8d2>] snd_pcm_hw_refine+0x260/0x3b5 [snd_pcm]
  [<f0a2ee0d>] snd_pcm_hw_refine_user+0x42/0x6e [snd_pcm]
  [<f0a2efca>] snd_pcm_common_ioctl1+0x191/0xf90 [snd_pcm]
  [<f0a30137>] snd_pcm_capture_ioctl1+0x36e/0x385 [snd_pcm]
  [<f0a30175>] snd_pcm_capture_ioctl+0x27/0x34 [snd_pcm]
  [<b0165236>] do_ioctl+0x22/0x67
  [<b01654d3>] vfs_ioctl+0x258/0x26b
  [<b016552d>] sys_ioctl+0x47/0x62
  [<b0102aad>] sysenter_past_esp+0x56/0x8d

Since I know next to nothing about this code: any ideas where to dig
deeper are appreciated.

-- 
Matthias Urlichs   |   {M:U} IT Design @ m-u-it.de   |  smurf@smurf.noris.de
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
 - -
clairvoyant, n.:
	A person, commonly a woman, who has the power of seeing that
	which is invisible to her patron -- namely, that he is a blockhead.
		-- Ambrose Bierce, "The Devil's Dictionary"


-------------------------------------------------------------------------
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] 5+ messages in thread

* Re: BROKEN: Support for non-standard rates in USB audio driver
  2006-12-17  6:53 BROKEN: Support for non-standard rates in USB audio driver Matthias Urlichs
@ 2006-12-18  9:51 ` Clemens Ladisch
  2006-12-18 11:18   ` Matthias Urlichs
  2006-12-18 11:31 ` Luke Ross
  1 sibling, 1 reply; 5+ messages in thread
From: Clemens Ladisch @ 2006-12-18  9:51 UTC (permalink / raw)
  To: Matthias Urlichs, alsa-devel

Matthias Urlichs wrote:
> I had to revert this change:
> 
>     [ALSA] Support for non-standard rates in USB audio driver
> 
> ... because it caused this crash in snd_interval_list:
> 
>  EIP:    0060:[<f0a30916>]    Not tainted VLI
>  EFLAGS: 00010202   (2.6.18-1.33 #10)
>   [<f0a326a4>] snd_pcm_hw_rule_list+0x22/0x29 [snd_pcm]

What USB device are you using?


Regards,
Clemens

-------------------------------------------------------------------------
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] 5+ messages in thread

* Re: BROKEN: Support for non-standard rates in USB audio driver
  2006-12-18  9:51 ` Clemens Ladisch
@ 2006-12-18 11:18   ` Matthias Urlichs
  0 siblings, 0 replies; 5+ messages in thread
From: Matthias Urlichs @ 2006-12-18 11:18 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: alsa-devel

Hi,

Clemens Ladisch:
> >     [ALSA] Support for non-standard rates in USB audio driver
> > 
> > ... because it caused this crash in snd_interval_list:
> > 
> >  EIP:    0060:[<f0a30916>]    Not tainted VLI
> >  EFLAGS: 00010202   (2.6.18-1.33 #10)
> >   [<f0a326a4>] snd_pcm_hw_rule_list+0x22/0x29 [snd_pcm]
> 
> What USB device are you using?
> 
Something cute, round, and apparently unlabeled,
except for the stylized "G" on it.  ;-)

$ pwd
/sys/devices/pci0000:00/0000:00:13.2/usb6/6-2/6-2.4
$ grep . *
bcdDevice:0100
bConfigurationValue:1
bDeviceClass:00
bDeviceProtocol:00
bDeviceSubClass:00
bmAttributes:80
bMaxPacketSize0:8
bMaxPower:500mA
bNumConfigurations:1
bNumInterfaces: 3
devnum:17
idProduct:0420
idVendor:077d
manufacturer:Griffin Technology
maxchild:0
product:iMic USB audio adapter
serial:042067
speed:12
version: 1.00
$ 

-- 
Matthias Urlichs   |   {M:U} IT Design @ m-u-it.de   |  smurf@smurf.noris.de
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
 - -
Reality is the leading cause of stress among those in touch with it.

-------------------------------------------------------------------------
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] 5+ messages in thread

* Re: BROKEN: Support for non-standard rates in USB audio driver
  2006-12-17  6:53 BROKEN: Support for non-standard rates in USB audio driver Matthias Urlichs
  2006-12-18  9:51 ` Clemens Ladisch
@ 2006-12-18 11:31 ` Luke Ross
  2006-12-18 14:31   ` Matthias Urlichs
  1 sibling, 1 reply; 5+ messages in thread
From: Luke Ross @ 2006-12-18 11:31 UTC (permalink / raw)
  To: Matthias Urlichs; +Cc: alsa-devel

Hi Matthias,

On Sun, Dec 17, 2006 at 06:53:48AM +0000, Matthias Urlichs wrote:
> 
>     [ALSA] Support for non-standard rates in USB audio driver
> 
> ... because it caused this crash in snd_interval_list:
> 
>  EFLAGS: 00010202   (2.6.18-1.33 #10)
>   [<f0a326a4>] snd_pcm_hw_rule_list+0x22/0x29 [snd_pcm]
>   [<f0a2e8d2>] snd_pcm_hw_refine+0x260/0x3b5 [snd_pcm]

Are you running on a 64-bit machine?

I wrote the patch on i386, but since it got committed have tried it on 
an x86_64 kernel and found that it causes this problem on opening the 
sound device. I've been trying to work out why[1], but haven't been to 
figure out whether it's because the code is 64-bit unsafe (I can;t see 
antyhing obvious) or because of some other reason..

Regards,

Luke

[1] http://article.gmane.org/gmane.linux.alsa.devel/40456

-------------------------------------------------------------------------
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] 5+ messages in thread

* Re: BROKEN: Support for non-standard rates in USB audio driver
  2006-12-18 11:31 ` Luke Ross
@ 2006-12-18 14:31   ` Matthias Urlichs
  0 siblings, 0 replies; 5+ messages in thread
From: Matthias Urlichs @ 2006-12-18 14:31 UTC (permalink / raw)
  To: Luke Ross; +Cc: alsa-devel

Hi,

Luke Ross:
> Are you running on a 64-bit machine?

No. Standard x86.

-- 
Matthias Urlichs   |   {M:U} IT Design @ m-u-it.de   |  smurf@smurf.noris.de
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
 - -
You can't evaluate a man by logic alone.
		-- McCoy, "I, Mudd", stardate 4513.3

-------------------------------------------------------------------------
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] 5+ messages in thread

end of thread, other threads:[~2006-12-18 14:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-17  6:53 BROKEN: Support for non-standard rates in USB audio driver Matthias Urlichs
2006-12-18  9:51 ` Clemens Ladisch
2006-12-18 11:18   ` Matthias Urlichs
2006-12-18 11:31 ` Luke Ross
2006-12-18 14:31   ` Matthias Urlichs

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.