Skip to contentSkip to conversation

ucm: docs: Add JackName value

PATCH Applied Curtis Malainey 4 participants 35 messages Nov 7, 2019 – Dec 3, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/11 ucm: docs: Add JackName value

This field represents the input device name for a jack detection line

---
 include/use-case.h | 2 ++
 1 file changed, 2 insertions(+)
include/use-case.h +2 -0
index 5cb4f31c..2051bd40 100644
@@ -320,6 +320,8 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
  *        trick upper software layers to e.g. automatically mute speakers when
  *        headphones are plugged in, but that's application policy
  *        configuration that doesn't belong to UCM configuration files.
+ *   - JackName
+ *      - Input name is the input device name for the jack
  */
 int snd_use_case_get(snd_use_case_mgr_t *uc_mgr,
                      const char *identifier,
Signature · 6 lines
2.24.0.432.g9d3f5f5b63-goog

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#1 lore raw

PATCH 2/11 ucm: docs: Add JackType value

Identifies the type of jack and how it should be accessed

---
 include/use-case.h | 3 +++
 1 file changed, 3 insertions(+)
include/use-case.h +3 -0
index 2051bd40..3208cc30 100644
@@ -322,6 +322,9 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
  *        configuration that doesn't belong to UCM configuration files.
  *   - JackName
  *      - Input name is the input device name for the jack
+ *   - JackType
+ *      - Specifies whether the jack is accessed via hctl or gpio and therefore
+ *        only carries the possible values of "gpio" or "hctl"
  */
 int snd_use_case_get(snd_use_case_mgr_t *uc_mgr,
                      const char *identifier,
Signature · 6 lines
2.24.0.432.g9d3f5f5b63-goog

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#2 lore raw

Re: [alsa-devel] [PATCH 02/11] ucm: docs: Add JackType value

Dne 07. 11. 19 v 2:57 Curtis Malainey napsal(a):

Quoted 13 lines

Identifies the type of jack and how it should be accessed

---
  include/use-case.h | 3 +++
  1 file changed, 3 insertions(+)
include/use-case.h +0 -0
index 2051bd40..3208cc30 100644

include/use-case.h int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr, · line 330

Quoted 9 lines
include/use-case.h +3 -0
@@ -322,6 +322,9 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
   *        configuration that doesn't belong to UCM configuration files.
   *   - JackName
   *      - Input name is the input device name for the jack
+ *   - JackType
+ *      - Specifies whether the jack is accessed via hctl or gpio and therefore
+ *        only carries the possible values of "gpio" or "hctl"
   */
  int snd_use_case_get(snd_use_case_mgr_t *uc_mgr,
                       const char *identifier,

What is meant with the "gpio" type? The standard input device interface? I believe it should be "inputdev" and "ctl" (hctl is just interface on top of ctl and the application can access the jack through snd_ctl functions, too.

Jaroslav

Signature · 6 lines
Jaroslav Kysela <[email protected]>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#3 lore raw

Re: [alsa-devel] [PATCH 02/11] ucm: docs: Add JackType value

Dne 11. 11. 19 v 14:39 Jaroslav Kysela napsal(a):

Quoted 19 lines

Dne 07. 11. 19 v 2:57 Curtis Malainey napsal(a):

Quoted 18 lines

Identifies the type of jack and how it should be accessed

---
   include/use-case.h | 3 +++
   1 file changed, 3 insertions(+)
include/use-case.h +3 -0
index 2051bd40..3208cc30 100644
@@ -322,6 +322,9 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
    *        configuration that doesn't belong to UCM configuration files.
    *   - JackName
    *      - Input name is the input device name for the jack
+ *   - JackType
+ *      - Specifies whether the jack is accessed via hctl or gpio and therefore
+ *        only carries the possible values of "gpio" or "hctl"
Quoted 8 lines

include/use-case.h int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr, · line 330

Quoted 4 lines
include/use-case.h +0 -0
    */
   int snd_use_case_get(snd_use_case_mgr_t *uc_mgr,
                        const char *identifier,

What is meant with the "gpio" type? The standard input device interface? I believe it should be "inputdev" and "ctl" (hctl is just interface on top of ctl and the application can access the jack through snd_ctl functions, too.

I see (when I was cleaning this extra Chrome stuff in the ucm profiles) that it's related to the gpio (general purpose i/o pin interface) in the linux kernel. The JackSwitch is probably also related and defines the pin number where the application should watch for the jack state. In this case, it would be probably more nice to follow the JackControl and JackDev and define the pin number through JackGPIO or something like that. We will cover all three posibilities: ALSA control interface, Input interface, GPIO interface .

Jaroslav

Signature · 6 lines
Jaroslav Kysela <[email protected]>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#4 lore raw

Re: [alsa-devel] [PATCH 02/11] ucm: docs: Add JackType value

Quoted 38 lines · Jaroslav Kysela

Dne 11. 11. 19 v 14:39 Jaroslav Kysela napsal(a):

Quoted 19 lines

Dne 07. 11. 19 v 2:57 Curtis Malainey napsal(a):

Quoted 18 lines

Identifies the type of jack and how it should be accessed

---
   include/use-case.h | 3 +++
   1 file changed, 3 insertions(+)
include/use-case.h +3 -0
index 2051bd40..3208cc30 100644
@@ -322,6 +322,9 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
    *        configuration that doesn't belong to UCM configuration files.
    *   - JackName
    *      - Input name is the input device name for the jack
+ *   - JackType
+ *      - Specifies whether the jack is accessed via hctl or gpio and therefore
+ *        only carries the possible values of "gpio" or "hctl"
Quoted 8 lines

include/use-case.h int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr, · line 330

Quoted 4 lines
include/use-case.h +0 -0
    */
   int snd_use_case_get(snd_use_case_mgr_t *uc_mgr,
                        const char *identifier,

What is meant with the "gpio" type? The standard input device interface? I believe it should be "inputdev" and "ctl" (hctl is just interface on top of ctl and the application can access the jack through snd_ctl functions, too.

I see (when I was cleaning this extra Chrome stuff in the ucm profiles) that it's related to the gpio (general purpose i/o pin interface) in the linux kernel. The JackSwitch is probably also related and defines the pin number where the application should watch for the jack state. In this case, it would be probably more nice to follow the JackControl and JackDev and define the pin number through JackGPIO or something like that. We will cover all three
posibilities: ALSA control interface, Input interface, GPIO interface .

Quoted 1 line

Jaroslav

Initially that was our thoughts too but then we realized that in the event of a new theoretical input subsystem "foo" that can be used for jack detect then we would need to create another field for that as well. This reduces the need for having a field for every theoretical subsystem in the future and only then requires a new value.

Quoted 4 lines

--
Jaroslav Kysela <[email protected]>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#5 lore raw

Re: [alsa-devel] [PATCH 02/11] ucm: docs: Add JackType value

Dne 03. 12. 19 v 4:22 Curtis Malainey napsal(a):

Quoted 39 lines · Jaroslav Kysela
Quoted 38 lines

Dne 11. 11. 19 v 14:39 Jaroslav Kysela napsal(a):

Quoted 19 lines

Dne 07. 11. 19 v 2:57 Curtis Malainey napsal(a):

Quoted 18 lines

Identifies the type of jack and how it should be accessed

---
    include/use-case.h | 3 +++
    1 file changed, 3 insertions(+)
include/use-case.h +3 -0
index 2051bd40..3208cc30 100644
@@ -322,6 +322,9 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
     *        configuration that doesn't belong to UCM configuration files.
     *   - JackName
     *      - Input name is the input device name for the jack
+ *   - JackType
+ *      - Specifies whether the jack is accessed via hctl or gpio and therefore
+ *        only carries the possible values of "gpio" or "hctl"
Quoted 8 lines

include/use-case.h int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr, · line 330

Quoted 4 lines
include/use-case.h +0 -0
     */
    int snd_use_case_get(snd_use_case_mgr_t *uc_mgr,
                         const char *identifier,

What is meant with the "gpio" type? The standard input device interface? I believe it should be "inputdev" and "ctl" (hctl is just interface on top of ctl and the application can access the jack through snd_ctl functions, too.

I see (when I was cleaning this extra Chrome stuff in the ucm profiles) that it's related to the gpio (general purpose i/o pin interface) in the linux kernel. The JackSwitch is probably also related and defines the pin number where the application should watch for the jack state. In this case, it would be probably more nice to follow the JackControl and JackDev and define the pin number through JackGPIO or something like that. We will cover all three
posibilities: ALSA control interface, Input interface, GPIO interface .

Quoted 6 lines
Quoted 1 line

Jaroslav

Initially that was our thoughts too but then we realized that in the event of a new theoretical input subsystem "foo" that can be used for jack detect then we would need to create another field for that as well. This reduces the need for having a field for every theoretical subsystem in the future and only then requires a new value.

The JackDev and JackControl was defined in 2015. If we decide to switch to:

JackType "(gpio|ctl|inputdev)"
JackSwitch "(gpio pin|ctl jack control name|input device name)"

.. then we need to adapt pulseaudio, too.

Anyway, JackDev/JackControl allows to use both definitions simultaneously, thus the application can choose the interface as preferred (and available).

The gpio looks like a hack for drivers which does not have this abstraction (input device or ALSA's jack) implemented. The gpio pin value can be passed using the device tree to the driver.

Jaroslav

Signature · 6 lines
Jaroslav Kysela <[email protected]>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#6 lore raw

PATCH 3/11 ucm: docs: add value JackSwitch

In reply to Curtis Malainey

Identifies event code that will be sent by the device on an jack detect event

---
 include/use-case.h | 3 +++
 1 file changed, 3 insertions(+)
include/use-case.h +3 -0
index 3208cc30..a79e5b91 100644
@@ -322,6 +322,9 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
  *        configuration that doesn't belong to UCM configuration files.
  *   - JackName
  *      - Input name is the input device name for the jack
+ *   - JackSwitch
+ *      - The type of event code the jack will send, corresponds to
+ *        Switch Events in include/uapi/linux/input-event-codes.h in the kernel
  *   - JackType
  *      - Specifies whether the jack is accessed via hctl or gpio and therefore
  *        only carries the possible values of "gpio" or "hctl"
Signature · 6 lines
2.24.0.432.g9d3f5f5b63-goog

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#7 lore raw

Re: [alsa-devel] [PATCH 03/11] ucm: docs: add value JackSwitch

Dne 07. 11. 19 v 2:58 Curtis Malainey napsal(a):

Quoted 14 lines

Identifies event code that will be sent by the device on an jack detect event

---
  include/use-case.h | 3 +++
  1 file changed, 3 insertions(+)
include/use-case.h +0 -0
index 3208cc30..a79e5b91 100644

include/use-case.h int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr, · line 330

Quoted 9 lines
include/use-case.h +3 -0
@@ -322,6 +322,9 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
   *        configuration that doesn't belong to UCM configuration files.
   *   - JackName
   *      - Input name is the input device name for the jack
+ *   - JackSwitch
+ *      - The type of event code the jack will send, corresponds to
+ *        Switch Events in include/uapi/linux/input-event-codes.h in the kernel
   *   - JackType
   *      - Specifies whether the jack is accessed via hctl or gpio and therefore
   *        only carries the possible values of "gpio" or "hctl"

It's a string or hexa value or so? It requires a better description.

Jaroslav

Signature · 6 lines
Jaroslav Kysela <[email protected]>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#8 lore raw

PATCH 4/11 ucm: docs: Add EDID File value

In reply to Curtis Malainey

Add a sys path to the EDID file for the corresponding HDMI device so userspace can use if needed

---
 include/use-case.h | 2 ++
 1 file changed, 2 insertions(+)
include/use-case.h +2 -0
index a79e5b91..28e92d17 100644
@@ -301,6 +301,8 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
  *      - name of capture mixer
  *   - CaptureMixerID
  *      - mixer capture ID
+ *   - EDIDFile
+ *      - Path to EDID file for HDMI devices
  *   - JackControl, JackDev, JackHWMute
  *      - Jack information for a device. The jack status can be reported via
  *        a kcontrol and/or via an input device. **JackControl** is the
Signature · 6 lines
2.24.0.432.g9d3f5f5b63-goog

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#9 lore raw

Re: [alsa-devel] [PATCH 04/11] ucm: docs: Add EDID File value

Dne 07. 11. 19 v 2:58 Curtis Malainey napsal(a):

Quoted 14 lines

Add a sys path to the EDID file for the corresponding HDMI device so userspace can use if needed

---
  include/use-case.h | 2 ++
  1 file changed, 2 insertions(+)
include/use-case.h +0 -0
index a79e5b91..28e92d17 100644

include/use-case.h int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr, · line 308

Quoted 8 lines
include/use-case.h +2 -0
@@ -301,6 +301,8 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
   *      - name of capture mixer
   *   - CaptureMixerID
   *      - mixer capture ID
+ *   - EDIDFile
+ *      - Path to EDID file for HDMI devices
   *   - JackControl, JackDev, JackHWMute
   *      - Jack information for a device. The jack status can be reported via
   *        a kcontrol and/or via an input device. **JackControl** is the

Applied to alsa-lib's git tree:

https://git.alsa-project.org/?p=alsa-lib.git;a=commit;h=ef085a55c488f64834fca233355b9881489be10c

Thanks,
Jaroslav

Signature · 6 lines
Jaroslav Kysela <[email protected]>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#10 lore raw

PATCH 5/11 ucm: docs: Add MinBufferLevel value

In reply to Curtis Malainey

Allows ucm to override minimum buffer level for platforms that incorrectly report their buffer level.

---
 include/use-case.h | 4 ++++
 1 file changed, 4 insertions(+)
include/use-case.h +4 -0
index 28e92d17..05628303 100644
@@ -330,6 +330,10 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
  *   - JackType
  *      - Specifies whether the jack is accessed via hctl or gpio and therefore
  *        only carries the possible values of "gpio" or "hctl"
+ *   - MinBufferLevel
+ *      - This is used on platform where reported buffer level is not accurate.
+ *        E.g. "512", which holds 512 samples in device buffer. Note: this will
+ *        increase latency.
  */
 int snd_use_case_get(snd_use_case_mgr_t *uc_mgr,
                      const char *identifier,
Signature · 6 lines
2.24.0.432.g9d3f5f5b63-goog

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#11 lore raw

Re: [alsa-devel] [PATCH 05/11] ucm: docs: Add MinBufferLevel value

Dne 07. 11. 19 v 2:58 Curtis Malainey napsal(a):

Quoted 14 lines

Allows ucm to override minimum buffer level for platforms that incorrectly report their buffer level.

---
  include/use-case.h | 4 ++++
  1 file changed, 4 insertions(+)
include/use-case.h +0 -0
index 28e92d17..05628303 100644

include/use-case.h int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr, · line 339

Quoted 10 lines
include/use-case.h +4 -0
@@ -330,6 +330,10 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
   *   - JackType
   *      - Specifies whether the jack is accessed via hctl or gpio and therefore
   *        only carries the possible values of "gpio" or "hctl"
+ *   - MinBufferLevel
+ *      - This is used on platform where reported buffer level is not accurate.
+ *        E.g. "512", which holds 512 samples in device buffer. Note: this will
+ *        increase latency.
   */
  int snd_use_case_get(snd_use_case_mgr_t *uc_mgr,
                       const char *identifier,

This is something like the BATCH flag we have in the PCM API. It would be probably nice to add this to the PCM API, too. Takashi?

Jaroslav

Signature · 6 lines
Jaroslav Kysela <[email protected]>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#12 lore raw

Re: [alsa-devel] [PATCH 05/11] ucm: docs: Add MinBufferLevel value

In reply to Curtis Malainey

Dne 07. 11. 19 v 2:58 Curtis Malainey napsal(a):

Quoted 14 lines

Allows ucm to override minimum buffer level for platforms that incorrectly report their buffer level.

---
  include/use-case.h | 4 ++++
  1 file changed, 4 insertions(+)
include/use-case.h +0 -0
index 28e92d17..05628303 100644

include/use-case.h int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr, · line 339

Quoted 10 lines
include/use-case.h +4 -0
@@ -330,6 +330,10 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
   *   - JackType
   *      - Specifies whether the jack is accessed via hctl or gpio and therefore
   *        only carries the possible values of "gpio" or "hctl"
+ *   - MinBufferLevel
+ *      - This is used on platform where reported buffer level is not accurate.
+ *        E.g. "512", which holds 512 samples in device buffer. Note: this will
+ *        increase latency.
   */
  int snd_use_case_get(snd_use_case_mgr_t *uc_mgr,
                       const char *identifier,

Applied to alsa-lib's git tree:

https://git.alsa-project.org/?p=alsa-lib.git;a=commit;h=88c69ed2c865f6b857c26c04f5fc56d9396437f8

Thanks,
Jaroslav

Signature · 6 lines
Jaroslav Kysela <[email protected]>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#13 lore raw

PATCH 6/11 ucm: docs: Add DisableSoftwareVolume

In reply to Curtis Malainey

Some userspace audio servers might default to software volume, this allows the ucm to force its behaviour

---
 include/use-case.h | 2 ++
 1 file changed, 2 insertions(+)
include/use-case.h +2 -0
index 05628303..1aeaf9d4 100644
@@ -334,6 +334,8 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
  *      - This is used on platform where reported buffer level is not accurate.
  *        E.g. "512", which holds 512 samples in device buffer. Note: this will
  *        increase latency.
+ *   - DisableSoftwareVolume
+ *      - Set to "1" to force userspace to use hardware volume controls
  */
 int snd_use_case_get(snd_use_case_mgr_t *uc_mgr,
                      const char *identifier,
Signature · 6 lines
2.24.0.432.g9d3f5f5b63-goog

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#14 lore raw

Re: [alsa-devel] [PATCH 06/11] ucm: docs: Add DisableSoftwareVolume

Dne 07. 11. 19 v 2:58 Curtis Malainey napsal(a):

Quoted 14 lines

Some userspace audio servers might default to software volume, this allows the ucm to force its behaviour

---
  include/use-case.h | 2 ++
  1 file changed, 2 insertions(+)
include/use-case.h +0 -0
index 05628303..1aeaf9d4 100644

include/use-case.h int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr, · line 341

Quoted 8 lines
include/use-case.h +2 -0
@@ -334,6 +334,8 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
   *      - This is used on platform where reported buffer level is not accurate.
   *        E.g. "512", which holds 512 samples in device buffer. Note: this will
   *        increase latency.
+ *   - DisableSoftwareVolume
+ *      - Set to "1" to force userspace to use hardware volume controls
   */
  int snd_use_case_get(snd_use_case_mgr_t *uc_mgr,
                       const char *identifier,

My understanding is that if the hardware volume controls are defined in UCM, then the UCM user (audio server) should use them. Otherwise, the software volume control should be applied. I don't see the reason to have this info doubled.

Jaroslav

Signature · 6 lines
Jaroslav Kysela <[email protected]>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#15 lore raw

Re: [alsa-devel] [PATCH 06/11] ucm: docs: Add DisableSoftwareVolume

Quoted 31 lines · Jaroslav Kysela

Dne 07. 11. 19 v 2:58 Curtis Malainey napsal(a):

Quoted 14 lines

Some userspace audio servers might default to software volume, this allows the ucm to force its behaviour

---
  include/use-case.h | 2 ++
  1 file changed, 2 insertions(+)
include/use-case.h +0 -0
index 05628303..1aeaf9d4 100644

include/use-case.h int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr, · line 341

Quoted 8 lines
include/use-case.h +2 -0
@@ -334,6 +334,8 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
   *      - This is used on platform where reported buffer level is not accurate.
   *        E.g. "512", which holds 512 samples in device buffer. Note: this will
   *        increase latency.
+ *   - DisableSoftwareVolume
+ *      - Set to "1" to force userspace to use hardware volume controls
   */
  int snd_use_case_get(snd_use_case_mgr_t *uc_mgr,
                       const char *identifier,

My understanding is that if the hardware volume controls are defined in UCM, then the UCM user (audio server) should use them. Otherwise, the software volume control should be applied. I don't see the reason to have this info doubled.

Quoted 2 lines

Jaroslav

+Jimmy Cheng-Yi Chiang can you clarify in what context CRAS might need this value? The only cases I see are for Chat 150 C and Jabra SPEAK
810. There are no volume mixers associated with these files.

Quoted 3 lines

--
Jaroslav Kysela <[email protected]>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#16 lore raw

Re: [alsa-devel] [PATCH 06/11] ucm: docs: Add DisableSoftwareVolume

Quoted 33 lines · Curtis Malainey
Quoted 31 lines · Jaroslav Kysela

Dne 07. 11. 19 v 2:58 Curtis Malainey napsal(a):

Quoted 14 lines

Some userspace audio servers might default to software volume, this allows the ucm to force its behaviour

---
  include/use-case.h | 2 ++
  1 file changed, 2 insertions(+)
include/use-case.h +0 -0
index 05628303..1aeaf9d4 100644

include/use-case.h int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr, · line 341

Quoted 8 lines
include/use-case.h +2 -0
@@ -334,6 +334,8 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
   *      - This is used on platform where reported buffer level is not accurate.
   *        E.g. "512", which holds 512 samples in device buffer. Note: this will
   *        increase latency.
+ *   - DisableSoftwareVolume
+ *      - Set to "1" to force userspace to use hardware volume controls
   */
  int snd_use_case_get(snd_use_case_mgr_t *uc_mgr,
                       const char *identifier,

My understanding is that if the hardware volume controls are defined in UCM, then the UCM user (audio server) should use them. Otherwise, the software volume control should be applied. I don't see the reason to have this info doubled.

Quoted 5 lines
Quoted 2 lines

Jaroslav

+Jimmy Cheng-Yi Chiang can you clarify in what context CRAS might need this value? The only cases I see are for Chat 150 C and Jabra SPEAK
810. There are no volume mixers associated with these files.

+Jimmy Cheng-Yi Chiang retry adding Jimmy to email chain

Quoted 3 lines
Quoted 3 lines

--
Jaroslav Kysela <[email protected]>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#17 lore raw

PATCH 7/11 ucm: docs: Add CaptureChannelMap

In reply to Curtis Malainey

Add ucm value to tell userspace to remap channels. This is useful for systems with DMICs where there may be more channels than active channels.

---
 include/use-case.h | 4 ++++
 1 file changed, 4 insertions(+)
include/use-case.h +4 -0
index 1aeaf9d4..31f9e4be 100644
@@ -301,6 +301,10 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
  *      - name of capture mixer
  *   - CaptureMixerID
  *      - mixer capture ID
+ *   - CaptureChannelMap
+ *      - Remap channels using ALSA PCM channel mapping API notation
+ *        E.g. "2 3 0 1 -1 -1 -1 -1 -1 -1 -1" means, FL takes channel 2,
+ *        FR takes channel 3, RL takes channel 0, RL takes channel 1.
  *   - EDIDFile
  *      - Path to EDID file for HDMI devices
  *   - JackControl, JackDev, JackHWMute
Signature · 6 lines
2.24.0.432.g9d3f5f5b63-goog

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#18 lore raw

Re: [alsa-devel] [PATCH 07/11] ucm: docs: Add CaptureChannelMap

Dne 07. 11. 19 v 2:58 Curtis Malainey napsal(a):

Quoted 15 lines

Add ucm value to tell userspace to remap channels. This is useful for systems with DMICs where there may be more channels than active channels.

---
  include/use-case.h | 4 ++++
  1 file changed, 4 insertions(+)
include/use-case.h +0 -0
index 1aeaf9d4..31f9e4be 100644

include/use-case.h int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr, · line 310

Quoted 10 lines
include/use-case.h +4 -0
@@ -301,6 +301,10 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
   *      - name of capture mixer
   *   - CaptureMixerID
   *      - mixer capture ID
+ *   - CaptureChannelMap
+ *      - Remap channels using ALSA PCM channel mapping API notation
+ *        E.g. "2 3 0 1 -1 -1 -1 -1 -1 -1 -1" means, FL takes channel 2,
+ *        FR takes channel 3, RL takes channel 0, RL takes channel 1.
   *   - EDIDFile
   *      - Path to EDID file for HDMI devices
   *   - JackControl, JackDev, JackHWMute

I see a room for the improvement to have a better and complete mapping description like:

CaptureChannelMap "FR=0 RL=1 TC=2"

The location names should follow SND_CHMAP defines.

Jaroslav

Signature · 6 lines
Jaroslav Kysela <[email protected]>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#19 lore raw

Re: [alsa-devel] [PATCH 07/11] ucm: docs: Add CaptureChannelMap

Quoted 31 lines · Jaroslav Kysela

Dne 07. 11. 19 v 2:58 Curtis Malainey napsal(a):

Quoted 15 lines

Add ucm value to tell userspace to remap channels. This is useful for systems with DMICs where there may be more channels than active channels.

---
  include/use-case.h | 4 ++++
  1 file changed, 4 insertions(+)
include/use-case.h +0 -0
index 1aeaf9d4..31f9e4be 100644

include/use-case.h int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr, · line 310

Quoted 10 lines
include/use-case.h +4 -0
@@ -301,6 +301,10 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
   *      - name of capture mixer
   *   - CaptureMixerID
   *      - mixer capture ID
+ *   - CaptureChannelMap
+ *      - Remap channels using ALSA PCM channel mapping API notation
+ *        E.g. "2 3 0 1 -1 -1 -1 -1 -1 -1 -1" means, FL takes channel 2,
+ *        FR takes channel 3, RL takes channel 0, RL takes channel 1.
   *   - EDIDFile
   *      - Path to EDID file for HDMI devices
   *   - JackControl, JackDev, JackHWMute

I see a room for the improvement to have a better and complete mapping description like:

Quoted 6 lines

CaptureChannelMap "FR=0 RL=1 TC=2"

The location names should follow SND_CHMAP defines.

Jaroslav

I am definitely for that modification as the mapping for the plugin is not easy to read, that being said, do we have a tool to handle parsing/converting that from a string already? I feel like we should add one if we are going to make that the spec.

Quoted 3 lines

--
Jaroslav Kysela <[email protected]>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#20 lore raw

PATCH 8/11 ucm: docs: Add CaptureChannelMap

In reply to Curtis Malainey

Explains to userspace how some channels may need to be rearranged. This is useful for systems that may have DMIC pcms with dead channels that will need remapping.

---
 include/use-case.h | 3 +++
 1 file changed, 3 insertions(+)
include/use-case.h +3 -0
index 31f9e4be..9a10f390 100644
@@ -305,6 +305,9 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
  *      - Remap channels using ALSA PCM channel mapping API notation
  *        E.g. "2 3 0 1 -1 -1 -1 -1 -1 -1 -1" means, FL takes channel 2,
  *        FR takes channel 3, RL takes channel 0, RL takes channel 1.
+ *   - CoupledMixers
+ *      - Mixer controls that should be changed together.
+ *        E.g. "Left Master,Right Master".
  *   - EDIDFile
  *      - Path to EDID file for HDMI devices
  *   - JackControl, JackDev, JackHWMute
Signature · 6 lines
2.24.0.432.g9d3f5f5b63-goog

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#21 lore raw

Re: [alsa-devel] [PATCH 08/11] ucm: docs: Add CaptureChannelMap

Quoted 5 lines · Curtis Malainey

Explains to userspace how some channels may need to be rearranged. This is useful for systems that may have DMIC pcms with dead channels that will need remapping.

Apologies this is the coupled mixer patch, this is an error. I will resend this with anything else that needs to be corrected

Quoted 20 lines
---
 include/use-case.h | 3 +++
 1 file changed, 3 insertions(+)
include/use-case.h +3 -1
index 31f9e4be..9a10f390 100644
@@ -305,6 +305,9 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
  *      - Remap channels using ALSA PCM channel mapping API notation
  *        E.g. "2 3 0 1 -1 -1 -1 -1 -1 -1 -1" means, FL takes channel 2,
  *        FR takes channel 3, RL takes channel 0, RL takes channel 1.
+ *   - CoupledMixers
+ *      - Mixer controls that should be changed together.
+ *        E.g. "Left Master,Right Master".
  *   - EDIDFile
  *      - Path to EDID file for HDMI devices
  *   - JackControl, JackDev, JackHWMute
--
Quoted 2 lines

2.24.0.432.g9d3f5f5b63-goog

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#22 lore raw

Re: [alsa-devel] [PATCH 08/11] ucm: docs: Add CaptureChannelMap

In reply to Curtis Malainey

Dne 07. 11. 19 v 2:58 Curtis Malainey napsal(a):

Quoted 15 lines

Explains to userspace how some channels may need to be rearranged. This is useful for systems that may have DMIC pcms with dead channels that will need remapping.

---
  include/use-case.h | 3 +++
  1 file changed, 3 insertions(+)
include/use-case.h +0 -0
index 31f9e4be..9a10f390 100644

include/use-case.h int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr, · line 313

Quoted 9 lines
include/use-case.h +3 -0
@@ -305,6 +305,9 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
   *      - Remap channels using ALSA PCM channel mapping API notation
   *        E.g. "2 3 0 1 -1 -1 -1 -1 -1 -1 -1" means, FL takes channel 2,
   *        FR takes channel 3, RL takes channel 0, RL takes channel 1.
+ *   - CoupledMixers
+ *      - Mixer controls that should be changed together.
+ *        E.g. "Left Master,Right Master".
   *   - EDIDFile
   *      - Path to EDID file for HDMI devices
   *   - JackControl, JackDev, JackHWMute

I do not see which names are referred by this. It's for the snd_ctl interface or for the simple mixer ?

Jaroslav

Signature · 6 lines
Jaroslav Kysela <[email protected]>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#23 lore raw

Re: [alsa-devel] [PATCH 08/11] ucm: docs: Add CaptureChannelMap

Quoted 30 lines · Jaroslav Kysela

Dne 07. 11. 19 v 2:58 Curtis Malainey napsal(a):

Quoted 15 lines

Explains to userspace how some channels may need to be rearranged. This is useful for systems that may have DMIC pcms with dead channels that will need remapping.

---
  include/use-case.h | 3 +++
  1 file changed, 3 insertions(+)
include/use-case.h +0 -0
index 31f9e4be..9a10f390 100644

include/use-case.h int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr, · line 313

Quoted 9 lines
include/use-case.h +3 -0
@@ -305,6 +305,9 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
   *      - Remap channels using ALSA PCM channel mapping API notation
   *        E.g. "2 3 0 1 -1 -1 -1 -1 -1 -1 -1" means, FL takes channel 2,
   *        FR takes channel 3, RL takes channel 0, RL takes channel 1.
+ *   - CoupledMixers
+ *      - Mixer controls that should be changed together.
+ *        E.g. "Left Master,Right Master".
   *   - EDIDFile
   *      - Path to EDID file for HDMI devices
   *   - JackControl, JackDev, JackHWMute

I do not see which names are referred by this. It's for the snd_ctl interface or for the simple mixer ?

Quoted 2 lines

Jaroslav

Yes, this would be referring to volume mixers in amixer.

Quoted 3 lines

--
Jaroslav Kysela <[email protected]>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#24 lore raw

PATCH 9/11 ucm: docs: Add EchoReferenceDev

In reply to Curtis Malainey

Sometimes userspace may want to use a reference channel to cancel echos when using video chat, this value identifies the device which carries that channel.

---
 include/use-case.h | 3 +++
 1 file changed, 3 insertions(+)
include/use-case.h +3 -0
index 9a10f390..e84f3f8f 100644
@@ -308,6 +308,9 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
  *   - CoupledMixers
  *      - Mixer controls that should be changed together.
  *        E.g. "Left Master,Right Master".
+ *   - EchoReferenceDev
+ *      - If userspace wants an echo refence channel this value identifies the
+ *        device to be used.
  *   - EDIDFile
  *      - Path to EDID file for HDMI devices
  *   - JackControl, JackDev, JackHWMute
Signature · 6 lines
2.24.0.432.g9d3f5f5b63-goog

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#25 lore raw

Re: [alsa-devel] [PATCH 09/11] ucm: docs: Add EchoReferenceDev

Dne 07. 11. 19 v 2:58 Curtis Malainey napsal(a):

Quoted 15 lines

Sometimes userspace may want to use a reference channel to cancel echos when using video chat, this value identifies the device which carries that channel.

---
  include/use-case.h | 3 +++
  1 file changed, 3 insertions(+)
include/use-case.h +0 -0
index 9a10f390..e84f3f8f 100644

include/use-case.h int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr, · line 316

Quoted 9 lines
include/use-case.h +3 -0
@@ -308,6 +308,9 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
   *   - CoupledMixers
   *      - Mixer controls that should be changed together.
   *        E.g. "Left Master,Right Master".
+ *   - EchoReferenceDev
+ *      - If userspace wants an echo refence channel this value identifies the
+ *        device to be used.
   *   - EDIDFile
   *      - Path to EDID file for HDMI devices
   *   - JackControl, JackDev, JackHWMute

It's PCM device name like PlaybackPCM ? I would rename this to EchoReferencePCM then.

Jaroslav

Signature · 6 lines
Jaroslav Kysela <[email protected]>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#26 lore raw

Re: [alsa-devel] [PATCH 09/11] ucm: docs: Add EchoReferenceDev

Quoted 30 lines · Jaroslav Kysela

Dne 07. 11. 19 v 2:58 Curtis Malainey napsal(a):

Quoted 15 lines

Sometimes userspace may want to use a reference channel to cancel echos when using video chat, this value identifies the device which carries that channel.

---
  include/use-case.h | 3 +++
  1 file changed, 3 insertions(+)
include/use-case.h +0 -0
index 9a10f390..e84f3f8f 100644

include/use-case.h int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr, · line 316

Quoted 9 lines
include/use-case.h +3 -0
@@ -308,6 +308,9 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
   *   - CoupledMixers
   *      - Mixer controls that should be changed together.
   *        E.g. "Left Master,Right Master".
+ *   - EchoReferenceDev
+ *      - If userspace wants an echo refence channel this value identifies the
+ *        device to be used.
   *   - EDIDFile
   *      - Path to EDID file for HDMI devices
   *   - JackControl, JackDev, JackHWMute

It's PCM device name like PlaybackPCM ? I would rename this to EchoReferencePCM then.

Quoted 1 line

Jaroslav

Not quite. The name associated is another SectionDevice.
Although I will have to send a v2 for this patch as I noticed a typo "refence"

Quoted 4 lines

--
Jaroslav Kysela <[email protected]>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#27 lore raw

PATCH 10/11 ucm: docs: Add SoftwareGain

In reply to Curtis Malainey

Add software gain ucm definition.

---
 include/use-case.h | 3 +++
 1 file changed, 3 insertions(+)
include/use-case.h +3 -0
index e84f3f8f..ee6ee5e0 100644
@@ -344,6 +344,9 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
  *      - This is used on platform where reported buffer level is not accurate.
  *        E.g. "512", which holds 512 samples in device buffer. Note: this will
  *        increase latency.
+ *   - SoftwareGain
+ *      - Specify the software gain in 0.01dB. E.g. "20" means there will be
+ *        0.2 dB software gain on this node.
  *   - DisableSoftwareVolume
  *      - Set to "1" to force userspace to use hardware volume controls
  */
Signature · 6 lines
2.24.0.432.g9d3f5f5b63-goog

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#28 lore raw

Re: [alsa-devel] [PATCH 10/11] ucm: docs: Add SoftwareGain

Dne 07. 11. 19 v 2:58 Curtis Malainey napsal(a):

Quoted 13 lines

Add software gain ucm definition.

---
  include/use-case.h | 3 +++
  1 file changed, 3 insertions(+)
include/use-case.h +0 -0
index e84f3f8f..ee6ee5e0 100644

include/use-case.h int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr, · line 352

Quoted 9 lines
include/use-case.h +3 -0
@@ -344,6 +344,9 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
   *      - This is used on platform where reported buffer level is not accurate.
   *        E.g. "512", which holds 512 samples in device buffer. Note: this will
   *        increase latency.
+ *   - SoftwareGain
+ *      - Specify the software gain in 0.01dB. E.g. "20" means there will be
+ *        0.2 dB software gain on this node.
   *   - DisableSoftwareVolume
   *      - Set to "1" to force userspace to use hardware volume controls
   */

In other words, it's the recommended software gain control? The description should be improved then.

Jaroslav

Signature · 6 lines
Jaroslav Kysela <[email protected]>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#29 lore raw

Re: [alsa-devel] [PATCH 10/11] ucm: docs: Add SoftwareGain

Quoted 28 lines · Jaroslav Kysela

Dne 07. 11. 19 v 2:58 Curtis Malainey napsal(a):

Quoted 13 lines

Add software gain ucm definition.

---
  include/use-case.h | 3 +++
  1 file changed, 3 insertions(+)
include/use-case.h +0 -0
index e84f3f8f..ee6ee5e0 100644

include/use-case.h int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr, · line 352

Quoted 9 lines
include/use-case.h +3 -0
@@ -344,6 +344,9 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
   *      - This is used on platform where reported buffer level is not accurate.
   *        E.g. "512", which holds 512 samples in device buffer. Note: this will
   *        increase latency.
+ *   - SoftwareGain
+ *      - Specify the software gain in 0.01dB. E.g. "20" means there will be
+ *        0.2 dB software gain on this node.
   *   - DisableSoftwareVolume
   *      - Set to "1" to force userspace to use hardware volume controls
   */

In other words, it's the recommended software gain control? The description should be improved then.

Quoted 2 lines

Jaroslav

Not the control/mixer, in this case it is a gain value that is expected to be applied by the audio server (should the server parse it)

Quoted 3 lines

--
Jaroslav Kysela <[email protected]>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#30 lore raw

PATCH 11/11 ucm: docs: Add DefaultNodeGain

In reply to Curtis Malainey

Allow ucm to specify a default hardware gain to overide on the respective node.

---
 include/use-case.h | 2 ++
 1 file changed, 2 insertions(+)
include/use-case.h +2 -0
index ee6ee5e0..d0e821d5 100644
@@ -347,6 +347,8 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
  *   - SoftwareGain
  *      - Specify the software gain in 0.01dB. E.g. "20" means there will be
  *        0.2 dB software gain on this node.
+ *   - DefaultNodeGain
+ *      - Change the default node gain. E.g: “-700” to set -7 dB on this node
  *   - DisableSoftwareVolume
  *      - Set to "1" to force userspace to use hardware volume controls
  */
Signature · 6 lines
2.24.0.432.g9d3f5f5b63-goog

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#31 lore raw

Re: [alsa-devel] [PATCH 11/11] ucm: docs: Add DefaultNodeGain

Dne 07. 11. 19 v 2:58 Curtis Malainey napsal(a):

Quoted 13 lines

Allow ucm to specify a default hardware gain to overide on the respective node.

---
  include/use-case.h | 2 ++
  1 file changed, 2 insertions(+)
include/use-case.h +0 -0
index ee6ee5e0..d0e821d5 100644

include/use-case.h int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr, · line 354

Quoted 8 lines
include/use-case.h +2 -0
@@ -347,6 +347,8 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
   *   - SoftwareGain
   *      - Specify the software gain in 0.01dB. E.g. "20" means there will be
   *        0.2 dB software gain on this node.
+ *   - DefaultNodeGain
+ *      - Change the default node gain. E.g: “-700” to set -7 dB on this node
   *   - DisableSoftwareVolume
   *      - Set to "1" to force userspace to use hardware volume controls
   */

I don't see the usage. Could you elaborate a bit which purpose is for this value?

Jaroslav

Signature · 6 lines
Jaroslav Kysela <[email protected]>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#32 lore raw

Re: [alsa-devel] [PATCH 11/11] ucm: docs: Add DefaultNodeGain

Quoted 26 lines · Jaroslav Kysela

Dne 07. 11. 19 v 2:58 Curtis Malainey napsal(a):

Quoted 13 lines

Allow ucm to specify a default hardware gain to overide on the respective node.

---
  include/use-case.h | 2 ++
  1 file changed, 2 insertions(+)
include/use-case.h +0 -0
index ee6ee5e0..d0e821d5 100644

include/use-case.h int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr, · line 354

Quoted 8 lines
include/use-case.h +2 -0
@@ -347,6 +347,8 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
   *   - SoftwareGain
   *      - Specify the software gain in 0.01dB. E.g. "20" means there will be
   *        0.2 dB software gain on this node.
+ *   - DefaultNodeGain
+ *      - Change the default node gain. E.g: “-700” to set -7 dB on this node
   *   - DisableSoftwareVolume
   *      - Set to "1" to force userspace to use hardware volume controls
   */

I don't see the usage. Could you elaborate a bit which purpose is for this value?

Quoted 2 lines

Jaroslav

This along with software gain actually should be dropped from the patchset. We are modifying our use case to make it more configurable for multi-stream use. The original use case is for systems like hotword capture streams.

Quoted 3 lines

--
Jaroslav Kysela <[email protected]>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#33 lore raw
In reply to Curtis Malainey

Hi Curtis,

Quoted 3 lines · Curtis Malainey

This field represents the input device name for a jack detection line

this series looks good to me and I think it's a very good idea to bring extensions that have proven useful in Chromium to alsa-lib.

For reviewing, a bit of background context and pointers would probably help the wider audience. E.g. I found this very useful:

https://www.chromium.org/chromium-os/chromiumos-design-docs/cras-chromeos-audio-server
->
https://docs.google.com/document/d/1AcXZI9dvJBW0Vy6h9vraD7VP9X_MpwHx0eJ6hNc4G_s/edit?usp=sharing

Not directly related to this series, but it would be nice if the versioning would be aligned as well (especially now as ucmv2 is being proposed).

Br, Kai
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#34 lore raw
In reply to Curtis Malainey

Dne 07. 11. 19 v 2:57 Curtis Malainey napsal(a):

Quoted 13 lines

This field represents the input device name for a jack detection line

---
  include/use-case.h | 2 ++
  1 file changed, 2 insertions(+)
include/use-case.h +0 -0
index 5cb4f31c..2051bd40 100644

include/use-case.h int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr, · line 327

Quoted 8 lines
include/use-case.h +2 -0
@@ -320,6 +320,8 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
   *        trick upper software layers to e.g. automatically mute speakers when
   *        headphones are plugged in, but that's application policy
   *        configuration that doesn't belong to UCM configuration files.
+ *   - JackName
+ *      - Input name is the input device name for the jack
   */
  int snd_use_case_get(snd_use_case_mgr_t *uc_mgr,
                       const char *identifier,

What is the difference from JackDev ?

Jaroslav

Signature · 6 lines
Jaroslav Kysela <[email protected]>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel