All of lore.kernel.org
 help / color / mirror / Atom feed
* [alsa-plugins-1.17] Regression in JACK plugin
@ 2018-10-23 13:19 tet
  2018-10-23 14:43 ` Jaroslav Kysela
  2018-10-23 15:43 ` tet
  0 siblings, 2 replies; 7+ messages in thread
From: tet @ 2018-10-23 13:19 UTC (permalink / raw)
  To: alsa-devel

Hi, after updating to alsa-plugins-1.17 ALSA throws:
"ALSA lib pcm_plug.c:1273:(_snd_pcm_plug_open) Unknown field playback_ports

My ~/.asourdrc is working in 1.16 and it does not look like the syntax changed for the plugin when looking at the readme.

pcm.jack {
  type plug slave.pcm {
    type jack
    capture_ports {
      0 system:capture_1
      1 system:capture_1
    }
    playback_ports {
      0 system:playback_1
      1 system:playback_2
    }
  }
  hint.description "JACK Audio Kit"
}
pcm.!default {
  @func getenv
    vars [ PCM ]
    default jack
}

Any ideas?

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

* Re: [alsa-plugins-1.17] Regression in JACK plugin
  2018-10-23 13:19 [alsa-plugins-1.17] Regression in JACK plugin tet
@ 2018-10-23 14:43 ` Jaroslav Kysela
  2018-10-23 15:43 ` tet
  1 sibling, 0 replies; 7+ messages in thread
From: Jaroslav Kysela @ 2018-10-23 14:43 UTC (permalink / raw)
  To: tet, alsa-devel

Dne 23.10.2018 v 15:19 tet napsal(a):
> Hi, after updating to alsa-plugins-1.17 ALSA throws:
> "ALSA lib pcm_plug.c:1273:(_snd_pcm_plug_open) Unknown field playback_ports

The line number does not match to the latest sources:

https://github.com/alsa-project/alsa-lib/blob/master/src/pcm/pcm_plug.c#L1286

What is version of your alsa library?

					Jaroslav

> 
> My ~/.asourdrc is working in 1.16 and it does not look like the syntax changed for the plugin when looking at the readme.
> 
> pcm.jack {
>   type plug slave.pcm {
>     type jack
>     capture_ports {
>       0 system:capture_1
>       1 system:capture_1
>     }
>     playback_ports {
>       0 system:playback_1
>       1 system:playback_2
>     }
>   }
>   hint.description "JACK Audio Kit"
> }
> pcm.!default {
>   @func getenv
>     vars [ PCM ]
>     default jack
> }
> 
> Any ideas?
> 
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 


-- 
Jaroslav Kysela <perex@perex.cz>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.

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

* Re: [alsa-plugins-1.17] Regression in JACK plugin
  2018-10-23 13:19 [alsa-plugins-1.17] Regression in JACK plugin tet
  2018-10-23 14:43 ` Jaroslav Kysela
@ 2018-10-23 15:43 ` tet
  2018-10-23 16:09   ` Jaroslav Kysela
  2018-10-23 16:30   ` tet
  1 sibling, 2 replies; 7+ messages in thread
From: tet @ 2018-10-23 15:43 UTC (permalink / raw)
  To: Jaroslav Kysela, alsa-devel

alsa-lib is indeed 1.1.7 and the line number is 1286 in the err, apologies I've had the wrong lib checked out when sending.

I've now ran git bisect and commit 24db7f5 is the earliest buildable alsa-plugins commit with the regression.
To recap I have alsa-lib-1.17 and alsa-plugins-git v1.1.6.r4.24db7f5-1

$ aplay test.wav
ALSA lib pcm_plug.c:1286:(_snd_pcm_plug_open) Unknown field playback_ports
aplay: main:828: audio open error: Invalid argument

Sorry again for the confusion.

October 23, 2018 3:44 PM, "Jaroslav Kysela" <perex@perex.cz> wrote:

> Dne 23.10.2018 v 15:19 tet napsal(a):
> 
>> Hi, after updating to alsa-plugins-1.17 ALSA throws:
>> "ALSA lib pcm_plug.c:1273:(_snd_pcm_plug_open) Unknown field playback_ports
> 
> The line number does not match to the latest sources:
> 
> https://github.com/alsa-project/alsa-lib/blob/master/src/pcm/pcm_plug.c#L1286
> 
> What is version of your alsa library?
> 
> Jaroslav
> 
>> My ~/.asourdrc is working in 1.16 and it does not look like the syntax changed for the plugin when
>> looking at the readme.
>> 
>> pcm.jack {
>> type plug slave.pcm {
>> type jack
>> capture_ports {
>> 0 system:capture_1
>> 1 system:capture_1
>> }
>> playback_ports {
>> 0 system:playback_1
>> 1 system:playback_2
>> }
>> }
>> hint.description "JACK Audio Kit"
>> }
>> pcm.!default {
>> @func getenv
>> vars [ PCM ]
>> default jack
>> }
>> 
>> Any ideas?
>> 
>> _______________________________________________
>> Alsa-devel mailing list
>> Alsa-devel@alsa-project.org
>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 
> --
> Jaroslav Kysela <perex@perex.cz>
> Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

* Re: [alsa-plugins-1.17] Regression in JACK plugin
  2018-10-23 15:43 ` tet
@ 2018-10-23 16:09   ` Jaroslav Kysela
  2018-10-23 16:30   ` tet
  1 sibling, 0 replies; 7+ messages in thread
From: Jaroslav Kysela @ 2018-10-23 16:09 UTC (permalink / raw)
  To: tet, alsa-devel

Dne 23.10.2018 v 17:43 tet napsal(a):
> alsa-lib is indeed 1.1.7 and the line number is 1286 in the err, apologies I've had the wrong lib checked out when sending.
> 
> I've now ran git bisect and commit 24db7f5 is the earliest buildable alsa-plugins commit with the regression.
> To recap I have alsa-lib-1.17 and alsa-plugins-git v1.1.6.r4.24db7f5-1
> 
> $ aplay test.wav
> ALSA lib pcm_plug.c:1286:(_snd_pcm_plug_open) Unknown field playback_ports
> aplay: main:828: audio open error: Invalid argument
> 
> Sorry again for the confusion.

Thanks. Could you give a short test with latest when you revert only
f4746667a4a2490f17c2a82b6f421bc3c9bd6de8 ?

					Jaroslav

> 
> October 23, 2018 3:44 PM, "Jaroslav Kysela" <perex@perex.cz> wrote:
> 
>> Dne 23.10.2018 v 15:19 tet napsal(a):
>>
>>> Hi, after updating to alsa-plugins-1.17 ALSA throws:
>>> "ALSA lib pcm_plug.c:1273:(_snd_pcm_plug_open) Unknown field playback_ports
>>
>> The line number does not match to the latest sources:
>>
>> https://github.com/alsa-project/alsa-lib/blob/master/src/pcm/pcm_plug.c#L1286
>>
>> What is version of your alsa library?
>>
>> Jaroslav
>>
>>> My ~/.asourdrc is working in 1.16 and it does not look like the syntax changed for the plugin when
>>> looking at the readme.
>>>
>>> pcm.jack {
>>> type plug slave.pcm {
>>> type jack
>>> capture_ports {
>>> 0 system:capture_1
>>> 1 system:capture_1
>>> }
>>> playback_ports {
>>> 0 system:playback_1
>>> 1 system:playback_2
>>> }
>>> }
>>> hint.description "JACK Audio Kit"
>>> }
>>> pcm.!default {
>>> @func getenv
>>> vars [ PCM ]
>>> default jack
>>> }
>>>
>>> Any ideas?
>>>
>>> _______________________________________________
>>> Alsa-devel mailing list
>>> Alsa-devel@alsa-project.org
>>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>>
>> --
>> Jaroslav Kysela <perex@perex.cz>
>> Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
>> _______________________________________________
>> Alsa-devel mailing list
>> Alsa-devel@alsa-project.org
>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 


-- 
Jaroslav Kysela <perex@perex.cz>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.

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

* Re: [alsa-plugins-1.17] Regression in JACK plugin
  2018-10-23 15:43 ` tet
  2018-10-23 16:09   ` Jaroslav Kysela
@ 2018-10-23 16:30   ` tet
  2018-10-23 16:42     ` Jaroslav Kysela
  2018-10-23 17:04     ` tet
  1 sibling, 2 replies; 7+ messages in thread
From: tet @ 2018-10-23 16:30 UTC (permalink / raw)
  To: Jaroslav Kysela, alsa-devel

Sadly, still getting Unknown field playback_ports with f47466 reverted on alsa-plugins.git master.

October 23, 2018 5:09 PM, "Jaroslav Kysela" <perex@perex.cz> wrote:

> Dne 23.10.2018 v 17:43 tet napsal(a):
> 
>> alsa-lib is indeed 1.1.7 and the line number is 1286 in the err, apologies I've had the wrong lib
>> checked out when sending.
>> 
>> I've now ran git bisect and commit 24db7f5 is the earliest buildable alsa-plugins commit with the
>> regression.
>> To recap I have alsa-lib-1.17 and alsa-plugins-git v1.1.6.r4.24db7f5-1
>> 
>> $ aplay test.wav
>> ALSA lib pcm_plug.c:1286:(_snd_pcm_plug_open) Unknown field playback_ports
>> aplay: main:828: audio open error: Invalid argument
>> 
>> Sorry again for the confusion.
> 
> Thanks. Could you give a short test with latest when you revert only
> f4746667a4a2490f17c2a82b6f421bc3c9bd6de8 ?
> 
> Jaroslav
> 
>> October 23, 2018 3:44 PM, "Jaroslav Kysela" <perex@perex.cz> wrote:
>> 
>>> Dne 23.10.2018 v 15:19 tet napsal(a):
>> 
>> Hi, after updating to alsa-plugins-1.17 ALSA throws:
>> "ALSA lib pcm_plug.c:1273:(_snd_pcm_plug_open) Unknown field playback_ports
>>> The line number does not match to the latest sources:
>>> 
>>> https://github.com/alsa-project/alsa-lib/blob/master/src/pcm/pcm_plug.c#L1286
>>> 
>>> What is version of your alsa library?
>>> 
>>> Jaroslav
>> 
>> My ~/.asourdrc is working in 1.16 and it does not look like the syntax changed for the plugin when
>> looking at the readme.
>> 
>> pcm.jack {
>> type plug slave.pcm {
>> type jack
>> capture_ports {
>> 0 system:capture_1
>> 1 system:capture_1
>> }
>> playback_ports {
>> 0 system:playback_1
>> 1 system:playback_2
>> }
>> }
>> hint.description "JACK Audio Kit"
>> }
>> pcm.!default {
>> @func getenv
>> vars [ PCM ]
>> default jack
>> }
>> 
>> Any ideas?
>> 
>> _______________________________________________
>> Alsa-devel mailing list
>> Alsa-devel@alsa-project.org
>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>>> --
>>> Jaroslav Kysela <perex@perex.cz>
>>> Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
>>> _______________________________________________
>>> Alsa-devel mailing list
>>> Alsa-devel@alsa-project.org
>>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 
> --
> Jaroslav Kysela <perex@perex.cz>
> Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

