0251-bcm2835-log-which-channel-map-is-set.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. From c1a1f4c6d4e2d1bdba70de54bc204d2b3a80c0ea Mon Sep 17 00:00:00 2001
  2. From: wm4 <wm4@nowhere>
  3. Date: Tue, 19 Apr 2016 16:38:03 +0200
  4. Subject: [PATCH 251/381] bcm2835: log which channel map is set
  5. ---
  6. sound/arm/bcm2835-vchiq.c | 5 +++++
  7. 1 file changed, 5 insertions(+)
  8. --- a/sound/arm/bcm2835-vchiq.c
  9. +++ b/sound/arm/bcm2835-vchiq.c
  10. @@ -596,8 +596,11 @@ int bcm2835_audio_set_params(bcm2835_als
  11. instance->result = -1;
  12. if (alsa_stream->chip->cea_chmap >= 0) {
  13. + LOG_INFO("Using application requested channel map: %d\n",
  14. + alsa_stream->chip->cea_chmap);
  15. chmap_value = (unsigned)alsa_stream->chip->cea_chmap << 24;
  16. } else {
  17. + LOG_INFO("Using fallback channel map.\n");
  18. /* fallback layouts for applications which do not use chmap API */
  19. chmap_value = 0x00;
  20. switch (channels) {
  21. @@ -614,6 +617,8 @@ int bcm2835_audio_set_params(bcm2835_als
  22. for (i = 0; i < 8; i++)
  23. chmap_value |= alsa_stream->chip->map_channels[i] << (i * 3);
  24. + LOG_INFO("Requesting AUDS channel map: 0x%lx\n", (long)chmap_value);
  25. +
  26. m.type = VC_AUDIO_MSG_TYPE_CONFIG;
  27. m.u.config.channels = channels;
  28. m.u.config.samplerate = samplerate;