Skip to content

Commit

Permalink
bcm2835: log which channel map is set
Browse files Browse the repository at this point in the history
  • Loading branch information
wm4 authored and popcornmix committed Apr 19, 2016
1 parent 3c1634f commit 5704b86
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sound/arm/bcm2835-vchiq.c
Expand Up @@ -596,8 +596,11 @@ int bcm2835_audio_set_params(bcm2835_alsa_stream_t * alsa_stream,
instance->result = -1;

if (alsa_stream->chip->cea_chmap >= 0) {
LOG_INFO("Using application requested channel map: %d\n",
alsa_stream->chip->cea_chmap);
chmap_value = (unsigned)alsa_stream->chip->cea_chmap << 24;
} else {
LOG_INFO("Using fallback channel map.\n");
/* fallback layouts for applications which do not use chmap API */
chmap_value = 0x00;
switch (channels) {
Expand All @@ -614,6 +617,8 @@ int bcm2835_audio_set_params(bcm2835_alsa_stream_t * alsa_stream,
for (i = 0; i < 8; i++)
chmap_value |= alsa_stream->chip->map_channels[i] << (i * 3);

LOG_INFO("Requesting AUDS channel map: 0x%lx\n", (long)chmap_value);

m.type = VC_AUDIO_MSG_TYPE_CONFIG;
m.u.config.channels = channels;
m.u.config.samplerate = samplerate;
Expand Down

0 comments on commit 5704b86

Please sign in to comment.