* Re: [alsa-plugins-1.17] Regression in JACK plugin
  2018-10-23 16:30   ` tet
@ 2018-10-23 16:42     ` Jaroslav Kysela
  2018-10-23 17:04     ` tet
  1 sibling, 0 replies; 7+ messages in thread
From: Jaroslav Kysela @ 2018-10-23 16:42 UTC (permalink / raw)
  To: tet, alsa-devel

Dne 23.10.2018 v 18:30 tet napsal(a):
> Sadly, still getting Unknown field playback_ports with f47466 reverted on alsa-plugins.git master.

I see it now:

There was added 50-jack.conf file in the newer plugins, so I think that
your config just override this global config (but it only overrides the
type, the rest is kept). Try to put only these lines to your ~/.asoundrc:

-----
pcm.!default {
  @func getenv
  vars [ PCM ]
  default "plug:jack"
}
-----

					Jaroslav

> 
> October 23, 2018 5:09 PM, "Jaroslav Kysela" <perex@perex.cz> wrote:
> 
>> Dne 23.10.2018 v 17:43 tet napsal(a):
>>
>>> alsa-lib is indeed 1.1.7 and the line number is 1286 in the err, apologies I've had the wrong lib
>>> checked out when sending.
>>>
>>> I've now ran git bisect and commit 24db7f5 is the earliest buildable alsa-plugins commit with the
>>> regression.
>>> To recap I have alsa-lib-1.17 and alsa-plugins-git v1.1.6.r4.24db7f5-1
>>>
>>> $ aplay test.wav
>>> ALSA lib pcm_plug.c:1286:(_snd_pcm_plug_open) Unknown field playback_ports
>>> aplay: main:828: audio open error: Invalid argument
>>>
>>> Sorry again for the confusion.
>>
>> Thanks. Could you give a short test with latest when you revert only
>> f4746667a4a2490f17c2a82b6f421bc3c9bd6de8 ?
>>
>> Jaroslav
>>
>>> October 23, 2018 3:44 PM, "Jaroslav Kysela" <perex@perex.cz> wrote:
>>>
>>>> Dne 23.10.2018 v 15:19 tet napsal(a):
>>>
>>> Hi, after updating to alsa-plugins-1.17 ALSA throws:
>>> "ALSA lib pcm_plug.c:1273:(_snd_pcm_plug_open) Unknown field playback_ports
>>>> The line number does not match to the latest sources:
>>>>
>>>> https://github.com/alsa-project/alsa-lib/blob/master/src/pcm/pcm_plug.c#L1286
>>>>
>>>> What is version of your alsa library?
>>>>
>>>> Jaroslav
>>>
>>> My ~/.asourdrc is working in 1.16 and it does not look like the syntax changed for the plugin when
>>> looking at the readme.
>>>
>>> pcm.jack {
>>> type plug slave.pcm {
>>> type jack
>>> capture_ports {
>>> 0 system:capture_1
>>> 1 system:capture_1
>>> }
>>> playback_ports {
>>> 0 system:playback_1
>>> 1 system:playback_2
>>> }
>>> }
>>> hint.description "JACK Audio Kit"
>>> }
>>> pcm.!default {
>>> @func getenv
>>> vars [ PCM ]
>>> default jack
>>> }
>>>
>>> Any ideas?
>>>
>>> _______________________________________________
>>> Alsa-devel mailing list
>>> Alsa-devel@alsa-project.org
>>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>>>> --
>>>> Jaroslav Kysela <perex@perex.cz>
>>>> Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
>>>> _______________________________________________
>>>> Alsa-devel mailing list
>>>> Alsa-devel@alsa-project.org
>>>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>>
>> --
>> Jaroslav Kysela <perex@perex.cz>
>> Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
>> _______________________________________________
>> Alsa-devel mailing list
>> Alsa-devel@alsa-project.org
>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 


-- 
Jaroslav Kysela <perex@perex.cz>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.

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

* Re: [alsa-plugins-1.17] Regression in JACK plugin
  2018-10-23 16:30   ` tet
  2018-10-23 16:42     ` Jaroslav Kysela
@ 2018-10-23 17:04     ` tet
  1 sibling, 0 replies; 7+ messages in thread
From: tet @ 2018-10-23 17:04 UTC (permalink / raw)
  To: Jaroslav Kysela, alsa-devel

You're right, it was the new 50-jack.conf bundled in new version.
It just happened my local pcm was also named "jack"
which indeed conflicts with system 50-jack.conf and had to be updated.

Renaming local pcm statements to avoid conflicts with system ones solved it.
Cheers!

