diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-07-20 01:35:50 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-07-20 01:35:50 +0000 |
commit | 959cdb53b33658fc8c7f2ea063e9409c8cafb08a (patch) | |
tree | dba9653c5ab26933a0a29a0a19f754f14e96fe89 | |
parent | 5a9dbe1dc8e4ee835cf19120148add384ae392ae (diff) | |
parent | fa93d4668881ddacf306087d49c26752f62fca7f (diff) | |
download | tinyalsa_new-android12-gsi.tar.gz |
Snap for 7563534 from 1fa61ebcecfa8c4bfe775f0565ea375d9bd496f4 to sc-release am: fa93d46688android12-gsi
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/tinyalsa_new/+/15332493
Change-Id: Ic63e5279ee1e3f869093a2ba9d222207d6b8ca2d
-rw-r--r-- | src/pcm_hw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pcm_hw.c b/src/pcm_hw.c index 4792895..e5588a0 100644 --- a/src/pcm_hw.c +++ b/src/pcm_hw.c @@ -50,7 +50,7 @@ struct pcm_hw_data { /** Device number for the pcm device */ unsigned int device; /** File descriptor to the pcm device file node */ - unsigned int fd; + int fd; /** Pointer to the pcm node from snd card definiton */ struct snd_node *node; }; @@ -59,7 +59,7 @@ static void pcm_hw_close(void *data) { struct pcm_hw_data *hw_data = data; - if (hw_data->fd > 0) + if (hw_data->fd >= 0) close(hw_data->fd); free(hw_data); |