diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-07-20 20:25:39 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-07-20 20:25:39 +0000 |
commit | cf88eafb16038b092ee9fa14c45be927dc41a70e (patch) | |
tree | dba9653c5ab26933a0a29a0a19f754f14e96fe89 | |
parent | fbd60aaa1f06c73c4fc68b4668c9a63dd76e5217 (diff) | |
parent | 20708d6485443588a9470552a09d71ed788005e9 (diff) | |
download | tinyalsa_new-android12-mainline-wifi-release.tar.gz |
Snap for 7566674 from 20708d6485443588a9470552a09d71ed788005e9 to mainline-wifi-releaseandroid-mainline-12.0.0_r96android-mainline-12.0.0_r83android-mainline-12.0.0_r67android-mainline-12.0.0_r57android-mainline-12.0.0_r40android-mainline-12.0.0_r20android-mainline-12.0.0_r126android-mainline-12.0.0_r114aml_wif_311811030android12-mainline-wifi-release
Change-Id: I735055520ad71b51ed052582251c6c6f86a0000c
-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); |