mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
small cleanups
This commit is contained in:
parent
d93dd5ec93
commit
1ede97577b
2 changed files with 7 additions and 4 deletions
|
|
@ -133,7 +133,7 @@ fill_item(struct impl *this, snd_ctl_card_info_t *card_info,
|
|||
{
|
||||
const char *str, *name, *klass = NULL;
|
||||
const struct spa_handle_factory *factory = NULL;
|
||||
char device_name[64], id[64];
|
||||
char device_name[64], id[66];
|
||||
struct type *t = &this->type;
|
||||
struct udev_device *dev = card->dev;
|
||||
struct device *device;
|
||||
|
|
@ -153,13 +153,13 @@ fill_item(struct impl *this, snd_ctl_card_info_t *card_info,
|
|||
factory = &spa_alsa_sink_factory;
|
||||
klass = "Audio/Sink";
|
||||
SPA_FLAG_SET(device->flags, DEVICE_FLAG_PLAYBACK);
|
||||
snprintf(id, 64, "%s/P", device_name);
|
||||
snprintf(id, 66, "%s/P", device_name);
|
||||
break;
|
||||
case SND_PCM_STREAM_CAPTURE:
|
||||
factory = &spa_alsa_source_factory;
|
||||
klass = "Audio/Source";
|
||||
SPA_FLAG_SET(device->flags, DEVICE_FLAG_RECORD);
|
||||
snprintf(id, 64, "%s/C", device_name);
|
||||
snprintf(id, 66, "%s/C", device_name);
|
||||
break;
|
||||
default:
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue