Re: [pulseaudio-discuss] [PATCH 0/1] alsa: Make profiles' availability dynamic

2016-06-20 Thread Bob Ham
On Thu, 2016-02-18 at 09:08 +, Bob Ham wrote:
> Make ALSA profiles stick around and update their availability if the
> HDMI ELD changes.

Ping?

-- 
Bob Ham 
Software Engineer
Collabora


Open First
Collabora is hiring!
Please check out our latest opportunities here:
http://bit.ly/Collabora-Careers



___
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] [PATCH 0/1] alsa: Make profiles' availability dynamic

2016-02-19 Thread Bob Ham
On Fri, 2016-02-19 at 13:32 +0800, Raymond Yau wrote:
> 2016-2-18 下午5:38於 "Bob Ham" 寫道:
> > 
> > Make ALSA profiles stick around and update their availability if
> > the
> > HDMI ELD changes.

> 1) mono is not supported by hda-intel

Is there some way to determine which profiles cannot ever be available?


> 2) those desktop with three jacks at rear panel need retasking input jacks
> to output jacks by changing control channel mode

What do you mean by "control channel mode"?  I don't know what you're
referring to.

> from 2ch to 6ch, you may
> need to add hook for alsa devices to change the channel mode in alsa
> HDA-Intel.conf

I don't understand how that would affect my patch, that sounds like an
issue in ALSA?


> 3) even HDMI codec support 8 channels, it still require your hdmi monitor
> support multi channels

Again, I'm not sure what you mean by "support multi channels".  The TV
we have supports two channels¸ which is "multi".  Here is the ELD as
reported by ALSA:

$ cat /proc/asound/NVidia/eld#0.0 
monitor_present 1
eld_valid   1
monitor_namePanasonic-TV

connection_type HDMI
eld_version [0x2] CEA-861D or below
edid_version[0x3] CEA-861-B, C or D
manufacture_id  0xa934
product_id  0xa296
port_id 0x1
support_hdcp0
support_ai  0
audio_sync_delay0
speakers[0x] FL/FR LFE FC RL/RR RC FLC/FRC RLC/RRC
FLW/FRW FLH/FRH TC FCH
sad_count   1
sad0_coding_type[0x1] LPCM
sad0_channels   2
sad0_rates  [0xe0] 32000 44100 48000
sad0_bits   [0x2] 16

Are you saying that HDMI sinks are required to support more than two
channels?  If so, The Real World appears to be ignoring those
requirements.

-- 
Bob Ham 
Software Engineer


Open First 
Collabora is hiring!
Please check out our latest opportunities here:
http://bit.ly/Collabora-Careers




___
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] [PATCH 0/1] alsa: Make profiles' availability dynamic

2016-02-18 Thread Raymond Yau
2016-2-18 下午5:38於 "Bob Ham" 寫道:
>
> Make ALSA profiles stick around and update their availability if the
> HDMI ELD changes.  This alters the presence of card profiles quite
> dramatically.  Specifically, the existing autogeneration of profiles
> generates a large set of input/output mapping combinations and all of
> these combinations are reported by the API, marked as unavailable. To
> give an idea of the consequences, here is what pavucontrol looks like
> with this patch:
>
>   https://people.collabora.com/~rah/pavucontrol-unavailable-profiles.png
>
> Similarly, here is the output of "pactl list cards":
>
>   https://people.collabora.com/~rah/pactl-list-cards-output.txt
>

AFAIK,

1) mono is not supported by hda-intel
2) those desktop with three jacks at rear panel need retasking input jacks
to output jacks by changing control channel mode from 2ch to 6ch, you may
need to add hook for alsa devices to change the channel mode in alsa
HDA-Intel.conf
3) even HDMI codec support 8 channels, it still require your hdmi monitor
support multi channels
___
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss


[pulseaudio-discuss] [PATCH 0/1] alsa: Make profiles' availability dynamic

2016-02-18 Thread Bob Ham
Make ALSA profiles stick around and update their availability if the
HDMI ELD changes.  This alters the presence of card profiles quite
dramatically.  Specifically, the existing autogeneration of profiles
generates a large set of input/output mapping combinations and all of
these combinations are reported by the API, marked as unavailable. To
give an idea of the consequences, here is what pavucontrol looks like
with this patch:

  https://people.collabora.com/~rah/pavucontrol-unavailable-profiles.png

Similarly, here is the output of "pactl list cards":

  https://people.collabora.com/~rah/pactl-list-cards-output.txt

The patch could be reworked to add another layer so that only
available profiles are exposed through the existing mechanisms but
this would presumably require new API events for the addition and
removal of profiles.

Bob Ham (1):
  alsa: Make profiles' availability dynamic

 src/modules/alsa/alsa-mixer.c   | 349 +++-
 src/modules/alsa/alsa-mixer.h   |  19 +-
 src/modules/alsa/alsa-sink.c|  13 +-
 src/modules/alsa/alsa-source.c  |  13 +-
 src/modules/alsa/alsa-ucm.c | 118 
 src/modules/alsa/alsa-ucm.h |   1 +
 src/modules/alsa/alsa-util.c| 112 ++--
 src/modules/alsa/alsa-util.h|  17 ++
 src/modules/alsa/module-alsa-card.c |  93 +-
 src/pulsecore/card.c|  54 --
 src/pulsecore/card.h|   2 +
 11 files changed, 432 insertions(+), 359 deletions(-)

-- 
2.1.4

___
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss