Re: [RFC 1/2] android/hal-audio-hsp: Add audio HAL for HSP handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Marcel,

On Mon, Mar 31, 2014 at 09:31:57AM -0700, Marcel Holtmann wrote:
> Hi Andrei,
> 
> > From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx>
> > 
> > This adds audio HAL for handling SCO. Following needs to be added to
> > audio_policy.conf:
> > 
> >  hsp {
> >    outputs {
> >      hsp {
> >        ...
> >        devices AUDIO_DEVICE_OUT_ALL_SCO
> >        ...
> >      }
> >    }
> 
> if we need modifications to /etc/audio_policy.conf, we should have this
> part of android/README or some other documentation. I also wonder if
> this not also needs an inputs { } section since HSP is actually
> full-duplex.

Yes we need input section as well, this was just example, the complete
sections would look like (copied from real device):

...
  hsp {
    outputs {
      hsp {
        sampling_rates 44100
        channel_masks AUDIO_CHANNEL_OUT_STEREO
        formats AUDIO_FORMAT_PCM_16_BIT
        devices AUDIO_DEVICE_OUT_ALL_SCO
      }
    }
    inputs {
      hsp {
        sampling_rates 44100
        channel_masks AUDIO_CHANNEL_IN_MONO
        formats AUDIO_FORMAT_PCM_16_BIT
        devices AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET
      }
    }
  }
...

> Also for the A2DP part, has something checked what happens if we provide
> additional settings.
> 
>   a2dp {
>     outputs {
>       a2dp {
>         sampling_rates 44100
>         channel_masks AUDIO_CHANNEL_OUT_STEREO
>         formats AUDIO_FORMAT_PCM_16_BIT
>         devices AUDIO_DEVICE_OUT_ALL_A2DP
>       }
>     }
>   }

This looks like default configuration for Intel devices.

Best regards 
Andrei Emeltchenko 
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux