All of lore.kernel.org
 help / color / mirror / Atom feed
* dsnoop do not works on snd-hda-intel
@ 2007-09-17  5:21 Giovanni Maruzzelli
  2007-09-17  5:32 ` Maxim Levitsky
  0 siblings, 1 reply; 4+ messages in thread
From: Giovanni Maruzzelli @ 2007-09-17  5:21 UTC (permalink / raw)
  To: alsa-devel

Hi all,

I hope someone can give me an hint on this problem, that is stopping me.

On my new laptop (asus f5v) dsnoop do not works, neither I can record
at the same moment with more than one application. The second
application that want to use the dsnoop, fail to open it.

I'm using Ubuntu 7.04 fully updated.

lspci gives:
00:0f.0 Audio device: Silicon Integrated Systems [SiS] Azalia Audio Controller

cat /proc/asound/card0/codec#* | grep Codec gives:
Codec: Realtek ALC660-VD
Codec: Motorola Si3054

I've upgraded driver, lib, and utils to 1.0.14 but it do not helped.

I've put at the end of /etc/modprobe.d/alsa-base
options snd-hda-intel model=3stack-660

I can always reproduce the behavior, for eg:

root@ubuntu-lap:~# arecord -Ddefault ciao.wav &
[1] 6923
root@ubuntu-lap:~# Recording WAVE 'ciao.wav' : Unsigned 8 bit, Rate
8000 Hz, Mono

root@ubuntu-lap:~# arecord -Ddefault ciao2.wav &
[2] 6926
root@ubuntu-lap:~# ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open)
unable to open slave
arecord: main:545: audio open error: Invalid argument

[2]+  Exit 1                  arecord -Ddefault ciao2.wav

I can give any additional info is needed.

Thank you all in advance,

Giovanni Maruzzelli

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

* Re: dsnoop do not works on snd-hda-intel
  2007-09-17  5:21 dsnoop do not works on snd-hda-intel Giovanni Maruzzelli
@ 2007-09-17  5:32 ` Maxim Levitsky
  2007-09-17  5:53   ` Giovanni Maruzzelli
  2007-09-17 12:55   ` Takashi Iwai
  0 siblings, 2 replies; 4+ messages in thread
From: Maxim Levitsky @ 2007-09-17  5:32 UTC (permalink / raw)
  To: alsa-devel; +Cc: Giovanni Maruzzelli

On Monday 17 September 2007 07:21:03 Giovanni Maruzzelli wrote:
> Hi all,
> 
> I hope someone can give me an hint on this problem, that is stopping me.
> 
> On my new laptop (asus f5v) dsnoop do not works, neither I can record
> at the same moment with more than one application. The second
> application that want to use the dsnoop, fail to open it.
> 
> I'm using Ubuntu 7.04 fully updated.
> 
> lspci gives:
> 00:0f.0 Audio device: Silicon Integrated Systems [SiS] Azalia Audio Controller
> 
> cat /proc/asound/card0/codec#* | grep Codec gives:
> Codec: Realtek ALC660-VD
> Codec: Motorola Si3054
> 
> I've upgraded driver, lib, and utils to 1.0.14 but it do not helped.
> 
> I've put at the end of /etc/modprobe.d/alsa-base
> options snd-hda-intel model=3stack-660
> 
> I can always reproduce the behavior, for eg:
> 
> root@ubuntu-lap:~# arecord -Ddefault ciao.wav &
> [1] 6923
> root@ubuntu-lap:~# Recording WAVE 'ciao.wav' : Unsigned 8 bit, Rate
> 8000 Hz, Mono
> 
> root@ubuntu-lap:~# arecord -Ddefault ciao2.wav &
> [2] 6926
> root@ubuntu-lap:~# ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open)
> unable to open slave
> arecord: main:545: audio open error: Invalid argument
> 
> [2]+  Exit 1                  arecord -Ddefault ciao2.wav
> 
> I can give any additional info is needed.
> 
> Thank you all in advance,
> 
> Giovanni Maruzzelli
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 

Hi,

I was also hit by this problem 

To fix this you need to open /usr/share/alsa/pcm/dsnoop.conf
and change 

	@args.SUBDEV {
		type string
		default -1

to

	@args.SUBDEV {
		type string
		default 0

I was told that this is a feature of alsa, not bug, I don't know.

the above will make dsnoop to record from hw:0,0

Also, I bet that your hardware can record more that one stream a time.
So you can also try recording from hw:0,1 or hw:0,2

you can check how many streams can be recording at same time in /proc/asound/Intel/pcm0c/info
look at subdevices_count

Each stream can have its own input source, so check your mixer to make sure that 
each stream records what you want, eg: records from same source, or not,
is enabled or not, and has enough gain.

Best regards,
	Maxim Levisky

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

* Re: dsnoop do not works on snd-hda-intel
  2007-09-17  5:32 ` Maxim Levitsky
@ 2007-09-17  5:53   ` Giovanni Maruzzelli
  2007-09-17 12:55   ` Takashi Iwai
  1 sibling, 0 replies; 4+ messages in thread
From: Giovanni Maruzzelli @ 2007-09-17  5:53 UTC (permalink / raw)
  To: alsa-devel

Maxim,

many many many thanks!

Works perfectly, exactly as you wrote!
(to put the default to -1 is a feature? ;-) )

Many many thanks again,

Giovanni

On 9/17/07, Maxim Levitsky <maximlevitsky@gmail.com> wrote:
> On Monday 17 September 2007 07:21:03 Giovanni Maruzzelli wrote:
> > Hi all,
> >
> > I hope someone can give me an hint on this problem, that is stopping me.
> >
> > On my new laptop (asus f5v) dsnoop do not works, neither I can record
> > at the same moment with more than one application. The second
> > application that want to use the dsnoop, fail to open it.
> >
> > I'm using Ubuntu 7.04 fully updated.
> >
> > lspci gives:
> > 00:0f.0 Audio device: Silicon Integrated Systems [SiS] Azalia Audio Controller
> >
> > cat /proc/asound/card0/codec#* | grep Codec gives:
> > Codec: Realtek ALC660-VD
> > Codec: Motorola Si3054
> >
> > I've upgraded driver, lib, and utils to 1.0.14 but it do not helped.
> >
> > I've put at the end of /etc/modprobe.d/alsa-base
> > options snd-hda-intel model=3stack-660
> >
> > I can always reproduce the behavior, for eg:
> >
> > root@ubuntu-lap:~# arecord -Ddefault ciao.wav &
> > [1] 6923
> > root@ubuntu-lap:~# Recording WAVE 'ciao.wav' : Unsigned 8 bit, Rate
> > 8000 Hz, Mono
> >
> > root@ubuntu-lap:~# arecord -Ddefault ciao2.wav &
> > [2] 6926
> > root@ubuntu-lap:~# ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open)
> > unable to open slave
> > arecord: main:545: audio open error: Invalid argument
> >
> > [2]+  Exit 1                  arecord -Ddefault ciao2.wav
> >
> > I can give any additional info is needed.
> >
> > Thank you all in advance,
> >
> > Giovanni Maruzzelli
> > _______________________________________________
> > Alsa-devel mailing list
> > Alsa-devel@alsa-project.org
> > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> >
>
> Hi,
>
> I was also hit by this problem
>
> To fix this you need to open /usr/share/alsa/pcm/dsnoop.conf
> and change
>
>         @args.SUBDEV {
>                 type string
>                 default -1
>
> to
>
>         @args.SUBDEV {
>                 type string
>                 default 0
>
> I was told that this is a feature of alsa, not bug, I don't know.
>
> the above will make dsnoop to record from hw:0,0
>
> Also, I bet that your hardware can record more that one stream a time.
> So you can also try recording from hw:0,1 or hw:0,2
>
> you can check how many streams can be recording at same time in /proc/asound/Intel/pcm0c/info
> look at subdevices_count
>
> Each stream can have its own input source, so check your mixer to make sure that
> each stream records what you want, eg: records from same source, or not,
> is enabled or not, and has enough gain.
>
> Best regards,
>         Maxim Levisky
>
>

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

* Re: dsnoop do not works on snd-hda-intel
  2007-09-17  5:32 ` Maxim Levitsky
  2007-09-17  5:53   ` Giovanni Maruzzelli
@ 2007-09-17 12:55   ` Takashi Iwai
  1 sibling, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2007-09-17 12:55 UTC (permalink / raw)
  To: Maxim Levitsky; +Cc: alsa-devel, Giovanni Maruzzelli

At Mon, 17 Sep 2007 07:32:46 +0200,
Maxim Levitsky wrote:
> 
> On Monday 17 September 2007 07:21:03 Giovanni Maruzzelli wrote:
> > Hi all,
> > 
> > I hope someone can give me an hint on this problem, that is stopping me.
> > 
> > On my new laptop (asus f5v) dsnoop do not works, neither I can record
> > at the same moment with more than one application. The second
> > application that want to use the dsnoop, fail to open it.
> > 
> > I'm using Ubuntu 7.04 fully updated.
> > 
> > lspci gives:
> > 00:0f.0 Audio device: Silicon Integrated Systems [SiS] Azalia Audio Controller
> > 
> > cat /proc/asound/card0/codec#* | grep Codec gives:
> > Codec: Realtek ALC660-VD
> > Codec: Motorola Si3054
> > 
> > I've upgraded driver, lib, and utils to 1.0.14 but it do not helped.
> > 
> > I've put at the end of /etc/modprobe.d/alsa-base
> > options snd-hda-intel model=3stack-660
> > 
> > I can always reproduce the behavior, for eg:
> > 
> > root@ubuntu-lap:~# arecord -Ddefault ciao.wav &
> > [1] 6923
> > root@ubuntu-lap:~# Recording WAVE 'ciao.wav' : Unsigned 8 bit, Rate
> > 8000 Hz, Mono
> > 
> > root@ubuntu-lap:~# arecord -Ddefault ciao2.wav &
> > [2] 6926
> > root@ubuntu-lap:~# ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open)
> > unable to open slave
> > arecord: main:545: audio open error: Invalid argument
> > 
> > [2]+  Exit 1                  arecord -Ddefault ciao2.wav
> > 
> > I can give any additional info is needed.
> > 
> > Thank you all in advance,
> > 
> > Giovanni Maruzzelli
> > _______________________________________________
> > Alsa-devel mailing list
> > Alsa-devel@alsa-project.org
> > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> > 
> 
> Hi,
> 
> I was also hit by this problem 
> 
> To fix this you need to open /usr/share/alsa/pcm/dsnoop.conf
> and change 
> 
> 	@args.SUBDEV {
> 		type string
> 		default -1
> 
> to
> 
> 	@args.SUBDEV {
> 		type string
> 		default 0
> 
> I was told that this is a feature of alsa, not bug, I don't know.
> 
> the above will make dsnoop to record from hw:0,0
> 
> Also, I bet that your hardware can record more that one stream a time.
> So you can also try recording from hw:0,1 or hw:0,2
> 
> you can check how many streams can be recording at same time in /proc/asound/Intel/pcm0c/info
> look at subdevices_count
> 
> Each stream can have its own input source, so check your mixer to make sure that 
> each stream records what you want, eg: records from same source, or not,
> is enabled or not, and has enough gain.

Ah, actually it should be counted as a bug.
The -1 works well for the devices with a single substream but not for
the devices with multiple substreams.  Should be 0 for dmix/dsnoop.
I'll fix alsa-lib HG tree now.

thanks,


Takashi

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

end of thread, other threads:[~2007-09-17 12:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-17  5:21 dsnoop do not works on snd-hda-intel Giovanni Maruzzelli
2007-09-17  5:32 ` Maxim Levitsky
2007-09-17  5:53   ` Giovanni Maruzzelli
2007-09-17 12:55   ` Takashi Iwai

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.