Skip to content
  • Subhransu S. Prusty's avatar
    ALSA: hda - Update chmap tlv to report sink's capability · 44fde3b8
    Subhransu S. Prusty authored
    
    
    The existing TLV callback implementation copies all of the
    cea_channel_speaker_allocation map table to the TLV container
    irrespective of what is reported by sink. This is of little use
    to the userspace application.
    
    With this patch, it parses the spk_alloc block as queried from
    the ELD, and copies only the corresponding mapping channel
    allocation entries from the cea channel speaker allocation table.
    Thus the user can parse the TLV container to identify sink's
    capability and set the channel map accordingly.
    
    It shouldn't impact the behavior in AMD chipset, as this makes
    use of already parsed spk alloc block to calculate the channel
    map.
    
    Signed-off-by: default avatarSubhransu S. Prusty <subhransu.s.prusty@intel.com>
    Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    44fde3b8