1 /* Copyright 2019 The Chromium OS Authors. All rights reserved. 2 * Use of this source code is governed by a BSD-style license that can be 3 * found in the LICENSE file. 4 */ 5 6 #ifndef CRAS_HFP_ALSA_IODEV_H_ 7 #define CRAS_HFP_ALSA_IODEV_H_ 8 9 #include "cras_bt_device.h" 10 #include "cras_hfp_info.h" 11 #include "cras_types.h" 12 13 struct hfp_slc_handle; 14 15 /* 16 * Creates a hfp alsa iodev. 17 * 18 * hfp_alsa_iodev is a special HFP iodev which would be managed by bt_io but 19 * playback/capture via an inner ALSA iodev. 20 * 21 * The usage of hfp_alsa_iodev is only for SCO connection over PCM/I2S. 22 */ 23 struct cras_iodev *hfp_alsa_iodev_create(struct cras_iodev *aio, 24 struct cras_bt_device *device, 25 struct hfp_slc_handle *slc, 26 enum cras_bt_device_profile profile); 27 28 void hfp_alsa_iodev_destroy(struct cras_iodev *iodev); 29 30 #endif /* CRAS_HFP_ALSA_IODEV_H_ */ 31