Tet.

October 23, 2018 5:43 PM, "Jaroslav Kysela" <perex@perex.cz> wrote:

> Dne 23.10.2018 v 18:30 tet napsal(a):
> 
>> Sadly, still getting Unknown field playback_ports with f47466 reverted on alsa-plugins.git master.
> 
> I see it now:
> 
> There was added 50-jack.conf file in the newer plugins, so I think that
> your config just override this global config (but it only overrides the
> type, the rest is kept). Try to put only these lines to your ~/.asoundrc:
> 
> -----
> pcm.!default {
> @func getenv
> vars [ PCM ]
> default "plug:jack"
> }
> -----
> 
> Jaroslav
> 
>> October 23, 2018 5:09 PM, "Jaroslav Kysela" <perex@perex.cz> wrote:
>> 
>>> Dne 23.10.2018 v 17:43 tet napsal(a):
>> 
>> alsa-lib is indeed 1.1.7 and the line number is 1286 in the err, apologies I've had the wrong lib
>> checked out when sending.
>> 
>> I've now ran git bisect and commit 24db7f5 is the earliest buildable alsa-plugins commit with the
>> regression.
>> To recap I have alsa-lib-1.17 and alsa-plugins-git v1.1.6.r4.24db7f5-1
>> 
>> $ aplay test.wav
>> ALSA lib pcm_plug.c:1286:(_snd_pcm_plug_open) Unknown field playback_ports
>> aplay: main:828: audio open error: Invalid argument
>> 
>> Sorry again for the confusion.
>>> Thanks. Could you give a short test with latest when you revert only
>>> f4746667a4a2490f17c2a82b6f421bc3c9bd6de8 ?
>>> 
>>> Jaroslav
>> 
>> October 23, 2018 3:44 PM, "Jaroslav Kysela" <perex@perex.cz> wrote:
>> 
>> Dne 23.10.2018 v 15:19 tet napsal(a):
>> 
>> Hi, after updating to alsa-plugins-1.17 ALSA throws:
>> "ALSA lib pcm_plug.c:1273:(_snd_pcm_plug_open) Unknown field playback_ports
>> The line number does not match to the latest sources:
>> 
>> https://github.com/alsa-project/alsa-lib/blob/master/src/pcm/pcm_plug.c#L1286
>> 
>> What is version of your alsa library?
>> 
>> Jaroslav
>> 
>> My ~/.asourdrc is working in 1.16 and it does not look like the syntax changed for the plugin when
>> looking at the readme.
>> 
>> pcm.jack {
>> type plug slave.pcm {
>> type jack
>> capture_ports {
>> 0 system:capture_1
>> 1 system:capture_1
>> }
>> playback_ports {
>> 0 system:playback_1
>> 1 system:playback_2
>> }
>> }
>> hint.description "JACK Audio Kit"
>> }
>> pcm.!default {
>> @func getenv
>> vars [ PCM ]
>> default jack
>> }
>> 
>> Any ideas?
>> 
>> _______________________________________________
>> Alsa-devel mailing list
>> Alsa-devel@alsa-project.org
>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>> --
>> Jaroslav Kysela <perex@perex.cz>
>> Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
>> _______________________________________________
>> Alsa-devel mailing list
>> Alsa-devel@alsa-project.org
>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>>> --
>>> Jaroslav Kysela <perex@perex.cz>
>>> Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
>>> _______________________________________________
>>> Alsa-devel mailing list
>>> Alsa-devel@alsa-project.org
>>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 
> --
> Jaroslav Kysela <perex@perex.cz>
> Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

end of thread, other threads:[~2018-10-23 17:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-23 13:19 [alsa-plugins-1.17] Regression in JACK plugin tet
2018-10-23 14:43 ` Jaroslav Kysela
2018-10-23 15:43 ` tet
2018-10-23 16:09   ` Jaroslav Kysela
2018-10-23 16:30   ` tet
2018-10-23 16:42     ` Jaroslav Kysela
2018-10-23 17:04     ` tet

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.