Lines Matching refs:alsa_config
1472 const char* device_name, alsa_config_t alsa_config) in hfp_playback_device_open() argument
1476 unsigned int rate = alsa_config.sample_rate; in hfp_playback_device_open()
1477 snd_pcm_uframes_t period_size = alsa_config.period_size; in hfp_playback_device_open()
1478 snd_pcm_uframes_t buffer_size = alsa_config.buffer_size; in hfp_playback_device_open()
1511 err = snd_pcm_hw_params_set_channels(*playback_handle, hw_params, alsa_config.channels); in hfp_playback_device_open()
1516 printf("setting channels (%d)\n", alsa_config.channels); in hfp_playback_device_open()
1557 const char* device_name, alsa_config_t alsa_config) in hfp_capture_device_open() argument
1561 unsigned int rate = alsa_config.sample_rate; in hfp_capture_device_open()
1562 snd_pcm_uframes_t period_size = alsa_config.period_size; in hfp_capture_device_open()
1563 snd_pcm_uframes_t buffer_size = alsa_config.buffer_size; in hfp_capture_device_open()
1596 err = snd_pcm_hw_params_set_channels(*capture_handle, hw_params, alsa_config.channels); in hfp_capture_device_open()
1598 printf( "Error setting channels: %s, channels = %d\n", snd_strerror(err), alsa_config.channels); in hfp_capture_device_open()
1601 printf("setting channels (%d)\n", alsa_config.channels); in hfp_capture_device_open()
1666 alsa_config_t alsa_config; in hfp_alsa_playback() local
1671 alsa_config.sample_rate = CVSD_SAMPLE_RATE; in hfp_alsa_playback()
1672 alsa_config.period_size = PERIOD_SIZE_512; in hfp_alsa_playback()
1673 alsa_config.buffer_size = BUFFER_SIZE_2048; in hfp_alsa_playback()
1677 alsa_config.sample_rate = MSBC_SAMPLE_RATE; in hfp_alsa_playback()
1678 alsa_config.period_size = PERIOD_SIZE_1024; in hfp_alsa_playback()
1679 alsa_config.buffer_size = BUFFER_SIZE_4096; in hfp_alsa_playback()
1685 alsa_config.channels = HFP_PCM_CHANNEL_NB; in hfp_alsa_playback()
1692 ret = hfp_capture_device_open(&capture_handle, bt_capture_device, alsa_config); in hfp_alsa_playback()
1698 ret = hfp_playback_device_open(&playbcak_handle, alsa_playback_device, alsa_config); in hfp_alsa_playback()
1767 alsa_config_t alsa_config; in hfp_bt_playback() local
1769 alsa_config.channels = HFP_PCM_CHANNEL_NB; in hfp_bt_playback()
1770 alsa_config.period_size = PERIOD_SIZE_256; in hfp_bt_playback()
1771 alsa_config.buffer_size = BUFFER_SIZE_1024; in hfp_bt_playback()
1774 alsa_config.sample_rate = CVSD_SAMPLE_RATE; in hfp_bt_playback()
1777 alsa_config.sample_rate = MSBC_SAMPLE_RATE; in hfp_bt_playback()
1786 ret = hfp_capture_device_open(&capture_handle, alsa_capture_device, alsa_config); in hfp_bt_playback()
1794 ret = hfp_playback_device_open(&playbcak_handle, bt_playback_device, alsa_config); in hfp_bt_playback()