Lines Matching refs:snd_device
215 snd_device_t snd_device;
224 snd_device = usecase->in_snd_device;
226 snd_device = usecase->out_snd_device;
229 platform_add_backend_name(adev->platform, mixer_path, snd_device);
240 snd_device_t snd_device;
248 snd_device = usecase->in_snd_device;
250 snd_device = usecase->out_snd_device;
252 platform_add_backend_name(adev->platform, mixer_path, snd_device);
261 snd_device_t snd_device)
263 if (snd_device < SND_DEVICE_MIN ||
264 snd_device >= SND_DEVICE_MAX) {
265 ALOGE("%s: Invalid sound device %d", __func__, snd_device);
269 adev->snd_dev_ref_cnt[snd_device]++;
270 if (adev->snd_dev_ref_cnt[snd_device] > 1) {
271 ALOGV("%s: snd_device(%d: %s) is already active",
272 __func__, snd_device, platform_get_snd_device_name(snd_device));
276 if (platform_send_audio_calibration(adev->platform, snd_device) < 0) {
277 adev->snd_dev_ref_cnt[snd_device]--;
281 const char * dev_path = platform_get_snd_device_name(snd_device);
282 ALOGD("%s: snd_device(%d: %s)", __func__, snd_device, dev_path);
289 snd_device_t snd_device)
291 if (snd_device < SND_DEVICE_MIN ||
292 snd_device >= SND_DEVICE_MAX) {
293 ALOGE("%s: Invalid sound device %d", __func__, snd_device);
296 if (adev->snd_dev_ref_cnt[snd_device] <= 0) {
300 adev->snd_dev_ref_cnt[snd_device]--;
301 if (adev->snd_dev_ref_cnt[snd_device] == 0) {
302 const char * dev_path = platform_get_snd_device_name(snd_device);
303 ALOGD("%s: snd_device(%d: %s)", __func__, snd_device, dev_path);
311 snd_device_t snd_device)
337 usecase->out_snd_device != snd_device &&
359 enable_snd_device(adev, snd_device);
369 usecase->out_snd_device = snd_device;
378 snd_device_t snd_device)
402 usecase->in_snd_device != snd_device) {
423 enable_snd_device(adev, snd_device);
433 usecase->in_snd_device = snd_device;
2521 snd_device_t snd_device;